diff --git a/dist/lite/markedit-preview.js b/dist/lite/markedit-preview.js index 5be199e..cee792d 100644 --- a/dist/lite/markedit-preview.js +++ b/dist/lite/markedit-preview.js @@ -53,7 +53,7 @@ `+p.slice(S,M),S=M+1),T=z;return N+=` `,p.length-S>w&&T>S?N+=p.slice(S,T)+` `+p.slice(T+1):N+=p.slice(S),N.slice(1)}function bu(p){let w="",I=0;for(let D=0;D=65536?D+=2:D++){I=Ce(p,D);const S=Q[I];!S&&Se(I)?(w+=p[D],I>=65536&&(w+=p[D+1])):w+=S||we(I)}return w}function jn(p,w,I){let D="";const S=p.tag;for(let M=0,T=I.length;M"u"&&_(p,w,null,!1,!1))&&(D!==""&&(D+=","+(p.condenseFlow?"":" ")),D+=p.dump)}p.tag=S,p.dump="["+D+"]"}function Hn(p,w,I,D){let S="";const M=p.tag;for(let T=0,z=I.length;T"u"&&_(p,w+1,null,!0,!0,!1,!0))&&((!D||S!=="")&&(S+=$e(p,w)),p.dump&&f===p.dump.charCodeAt(0)?S+="-":S+="- ",S+=p.dump)}p.tag=M,p.dump=S||"[]"}function mu(p,w,I){let D="";const S=p.tag,M=Object.keys(I);for(let T=0,z=M.length;T1024&&(N+="? "),N+=p.dump+(p.condenseFlow?'"':"")+":"+(p.condenseFlow?"":" "),_(p,w,q,!1,!1)&&(N+=p.dump,D+=N))}p.tag=S,p.dump="{"+D+"}"}function t(p,w,I,D){let S="";const M=p.tag,T=Object.keys(I);if(p.sortKeys===!0)T.sort();else if(typeof p.sortKeys=="function")T.sort(p.sortKeys);else if(p.sortKeys)throw new r("sortKeys must be a boolean or a function");for(let z=0,N=T.length;z1024;W&&(p.dump&&f===p.dump.charCodeAt(0)?B+="?":B+="? "),B+=p.dump,W&&(B+=$e(p,w)),_(p,w+1,$,!0,W)&&(p.dump&&f===p.dump.charCodeAt(0)?B+=":":B+=": ",B+=p.dump,S+=B)}p.tag=M,p.dump=S||"{}"}function y(p,w,I){const D=I?p.explicitTypes:p.implicitTypes;for(let S=0,M=D.length;S tag resolver accepts not "'+z+'" style');p.dump=N}return!0}}return!1}function _(p,w,I,D,S,M,T){p.tag=null,p.dump=I,y(p,I,!1)||y(p,I,!0);const z=a.call(p.dump),N=D;D&&(D=p.flowLevel<0||p.flowLevel>w);const B=z==="[object Object]"||z==="[object Array]";let q,$;if(B&&(q=p.duplicates.indexOf(I),$=q!==-1),(p.tag!==null&&p.tag!=="?"||$||p.indent!==2&&w>0)&&(S=!1),$&&p.usedDuplicates[q])p.dump="*ref_"+q;else{if(B&&$&&!p.usedDuplicates[q]&&(p.usedDuplicates[q]=!0),z==="[object Object]")D&&Object.keys(p.dump).length!==0?(t(p,w,p.dump,S),$&&(p.dump="&ref_"+q+p.dump)):(mu(p,w,p.dump),$&&(p.dump="&ref_"+q+" "+p.dump));else if(z==="[object Array]")D&&p.dump.length!==0?(p.noArrayIndent&&!T&&w>0?Hn(p,w-1,p.dump,S):Hn(p,w,p.dump,S),$&&(p.dump="&ref_"+q+p.dump)):(jn(p,w,p.dump),$&&(p.dump="&ref_"+q+" "+p.dump));else if(z==="[object String]")p.tag!=="?"&&hu(p,p.dump,w,M,N);else{if(z==="[object Undefined]")return!1;if(p.skipInvalid)return!1;throw new r("unacceptable kind of an object to dump "+z)}if(p.tag!==null&&p.tag!=="?"){let W=encodeURI(p.tag[0]==="!"?p.tag.slice(1):p.tag).replace(/!/g,"%21");p.tag[0]==="!"?W="!"+W:W.slice(0,18)==="tag:yaml.org,2002:"?W="!!"+W.slice(18):W="!<"+W+">",p.dump=W+" "+p.dump}}return!0}function F(p,w){const I=[],D=[];C(p,I,D);const S=D.length;for(let M=0;M{var u=Oc(),r=Nc();function o(a,c){return function(){throw new Error("Function yaml."+a+" is removed in js-yaml 4. Use yaml."+c+" instead, which is now safe by default.")}}n.exports.Type=re(),n.exports.Schema=_t(),n.exports.FAILSAFE_SCHEMA=St(),n.exports.JSON_SCHEMA=Rt(),n.exports.CORE_SCHEMA=Lt(),n.exports.DEFAULT_SCHEMA=Xu(),n.exports.load=u.load,n.exports.loadAll=u.loadAll,n.exports.dump=r.dump,n.exports.YAMLException=Fn(),n.exports.types={binary:zt(),float:It(),map:Dt(),null:Ft(),pairs:Bt(),set:qt(),timestamp:Ot(),bool:Tt(),int:Mt(),merge:Nt(),omap:Pt(),seq:At(),str:Et()},n.exports.safeLoad=o("safeLoad","load"),n.exports.safeLoadAll=o("safeLoadAll","loadAll"),n.exports.safeDump=o("safeDump","dump")}))()),{Type:D0,Schema:S0,FAILSAFE_SCHEMA:F0,JSON_SCHEMA:T0,CORE_SCHEMA:zc,DEFAULT_SCHEMA:M0,load:Pc,loadAll:I0,dump:R0,YAMLException:L0,types:O0,safeLoad:N0,safeLoadAll:z0,safeDump:P0}=jt.default;jt.default;var Du,Lr;function Bc(){return Lr||(Lr=1,Du=function(n,u){var r=3,o="-",a=o.charCodeAt(0),c=o.length;function i(s,f,b,l){var d,h,m,g,k,x,v,E=!1,A=s.bMarks[f]+s.tShift[f],R=s.eMarks[f];if(f!==0||a!==s.src.charCodeAt(0))return!1;for(d=A+1;d<=R;d++)if(o[(d-A)%c]!==s.src[d]){v=d+1;break}if(m=Math.floor((d-A)/c),m=b||s.src.slice(A,R)==="..."||(A=s.bMarks[h]+s.tShift[h],R=s.eMarks[h],A=4)){for(d=A+1;d<=R&&o[(d-A)%c]===s.src[d];d++);if(!(Math.floor((d-A)/c){let n="";e.use(jc,u=>{const r=$c(u);r!==void 0?n=Ht(r,e.utils.escapeHtml):n=""}),e.renderer.rules.front_matter=(u,r,o,a,c)=>n===""?"":` +`:""}n.exports.dump=L})),jt=Rc(Z(((e,n)=>{var u=Oc(),r=Nc();function o(a,c){return function(){throw new Error("Function yaml."+a+" is removed in js-yaml 4. Use yaml."+c+" instead, which is now safe by default.")}}n.exports.Type=re(),n.exports.Schema=_t(),n.exports.FAILSAFE_SCHEMA=St(),n.exports.JSON_SCHEMA=Rt(),n.exports.CORE_SCHEMA=Lt(),n.exports.DEFAULT_SCHEMA=Xu(),n.exports.load=u.load,n.exports.loadAll=u.loadAll,n.exports.dump=r.dump,n.exports.YAMLException=Fn(),n.exports.types={binary:zt(),float:It(),map:Dt(),null:Ft(),pairs:Bt(),set:qt(),timestamp:Ot(),bool:Tt(),int:Mt(),merge:Nt(),omap:Pt(),seq:At(),str:Et()},n.exports.safeLoad=o("safeLoad","load"),n.exports.safeLoadAll=o("safeLoadAll","loadAll"),n.exports.safeDump=o("safeDump","dump")}))()),{Type:S0,Schema:F0,FAILSAFE_SCHEMA:T0,JSON_SCHEMA:M0,CORE_SCHEMA:zc,DEFAULT_SCHEMA:I0,load:Pc,loadAll:R0,dump:L0,YAMLException:O0,types:N0,safeLoad:z0,safeLoadAll:P0,safeDump:B0}=jt.default;jt.default;var Du,Lr;function Bc(){return Lr||(Lr=1,Du=function(n,u){var r=3,o="-",a=o.charCodeAt(0),c=o.length;function i(s,f,b,l){var d,h,m,g,k,x,v,E=!1,A=s.bMarks[f]+s.tShift[f],R=s.eMarks[f];if(f!==0||a!==s.src.charCodeAt(0))return!1;for(d=A+1;d<=R;d++)if(o[(d-A)%c]!==s.src[d]){v=d+1;break}if(m=Math.floor((d-A)/c),m=b||s.src.slice(A,R)==="..."||(A=s.bMarks[h]+s.tShift[h],R=s.eMarks[h],A=4)){for(d=A+1;d<=R&&o[(d-A)%c]===s.src[d];d++);if(!(Math.floor((d-A)/c){let n="";e.use(jc,u=>{const r=$c(u);r!==void 0?n=Ht(r,e.utils.escapeHtml):n=""}),e.renderer.rules.front_matter=(u,r,o,a,c)=>n===""?"":`
${n}
`}}function $c(e){try{const n=Pc(e,{schema:zc});if(n!==null&&typeof n=="object"&&!Array.isArray(n)&&Object.keys(n).length>0)return n}catch{}}function Ht(e,n){const u=Object.entries(e);return u.length===0?"":` @@ -1861,7 +1861,7 @@ ${e} } `,Qn=document.body,mn=document.createElement("div"),X=document.createElement("div"),Br=hn("* { cursor: col-resize }",!1),eo=mo.Annotation.define();var be=(e=>(e[e.edit=0]="edit",e[e.sideBySide=1]="sideBySide",e[e.preview=2]="preview",e))(be||{});function Zl(){hn(Vl),hn(Vt()),hn(Zt());const e=document.createElement("div");e.className=Be.dividerViewClass,mn.appendChild(e),mn.className=Be.gutterViewClass,Qn.appendChild(mn),X.className=Be.previewPaneClass,Qn.appendChild(X),document.addEventListener("keydown",r=>{if(!r.metaKey||r.key!=="a")return;const o=H.MarkEdit.editorView?.contentDOM??document.querySelector(".cm-content");(X.classList.contains("overlay")||document.activeElement!==o)&&(xo(X),r.preventDefault())}),new MutationObserver(qr).observe(X,{attributes:!0,attributeFilter:["style","class"]}),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{qr(),document.querySelector(".mermaid")!==null&&Xn()}),typeof H.MarkEdit.getFileInfo=="function"&&typeof H.MarkEdit.openFile=="function"&&X.addEventListener("click",u0),X.addEventListener("click",r0)}function lu(e,n=!0){const u=de();dn.viewMode=e,e!==u&&localStorage.setItem(cu.viewModeCacheKey,String(e));const r=H.MarkEdit.editorView;e===0?r.focus():e===2&&r.contentDOM.blur(),e===1?(Qn.classList.add(Be.containerClass),dn.splitter??=Gl({columnGutters:[{track:1,element:mn}],minSize:150,onDragStart:()=>Br.disabled=!1,onDragEnd:()=>Br.disabled=!0})):(Qn.classList.remove(Be.containerClass),dn.splitter?.destroy(),dn.splitter=void 0),e===2?X.classList.add("overlay"):X.classList.remove("overlay"),n&&Xn()}function Wl(){const e=[0,...Kc.map(r=>{switch(r){case"side-by-side":return 1;case"preview":return 2;default:return}}).filter(r=>r!==void 0)],n=e.indexOf(de()),u=n===-1?0:(n+1)%e.length;lu(e[u])}function Yl(){const e=localStorage.getItem(cu.viewModeCacheKey);if(e===null)return;const n=Number(e);de()!==n&&lu(n,!0)}function de(){return dn.viewMode}async function Xn(){if(de()===0)return;const e=Kt(await su());X.innerHTML=e,Wt(()=>{Pu(no(),Mn(),!1);const n=localStorage.getItem(cu.previewPageZoomKey);n!==null&&(X.style.zoom=n)})}function Kl(e){if(de()===0||de()===1&&H.MarkEdit.editorView.hasFocus||!e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;const n=Number(X.style.zoom)||1,u=r=>String(Math.min(Math.max(r,.5),3));switch(e.key){case"-":X.style.zoom=u(n-.1);break;case"=":X.style.zoom=u(n+.1);break;case"0":X.style.zoom="1";break;default:return}localStorage.setItem(cu.previewPageZoomKey,X.style.zoom),e.preventDefault(),e.stopPropagation()}function Jl(){ro(!1)}function Ql(){ro(!0)}async function Xl(){const e=await su(!1);await navigator.clipboard.writeText(e)}async function e0(){const e=await su(!1),n=new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([X.innerText],{type:"text/plain"})});await navigator.clipboard.write([n])}function no(){return H.MarkEdit.editorView.scrollDOM}function Mn(){return X}async function uo(e){const n=await su(!1);return e?await Yt(n):` ${n}`}async function n0(e,n){const u=await rr(e,!1);return n?await Yt(u):` -${u}`}async function su(e=!0){const n=H.MarkEdit.editorAPI.getText();return await rr(n,e)}function qr(){const e=getComputedStyle(X).backgroundColor;mn.style.background=`linear-gradient(to right, transparent 50%, ${e} 50%)`}async function ro(e){const n=await(async()=>{const r=await H.MarkEdit.getFileInfo();return r===void 0?`${V("untitled")}.html`:`${ko(r.filePath)}.html`})(),u=await uo(e);H.MarkEdit.showSavePanel({fileName:n,string:u})}async function u0(e){if(!(e.target instanceof Element))return;const n=e.target.closest("a");if(n===null)return;const u=n.getAttribute("href");if(!u?.startsWith("../"))return;const r=(await H.MarkEdit.getFileInfo())?.parentPath;if(r!==void 0){e.preventDefault(),e.stopPropagation();try{const o=We(r,decodeURIComponent(u));await H.MarkEdit.openFile(o)}catch(o){console.error("Failed to open file:",o)}}}function r0(e){const n=e.target;if(!(n instanceof HTMLInputElement)||!n.classList.contains("task-list-item-checkbox"))return;const u=n.closest("[data-line-from]");if(u===null){console.error("Failed to find task item block");return}const r=H.MarkEdit.editorAPI,o=r.getLineRange(Ke(u).from),a=Pl(r.getText(o));if(a===null){n.checked=!n.checked,console.error("Failed to resolve task toggle");return}const c=o.from+a.offset;H.MarkEdit.editorView.dispatch({changes:{from:c,to:c+1,insert:a.replacement},annotations:eo.of(!0)})}const dn={viewMode:0,splitter:void 0};async function Bu(){if(pn==="never")return;const e=await to();typeof e.tag_name=="string"&&e.name!=="1.8.0"&&(ao().has(e.name)||(pn==="automatic"&&$u()?await ir(e.tag_name):pn==="quiet"?(qu.pendingRelease=e,oo(e)):o0(e)))}async function t0(){const e=Date.now(),n=Number(localStorage.getItem(un.lastCheckCacheKey)??"0");if(!(e-n<2592e5))try{await Bu(),localStorage.setItem(un.lastCheckCacheKey,String(e))}catch(u){console.error("Failed to check for updates:",u)}}async function to(){return await(await fetch(un.latestReleaseURL)).json()}async function ir(e){if(typeof __FILE_PATH__!="string")return console.error("Cannot download the latest build: unknown file path"),!1;try{const n=__FILE_PATH__,u="lite/",r=e===void 0?"main":`refs/tags/${encodeURIComponent(e)}`,o=`${un.rawBaseURL}${r}/dist/${u}markedit-preview.js`,a=await fetch(o);if(!a.ok)return console.error(`Failed to download the latest build from ${o}`),!1;const c=await a.text();return await H.MarkEdit.createFile({path:n,string:c,overwrites:!0})}catch(n){return console.error("Failed to download the latest build:",n),!1}}function oo(e=qu.pendingRelease){if(e===void 0)return;const n=document.querySelector(`.${Be.updatePillClass}`);if(n!==null){if(n.dataset.releaseName===e.name)return n;n.remove()}const u=document.createElement("button");return u.dataset.releaseName=e.name,u.className=Be.updatePillClass,u.textContent=V("update"),u.style.display=de()===be.edit?"none":"",u.addEventListener("webkitmouseforcedown",r=>{r.preventDefault()}),u.addEventListener("click",()=>{const{title:r,actions:o}=io(e,()=>{qu.pendingRelease=void 0,u.remove()}),[a,...c]=o,i=u.getBoundingClientRect(),s={x:i.left,y:i.bottom+10};H.MarkEdit.showContextMenu([{title:r},a,{separator:!0},...c],s)}),document.body.appendChild(u),u}async function o0(e){const{title:n,actions:u}=io(e),r=await H.MarkEdit.showAlert({title:n,message:e.body,buttons:u.map(o=>o.title)});u[r]?.action?.()}function io(e,n=()=>{}){const u=`MarkEdit-preview ${e.name} ${V("newVersionAvailable")}`,r=[...$u()?[{title:V("updateAndRelaunch"),action:async()=>{await ir(e.tag_name)?H.MarkEdit.relaunchApp():H.MarkEdit.showAlert(V("failedToUpdate")),n()}}]:[],{title:V("viewReleasePage"),action:()=>{open(e.html_url),n()}},{title:V("remindMeLater"),action:n},{title:V("skipThisVersion"),action:()=>{const o=ao();o.add(e.name),localStorage.setItem(un.skippedCacheKey,JSON.stringify([...o])),n()}}];return{title:u,actions:r}}function ao(){const e=localStorage.getItem(un.skippedCacheKey);return new Set(JSON.parse(e??"[]"))}const un={latestReleaseURL:"https://api.github.com/repos/MarkEdit-app/MarkEdit-preview/releases/latest",rawBaseURL:"https://raw.githubusercontent.com/MarkEdit-app/MarkEdit-preview/",lastCheckCacheKey:"updater.last-check-time",skippedCacheKey:"updater.skipped-versions"},qu={pendingRelease:void 0},ju="markedit-preview",jr=`${ju}.js`;function i0(e){const{destExists:n,bundleInfo:u,currentVersion:r}=e,o=u?.version===r,a=u?.fullBuild===!1;return!(n&&o&&a)}async function a0(){try{const e=H.MarkEdit.getDirectoryPath("documents"),n=H.MarkEdit.getDirectoryPath("sharedContainer");if(e===void 0||n===void 0){console.error("Required directories are not accessible");return}const u=typeof __FILE_PATH__=="string"?__FILE_PATH__:We(e,`scripts/${jr}`);if(await H.MarkEdit.getFileInfo(u)===void 0){console.error(`Source file not found at ${u}`);return}const o=u.split("/").pop()??jr,a=We(n,"Shared/scripts"),c=We(a,o),i=await H.MarkEdit.getFileInfo(c)!==void 0,s=We(n,"Shared/metadata.json"),f=await vo(s),b=f[ju];if(!i0({destExists:i,bundleInfo:b,currentVersion:"1.8.0"}))return;const l=await H.MarkEdit.getFileContent(u);if(l===void 0){console.error(`Failed to read content from ${u}`);return}await H.MarkEdit.createFile({path:a,isDirectory:!0}),await H.MarkEdit.createFile({path:c,string:l,overwrites:!0}),await H.MarkEdit.createFile({path:s,string:JSON.stringify({...f,[ju]:{version:"1.8.0",fullBuild:!1}},null,2),overwrites:!0})}catch(e){console.error("Failed to copy the current file to shared container:",e)}}function c0(){const e=Hr(V("source")),n=Hr(V("preview")),u=document.createElement("div");u.className="quicklook-segmented",u.setAttribute("role","tablist"),u.append(e,n);const r=document.createElement("div");return r.className="quicklook-toolbar",r.appendChild(u),{toolbar:r,sourceButton:e,previewButton:n}}function Hr(e){const n=document.createElement("button");return n.textContent=e,n.type="button",n.className="quicklook-segment",n.setAttribute("role","tab"),n}function Ve(){if(Ze!==void 0)return Ze;try{Ze=localStorage.getItem(co)==="preview"?"preview":"source"}catch{console.error("Failed to read quick look mode from localStorage"),Ze="source"}return Ze}function $r(e){Ze=e;try{localStorage.setItem(co,e)}catch{console.error("Failed to write quick look mode to localStorage")}}let Ze;const co="ui.quicklook-mode";function l0(){const e=window,n=e.editor?.state?.doc.toString();return typeof n=="string"?n:(console.error("Failed to get text from host editor state"),e.config?.text??"")}function s0(){document.addEventListener("webkitmouseforcewillbegin",e=>{const n=e.target;n instanceof Element&&n.closest("a")!==null&&e.preventDefault()})}function d0(e,n){const u=window,r=u.pinchZoomTarget;u.pinchZoomTarget=()=>{if(e()!=="preview")return r?.()??null;const o=n.querySelector(".quicklook-content");return o!==null?{scroller:n,inner:o}:null};for(const o of["gesturechange","gestureend"])document.addEventListener(o,()=>{if(e()!=="preview")return;const a=n.querySelector(".quicklook-content");a?.style.zoom.length?a?.style.setProperty("--quicklook-zoom",a.style.zoom):a?.style.removeProperty("--quicklook-zoom")},{passive:!1})}function f0(e,n){let u;const r=window,o={start:r.startDragging,update:r.updateDragging,cancel:r.cancelDragging},a=()=>{const i=n.clientHeight,s=n.scrollHeight,f=s-i;if(f<=0||s<=0)return{clientHeight:i,scrollHeight:s,scrollbarHeight:i,scrollbarTop:0};const b=i*(i/s),d=n.scrollTop/f*(i-b);return{clientHeight:i,scrollHeight:s,scrollbarHeight:b,scrollbarTop:d}},c=(i,s,f="auto")=>{const{clientHeight:b,scrollHeight:l,scrollbarHeight:d}=a(),h=b-d;if(h>0){const m=(i-s)/h;n.scrollTo({top:m*(l-b),behavior:f})}};r.startDragging=i=>{if(e()!=="preview"){o.start?.(i);return}const{scrollbarTop:s,scrollbarHeight:f}=a(),b=Ur(n,i);u=b-s,(bs+f)&&c(b,f*.5,"smooth")},r.updateDragging=i=>{if(e()!=="preview"){o.update?.(i);return}u!==void 0&&c(Ur(n,i),u)},r.cancelDragging=()=>{if(e()!=="preview"){o.cancel?.();return}u=void 0}}function h0(e,n,u){u.addEventListener("wheel",r=>{const o=e()==="preview"?n:document.querySelector(".cm-scroller");o!==null&&(o.scrollTop+=r.deltaY,o.scrollLeft+=r.deltaX,r.preventDefault())},{passive:!1})}function p0(e,n,u){const r=document.querySelector(".cm-scroller"),o=()=>{const c=(e()==="preview"?n:r)?.scrollTop??0;u.classList.toggle("scrolled",c>0),u.classList.toggle("scrolled-far",c>20)};return n.addEventListener("scroll",o,{passive:!0}),r?.addEventListener("scroll",o,{passive:!0}),o}function Ur(e,n){return n-e.getBoundingClientRect().top}const b0=`body { +${u}`}async function su(e=!0){const n=H.MarkEdit.editorAPI.getText();return await rr(n,e)}function qr(){const e=getComputedStyle(X).backgroundColor;mn.style.background=`linear-gradient(to right, transparent 50%, ${e} 50%)`}async function ro(e){const n=await(async()=>{const r=await H.MarkEdit.getFileInfo();return r===void 0?`${V("untitled")}.html`:`${ko(r.filePath)}.html`})(),u=await uo(e);H.MarkEdit.showSavePanel({fileName:n,string:u})}async function u0(e){if(!(e.target instanceof Element))return;const n=e.target.closest("a");if(n===null)return;const u=n.getAttribute("href");if(!u?.startsWith("../"))return;const r=(await H.MarkEdit.getFileInfo())?.parentPath;if(r!==void 0){e.preventDefault(),e.stopPropagation();try{const o=We(r,decodeURIComponent(u));await H.MarkEdit.openFile(o)}catch(o){console.error("Failed to open file:",o)}}}function r0(e){const n=e.target;if(!(n instanceof HTMLInputElement)||!n.classList.contains("task-list-item-checkbox"))return;const u=n.closest("[data-line-from]");if(u===null){console.error("Failed to find task item block");return}const r=H.MarkEdit.editorAPI,o=r.getLineRange(Ke(u).from),a=Pl(r.getText(o));if(a===null){n.checked=!n.checked,console.error("Failed to resolve task toggle");return}const c=o.from+a.offset;H.MarkEdit.editorView.dispatch({changes:{from:c,to:c+1,insert:a.replacement},annotations:eo.of(!0)})}const dn={viewMode:0,splitter:void 0};async function Bu(){if(pn==="never")return;const e=await to();typeof e.tag_name=="string"&&e.name!=="1.8.0"&&(ao().has(e.name)||(pn==="automatic"&&$u()?await ir(e.tag_name):pn==="quiet"?(qu.pendingRelease=e,oo(e)):o0(e)))}async function t0(){const e=Date.now(),n=Number(localStorage.getItem(un.lastCheckCacheKey)??"0");if(!(e-n<2592e5))try{await Bu(),localStorage.setItem(un.lastCheckCacheKey,String(e))}catch(u){console.error("Failed to check for updates:",u)}}async function to(){return await(await fetch(un.latestReleaseURL)).json()}async function ir(e){if(typeof __FILE_PATH__!="string")return console.error("Cannot download the latest build: unknown file path"),!1;try{const n=__FILE_PATH__,u="lite/",r=e===void 0?"main":`refs/tags/${encodeURIComponent(e)}`,o=`${un.rawBaseURL}${r}/dist/${u}markedit-preview.js`,a=await fetch(o);if(!a.ok)return console.error(`Failed to download the latest build from ${o}`),!1;const c=await a.text();return await H.MarkEdit.createFile({path:n,string:c,overwrites:!0})}catch(n){return console.error("Failed to download the latest build:",n),!1}}function oo(e=qu.pendingRelease){if(e===void 0)return;const n=document.querySelector(`.${Be.updatePillClass}`);if(n!==null){if(n.dataset.releaseName===e.name)return n;n.remove()}const u=document.createElement("button");return u.dataset.releaseName=e.name,u.className=Be.updatePillClass,u.textContent=V("update"),u.style.display=de()===be.edit?"none":"",u.addEventListener("webkitmouseforcedown",r=>{r.preventDefault()}),u.addEventListener("click",()=>{const{title:r,actions:o}=io(e,()=>{qu.pendingRelease=void 0,u.remove()}),[a,...c]=o,i=u.getBoundingClientRect(),s={x:i.left,y:i.bottom+10};H.MarkEdit.showContextMenu([{title:r},a,{separator:!0},...c],s)}),document.body.appendChild(u),u}async function o0(e){const{title:n,actions:u}=io(e),r=await H.MarkEdit.showAlert({title:n,message:e.body,buttons:u.map(o=>o.title)});u[r]?.action?.()}function io(e,n=()=>{}){const u=`MarkEdit-preview ${e.name} ${V("newVersionAvailable")}`,r=[...$u()?[{title:V("updateAndRelaunch"),action:async()=>{await ir(e.tag_name)?H.MarkEdit.relaunchApp():H.MarkEdit.showAlert(V("failedToUpdate")),n()}}]:[],{title:V("viewReleasePage"),action:()=>{open(e.html_url),n()}},{title:V("remindMeLater"),action:n},{title:V("skipThisVersion"),action:()=>{const o=ao();o.add(e.name),localStorage.setItem(un.skippedCacheKey,JSON.stringify([...o])),n()}}];return{title:u,actions:r}}function ao(){const e=localStorage.getItem(un.skippedCacheKey);return new Set(JSON.parse(e??"[]"))}const un={latestReleaseURL:"https://api.github.com/repos/MarkEdit-app/MarkEdit-preview/releases/latest",rawBaseURL:"https://raw.githubusercontent.com/MarkEdit-app/MarkEdit-preview/",lastCheckCacheKey:"updater.last-check-time",skippedCacheKey:"updater.skipped-versions"},qu={pendingRelease:void 0},ju="markedit-preview",jr=`${ju}.js`;function i0(e){const{destExists:n,bundleInfo:u,currentVersion:r}=e,o=u?.version===r,a=u?.fullBuild===!1;return!(n&&o&&a)}async function a0(){try{const e=H.MarkEdit.getDirectoryPath("documents"),n=H.MarkEdit.getDirectoryPath("sharedContainer");if(e===void 0||n===void 0){console.error("Required directories are not accessible");return}const u=typeof __FILE_PATH__=="string"?__FILE_PATH__:We(e,`scripts/${jr}`);if(await H.MarkEdit.getFileInfo(u)===void 0){console.error(`Source file not found at ${u}`);return}const o=u.split("/").pop()??jr,a=We(n,"Shared/scripts"),c=We(a,o),i=await H.MarkEdit.getFileInfo(c)!==void 0,s=We(n,"Shared/metadata.json"),f=await vo(s),b=f[ju];if(!i0({destExists:i,bundleInfo:b,currentVersion:"1.8.0"}))return;const l=await H.MarkEdit.getFileContent(u);if(l===void 0){console.error(`Failed to read content from ${u}`);return}await H.MarkEdit.createFile({path:a,isDirectory:!0}),await H.MarkEdit.createFile({path:c,string:l,overwrites:!0}),await H.MarkEdit.createFile({path:s,string:JSON.stringify({...f,[ju]:{version:"1.8.0",fullBuild:!1}},null,2),overwrites:!0})}catch(e){console.error("Failed to copy the current file to shared container:",e)}}function c0(){const e=Hr(V("source")),n=Hr(V("preview")),u=document.createElement("div");u.className="quicklook-segmented",u.setAttribute("role","tablist"),u.append(e,n);const r=document.createElement("div");return r.className="quicklook-toolbar",r.appendChild(u),{toolbar:r,sourceButton:e,previewButton:n}}function Hr(e){const n=document.createElement("button");return n.textContent=e,n.type="button",n.className="quicklook-segment",n.setAttribute("role","tab"),n}function Ve(){if(Ze!==void 0)return Ze;try{Ze=localStorage.getItem(co)==="preview"?"preview":"source"}catch{console.error("Failed to read quick look mode from localStorage"),Ze="source"}return Ze}function $r(e){Ze=e;try{localStorage.setItem(co,e)}catch{console.error("Failed to write quick look mode to localStorage")}}let Ze;const co="ui.quicklook-mode";function l0(){const e=window,n=e.editor?.state?.doc.toString();return typeof n=="string"?n:(console.error("Failed to get text from host editor state"),e.config?.text??"")}function s0(){document.addEventListener("webkitmouseforcewillbegin",e=>{const n=e.target;n instanceof Element&&n.closest("a")!==null&&e.preventDefault()})}function d0(e,n){const u=window,r=u.pinchZoomTarget;u.pinchZoomTarget=()=>{if(e()!=="preview")return r?.()??null;const o=n.querySelector(".quicklook-content");return o!==null?{scroller:n,inner:o}:null};for(const o of["gesturechange","gestureend"])document.addEventListener(o,()=>{if(e()!=="preview")return;const a=n.querySelector(".quicklook-content");a?.style.zoom.length?a?.style.setProperty("--quicklook-zoom",a.style.zoom):a?.style.removeProperty("--quicklook-zoom")},{passive:!1})}function f0(e,n){let u;const r=window,o={start:r.startDragging,update:r.updateDragging,cancel:r.cancelDragging},a=()=>{const i=n.clientHeight,s=n.scrollHeight,f=s-i;if(f<=0||s<=0)return{clientHeight:i,scrollHeight:s,scrollbarHeight:i,scrollbarTop:0};const b=i*(i/s),d=n.scrollTop/f*(i-b);return{clientHeight:i,scrollHeight:s,scrollbarHeight:b,scrollbarTop:d}},c=(i,s,f="auto")=>{const{clientHeight:b,scrollHeight:l,scrollbarHeight:d}=a(),h=b-d;if(h>0){const m=(i-s)/h;n.scrollTo({top:m*(l-b),behavior:f})}};r.startDragging=i=>{if(e()!=="preview"){o.start?.(i);return}const{scrollbarTop:s,scrollbarHeight:f}=a(),b=Ur(n,i);u=b-s,(bs+f)&&c(b,f*.5,"smooth")},r.updateDragging=i=>{if(e()!=="preview"){o.update?.(i);return}u!==void 0&&c(Ur(n,i),u)},r.cancelDragging=()=>{if(e()!=="preview"){o.cancel?.();return}u=void 0}}function h0(e,n,u){u.addEventListener("wheel",r=>{const o=e()==="preview"?n:document.querySelector(".cm-scroller");o!==null&&(o.scrollTop+=r.deltaY,o.scrollLeft+=r.deltaX,r.preventDefault())},{passive:!1})}function p0(e,n,u){const r=document.querySelector(".cm-scroller"),o=()=>{const c=(e()==="preview"?n:r)?.scrollTop??0;u.classList.toggle("scrolled",c>0),u.classList.toggle("scrolled-far",c>20)};return n.addEventListener("scroll",o,{passive:!0}),r?.addEventListener("scroll",o,{passive:!0}),o}function b0(e){document.addEventListener("copy",n=>{if(!e.classList.contains("overlay"))return;const u=getSelection(),r=u!==null&&u.rangeCount>0?u.getRangeAt(0):null,o=r!==null&&!r.collapsed&&e.contains(r.commonAncestorContainer)?r:null,a=o??(()=>{const i=document.createRange();return i.selectNodeContents(e),i})(),c=document.createElement("div");c.appendChild(a.cloneContents()),n.clipboardData?.setData("text/html",c.innerHTML),n.clipboardData?.setData("text/plain",o!==null?o.toString():e.innerText),n.preventDefault(),n.stopPropagation()},!0)}function Ur(e,n){return n-e.getBoundingClientRect().top}const m0=`body { --editor-inset-top: 34px; } @@ -2064,5 +2064,5 @@ ${u}`}async function su(e=!0){const n=H.MarkEdit.editorAPI.getText();return awai box-shadow: 0 0 3px rgba(0, 0, 0, 0.45); } } -`;function m0(e){hn(b0),document.body.classList.add("quicklook");const{toolbar:n,sourceButton:u,previewButton:r}=c0();document.body.appendChild(n);const o=g0(e),a=p0(Ve,e,n),c={previewPane:e,sourceButton:u,previewButton:r,refreshSeparator:a,ensureRendered:o.ensureRendered};u.addEventListener("click",()=>{$r("source"),Mu(c)}),r.addEventListener("click",()=>{$r("preview"),Mu(c)}),Mu(c),setTimeout(o.ensureRendered,0),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{e.querySelector(".mermaid")!==null&&(o.invalidate(),Ve()==="preview"&&o.ensureRendered())}),s0(),d0(Ve,e),f0(Ve,e),h0(Ve,e,n)}function Mu(e){const n=Ve()==="source",u=!n;e.sourceButton.classList.toggle("active",n),e.previewButton.classList.toggle("active",u),e.sourceButton.setAttribute("aria-selected",String(n)),e.previewButton.setAttribute("aria-selected",String(u)),e.previewPane.classList.toggle("overlay",u),e.refreshSeparator(),u&&e.ensureRendered()}function g0(e){let n=!1,u;return{ensureRendered:()=>(n||u||(u=(async()=>{try{const a=Kt(await rr(l0(),!1));e.innerHTML=`
${a}
`,e.querySelectorAll("a[href]").forEach(c=>{c.removeAttribute("href"),c.removeAttribute("target")}),Wt(()=>{}),n=!0}catch(a){throw u=void 0,a}})()),u),invalidate:()=>{n=!1,u=void 0}}}var Zn={exports:{}};var k0=Zn.exports,Gr;function y0(){return Gr||(Gr=1,(function(e,n){(function(u,r){e.exports=r()})(k0,(function(){var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r=function(f,b){if(!(f instanceof b))throw new TypeError("Cannot call a class as a function")},o=(function(){function f(b,l){for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;r(this,f),this.ctx=b,this.iframes=l,this.exclude=d,this.iframesTimeout=h}return o(f,[{key:"getContexts",value:function(){var l=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?l=[]:NodeList.prototype.isPrototypeOf(this.ctx)?l=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?l=this.ctx:typeof this.ctx=="string"?l=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):l=[this.ctx],l.forEach(function(h){var m=d.filter(function(g){return g.contains(h)}).length>0;d.indexOf(h)===-1&&!m&&d.push(h)}),d}},{key:"getIframeContents",value:function(l,d){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},m=void 0;try{var g=l.contentWindow;if(m=g.document,!g||!m)throw new Error("iframe inaccessible")}catch{h()}m&&d(m)}},{key:"isIframeBlank",value:function(l){var d="about:blank",h=l.getAttribute("src").trim(),m=l.contentWindow.location.href;return m===d&&h!==d&&h}},{key:"observeIframeLoad",value:function(l,d,h){var m=this,g=!1,k=null,x=function v(){if(!g){g=!0,clearTimeout(k);try{m.isIframeBlank(l)||(l.removeEventListener("load",v),m.getIframeContents(l,d,h))}catch{h()}}};l.addEventListener("load",x),k=setTimeout(x,this.iframesTimeout)}},{key:"onIframeReady",value:function(l,d,h){try{l.contentWindow.document.readyState==="complete"?this.isIframeBlank(l)?this.observeIframeLoad(l,d,h):this.getIframeContents(l,d,h):this.observeIframeLoad(l,d,h)}catch{h()}}},{key:"waitForIframes",value:function(l,d){var h=this,m=0;this.forEachIframe(l,function(){return!0},function(g){m++,h.waitForIframes(g.querySelector("html"),function(){--m||d()})},function(g){g||d()})}},{key:"forEachIframe",value:function(l,d,h){var m=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},k=l.querySelectorAll("iframe"),x=k.length,v=0;k=Array.prototype.slice.call(k);var E=function(){--x<=0&&g(v)};x||E(),k.forEach(function(A){f.matches(A,m.exclude)?E():m.onIframeReady(A,function(R){d(A)&&(v++,h(R)),E()},E)})}},{key:"createIterator",value:function(l,d,h){return document.createNodeIterator(l,d,h,!1)}},{key:"createInstanceOnIframe",value:function(l){return new f(l.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(l,d,h){var m=l.compareDocumentPosition(h),g=Node.DOCUMENT_POSITION_PRECEDING;if(m&g)if(d!==null){var k=d.compareDocumentPosition(h),x=Node.DOCUMENT_POSITION_FOLLOWING;if(k&x)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(l){var d=l.previousNode(),h=void 0;return d===null?h=l.nextNode():h=l.nextNode()&&l.nextNode(),{prevNode:d,node:h}}},{key:"checkIframeFilter",value:function(l,d,h,m){var g=!1,k=!1;return m.forEach(function(x,v){x.val===h&&(g=v,k=x.handled)}),this.compareNodeIframe(l,d,h)?(g===!1&&!k?m.push({val:h,handled:!0}):g!==!1&&!k&&(m[g].handled=!0),!0):(g===!1&&m.push({val:h,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(l,d,h,m){var g=this;l.forEach(function(k){k.handled||g.getIframeContents(k.val,function(x){g.createInstanceOnIframe(x).forEachNode(d,h,m)})})}},{key:"iterateThroughNodes",value:function(l,d,h,m,g){for(var k=this,x=this.createIterator(d,l,m),v=[],E=[],A=void 0,R=void 0,O=function(){var U=k.getIteratorNode(x);return R=U.prevNode,A=U.node,A};O();)this.iframes&&this.forEachIframe(d,function(j){return k.checkIframeFilter(A,R,j,v)},function(j){k.createInstanceOnIframe(j).forEachNode(l,function(U){return E.push(U)},m)}),E.push(A);E.forEach(function(j){h(j)}),this.iframes&&this.handleOpenIframes(v,l,h,m),g()}},{key:"forEachNode",value:function(l,d,h){var m=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},k=this.getContexts(),x=k.length;x||g(),k.forEach(function(v){var E=function(){m.iterateThroughNodes(l,v,d,h,function(){--x<=0&&g()})};m.iframes?m.waitForIframes(v,E):E()})}}],[{key:"matches",value:function(l,d){var h=typeof d=="string"?[d]:d,m=l.matches||l.matchesSelector||l.msMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector;if(m){var g=!1;return h.every(function(k){return m.call(l,k)?(g=!0,!1):!0}),g}else return!1}}]),f})(),i=(function(){function f(b){r(this,f),this.ctx=b,this.ie=!1;var l=window.navigator.userAgent;(l.indexOf("MSIE")>-1||l.indexOf("Trident")>-1)&&(this.ie=!0)}return o(f,[{key:"log",value:function(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",h=this.opt.log;this.opt.debug&&(typeof h>"u"?"undefined":u(h))==="object"&&typeof h[d]=="function"&&h[d]("mark.js: "+l)}},{key:"escapeStr",value:function(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(l){return this.opt.wildcards!=="disabled"&&(l=this.setupWildcardsRegExp(l)),l=this.escapeStr(l),Object.keys(this.opt.synonyms).length&&(l=this.createSynonymsRegExp(l)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),this.opt.diacritics&&(l=this.createDiacriticsRegExp(l)),l=this.createMergedBlanksRegExp(l),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.createJoinersRegExp(l)),this.opt.wildcards!=="disabled"&&(l=this.createWildcardsRegExp(l)),l=this.createAccuracyRegExp(l),l}},{key:"createSynonymsRegExp",value:function(l){var d=this.opt.synonyms,h=this.opt.caseSensitive?"":"i",m=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var g in d)if(d.hasOwnProperty(g)){var k=d[g],x=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(g):this.escapeStr(g),v=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(k):this.escapeStr(k);x!==""&&v!==""&&(l=l.replace(new RegExp("("+this.escapeStr(x)+"|"+this.escapeStr(v)+")","gm"+h),m+("("+this.processSynomyms(x)+"|")+(this.processSynomyms(v)+")")+m))}return l}},{key:"processSynomyms",value:function(l){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),l}},{key:"setupWildcardsRegExp",value:function(l){return l=l.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),l.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(l){var d=this.opt.wildcards==="withSpaces";return l.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(l){return l.replace(/[^(|)\\]/g,function(d,h,m){var g=m.charAt(h+1);return/[(|)\\]/.test(g)||g===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(l){var d=[],h=this.opt.ignorePunctuation;return Array.isArray(h)&&h.length&&d.push(this.escapeStr(h.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?l.split(/\u0000+/).join("["+d.join("")+"]*"):l}},{key:"createDiacriticsRegExp",value:function(l){var d=this.opt.caseSensitive?"":"i",h=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],m=[];return l.split("").forEach(function(g){h.every(function(k){if(k.indexOf(g)!==-1){if(m.indexOf(k)>-1)return!1;l=l.replace(new RegExp("["+k+"]","gm"+d),"["+k+"]"),m.push(k)}return!0})}),l}},{key:"createMergedBlanksRegExp",value:function(l){return l.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(l){var d=this,h="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",m=this.opt.accuracy,g=typeof m=="string"?m:m.value,k=typeof m=="string"?[]:m.limiters,x="";switch(k.forEach(function(v){x+="|"+d.escapeStr(v)}),g){case"partially":default:return"()("+l+")";case"complementary":return x="\\s"+(x||this.escapeStr(h)),"()([^"+x+"]*"+l+"[^"+x+"]*)";case"exactly":return"(^|\\s"+x+")("+l+")(?=$|\\s"+x+")"}}},{key:"getSeparatedKeywords",value:function(l){var d=this,h=[];return l.forEach(function(m){d.opt.separateWordSearch?m.split(" ").forEach(function(g){g.trim()&&h.indexOf(g)===-1&&h.push(g)}):m.trim()&&h.indexOf(m)===-1&&h.push(m)}),{keywords:h.sort(function(m,g){return g.length-m.length}),length:h.length}}},{key:"isNumeric",value:function(l){return Number(parseFloat(l))==l}},{key:"checkRanges",value:function(l){var d=this;if(!Array.isArray(l)||Object.prototype.toString.call(l[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(l),[];var h=[],m=0;return l.sort(function(g,k){return g.start-k.start}).forEach(function(g){var k=d.callNoMatchOnInvalidRanges(g,m),x=k.start,v=k.end,E=k.valid;E&&(g.start=x,g.length=v-x,h.push(g),m=v)}),h}},{key:"callNoMatchOnInvalidRanges",value:function(l,d){var h=void 0,m=void 0,g=!1;return l&&typeof l.start<"u"?(h=parseInt(l.start,10),m=h+parseInt(l.length,10),this.isNumeric(l.start)&&this.isNumeric(l.length)&&m-d>0&&m-h>0?g=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(l))),this.opt.noMatch(l))):(this.log("Ignoring invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:h,end:m,valid:g}}},{key:"checkWhitespaceRanges",value:function(l,d,h){var m=void 0,g=!0,k=h.length,x=d-k,v=parseInt(l.start,10)-x;return v=v>k?k:v,m=v+parseInt(l.length,10),m>k&&(m=k,this.log("End range automatically set to the max value of "+k)),v<0||m-v<0||v>k||m>k?(g=!1,this.log("Invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)):h.substring(v,m).replace(/\s+/g,"")===""&&(g=!1,this.log("Skipping whitespace only range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:v,end:m,valid:g}}},{key:"getTextNodes",value:function(l){var d=this,h="",m=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(g){m.push({start:h.length,end:(h+=g.textContent).length,node:g})},function(g){return d.matchesExclude(g.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){l({value:h,nodes:m})})}},{key:"matchesExclude",value:function(l){return c.matches(l,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(l,d,h){var m=this.opt.element?this.opt.element:"mark",g=l.splitText(d),k=g.splitText(h-d),x=document.createElement(m);return x.setAttribute("data-markjs","true"),this.opt.className&&x.setAttribute("class",this.opt.className),x.textContent=g.textContent,g.parentNode.replaceChild(x,g),k}},{key:"wrapRangeInMappedTextNode",value:function(l,d,h,m,g){var k=this;l.nodes.every(function(x,v){var E=l.nodes[v+1];if(typeof E>"u"||E.start>d){if(!m(x.node))return!1;var A=d-x.start,R=(h>x.end?x.end:h)-x.start,O=l.value.substr(0,x.start),j=l.value.substr(R+x.start);if(x.node=k.wrapRangeInTextNode(x.node,A,R),l.value=O+j,l.nodes.forEach(function(U,J){J>=v&&(l.nodes[J].start>0&&J!==v&&(l.nodes[J].start-=R),l.nodes[J].end-=R)}),h-=R,g(x.node.previousSibling,x.start),h>x.end)d=x.end;else return!1}return!0})}},{key:"wrapMatches",value:function(l,d,h,m,g){var k=this,x=d===0?0:d+1;this.getTextNodes(function(v){v.nodes.forEach(function(E){E=E.node;for(var A=void 0;(A=l.exec(E.textContent))!==null&&A[x]!=="";)if(h(A[x],E)){var R=A.index;if(x!==0)for(var O=1;O{he=Array.from(e.querySelectorAll(`.${gn}`)),De=he.length>0?Math.min(De,he.length-1):0,po(),fn=!1};i.unmark({done:()=>{if(c)try{const f=r?"":"i";i.markRegExp(new RegExp(u,f),{className:gn,done:s})}catch{fn=!1,De=0,he=[]}else i.mark(u,{className:gn,caseSensitive:r,diacritics:a,separateWordSearch:!1,accuracy:o?"exactly":"partially",done:s})}})}function po(){const e=de()!==be.sideBySide;he.forEach((n,u)=>{n.classList.toggle(so,e&&u===De)}),e&&he.length>0&&he[De].scrollIntoView({behavior:"smooth",block:"center"})}function _0(e){kn?.disconnect(),kn=new MutationObserver(()=>{fn||ho(e)}),kn.observe(e,{childList:!0})}function E0(){Gn===null&&(Gn=document.createElement("style"),document.head.appendChild(Gn));const{light:e,dark:n}=Vr[au]??Vr.github;Gn.textContent=[`.${gn} { background: ${e} !important; color: inherit !important; }`,`.${so} { background: #ffff00 !important; color: #000000 !important; border-radius: 2px; box-shadow: 0px 0px 0px 2px #ffff00, 0px 0px 3px 2px rgba(0, 0, 0, 0.4); }`,"@media (prefers-color-scheme: dark) {",` .${gn} { background: ${n} !important; }`,"}"].join(` -`)}window.__markeditPreviewInitialized__?console.error("MarkEdit Preview has already been initialized. Multiple initializations may cause unexpected behavior."):(Zl(),ur()?(typeof H.MarkEdit.onAppReady=="function"?H.MarkEdit.onAppReady(()=>{a0(),setTimeout(()=>{Bu()},2e3)}):setTimeout(()=>{t0()},4e3),(pn==="automatic"||pn==="quiet")&&setInterval(()=>{Bu()},6048e5)):m0(Mn()),window.__markeditPreviewInitialized__=!0);window.MarkEditGetHtml??=uo;window.MarkEditRenderHtml??=n0;window.__markeditPreviewSPI__={performSearch:w0,setSearchMatchIndex:v0,clearSearch:fo,searchCounterInfo:C0};ur()&&(H.MarkEdit.addMainMenuItem({title:V("viewMode"),icon:go()?"eye":void 0,children:[{title:V("changeMode"),action:()=>{Wl(),Hu()},key:Or.key??"V",modifiers:Or.modifiers??["Command"]},{separator:!0},Iu(V("editMode"),be.edit),Iu(V("sideBySideMode"),be.sideBySide),Iu(V("previewMode"),be.preview),{separator:!0},...A0(),{separator:!0},{title:`${V("version")} 1.8.0`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/tag/v1.8.0")},{title:`${V("checkReleases")} (GitHub)`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/latest")},...$u()?[{title:V("updateAndRelaunch"),action:async()=>{const e=await to();await ir(e.tag_name)?H.MarkEdit.relaunchApp():H.MarkEdit.showAlert(V("failedToUpdate"))}}]:[]]}),H.MarkEdit.addExtension(bo.EditorView.updateListener.of(e=>{e.docChanged&&(e.transactions.every(n=>n.annotation(eo))||(ze.renderUpdater!==void 0&&clearTimeout(ze.renderUpdater),ze.renderUpdater=setTimeout(Xn,500)))})),H.MarkEdit.onEditorReady(()=>{Yc&&Tl(H.MarkEdit.editorView.scrollDOM),Yl(),requestAnimationFrame(async()=>{document.visibilityState==="visible"&&de()===be.preview&&typeof H.MarkEdit.getFileInfo=="function"&&(await H.MarkEdit.getFileInfo())?.filePath===void 0&&H.MarkEdit.editorAPI.getText().length===0&&lu(be.edit,!1)}),Xn(),Hu(),Il(no(),Mn()),ze.keyDownListener!==void 0&&document.removeEventListener("keydown",ze.keyDownListener),ze.keyDownListener=e=>Kl(e),document.addEventListener("keydown",ze.keyDownListener)}));function Iu(e,n){return{title:e,action:()=>{lu(n),Hu()},state:()=>({isSelected:de()===n})}}function A0(){const e=[{title:V("copyHtml"),action:Xl},{title:V("copyRichText"),action:e0}];return typeof H.MarkEdit.showSavePanel>"u"?e:[{title:V("saveCleanHtml"),action:Jl},{title:V("saveStyledHtml"),action:Ql},...e]}function Hu(){const e=oo();e!==void 0&&(e.style.display=de()===be.edit?"none":"")}const ze={renderUpdater:void 0,keyDownListener:void 0}; +`;function g0(e){hn(m0),document.body.classList.add("quicklook");const{toolbar:n,sourceButton:u,previewButton:r}=c0();document.body.appendChild(n);const o=k0(e),a=p0(Ve,e,n),c={previewPane:e,sourceButton:u,previewButton:r,refreshSeparator:a,ensureRendered:o.ensureRendered};u.addEventListener("click",()=>{$r("source"),Mu(c)}),r.addEventListener("click",()=>{$r("preview"),Mu(c)}),Mu(c),setTimeout(o.ensureRendered,0),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{e.querySelector(".mermaid")!==null&&(o.invalidate(),Ve()==="preview"&&o.ensureRendered())}),s0(),d0(Ve,e),f0(Ve,e),h0(Ve,e,n),b0(e)}function Mu(e){const n=Ve()==="source",u=!n;e.sourceButton.classList.toggle("active",n),e.previewButton.classList.toggle("active",u),e.sourceButton.setAttribute("aria-selected",String(n)),e.previewButton.setAttribute("aria-selected",String(u)),e.previewPane.classList.toggle("overlay",u),e.refreshSeparator(),u&&e.ensureRendered()}function k0(e){let n=!1,u;return{ensureRendered:()=>(n||u||(u=(async()=>{try{const a=Kt(await rr(l0(),!1));e.innerHTML=`
${a}
`,e.querySelectorAll("a[href]").forEach(c=>{c.removeAttribute("href"),c.removeAttribute("target")}),Wt(()=>{}),n=!0}catch(a){throw u=void 0,a}})()),u),invalidate:()=>{n=!1,u=void 0}}}var Zn={exports:{}};var y0=Zn.exports,Gr;function x0(){return Gr||(Gr=1,(function(e,n){(function(u,r){e.exports=r()})(y0,(function(){var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r=function(f,b){if(!(f instanceof b))throw new TypeError("Cannot call a class as a function")},o=(function(){function f(b,l){for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;r(this,f),this.ctx=b,this.iframes=l,this.exclude=d,this.iframesTimeout=h}return o(f,[{key:"getContexts",value:function(){var l=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?l=[]:NodeList.prototype.isPrototypeOf(this.ctx)?l=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?l=this.ctx:typeof this.ctx=="string"?l=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):l=[this.ctx],l.forEach(function(h){var m=d.filter(function(g){return g.contains(h)}).length>0;d.indexOf(h)===-1&&!m&&d.push(h)}),d}},{key:"getIframeContents",value:function(l,d){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},m=void 0;try{var g=l.contentWindow;if(m=g.document,!g||!m)throw new Error("iframe inaccessible")}catch{h()}m&&d(m)}},{key:"isIframeBlank",value:function(l){var d="about:blank",h=l.getAttribute("src").trim(),m=l.contentWindow.location.href;return m===d&&h!==d&&h}},{key:"observeIframeLoad",value:function(l,d,h){var m=this,g=!1,k=null,x=function v(){if(!g){g=!0,clearTimeout(k);try{m.isIframeBlank(l)||(l.removeEventListener("load",v),m.getIframeContents(l,d,h))}catch{h()}}};l.addEventListener("load",x),k=setTimeout(x,this.iframesTimeout)}},{key:"onIframeReady",value:function(l,d,h){try{l.contentWindow.document.readyState==="complete"?this.isIframeBlank(l)?this.observeIframeLoad(l,d,h):this.getIframeContents(l,d,h):this.observeIframeLoad(l,d,h)}catch{h()}}},{key:"waitForIframes",value:function(l,d){var h=this,m=0;this.forEachIframe(l,function(){return!0},function(g){m++,h.waitForIframes(g.querySelector("html"),function(){--m||d()})},function(g){g||d()})}},{key:"forEachIframe",value:function(l,d,h){var m=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},k=l.querySelectorAll("iframe"),x=k.length,v=0;k=Array.prototype.slice.call(k);var E=function(){--x<=0&&g(v)};x||E(),k.forEach(function(A){f.matches(A,m.exclude)?E():m.onIframeReady(A,function(R){d(A)&&(v++,h(R)),E()},E)})}},{key:"createIterator",value:function(l,d,h){return document.createNodeIterator(l,d,h,!1)}},{key:"createInstanceOnIframe",value:function(l){return new f(l.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(l,d,h){var m=l.compareDocumentPosition(h),g=Node.DOCUMENT_POSITION_PRECEDING;if(m&g)if(d!==null){var k=d.compareDocumentPosition(h),x=Node.DOCUMENT_POSITION_FOLLOWING;if(k&x)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(l){var d=l.previousNode(),h=void 0;return d===null?h=l.nextNode():h=l.nextNode()&&l.nextNode(),{prevNode:d,node:h}}},{key:"checkIframeFilter",value:function(l,d,h,m){var g=!1,k=!1;return m.forEach(function(x,v){x.val===h&&(g=v,k=x.handled)}),this.compareNodeIframe(l,d,h)?(g===!1&&!k?m.push({val:h,handled:!0}):g!==!1&&!k&&(m[g].handled=!0),!0):(g===!1&&m.push({val:h,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(l,d,h,m){var g=this;l.forEach(function(k){k.handled||g.getIframeContents(k.val,function(x){g.createInstanceOnIframe(x).forEachNode(d,h,m)})})}},{key:"iterateThroughNodes",value:function(l,d,h,m,g){for(var k=this,x=this.createIterator(d,l,m),v=[],E=[],A=void 0,R=void 0,O=function(){var U=k.getIteratorNode(x);return R=U.prevNode,A=U.node,A};O();)this.iframes&&this.forEachIframe(d,function(j){return k.checkIframeFilter(A,R,j,v)},function(j){k.createInstanceOnIframe(j).forEachNode(l,function(U){return E.push(U)},m)}),E.push(A);E.forEach(function(j){h(j)}),this.iframes&&this.handleOpenIframes(v,l,h,m),g()}},{key:"forEachNode",value:function(l,d,h){var m=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},k=this.getContexts(),x=k.length;x||g(),k.forEach(function(v){var E=function(){m.iterateThroughNodes(l,v,d,h,function(){--x<=0&&g()})};m.iframes?m.waitForIframes(v,E):E()})}}],[{key:"matches",value:function(l,d){var h=typeof d=="string"?[d]:d,m=l.matches||l.matchesSelector||l.msMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector;if(m){var g=!1;return h.every(function(k){return m.call(l,k)?(g=!0,!1):!0}),g}else return!1}}]),f})(),i=(function(){function f(b){r(this,f),this.ctx=b,this.ie=!1;var l=window.navigator.userAgent;(l.indexOf("MSIE")>-1||l.indexOf("Trident")>-1)&&(this.ie=!0)}return o(f,[{key:"log",value:function(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",h=this.opt.log;this.opt.debug&&(typeof h>"u"?"undefined":u(h))==="object"&&typeof h[d]=="function"&&h[d]("mark.js: "+l)}},{key:"escapeStr",value:function(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(l){return this.opt.wildcards!=="disabled"&&(l=this.setupWildcardsRegExp(l)),l=this.escapeStr(l),Object.keys(this.opt.synonyms).length&&(l=this.createSynonymsRegExp(l)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),this.opt.diacritics&&(l=this.createDiacriticsRegExp(l)),l=this.createMergedBlanksRegExp(l),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.createJoinersRegExp(l)),this.opt.wildcards!=="disabled"&&(l=this.createWildcardsRegExp(l)),l=this.createAccuracyRegExp(l),l}},{key:"createSynonymsRegExp",value:function(l){var d=this.opt.synonyms,h=this.opt.caseSensitive?"":"i",m=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var g in d)if(d.hasOwnProperty(g)){var k=d[g],x=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(g):this.escapeStr(g),v=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(k):this.escapeStr(k);x!==""&&v!==""&&(l=l.replace(new RegExp("("+this.escapeStr(x)+"|"+this.escapeStr(v)+")","gm"+h),m+("("+this.processSynomyms(x)+"|")+(this.processSynomyms(v)+")")+m))}return l}},{key:"processSynomyms",value:function(l){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),l}},{key:"setupWildcardsRegExp",value:function(l){return l=l.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),l.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(l){var d=this.opt.wildcards==="withSpaces";return l.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(l){return l.replace(/[^(|)\\]/g,function(d,h,m){var g=m.charAt(h+1);return/[(|)\\]/.test(g)||g===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(l){var d=[],h=this.opt.ignorePunctuation;return Array.isArray(h)&&h.length&&d.push(this.escapeStr(h.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?l.split(/\u0000+/).join("["+d.join("")+"]*"):l}},{key:"createDiacriticsRegExp",value:function(l){var d=this.opt.caseSensitive?"":"i",h=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],m=[];return l.split("").forEach(function(g){h.every(function(k){if(k.indexOf(g)!==-1){if(m.indexOf(k)>-1)return!1;l=l.replace(new RegExp("["+k+"]","gm"+d),"["+k+"]"),m.push(k)}return!0})}),l}},{key:"createMergedBlanksRegExp",value:function(l){return l.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(l){var d=this,h="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",m=this.opt.accuracy,g=typeof m=="string"?m:m.value,k=typeof m=="string"?[]:m.limiters,x="";switch(k.forEach(function(v){x+="|"+d.escapeStr(v)}),g){case"partially":default:return"()("+l+")";case"complementary":return x="\\s"+(x||this.escapeStr(h)),"()([^"+x+"]*"+l+"[^"+x+"]*)";case"exactly":return"(^|\\s"+x+")("+l+")(?=$|\\s"+x+")"}}},{key:"getSeparatedKeywords",value:function(l){var d=this,h=[];return l.forEach(function(m){d.opt.separateWordSearch?m.split(" ").forEach(function(g){g.trim()&&h.indexOf(g)===-1&&h.push(g)}):m.trim()&&h.indexOf(m)===-1&&h.push(m)}),{keywords:h.sort(function(m,g){return g.length-m.length}),length:h.length}}},{key:"isNumeric",value:function(l){return Number(parseFloat(l))==l}},{key:"checkRanges",value:function(l){var d=this;if(!Array.isArray(l)||Object.prototype.toString.call(l[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(l),[];var h=[],m=0;return l.sort(function(g,k){return g.start-k.start}).forEach(function(g){var k=d.callNoMatchOnInvalidRanges(g,m),x=k.start,v=k.end,E=k.valid;E&&(g.start=x,g.length=v-x,h.push(g),m=v)}),h}},{key:"callNoMatchOnInvalidRanges",value:function(l,d){var h=void 0,m=void 0,g=!1;return l&&typeof l.start<"u"?(h=parseInt(l.start,10),m=h+parseInt(l.length,10),this.isNumeric(l.start)&&this.isNumeric(l.length)&&m-d>0&&m-h>0?g=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(l))),this.opt.noMatch(l))):(this.log("Ignoring invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:h,end:m,valid:g}}},{key:"checkWhitespaceRanges",value:function(l,d,h){var m=void 0,g=!0,k=h.length,x=d-k,v=parseInt(l.start,10)-x;return v=v>k?k:v,m=v+parseInt(l.length,10),m>k&&(m=k,this.log("End range automatically set to the max value of "+k)),v<0||m-v<0||v>k||m>k?(g=!1,this.log("Invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)):h.substring(v,m).replace(/\s+/g,"")===""&&(g=!1,this.log("Skipping whitespace only range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:v,end:m,valid:g}}},{key:"getTextNodes",value:function(l){var d=this,h="",m=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(g){m.push({start:h.length,end:(h+=g.textContent).length,node:g})},function(g){return d.matchesExclude(g.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){l({value:h,nodes:m})})}},{key:"matchesExclude",value:function(l){return c.matches(l,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(l,d,h){var m=this.opt.element?this.opt.element:"mark",g=l.splitText(d),k=g.splitText(h-d),x=document.createElement(m);return x.setAttribute("data-markjs","true"),this.opt.className&&x.setAttribute("class",this.opt.className),x.textContent=g.textContent,g.parentNode.replaceChild(x,g),k}},{key:"wrapRangeInMappedTextNode",value:function(l,d,h,m,g){var k=this;l.nodes.every(function(x,v){var E=l.nodes[v+1];if(typeof E>"u"||E.start>d){if(!m(x.node))return!1;var A=d-x.start,R=(h>x.end?x.end:h)-x.start,O=l.value.substr(0,x.start),j=l.value.substr(R+x.start);if(x.node=k.wrapRangeInTextNode(x.node,A,R),l.value=O+j,l.nodes.forEach(function(U,J){J>=v&&(l.nodes[J].start>0&&J!==v&&(l.nodes[J].start-=R),l.nodes[J].end-=R)}),h-=R,g(x.node.previousSibling,x.start),h>x.end)d=x.end;else return!1}return!0})}},{key:"wrapMatches",value:function(l,d,h,m,g){var k=this,x=d===0?0:d+1;this.getTextNodes(function(v){v.nodes.forEach(function(E){E=E.node;for(var A=void 0;(A=l.exec(E.textContent))!==null&&A[x]!=="";)if(h(A[x],E)){var R=A.index;if(x!==0)for(var O=1;O{he=Array.from(e.querySelectorAll(`.${gn}`)),De=he.length>0?Math.min(De,he.length-1):0,po(),fn=!1};i.unmark({done:()=>{if(c)try{const f=r?"":"i";i.markRegExp(new RegExp(u,f),{className:gn,done:s})}catch{fn=!1,De=0,he=[]}else i.mark(u,{className:gn,caseSensitive:r,diacritics:a,separateWordSearch:!1,accuracy:o?"exactly":"partially",done:s})}})}function po(){const e=de()!==be.sideBySide;he.forEach((n,u)=>{n.classList.toggle(so,e&&u===De)}),e&&he.length>0&&he[De].scrollIntoView({behavior:"smooth",block:"center"})}function E0(e){kn?.disconnect(),kn=new MutationObserver(()=>{fn||ho(e)}),kn.observe(e,{childList:!0})}function A0(){Gn===null&&(Gn=document.createElement("style"),document.head.appendChild(Gn));const{light:e,dark:n}=Vr[au]??Vr.github;Gn.textContent=[`.${gn} { background: ${e} !important; color: inherit !important; }`,`.${so} { background: #ffff00 !important; color: #000000 !important; border-radius: 2px; box-shadow: 0px 0px 0px 2px #ffff00, 0px 0px 3px 2px rgba(0, 0, 0, 0.4); }`,"@media (prefers-color-scheme: dark) {",` .${gn} { background: ${n} !important; }`,"}"].join(` +`)}window.__markeditPreviewInitialized__?console.error("MarkEdit Preview has already been initialized. Multiple initializations may cause unexpected behavior."):(Zl(),ur()?(typeof H.MarkEdit.onAppReady=="function"?H.MarkEdit.onAppReady(()=>{a0(),setTimeout(()=>{Bu()},2e3)}):setTimeout(()=>{t0()},4e3),(pn==="automatic"||pn==="quiet")&&setInterval(()=>{Bu()},6048e5)):g0(Mn()),window.__markeditPreviewInitialized__=!0);window.MarkEditGetHtml??=uo;window.MarkEditRenderHtml??=n0;window.__markeditPreviewSPI__={performSearch:v0,setSearchMatchIndex:C0,clearSearch:fo,searchCounterInfo:_0};ur()&&(H.MarkEdit.addMainMenuItem({title:V("viewMode"),icon:go()?"eye":void 0,children:[{title:V("changeMode"),action:()=>{Wl(),Hu()},key:Or.key??"V",modifiers:Or.modifiers??["Command"]},{separator:!0},Iu(V("editMode"),be.edit),Iu(V("sideBySideMode"),be.sideBySide),Iu(V("previewMode"),be.preview),{separator:!0},...D0(),{separator:!0},{title:`${V("version")} 1.8.0`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/tag/v1.8.0")},{title:`${V("checkReleases")} (GitHub)`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/latest")},...$u()?[{title:V("updateAndRelaunch"),action:async()=>{const e=await to();await ir(e.tag_name)?H.MarkEdit.relaunchApp():H.MarkEdit.showAlert(V("failedToUpdate"))}}]:[]]}),H.MarkEdit.addExtension(bo.EditorView.updateListener.of(e=>{e.docChanged&&(e.transactions.every(n=>n.annotation(eo))||(ze.renderUpdater!==void 0&&clearTimeout(ze.renderUpdater),ze.renderUpdater=setTimeout(Xn,500)))})),H.MarkEdit.onEditorReady(()=>{Yc&&Tl(H.MarkEdit.editorView.scrollDOM),Yl(),requestAnimationFrame(async()=>{document.visibilityState==="visible"&&de()===be.preview&&typeof H.MarkEdit.getFileInfo=="function"&&(await H.MarkEdit.getFileInfo())?.filePath===void 0&&H.MarkEdit.editorAPI.getText().length===0&&lu(be.edit,!1)}),Xn(),Hu(),Il(no(),Mn()),ze.keyDownListener!==void 0&&document.removeEventListener("keydown",ze.keyDownListener),ze.keyDownListener=e=>Kl(e),document.addEventListener("keydown",ze.keyDownListener)}));function Iu(e,n){return{title:e,action:()=>{lu(n),Hu()},state:()=>({isSelected:de()===n})}}function D0(){const e=[{title:V("copyHtml"),action:Xl},{title:V("copyRichText"),action:e0}];return typeof H.MarkEdit.showSavePanel>"u"?e:[{title:V("saveCleanHtml"),action:Jl},{title:V("saveStyledHtml"),action:Ql},...e]}function Hu(){const e=oo();e!==void 0&&(e.style.display=de()===be.edit?"none":"")}const ze={renderUpdater:void 0,keyDownListener:void 0}; diff --git a/dist/markedit-preview.js b/dist/markedit-preview.js index 3d243c0..d76cc5c 100644 --- a/dist/markedit-preview.js +++ b/dist/markedit-preview.js @@ -53,7 +53,7 @@ `+V.slice(Ce,ye),Ce=ye+1),Me=Ie;return he+=` `,V.length-Ce>ue&&Me>Ce?he+=V.slice(Ce,Me)+` `+V.slice(Me+1):he+=V.slice(Ce),he.slice(1)}function ct(V){let ue="",Fe=0;for(let me=0;me=65536?me+=2:me++){Fe=xe(V,me);const Ce=D[Fe];!Ce&&pe(Fe)?(ue+=V[me],Fe>=65536&&(ue+=V[me+1])):ue+=Ce||z(Fe)}return ue}function ot(V,ue,Fe){let me="";const Ce=V.tag;for(let ye=0,Me=Fe.length;ye"u"&&de(V,ue,null,!1,!1))&&(me!==""&&(me+=","+(V.condenseFlow?"":" ")),me+=V.dump)}V.tag=Ce,V.dump="["+me+"]"}function it(V,ue,Fe,me){let Ce="";const ye=V.tag;for(let Me=0,Ie=Fe.length;Me"u"&&de(V,ue+1,null,!0,!0,!1,!0))&&((!me||Ce!=="")&&(Ce+=H(V,ue)),V.dump&&u===V.dump.charCodeAt(0)?Ce+="-":Ce+="- ",Ce+=V.dump)}V.tag=ye,V.dump=Ce||"[]"}function Oe(V,ue,Fe){let me="";const Ce=V.tag,ye=Object.keys(Fe);for(let Me=0,Ie=ye.length;Me1024&&(he+="? "),he+=V.dump+(V.condenseFlow?'"':"")+":"+(V.condenseFlow?"":" "),de(V,ue,Be,!1,!1)&&(he+=V.dump,me+=he))}V.tag=Ce,V.dump="{"+me+"}"}function U(V,ue,Fe,me){let Ce="";const ye=V.tag,Me=Object.keys(Fe);if(V.sortKeys===!0)Me.sort();else if(typeof V.sortKeys=="function")Me.sort(V.sortKeys);else if(V.sortKeys)throw new n("sortKeys must be a boolean or a function");for(let Ie=0,he=Me.length;Ie1024;gt&&(V.dump&&u===V.dump.charCodeAt(0)?le+="?":le+="? "),le+=V.dump,gt&&(le+=H(V,ue)),de(V,ue+1,ve,!0,gt)&&(V.dump&&u===V.dump.charCodeAt(0)?le+=":":le+=": ",le+=V.dump,Ce+=le)}V.tag=ye,V.dump=Ce||"{}"}function oe(V,ue,Fe){const me=Fe?V.explicitTypes:V.implicitTypes;for(let Ce=0,ye=me.length;Ce tag resolver accepts not "'+Ie+'" style');V.dump=he}return!0}}return!1}function de(V,ue,Fe,me,Ce,ye,Me){V.tag=null,V.dump=Fe,oe(V,Fe,!1)||oe(V,Fe,!0);const Ie=a.call(V.dump),he=me;me&&(me=V.flowLevel<0||V.flowLevel>ue);const le=Ie==="[object Object]"||Ie==="[object Array]";let Be,ve;if(le&&(Be=V.duplicates.indexOf(Fe),ve=Be!==-1),(V.tag!==null&&V.tag!=="?"||ve||V.indent!==2&&ue>0)&&(Ce=!1),ve&&V.usedDuplicates[Be])V.dump="*ref_"+Be;else{if(le&&ve&&!V.usedDuplicates[Be]&&(V.usedDuplicates[Be]=!0),Ie==="[object Object]")me&&Object.keys(V.dump).length!==0?(U(V,ue,V.dump,Ce),ve&&(V.dump="&ref_"+Be+V.dump)):(Oe(V,ue,V.dump),ve&&(V.dump="&ref_"+Be+" "+V.dump));else if(Ie==="[object Array]")me&&V.dump.length!==0?(V.noArrayIndent&&!Me&&ue>0?it(V,ue-1,V.dump,Ce):it(V,ue,V.dump,Ce),ve&&(V.dump="&ref_"+Be+V.dump)):(ot(V,ue,V.dump),ve&&(V.dump="&ref_"+Be+" "+V.dump));else if(Ie==="[object String]")V.tag!=="?"&&Ne(V,V.dump,ue,ye,he);else{if(Ie==="[object Undefined]")return!1;if(V.skipInvalid)return!1;throw new n("unacceptable kind of an object to dump "+Ie)}if(V.tag!==null&&V.tag!=="?"){let gt=encodeURI(V.tag[0]==="!"?V.tag.slice(1):V.tag).replace(/!/g,"%21");V.tag[0]==="!"?gt="!"+gt:gt.slice(0,18)==="tag:yaml.org,2002:"?gt="!!"+gt.slice(18):gt="!<"+gt+">",V.dump=gt+" "+V.dump}}return!0}function G(V,ue){const Fe=[],me=[];ie(V,Fe,me);const Ce=me.length;for(let ye=0;ye{var r=b9e(),n=E9e();function i(a,s){return function(){throw new Error("Function yaml."+a+" is removed in js-yaml 4. Use yaml."+s+" instead, which is now safe by default.")}}e.exports.Type=Xs(),e.exports.Schema=fce(),e.exports.FAILSAFE_SCHEMA=yce(),e.exports.JSON_SCHEMA=Sce(),e.exports.CORE_SCHEMA=Tce(),e.exports.DEFAULT_SCHEMA=Gz(),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.dump=n.dump,e.exports.YAMLException=j4(),e.exports.types={binary:wce(),float:Ece(),map:mce(),null:vce(),pairs:Ace(),set:Rce(),timestamp:xce(),bool:_ce(),int:bce(),merge:Cce(),omap:kce(),seq:gce(),str:pce()},e.exports.safeLoad=i("safeLoad","load"),e.exports.safeLoadAll=i("safeLoadAll","loadAll"),e.exports.safeDump=i("safeDump","dump")}))()),{Type:eBt,Schema:tBt,FAILSAFE_SCHEMA:rBt,JSON_SCHEMA:nBt,CORE_SCHEMA:S9e,DEFAULT_SCHEMA:iBt,load:T9e,loadAll:aBt,dump:sBt,YAMLException:oBt,types:lBt,safeLoad:cBt,safeLoadAll:uBt,safeDump:dBt}=Nce.default;Nce.default;var x8,_K;function x9e(){return _K||(_K=1,x8=function(e,r){var n=3,i="-",a=i.charCodeAt(0),s=i.length;function o(l,u,d,h){var f,p,g,m,y,v,b,_=!1,E=l.bMarks[u]+l.tShift[u],x=l.eMarks[u];if(u!==0||a!==l.src.charCodeAt(0))return!1;for(f=E+1;f<=x;f++)if(i[(f-E)%s]!==l.src[f]){b=f+1;break}if(g=Math.floor((f-E)/s),g=d||l.src.slice(E,x)==="..."||(E=l.bMarks[p]+l.tShift[p],x=l.eMarks[p],E=4)){for(f=E+1;f<=x&&i[(f-E)%s]===l.src[f];f++);if(!(Math.floor((f-E)/s){let e="";t.use(w9e,r=>{const n=A9e(r);n!==void 0?e=Ice(n,t.utils.escapeHtml):e=""}),t.renderer.rules.front_matter=(r,n,i,a,s)=>e===""?"":` +`:""}e.exports.dump=j})),Nce=v9e(si(((t,e)=>{var r=b9e(),n=E9e();function i(a,s){return function(){throw new Error("Function yaml."+a+" is removed in js-yaml 4. Use yaml."+s+" instead, which is now safe by default.")}}e.exports.Type=Xs(),e.exports.Schema=fce(),e.exports.FAILSAFE_SCHEMA=yce(),e.exports.JSON_SCHEMA=Sce(),e.exports.CORE_SCHEMA=Tce(),e.exports.DEFAULT_SCHEMA=Gz(),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.dump=n.dump,e.exports.YAMLException=j4(),e.exports.types={binary:wce(),float:Ece(),map:mce(),null:vce(),pairs:Ace(),set:Rce(),timestamp:xce(),bool:_ce(),int:bce(),merge:Cce(),omap:kce(),seq:gce(),str:pce()},e.exports.safeLoad=i("safeLoad","load"),e.exports.safeLoadAll=i("safeLoadAll","loadAll"),e.exports.safeDump=i("safeDump","dump")}))()),{Type:tBt,Schema:rBt,FAILSAFE_SCHEMA:nBt,JSON_SCHEMA:iBt,CORE_SCHEMA:S9e,DEFAULT_SCHEMA:aBt,load:T9e,loadAll:sBt,dump:oBt,YAMLException:lBt,types:cBt,safeLoad:uBt,safeLoadAll:dBt,safeDump:hBt}=Nce.default;Nce.default;var x8,_K;function x9e(){return _K||(_K=1,x8=function(e,r){var n=3,i="-",a=i.charCodeAt(0),s=i.length;function o(l,u,d,h){var f,p,g,m,y,v,b,_=!1,E=l.bMarks[u]+l.tShift[u],x=l.eMarks[u];if(u!==0||a!==l.src.charCodeAt(0))return!1;for(f=E+1;f<=x;f++)if(i[(f-E)%s]!==l.src[f]){b=f+1;break}if(g=Math.floor((f-E)/s),g=d||l.src.slice(E,x)==="..."||(E=l.bMarks[p]+l.tShift[p],x=l.eMarks[p],E=4)){for(f=E+1;f<=x&&i[(f-E)%s]===l.src[f];f++);if(!(Math.floor((f-E)/s){let e="";t.use(w9e,r=>{const n=A9e(r);n!==void 0?e=Ice(n,t.utils.escapeHtml):e=""}),t.renderer.rules.front_matter=(r,n,i,a,s)=>e===""?"":`
${e}
`}}function A9e(t){try{const e=T9e(t,{schema:S9e});if(e!==null&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length>0)return e}catch{}}function Ice(t,e){const r=Object.entries(t);return r.length===0?"":` @@ -1991,7 +1991,7 @@ ${r.map(([i,a])=>`${e(i)}${oM(a,e)}`).joi ${e} @media (prefers-color-scheme: dark) { ${r} - }`);break}return n}const dDe={default:{viewMode:"View Mode",changeMode:"Change Mode",editMode:"Edit Mode",sideBySideMode:"Side-by-Side Mode",previewMode:"Preview Mode",saveCleanHtml:"Save Clean HTML",saveStyledHtml:"Save Styled HTML",copyHtml:"Copy HTML",copyRichText:"Copy Rich Text",copyCode:"Copy Code",untitled:"Untitled",update:"Update",version:"Version",checkReleases:"Check Releases",updateAndRelaunch:"Update and Relaunch",newVersionAvailable:"is available!",viewReleasePage:"View Release Page",remindMeLater:"Remind Me Later",skipThisVersion:"Skip This Version",failedToUpdate:"Failed to update. Please try again later.",source:"Source",preview:"Preview"},"zh-CN":{viewMode:"视图模式",changeMode:"切换模式",editMode:"编辑模式",sideBySideMode:"并排模式",previewMode:"预览模式",saveCleanHtml:"保存无样式 HTML",saveStyledHtml:"保存带样式 HTML",copyHtml:"复制 HTML",copyRichText:"复制富文本",copyCode:"复制代码",untitled:"未命名",update:"更新",version:"版本",checkReleases:"查看版本",updateAndRelaunch:"更新并重新启动",newVersionAvailable:"已发布!",viewReleasePage:"查看发布页面",remindMeLater:"稍后提醒我",skipThisVersion:"跳过这个版本",failedToUpdate:"更新失败,请稍后再试。",source:"源码",preview:"预览"},"zh-TW":{viewMode:"視圖模式",changeMode:"切換模式",saveCleanHtml:"儲存無樣式 HTML",saveStyledHtml:"儲存帶樣式 HTML",copyHtml:"拷貝 HTML",copyRichText:"複製富文字",copyCode:"拷貝程式碼",editMode:"編輯模式",sideBySideMode:"並排模式",previewMode:"預覽模式",untitled:"未命名",update:"更新",version:"版本",checkReleases:"檢視版本",updateAndRelaunch:"更新並重新啟動",newVersionAvailable:"已釋出!",viewReleasePage:"檢視釋出頁面",remindMeLater:"稍後提醒我",skipThisVersion:"跳過這個版本",failedToUpdate:"更新失敗,請稍後再試。",source:"原始碼",preview:"預覽"}};function ri(t){return fDe[t]}const hDe=["default","zh-CN","zh-TW"],fDe=dDe[(()=>{const t=navigator.language;return hDe.includes(t)?t:"default"})()];function Yz(){return typeof Yr.MarkEdit.addExtension=="function"}async function Hz(t,e=!0){return await Uce,Da.render(t,{lineInfo:e})}async function pDe(t,e=!1){const r=Da.utils.escapeHtml(t.trim());return zce("mermaid",r,e)}async function gDe(t,e=!1){const n=(await Promise.resolve().then(()=>vPe)).default.renderToString(t.trim(),{displayMode:!0,throwOnError:!1});return zce("katex",n,e)}function Fce(t){Promise.resolve().then(()=>nZe).then(({default:e})=>{const r=matchMedia("(prefers-color-scheme: dark)").matches;e.initialize({theme:r?"dark":void 0}),e.run({querySelector:".mermaid",postRenderCallback:t})})}async function $ce(t){const e=n=>``,r=['',`
${t} @@ -2011,7 +2011,7 @@ ${t} mermaid.initialize({ theme: isDark ? "dark" : undefined }); } <\/script>`;r.push(i)}return r.join(` -`)}const zce=async(t,e,r)=>{await Uce;const i=r?` data-line-from="0" data-line-to="${Yr.MarkEdit.editorView.state.doc.lines-1}"`:"";return`
${e}
`},Da=Tl(F9e,{html:!0,breaks:!0,linkify:!0,...$9e}),lM=[];Da.use(k9e());Da.use(Em);Da.use(jOe,{matcher:t=>!t.startsWith("#"),attrs:{target:"_blank",rel:"noopener"}});Da.use(a9e);Da.use(l9e,{enabled:Yz(),label:!0});Da.use(u9e);lM.push(Promise.resolve().then(()=>qtt).then(t=>{Da.use(t.default,{auto:M9e})})),lM.push(Promise.resolve().then(()=>Unt).then(t=>{const e=bK?{delimiters:bK}:{};Da.use(t.default,e)}));const mDe=new Set(["paragraph_open","heading_open","blockquote_open","list_item_open","bullet_list_open","ordered_list_open","fence","code_block","table_open","html_block","front_matter"]),Uce=Promise.all(lM).then(()=>{for(const t of mDe){const e=Da.renderer.rules[t];Da.renderer.rules[t]=(r,n,i,a,s)=>{const o=r[n];return a.lineInfo&&o.map?.length===2&&(o.attrSet("data-line-from",String(o.map[0])),o.attrSet("data-line-to",String(o.map[1]-1))),e?e(r,n,i,a,s):s.renderToken(r,n,i)}}{const t=Da.renderer.rules.fence;Da.renderer.rules.fence=(e,r,n,i,a)=>{const s=e[r],o=s.content.trim(),l=s.info.trim();s.attrSet("data-code",o+` +`)}const zce=async(t,e,r)=>{await Uce;const i=r?` data-line-from="0" data-line-to="${Yr.MarkEdit.editorView.state.doc.lines-1}"`:"";return`
${e}
`},Da=Tl(F9e,{html:!0,breaks:!0,linkify:!0,...$9e}),lM=[];Da.use(k9e());Da.use(Em);Da.use(jOe,{matcher:t=>!t.startsWith("#"),attrs:{target:"_blank",rel:"noopener"}});Da.use(a9e);Da.use(l9e,{enabled:Yz(),label:!0});Da.use(u9e);lM.push(Promise.resolve().then(()=>Ytt).then(t=>{Da.use(t.default,{auto:M9e})})),lM.push(Promise.resolve().then(()=>Gnt).then(t=>{const e=bK?{delimiters:bK}:{};Da.use(t.default,e)}));const mDe=new Set(["paragraph_open","heading_open","blockquote_open","list_item_open","bullet_list_open","ordered_list_open","fence","code_block","table_open","html_block","front_matter"]),Uce=Promise.all(lM).then(()=>{for(const t of mDe){const e=Da.renderer.rules[t];Da.renderer.rules[t]=(r,n,i,a,s)=>{const o=r[n];return a.lineInfo&&o.map?.length===2&&(o.attrSet("data-line-from",String(o.map[0])),o.attrSet("data-line-to",String(o.map[1]-1))),e?e(r,n,i,a,s):s.renderToken(r,n,i)}}{const t=Da.renderer.rules.fence;Da.renderer.rules.fence=(e,r,n,i,a)=>{const s=e[r],o=s.content.trim(),l=s.info.trim();s.attrSet("data-code",o+` `);const u=a.renderAttrs(s),d=Da.utils.escapeHtml(o);return l==="mermaid"?`
${d}
`:t!==void 0?t(e,r,n,i,a):`
${Da.utils.escapeHtml(o)}
`}}for(const t of["fence","code_block"]){const e=Da.renderer.rules[t];Da.renderer.rules[t]=(r,n,i,a,s)=>`
${e===void 0?s.renderToken(r,n,i):e(r,n,i,a,s)} @@ -2112,7 +2112,7 @@ ${t} display: none !important; }`);const t=document.createElement("div");t.className=cp.dividerViewClass,zE.appendChild(t),zE.className=cp.gutterViewClass,hC.appendChild(zE),Ea.className=cp.previewPaneClass,hC.appendChild(Ea),document.addEventListener("keydown",n=>{if(!n.metaKey||n.key!=="a")return;const i=Yr.MarkEdit.editorView?.contentDOM??document.querySelector(".cm-content");(Ea.classList.contains("overlay")||document.activeElement!==i)&&(aNe(Ea),n.preventDefault())}),new MutationObserver(wK).observe(Ea,{attributes:!0,attributeFilter:["style","class"]}),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{wK(),document.querySelector(".mermaid")!==null&&fC()}),typeof Yr.MarkEdit.getFileInfo=="function"&&typeof Yr.MarkEdit.openFile=="function"&&Ea.addEventListener("click",HDe),Ea.addEventListener("click",VDe)}function Qw(t,e=!0){const r=Cl();nE.viewMode=t,t!==r&&localStorage.setItem(jw.viewModeCacheKey,String(t));const n=Yr.MarkEdit.editorView;t===0?n.focus():t===2&&n.contentDOM.blur(),t===1?(hC.classList.add(cp.containerClass),nE.splitter??=LDe({columnGutters:[{track:1,element:zE}],minSize:150,onDragStart:()=>CK.disabled=!1,onDragEnd:()=>CK.disabled=!0})):(hC.classList.remove(cp.containerClass),nE.splitter?.destroy(),nE.splitter=void 0),t===2?Ea.classList.add("overlay"):Ea.classList.remove("overlay"),e&&fC()}function BDe(){const t=[0,...B9e.map(n=>{switch(n){case"side-by-side":return 1;case"preview":return 2;default:return}}).filter(n=>n!==void 0)],e=t.indexOf(Cl()),r=e===-1?0:(e+1)%t.length;Qw(t[r])}function FDe(){const t=localStorage.getItem(jw.viewModeCacheKey);if(t===null)return;const e=Number(t);Cl()!==e&&Qw(e,!0)}function Cl(){return nE.viewMode}async function fC(){if(Cl()===0)return;const t=Gce(await Zw());Ea.innerHTML=t,Fce(()=>{cM(Wce(),Z4(),!1);const e=localStorage.getItem(jw.previewPageZoomKey);e!==null&&(Ea.style.zoom=e)})}function $De(t){if(Cl()===0||Cl()===1&&Yr.MarkEdit.editorView.hasFocus||!t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)return;const e=Number(Ea.style.zoom)||1,r=n=>String(Math.min(Math.max(n,.5),3));switch(t.key){case"-":Ea.style.zoom=r(e-.1);break;case"=":Ea.style.zoom=r(e+.1);break;case"0":Ea.style.zoom="1";break;default:return}localStorage.setItem(jw.previewPageZoomKey,Ea.style.zoom),t.preventDefault(),t.stopPropagation()}function zDe(){Xce(!1)}function UDe(){Xce(!0)}async function GDe(){const t=await Zw(!1);await navigator.clipboard.writeText(t)}async function qDe(){const t=await Zw(!1),e=new ClipboardItem({"text/html":new Blob([t],{type:"text/html"}),"text/plain":new Blob([Ea.innerText],{type:"text/plain"})});await navigator.clipboard.write([e])}function Wce(){return Yr.MarkEdit.editorView.scrollDOM}function Z4(){return Ea}async function Kce(t){const e=await Zw(!1);return t?await $ce(e):` ${e}`}async function YDe(t,e){const r=await Hz(t,!1);return e?await $ce(r):` -${r}`}async function Zw(t=!0){const e=Yr.MarkEdit.editorAPI.getText();{const r=await(async()=>{if(typeof Yr.MarkEdit.getFileInfo!="function")return;const n=await Yr.MarkEdit.getFileInfo();return nNe(n?.filePath)})();if(r===".mmd"||r===".mermaid")return await pDe(e,t);if(r===".tex")return await gDe(e,t)}return await Hz(e,t)}function wK(){const t=getComputedStyle(Ea).backgroundColor;zE.style.background=`linear-gradient(to right, transparent 50%, ${t} 50%)`}async function Xce(t){const e=await(async()=>{const n=await Yr.MarkEdit.getFileInfo();return n===void 0?`${ri("untitled")}.html`:`${rNe(n.filePath)}.html`})(),r=await Kce(t);Yr.MarkEdit.showSavePanel({fileName:e,string:r})}async function HDe(t){if(!(t.target instanceof Element))return;const e=t.target.closest("a");if(e===null)return;const r=e.getAttribute("href");if(!r?.startsWith("../"))return;const n=(await Yr.MarkEdit.getFileInfo())?.parentPath;if(n!==void 0){t.preventDefault(),t.stopPropagation();try{const i=bm(n,decodeURIComponent(r));await Yr.MarkEdit.openFile(i)}catch(i){console.error("Failed to open file:",i)}}}function VDe(t){const e=t.target;if(!(e instanceof HTMLInputElement)||!e.classList.contains("task-list-item-checkbox"))return;const r=e.closest("[data-line-from]");if(r===null){console.error("Failed to find task item block");return}const n=Yr.MarkEdit.editorAPI,i=n.getLineRange(zm(r).from),a=kDe(n.getText(i));if(a===null){e.checked=!e.checked,console.error("Failed to resolve task toggle");return}const s=i.from+a.offset;Yr.MarkEdit.editorView.dispatch({changes:{from:s,to:s+1,insert:a.replacement},annotations:Vce.of(!0)})}const nE={viewMode:0,splitter:void 0};async function uM(){if(FE==="never")return;const t=await jce();typeof t.tag_name=="string"&&t.name!=="1.8.0"&&(Jce().has(t.name)||(FE==="automatic"&&Oz()?await Kz(t.tag_name):FE==="quiet"?(dM.pendingRelease=t,Qce(t)):KDe(t)))}async function WDe(){const t=Date.now(),e=Number(localStorage.getItem(z_.lastCheckCacheKey)??"0");if(!(t-e<2592e5))try{await uM(),localStorage.setItem(z_.lastCheckCacheKey,String(t))}catch(r){console.error("Failed to check for updates:",r)}}async function jce(){return await(await fetch(z_.latestReleaseURL)).json()}async function Kz(t){if(typeof __FILE_PATH__!="string")return console.error("Cannot download the latest build: unknown file path"),!1;try{const e=__FILE_PATH__,r="",n=t===void 0?"main":`refs/tags/${encodeURIComponent(t)}`,i=`${z_.rawBaseURL}${n}/dist/${r}markedit-preview.js`,a=await fetch(i);if(!a.ok)return console.error(`Failed to download the latest build from ${i}`),!1;const s=await a.text();return await Yr.MarkEdit.createFile({path:e,string:s,overwrites:!0})}catch(e){return console.error("Failed to download the latest build:",e),!1}}function Qce(t=dM.pendingRelease){if(t===void 0)return;const e=document.querySelector(`.${cp.updatePillClass}`);if(e!==null){if(e.dataset.releaseName===t.name)return e;e.remove()}const r=document.createElement("button");return r.dataset.releaseName=t.name,r.className=cp.updatePillClass,r.textContent=ri("update"),r.style.display=Cl()===Uc.edit?"none":"",r.addEventListener("webkitmouseforcedown",n=>{n.preventDefault()}),r.addEventListener("click",()=>{const{title:n,actions:i}=Zce(t,()=>{dM.pendingRelease=void 0,r.remove()}),[a,...s]=i,o=r.getBoundingClientRect(),l={x:o.left,y:o.bottom+10};Yr.MarkEdit.showContextMenu([{title:n},a,{separator:!0},...s],l)}),document.body.appendChild(r),r}async function KDe(t){const{title:e,actions:r}=Zce(t),n=await Yr.MarkEdit.showAlert({title:e,message:t.body,buttons:r.map(i=>i.title)});r[n]?.action?.()}function Zce(t,e=()=>{}){const r=`MarkEdit-preview ${t.name} ${ri("newVersionAvailable")}`,n=[...Oz()?[{title:ri("updateAndRelaunch"),action:async()=>{await Kz(t.tag_name)?Yr.MarkEdit.relaunchApp():Yr.MarkEdit.showAlert(ri("failedToUpdate")),e()}}]:[],{title:ri("viewReleasePage"),action:()=>{open(t.html_url),e()}},{title:ri("remindMeLater"),action:e},{title:ri("skipThisVersion"),action:()=>{const i=Jce();i.add(t.name),localStorage.setItem(z_.skippedCacheKey,JSON.stringify([...i])),e()}}];return{title:r,actions:n}}function Jce(){const t=localStorage.getItem(z_.skippedCacheKey);return new Set(JSON.parse(t??"[]"))}const z_={latestReleaseURL:"https://api.github.com/repos/MarkEdit-app/MarkEdit-preview/releases/latest",rawBaseURL:"https://raw.githubusercontent.com/MarkEdit-app/MarkEdit-preview/",lastCheckCacheKey:"updater.last-check-time",skippedCacheKey:"updater.skipped-versions"},dM={pendingRelease:void 0},hM="markedit-preview",kK=`${hM}.js`;function XDe(t){const{destExists:e,bundleInfo:r,currentVersion:n}=t,i=r?.version===n,a=r?.fullBuild===!0;return!(e&&i&&a)}async function jDe(){try{const t=Yr.MarkEdit.getDirectoryPath("documents"),e=Yr.MarkEdit.getDirectoryPath("sharedContainer");if(t===void 0||e===void 0){console.error("Required directories are not accessible");return}const r=typeof __FILE_PATH__=="string"?__FILE_PATH__:bm(t,`scripts/${kK}`);if(await Yr.MarkEdit.getFileInfo(r)===void 0){console.error(`Source file not found at ${r}`);return}const i=r.split("/").pop()??kK,a=bm(e,"Shared/scripts"),s=bm(a,i),o=await Yr.MarkEdit.getFileInfo(s)!==void 0,l=bm(e,"Shared/metadata.json"),u=await oNe(l),d=u[hM];if(!XDe({destExists:o,bundleInfo:d,currentVersion:"1.8.0"}))return;const h=await Yr.MarkEdit.getFileContent(r);if(h===void 0){console.error(`Failed to read content from ${r}`);return}await Yr.MarkEdit.createFile({path:a,isDirectory:!0}),await Yr.MarkEdit.createFile({path:s,string:h,overwrites:!0}),await Yr.MarkEdit.createFile({path:l,string:JSON.stringify({...u,[hM]:{version:"1.8.0",fullBuild:!0}},null,2),overwrites:!0})}catch(t){console.error("Failed to copy the current file to shared container:",t)}}function QDe(){const t=AK(ri("source")),e=AK(ri("preview")),r=document.createElement("div");r.className="quicklook-segmented",r.setAttribute("role","tablist"),r.append(t,e);const n=document.createElement("div");return n.className="quicklook-toolbar",n.appendChild(r),{toolbar:n,sourceButton:t,previewButton:e}}function AK(t){const e=document.createElement("button");return e.textContent=t,e.type="button",e.className="quicklook-segment",e.setAttribute("role","tab"),e}function em(){if(tm!==void 0)return tm;try{tm=localStorage.getItem(eue)==="preview"?"preview":"source"}catch{console.error("Failed to read quick look mode from localStorage"),tm="source"}return tm}function RK(t){tm=t;try{localStorage.setItem(eue,t)}catch{console.error("Failed to write quick look mode to localStorage")}}let tm;const eue="ui.quicklook-mode";function ZDe(){const t=window,e=t.editor?.state?.doc.toString();return typeof e=="string"?e:(console.error("Failed to get text from host editor state"),t.config?.text??"")}function JDe(){document.addEventListener("webkitmouseforcewillbegin",t=>{const e=t.target;e instanceof Element&&e.closest("a")!==null&&t.preventDefault()})}function eLe(t,e){const r=window,n=r.pinchZoomTarget;r.pinchZoomTarget=()=>{if(t()!=="preview")return n?.()??null;const i=e.querySelector(".quicklook-content");return i!==null?{scroller:e,inner:i}:null};for(const i of["gesturechange","gestureend"])document.addEventListener(i,()=>{if(t()!=="preview")return;const a=e.querySelector(".quicklook-content");a?.style.zoom.length?a?.style.setProperty("--quicklook-zoom",a.style.zoom):a?.style.removeProperty("--quicklook-zoom")},{passive:!1})}function tLe(t,e){let r;const n=window,i={start:n.startDragging,update:n.updateDragging,cancel:n.cancelDragging},a=()=>{const o=e.clientHeight,l=e.scrollHeight,u=l-o;if(u<=0||l<=0)return{clientHeight:o,scrollHeight:l,scrollbarHeight:o,scrollbarTop:0};const d=o*(o/l),f=e.scrollTop/u*(o-d);return{clientHeight:o,scrollHeight:l,scrollbarHeight:d,scrollbarTop:f}},s=(o,l,u="auto")=>{const{clientHeight:d,scrollHeight:h,scrollbarHeight:f}=a(),p=d-f;if(p>0){const g=(o-l)/p;e.scrollTo({top:g*(h-d),behavior:u})}};n.startDragging=o=>{if(t()!=="preview"){i.start?.(o);return}const{scrollbarTop:l,scrollbarHeight:u}=a(),d=NK(e,o);r=d-l,(dl+u)&&s(d,u*.5,"smooth")},n.updateDragging=o=>{if(t()!=="preview"){i.update?.(o);return}r!==void 0&&s(NK(e,o),r)},n.cancelDragging=()=>{if(t()!=="preview"){i.cancel?.();return}r=void 0}}function rLe(t,e,r){r.addEventListener("wheel",n=>{const i=t()==="preview"?e:document.querySelector(".cm-scroller");i!==null&&(i.scrollTop+=n.deltaY,i.scrollLeft+=n.deltaX,n.preventDefault())},{passive:!1})}function nLe(t,e,r){const n=document.querySelector(".cm-scroller"),i=()=>{const s=(t()==="preview"?e:n)?.scrollTop??0;r.classList.toggle("scrolled",s>0),r.classList.toggle("scrolled-far",s>20)};return e.addEventListener("scroll",i,{passive:!0}),n?.addEventListener("scroll",i,{passive:!0}),i}function NK(t,e){return e-t.getBoundingClientRect().top}const iLe=`body { +${r}`}async function Zw(t=!0){const e=Yr.MarkEdit.editorAPI.getText();{const r=await(async()=>{if(typeof Yr.MarkEdit.getFileInfo!="function")return;const n=await Yr.MarkEdit.getFileInfo();return nNe(n?.filePath)})();if(r===".mmd"||r===".mermaid")return await pDe(e,t);if(r===".tex")return await gDe(e,t)}return await Hz(e,t)}function wK(){const t=getComputedStyle(Ea).backgroundColor;zE.style.background=`linear-gradient(to right, transparent 50%, ${t} 50%)`}async function Xce(t){const e=await(async()=>{const n=await Yr.MarkEdit.getFileInfo();return n===void 0?`${ri("untitled")}.html`:`${rNe(n.filePath)}.html`})(),r=await Kce(t);Yr.MarkEdit.showSavePanel({fileName:e,string:r})}async function HDe(t){if(!(t.target instanceof Element))return;const e=t.target.closest("a");if(e===null)return;const r=e.getAttribute("href");if(!r?.startsWith("../"))return;const n=(await Yr.MarkEdit.getFileInfo())?.parentPath;if(n!==void 0){t.preventDefault(),t.stopPropagation();try{const i=bm(n,decodeURIComponent(r));await Yr.MarkEdit.openFile(i)}catch(i){console.error("Failed to open file:",i)}}}function VDe(t){const e=t.target;if(!(e instanceof HTMLInputElement)||!e.classList.contains("task-list-item-checkbox"))return;const r=e.closest("[data-line-from]");if(r===null){console.error("Failed to find task item block");return}const n=Yr.MarkEdit.editorAPI,i=n.getLineRange(zm(r).from),a=kDe(n.getText(i));if(a===null){e.checked=!e.checked,console.error("Failed to resolve task toggle");return}const s=i.from+a.offset;Yr.MarkEdit.editorView.dispatch({changes:{from:s,to:s+1,insert:a.replacement},annotations:Vce.of(!0)})}const nE={viewMode:0,splitter:void 0};async function uM(){if(FE==="never")return;const t=await jce();typeof t.tag_name=="string"&&t.name!=="1.8.0"&&(Jce().has(t.name)||(FE==="automatic"&&Oz()?await Kz(t.tag_name):FE==="quiet"?(dM.pendingRelease=t,Qce(t)):KDe(t)))}async function WDe(){const t=Date.now(),e=Number(localStorage.getItem(z_.lastCheckCacheKey)??"0");if(!(t-e<2592e5))try{await uM(),localStorage.setItem(z_.lastCheckCacheKey,String(t))}catch(r){console.error("Failed to check for updates:",r)}}async function jce(){return await(await fetch(z_.latestReleaseURL)).json()}async function Kz(t){if(typeof __FILE_PATH__!="string")return console.error("Cannot download the latest build: unknown file path"),!1;try{const e=__FILE_PATH__,r="",n=t===void 0?"main":`refs/tags/${encodeURIComponent(t)}`,i=`${z_.rawBaseURL}${n}/dist/${r}markedit-preview.js`,a=await fetch(i);if(!a.ok)return console.error(`Failed to download the latest build from ${i}`),!1;const s=await a.text();return await Yr.MarkEdit.createFile({path:e,string:s,overwrites:!0})}catch(e){return console.error("Failed to download the latest build:",e),!1}}function Qce(t=dM.pendingRelease){if(t===void 0)return;const e=document.querySelector(`.${cp.updatePillClass}`);if(e!==null){if(e.dataset.releaseName===t.name)return e;e.remove()}const r=document.createElement("button");return r.dataset.releaseName=t.name,r.className=cp.updatePillClass,r.textContent=ri("update"),r.style.display=Cl()===Uc.edit?"none":"",r.addEventListener("webkitmouseforcedown",n=>{n.preventDefault()}),r.addEventListener("click",()=>{const{title:n,actions:i}=Zce(t,()=>{dM.pendingRelease=void 0,r.remove()}),[a,...s]=i,o=r.getBoundingClientRect(),l={x:o.left,y:o.bottom+10};Yr.MarkEdit.showContextMenu([{title:n},a,{separator:!0},...s],l)}),document.body.appendChild(r),r}async function KDe(t){const{title:e,actions:r}=Zce(t),n=await Yr.MarkEdit.showAlert({title:e,message:t.body,buttons:r.map(i=>i.title)});r[n]?.action?.()}function Zce(t,e=()=>{}){const r=`MarkEdit-preview ${t.name} ${ri("newVersionAvailable")}`,n=[...Oz()?[{title:ri("updateAndRelaunch"),action:async()=>{await Kz(t.tag_name)?Yr.MarkEdit.relaunchApp():Yr.MarkEdit.showAlert(ri("failedToUpdate")),e()}}]:[],{title:ri("viewReleasePage"),action:()=>{open(t.html_url),e()}},{title:ri("remindMeLater"),action:e},{title:ri("skipThisVersion"),action:()=>{const i=Jce();i.add(t.name),localStorage.setItem(z_.skippedCacheKey,JSON.stringify([...i])),e()}}];return{title:r,actions:n}}function Jce(){const t=localStorage.getItem(z_.skippedCacheKey);return new Set(JSON.parse(t??"[]"))}const z_={latestReleaseURL:"https://api.github.com/repos/MarkEdit-app/MarkEdit-preview/releases/latest",rawBaseURL:"https://raw.githubusercontent.com/MarkEdit-app/MarkEdit-preview/",lastCheckCacheKey:"updater.last-check-time",skippedCacheKey:"updater.skipped-versions"},dM={pendingRelease:void 0},hM="markedit-preview",kK=`${hM}.js`;function XDe(t){const{destExists:e,bundleInfo:r,currentVersion:n}=t,i=r?.version===n,a=r?.fullBuild===!0;return!(e&&i&&a)}async function jDe(){try{const t=Yr.MarkEdit.getDirectoryPath("documents"),e=Yr.MarkEdit.getDirectoryPath("sharedContainer");if(t===void 0||e===void 0){console.error("Required directories are not accessible");return}const r=typeof __FILE_PATH__=="string"?__FILE_PATH__:bm(t,`scripts/${kK}`);if(await Yr.MarkEdit.getFileInfo(r)===void 0){console.error(`Source file not found at ${r}`);return}const i=r.split("/").pop()??kK,a=bm(e,"Shared/scripts"),s=bm(a,i),o=await Yr.MarkEdit.getFileInfo(s)!==void 0,l=bm(e,"Shared/metadata.json"),u=await oNe(l),d=u[hM];if(!XDe({destExists:o,bundleInfo:d,currentVersion:"1.8.0"}))return;const h=await Yr.MarkEdit.getFileContent(r);if(h===void 0){console.error(`Failed to read content from ${r}`);return}await Yr.MarkEdit.createFile({path:a,isDirectory:!0}),await Yr.MarkEdit.createFile({path:s,string:h,overwrites:!0}),await Yr.MarkEdit.createFile({path:l,string:JSON.stringify({...u,[hM]:{version:"1.8.0",fullBuild:!0}},null,2),overwrites:!0})}catch(t){console.error("Failed to copy the current file to shared container:",t)}}function QDe(){const t=AK(ri("source")),e=AK(ri("preview")),r=document.createElement("div");r.className="quicklook-segmented",r.setAttribute("role","tablist"),r.append(t,e);const n=document.createElement("div");return n.className="quicklook-toolbar",n.appendChild(r),{toolbar:n,sourceButton:t,previewButton:e}}function AK(t){const e=document.createElement("button");return e.textContent=t,e.type="button",e.className="quicklook-segment",e.setAttribute("role","tab"),e}function em(){if(tm!==void 0)return tm;try{tm=localStorage.getItem(eue)==="preview"?"preview":"source"}catch{console.error("Failed to read quick look mode from localStorage"),tm="source"}return tm}function RK(t){tm=t;try{localStorage.setItem(eue,t)}catch{console.error("Failed to write quick look mode to localStorage")}}let tm;const eue="ui.quicklook-mode";function ZDe(){const t=window,e=t.editor?.state?.doc.toString();return typeof e=="string"?e:(console.error("Failed to get text from host editor state"),t.config?.text??"")}function JDe(){document.addEventListener("webkitmouseforcewillbegin",t=>{const e=t.target;e instanceof Element&&e.closest("a")!==null&&t.preventDefault()})}function eLe(t,e){const r=window,n=r.pinchZoomTarget;r.pinchZoomTarget=()=>{if(t()!=="preview")return n?.()??null;const i=e.querySelector(".quicklook-content");return i!==null?{scroller:e,inner:i}:null};for(const i of["gesturechange","gestureend"])document.addEventListener(i,()=>{if(t()!=="preview")return;const a=e.querySelector(".quicklook-content");a?.style.zoom.length?a?.style.setProperty("--quicklook-zoom",a.style.zoom):a?.style.removeProperty("--quicklook-zoom")},{passive:!1})}function tLe(t,e){let r;const n=window,i={start:n.startDragging,update:n.updateDragging,cancel:n.cancelDragging},a=()=>{const o=e.clientHeight,l=e.scrollHeight,u=l-o;if(u<=0||l<=0)return{clientHeight:o,scrollHeight:l,scrollbarHeight:o,scrollbarTop:0};const d=o*(o/l),f=e.scrollTop/u*(o-d);return{clientHeight:o,scrollHeight:l,scrollbarHeight:d,scrollbarTop:f}},s=(o,l,u="auto")=>{const{clientHeight:d,scrollHeight:h,scrollbarHeight:f}=a(),p=d-f;if(p>0){const g=(o-l)/p;e.scrollTo({top:g*(h-d),behavior:u})}};n.startDragging=o=>{if(t()!=="preview"){i.start?.(o);return}const{scrollbarTop:l,scrollbarHeight:u}=a(),d=NK(e,o);r=d-l,(dl+u)&&s(d,u*.5,"smooth")},n.updateDragging=o=>{if(t()!=="preview"){i.update?.(o);return}r!==void 0&&s(NK(e,o),r)},n.cancelDragging=()=>{if(t()!=="preview"){i.cancel?.();return}r=void 0}}function rLe(t,e,r){r.addEventListener("wheel",n=>{const i=t()==="preview"?e:document.querySelector(".cm-scroller");i!==null&&(i.scrollTop+=n.deltaY,i.scrollLeft+=n.deltaX,n.preventDefault())},{passive:!1})}function nLe(t,e,r){const n=document.querySelector(".cm-scroller"),i=()=>{const s=(t()==="preview"?e:n)?.scrollTop??0;r.classList.toggle("scrolled",s>0),r.classList.toggle("scrolled-far",s>20)};return e.addEventListener("scroll",i,{passive:!0}),n?.addEventListener("scroll",i,{passive:!0}),i}function iLe(t){document.addEventListener("copy",e=>{if(!t.classList.contains("overlay"))return;const r=getSelection(),n=r!==null&&r.rangeCount>0?r.getRangeAt(0):null,i=n!==null&&!n.collapsed&&t.contains(n.commonAncestorContainer)?n:null,a=i??(()=>{const o=document.createRange();return o.selectNodeContents(t),o})(),s=document.createElement("div");s.appendChild(a.cloneContents()),e.clipboardData?.setData("text/html",s.innerHTML),e.clipboardData?.setData("text/plain",i!==null?i.toString():t.innerText),e.preventDefault(),e.stopPropagation()},!0)}function NK(t,e){return e-t.getBoundingClientRect().top}const aLe=`body { --editor-inset-top: 34px; } @@ -2315,8 +2315,8 @@ ${r}`}async function Zw(t=!0){const e=Yr.MarkEdit.editorAPI.getText();{const r=a box-shadow: 0 0 3px rgba(0, 0, 0, 0.45); } } -`;function aLe(t){Ed(iLe),document.body.classList.add("quicklook");const{toolbar:e,sourceButton:r,previewButton:n}=QDe();document.body.appendChild(e);const i=sLe(t),a=nLe(em,t,e),s={previewPane:t,sourceButton:r,previewButton:n,refreshSeparator:a,ensureRendered:i.ensureRendered};r.addEventListener("click",()=>{RK("source"),k8(s)}),n.addEventListener("click",()=>{RK("preview"),k8(s)}),k8(s),setTimeout(i.ensureRendered,0),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{t.querySelector(".mermaid")!==null&&(i.invalidate(),em()==="preview"&&i.ensureRendered())}),JDe(),eLe(em,t),tLe(em,t),rLe(em,t,e)}function k8(t){const e=em()==="source",r=!e;t.sourceButton.classList.toggle("active",e),t.previewButton.classList.toggle("active",r),t.sourceButton.setAttribute("aria-selected",String(e)),t.previewButton.setAttribute("aria-selected",String(r)),t.previewPane.classList.toggle("overlay",r),t.refreshSeparator(),r&&t.ensureRendered()}function sLe(t){let e=!1,r;return{ensureRendered:()=>(e||r||(r=(async()=>{try{const a=Gce(await Hz(ZDe(),!1));t.innerHTML=`
${a}
`,t.querySelectorAll("a[href]").forEach(s=>{s.removeAttribute("href"),s.removeAttribute("target")}),Fce(()=>{}),e=!0}catch(a){throw r=void 0,a}})()),r),invalidate:()=>{e=!1,r=void 0}}}var B3={exports:{}};var oLe=B3.exports,IK;function lLe(){return IK||(IK=1,(function(t,e){(function(r,n){t.exports=n()})(oLe,(function(){var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},n=function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")},i=(function(){function u(d,h){for(var f=0;f1&&arguments[1]!==void 0?arguments[1]:!0,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;n(this,u),this.ctx=d,this.iframes=h,this.exclude=f,this.iframesTimeout=p}return i(u,[{key:"getContexts",value:function(){var h=void 0,f=[];return typeof this.ctx>"u"||!this.ctx?h=[]:NodeList.prototype.isPrototypeOf(this.ctx)?h=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?h=this.ctx:typeof this.ctx=="string"?h=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):h=[this.ctx],h.forEach(function(p){var g=f.filter(function(m){return m.contains(p)}).length>0;f.indexOf(p)===-1&&!g&&f.push(p)}),f}},{key:"getIframeContents",value:function(h,f){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},g=void 0;try{var m=h.contentWindow;if(g=m.document,!m||!g)throw new Error("iframe inaccessible")}catch{p()}g&&f(g)}},{key:"isIframeBlank",value:function(h){var f="about:blank",p=h.getAttribute("src").trim(),g=h.contentWindow.location.href;return g===f&&p!==f&&p}},{key:"observeIframeLoad",value:function(h,f,p){var g=this,m=!1,y=null,v=function b(){if(!m){m=!0,clearTimeout(y);try{g.isIframeBlank(h)||(h.removeEventListener("load",b),g.getIframeContents(h,f,p))}catch{p()}}};h.addEventListener("load",v),y=setTimeout(v,this.iframesTimeout)}},{key:"onIframeReady",value:function(h,f,p){try{h.contentWindow.document.readyState==="complete"?this.isIframeBlank(h)?this.observeIframeLoad(h,f,p):this.getIframeContents(h,f,p):this.observeIframeLoad(h,f,p)}catch{p()}}},{key:"waitForIframes",value:function(h,f){var p=this,g=0;this.forEachIframe(h,function(){return!0},function(m){g++,p.waitForIframes(m.querySelector("html"),function(){--g||f()})},function(m){m||f()})}},{key:"forEachIframe",value:function(h,f,p){var g=this,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},y=h.querySelectorAll("iframe"),v=y.length,b=0;y=Array.prototype.slice.call(y);var _=function(){--v<=0&&m(b)};v||_(),y.forEach(function(E){u.matches(E,g.exclude)?_():g.onIframeReady(E,function(x){f(E)&&(b++,p(x)),_()},_)})}},{key:"createIterator",value:function(h,f,p){return document.createNodeIterator(h,f,p,!1)}},{key:"createInstanceOnIframe",value:function(h){return new u(h.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(h,f,p){var g=h.compareDocumentPosition(p),m=Node.DOCUMENT_POSITION_PRECEDING;if(g&m)if(f!==null){var y=f.compareDocumentPosition(p),v=Node.DOCUMENT_POSITION_FOLLOWING;if(y&v)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(h){var f=h.previousNode(),p=void 0;return f===null?p=h.nextNode():p=h.nextNode()&&h.nextNode(),{prevNode:f,node:p}}},{key:"checkIframeFilter",value:function(h,f,p,g){var m=!1,y=!1;return g.forEach(function(v,b){v.val===p&&(m=b,y=v.handled)}),this.compareNodeIframe(h,f,p)?(m===!1&&!y?g.push({val:p,handled:!0}):m!==!1&&!y&&(g[m].handled=!0),!0):(m===!1&&g.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(h,f,p,g){var m=this;h.forEach(function(y){y.handled||m.getIframeContents(y.val,function(v){m.createInstanceOnIframe(v).forEachNode(f,p,g)})})}},{key:"iterateThroughNodes",value:function(h,f,p,g,m){for(var y=this,v=this.createIterator(f,h,g),b=[],_=[],E=void 0,x=void 0,C=function(){var w=y.getIteratorNode(v);return x=w.prevNode,E=w.node,E};C();)this.iframes&&this.forEachIframe(f,function(T){return y.checkIframeFilter(E,x,T,b)},function(T){y.createInstanceOnIframe(T).forEachNode(h,function(w){return _.push(w)},g)}),_.push(E);_.forEach(function(T){p(T)}),this.iframes&&this.handleOpenIframes(b,h,p,g),m()}},{key:"forEachNode",value:function(h,f,p){var g=this,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},y=this.getContexts(),v=y.length;v||m(),y.forEach(function(b){var _=function(){g.iterateThroughNodes(h,b,f,p,function(){--v<=0&&m()})};g.iframes?g.waitForIframes(b,_):_()})}}],[{key:"matches",value:function(h,f){var p=typeof f=="string"?[f]:f,g=h.matches||h.matchesSelector||h.msMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.webkitMatchesSelector;if(g){var m=!1;return p.every(function(y){return g.call(h,y)?(m=!0,!1):!0}),m}else return!1}}]),u})(),o=(function(){function u(d){n(this,u),this.ctx=d,this.ie=!1;var h=window.navigator.userAgent;(h.indexOf("MSIE")>-1||h.indexOf("Trident")>-1)&&(this.ie=!0)}return i(u,[{key:"log",value:function(h){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",p=this.opt.log;this.opt.debug&&(typeof p>"u"?"undefined":r(p))==="object"&&typeof p[f]=="function"&&p[f]("mark.js: "+h)}},{key:"escapeStr",value:function(h){return h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(h){return this.opt.wildcards!=="disabled"&&(h=this.setupWildcardsRegExp(h)),h=this.escapeStr(h),Object.keys(this.opt.synonyms).length&&(h=this.createSynonymsRegExp(h)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(h=this.setupIgnoreJoinersRegExp(h)),this.opt.diacritics&&(h=this.createDiacriticsRegExp(h)),h=this.createMergedBlanksRegExp(h),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(h=this.createJoinersRegExp(h)),this.opt.wildcards!=="disabled"&&(h=this.createWildcardsRegExp(h)),h=this.createAccuracyRegExp(h),h}},{key:"createSynonymsRegExp",value:function(h){var f=this.opt.synonyms,p=this.opt.caseSensitive?"":"i",g=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var m in f)if(f.hasOwnProperty(m)){var y=f[m],v=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(m):this.escapeStr(m),b=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(y):this.escapeStr(y);v!==""&&b!==""&&(h=h.replace(new RegExp("("+this.escapeStr(v)+"|"+this.escapeStr(b)+")","gm"+p),g+("("+this.processSynomyms(v)+"|")+(this.processSynomyms(b)+")")+g))}return h}},{key:"processSynomyms",value:function(h){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(h=this.setupIgnoreJoinersRegExp(h)),h}},{key:"setupWildcardsRegExp",value:function(h){return h=h.replace(/(?:\\)*\?/g,function(f){return f.charAt(0)==="\\"?"?":""}),h.replace(/(?:\\)*\*/g,function(f){return f.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(h){var f=this.opt.wildcards==="withSpaces";return h.replace(/\u0001/g,f?"[\\S\\s]?":"\\S?").replace(/\u0002/g,f?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(h){return h.replace(/[^(|)\\]/g,function(f,p,g){var m=g.charAt(p+1);return/[(|)\\]/.test(m)||m===""?f:f+"\0"})}},{key:"createJoinersRegExp",value:function(h){var f=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&f.push(this.escapeStr(p.join(""))),this.opt.ignoreJoiners&&f.push("\\u00ad\\u200b\\u200c\\u200d"),f.length?h.split(/\u0000+/).join("["+f.join("")+"]*"):h}},{key:"createDiacriticsRegExp",value:function(h){var f=this.opt.caseSensitive?"":"i",p=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],g=[];return h.split("").forEach(function(m){p.every(function(y){if(y.indexOf(m)!==-1){if(g.indexOf(y)>-1)return!1;h=h.replace(new RegExp("["+y+"]","gm"+f),"["+y+"]"),g.push(y)}return!0})}),h}},{key:"createMergedBlanksRegExp",value:function(h){return h.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(h){var f=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",g=this.opt.accuracy,m=typeof g=="string"?g:g.value,y=typeof g=="string"?[]:g.limiters,v="";switch(y.forEach(function(b){v+="|"+f.escapeStr(b)}),m){case"partially":default:return"()("+h+")";case"complementary":return v="\\s"+(v||this.escapeStr(p)),"()([^"+v+"]*"+h+"[^"+v+"]*)";case"exactly":return"(^|\\s"+v+")("+h+")(?=$|\\s"+v+")"}}},{key:"getSeparatedKeywords",value:function(h){var f=this,p=[];return h.forEach(function(g){f.opt.separateWordSearch?g.split(" ").forEach(function(m){m.trim()&&p.indexOf(m)===-1&&p.push(m)}):g.trim()&&p.indexOf(g)===-1&&p.push(g)}),{keywords:p.sort(function(g,m){return m.length-g.length}),length:p.length}}},{key:"isNumeric",value:function(h){return Number(parseFloat(h))==h}},{key:"checkRanges",value:function(h){var f=this;if(!Array.isArray(h)||Object.prototype.toString.call(h[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(h),[];var p=[],g=0;return h.sort(function(m,y){return m.start-y.start}).forEach(function(m){var y=f.callNoMatchOnInvalidRanges(m,g),v=y.start,b=y.end,_=y.valid;_&&(m.start=v,m.length=b-v,p.push(m),g=b)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(h,f){var p=void 0,g=void 0,m=!1;return h&&typeof h.start<"u"?(p=parseInt(h.start,10),g=p+parseInt(h.length,10),this.isNumeric(h.start)&&this.isNumeric(h.length)&&g-f>0&&g-p>0?m=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(h))),this.opt.noMatch(h))):(this.log("Ignoring invalid range: "+JSON.stringify(h)),this.opt.noMatch(h)),{start:p,end:g,valid:m}}},{key:"checkWhitespaceRanges",value:function(h,f,p){var g=void 0,m=!0,y=p.length,v=f-y,b=parseInt(h.start,10)-v;return b=b>y?y:b,g=b+parseInt(h.length,10),g>y&&(g=y,this.log("End range automatically set to the max value of "+y)),b<0||g-b<0||b>y||g>y?(m=!1,this.log("Invalid range: "+JSON.stringify(h)),this.opt.noMatch(h)):p.substring(b,g).replace(/\s+/g,"")===""&&(m=!1,this.log("Skipping whitespace only range: "+JSON.stringify(h)),this.opt.noMatch(h)),{start:b,end:g,valid:m}}},{key:"getTextNodes",value:function(h){var f=this,p="",g=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(m){g.push({start:p.length,end:(p+=m.textContent).length,node:m})},function(m){return f.matchesExclude(m.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){h({value:p,nodes:g})})}},{key:"matchesExclude",value:function(h){return s.matches(h,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(h,f,p){var g=this.opt.element?this.opt.element:"mark",m=h.splitText(f),y=m.splitText(p-f),v=document.createElement(g);return v.setAttribute("data-markjs","true"),this.opt.className&&v.setAttribute("class",this.opt.className),v.textContent=m.textContent,m.parentNode.replaceChild(v,m),y}},{key:"wrapRangeInMappedTextNode",value:function(h,f,p,g,m){var y=this;h.nodes.every(function(v,b){var _=h.nodes[b+1];if(typeof _>"u"||_.start>f){if(!g(v.node))return!1;var E=f-v.start,x=(p>v.end?v.end:p)-v.start,C=h.value.substr(0,v.start),T=h.value.substr(x+v.start);if(v.node=y.wrapRangeInTextNode(v.node,E,x),h.value=C+T,h.nodes.forEach(function(w,N){N>=b&&(h.nodes[N].start>0&&N!==b&&(h.nodes[N].start-=x),h.nodes[N].end-=x)}),p-=x,m(v.node.previousSibling,v.start),p>v.end)f=v.end;else return!1}return!0})}},{key:"wrapMatches",value:function(h,f,p,g,m){var y=this,v=f===0?0:f+1;this.getTextNodes(function(b){b.nodes.forEach(function(_){_=_.node;for(var E=void 0;(E=h.exec(_.textContent))!==null&&E[v]!=="";)if(p(E[v],_)){var x=E.index;if(v!==0)for(var C=1;C{jl=Array.from(t.querySelectorAll(`.${UE}`)),f0=jl.length>0?Math.min(f0,jl.length-1):0,aue(),iE=!1};o.unmark({done:()=>{if(s)try{const u=n?"":"i";o.markRegExp(new RegExp(r,u),{className:UE,done:l})}catch{iE=!1,f0=0,jl=[]}else o.mark(r,{className:UE,caseSensitive:n,diacritics:a,separateWordSearch:!1,accuracy:i?"exactly":"partially",done:l})}})}function aue(){const t=Cl()!==Uc.sideBySide;jl.forEach((e,r)=>{e.classList.toggle(rue,t&&r===f0)}),t&&jl.length>0&&jl[f0].scrollIntoView({behavior:"smooth",block:"center"})}function fLe(t){GE?.disconnect(),GE=new MutationObserver(()=>{iE||iue(t)}),GE.observe(t,{childList:!0})}function pLe(){lx===null&&(lx=document.createElement("style"),document.head.appendChild(lx));const{light:t,dark:e}=OK[Kw]??OK.github;lx.textContent=[`.${UE} { background: ${t} !important; color: inherit !important; }`,`.${rue} { background: #ffff00 !important; color: #000000 !important; border-radius: 2px; box-shadow: 0px 0px 0px 2px #ffff00, 0px 0px 3px 2px rgba(0, 0, 0, 0.4); }`,"@media (prefers-color-scheme: dark) {",` .${UE} { background: ${e} !important; }`,"}"].join(` -`)}window.__markeditPreviewInitialized__?console.error("MarkEdit Preview has already been initialized. Multiple initializations may cause unexpected behavior."):(PDe(),Yz()?(typeof Yr.MarkEdit.onAppReady=="function"?Yr.MarkEdit.onAppReady(()=>{jDe(),setTimeout(()=>{uM()},2e3)}):setTimeout(()=>{WDe()},4e3),(FE==="automatic"||FE==="quiet")&&setInterval(()=>{uM()},6048e5)):aLe(Z4()),window.__markeditPreviewInitialized__=!0);window.MarkEditGetHtml??=Kce;window.MarkEditRenderHtml??=YDe;window.__markeditPreviewSPI__={performSearch:uLe,setSearchMatchIndex:dLe,clearSearch:nue,searchCounterInfo:hLe};Yz()&&(Yr.MarkEdit.addMainMenuItem({title:ri("viewMode"),icon:tNe()?"eye":void 0,children:[{title:ri("changeMode"),action:()=>{BDe(),fM()},key:EK.key??"V",modifiers:EK.modifiers??["Command"]},{separator:!0},A8(ri("editMode"),Uc.edit),A8(ri("sideBySideMode"),Uc.sideBySide),A8(ri("previewMode"),Uc.preview),{separator:!0},...gLe(),{separator:!0},{title:`${ri("version")} 1.8.0`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/tag/v1.8.0")},{title:`${ri("checkReleases")} (GitHub)`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/latest")},...Oz()?[{title:ri("updateAndRelaunch"),action:async()=>{const t=await jce();await Kz(t.tag_name)?Yr.MarkEdit.relaunchApp():Yr.MarkEdit.showAlert(ri("failedToUpdate"))}}]:[]]}),Yr.MarkEdit.addExtension(ZRe.EditorView.updateListener.of(t=>{t.docChanged&&(t.transactions.every(e=>e.annotation(Vce))||(Qh.renderUpdater!==void 0&&clearTimeout(Qh.renderUpdater),Qh.renderUpdater=setTimeout(fC,500)))})),Yr.MarkEdit.onEditorReady(()=>{P9e&&_De(Yr.MarkEdit.editorView.scrollDOM),FDe(),requestAnimationFrame(async()=>{document.visibilityState==="visible"&&Cl()===Uc.preview&&typeof Yr.MarkEdit.getFileInfo=="function"&&(await Yr.MarkEdit.getFileInfo())?.filePath===void 0&&Yr.MarkEdit.editorAPI.getText().length===0&&Qw(Uc.edit,!1)}),fC(),fM(),EDe(Wce(),Z4()),Qh.keyDownListener!==void 0&&document.removeEventListener("keydown",Qh.keyDownListener),Qh.keyDownListener=t=>$De(t),document.addEventListener("keydown",Qh.keyDownListener)}));function A8(t,e){return{title:t,action:()=>{Qw(e),fM()},state:()=>({isSelected:Cl()===e})}}function gLe(){const t=[{title:ri("copyHtml"),action:GDe},{title:ri("copyRichText"),action:qDe}];return typeof Yr.MarkEdit.showSavePanel>"u"?t:[{title:ri("saveCleanHtml"),action:zDe},{title:ri("saveStyledHtml"),action:UDe},...t]}function fM(){const t=Qce();t!==void 0&&(t.style.display=Cl()===Uc.edit?"none":"")}const Qh={renderUpdater:void 0,keyDownListener:void 0};let Vt=class sue extends Error{constructor(e,r){var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var d;a+15t.replace(mLe,"-$1").toLowerCase(),vLe={"&":"&",">":">","<":"<",'"':""","'":"'"},_Le=/[&><"']/g,ls=t=>String(t).replace(_Le,e=>vLe[e]),F3=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?F3(t.body[0]):t:t.type==="font"?F3(t.body):t,bLe=new Set(["mathord","textord","atom"]),z0=t=>bLe.has(F3(t).type),ELe=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},pC={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 "},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 ",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:t=>"#"+t},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),cli:"--min-rule-thickness ",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:t=>Math.max(0,t),cli:"-s, --max-size ",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:t=>Math.max(0,t),cli:"-e, --max-expand ",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function SLe(t){if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function TLe(t){if(t.default!==void 0)return t.default;var e=Array.isArray(t.type)?t.type[0]:t.type;return SLe(e)}function xLe(t,e,r,n){var i=r[e];t[e]=i!==void 0?n.processor?n.processor(i):i:TLe(n)}let jz=class{constructor(e){e===void 0&&(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(var r of Object.keys(pC)){var n=pC[r];n&&xLe(this,r,e,n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Vt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=ELe(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}},dd=class{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Bc[CLe[this.id]]}sub(){return Bc[wLe[this.id]]}fracNum(){return Bc[kLe[this.id]]}fracDen(){return Bc[ALe[this.id]]}cramp(){return Bc[RLe[this.id]]}text(){return Bc[NLe[this.id]]}isTight(){return this.size>=2}};var Qz=0,gC=1,Gm=2,p0=3,AS=4,ml=5,U_=6,Os=7,Bc=[new dd(Qz,0,!1),new dd(gC,0,!0),new dd(Gm,1,!1),new dd(p0,1,!0),new dd(AS,2,!1),new dd(ml,2,!0),new dd(U_,3,!1),new dd(Os,3,!0)],CLe=[AS,ml,AS,ml,U_,Os,U_,Os],wLe=[ml,ml,ml,ml,Os,Os,Os,Os],kLe=[Gm,p0,AS,ml,U_,Os,U_,Os],ALe=[p0,p0,ml,ml,Os,Os,Os,Os],RLe=[gC,gC,p0,p0,ml,ml,Os,Os],NLe=[Qz,gC,Gm,p0,Gm,p0,Gm,p0],Xr={DISPLAY:Bc[Qz],TEXT:Bc[Gm],SCRIPT:Bc[AS],SCRIPTSCRIPT:Bc[U_]},pM=[{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]]}];function ILe(t){for(var e=0;e=i[0]&&t<=i[1])return r.name}return null}var $3=[];pM.forEach(t=>t.blocks.forEach(e=>$3.push(...e)));function oue(t){for(var e=0;e<$3.length;e+=2)if(t>=$3[e]&&t<=$3[e+1])return!0;return!1}var ya=t=>t+" "+t,Og=80,OLe=function(e,r){return"M95,"+(622+e+r)+` +`;function sLe(t){Ed(aLe),document.body.classList.add("quicklook");const{toolbar:e,sourceButton:r,previewButton:n}=QDe();document.body.appendChild(e);const i=oLe(t),a=nLe(em,t,e),s={previewPane:t,sourceButton:r,previewButton:n,refreshSeparator:a,ensureRendered:i.ensureRendered};r.addEventListener("click",()=>{RK("source"),k8(s)}),n.addEventListener("click",()=>{RK("preview"),k8(s)}),k8(s),setTimeout(i.ensureRendered,0),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{t.querySelector(".mermaid")!==null&&(i.invalidate(),em()==="preview"&&i.ensureRendered())}),JDe(),eLe(em,t),tLe(em,t),rLe(em,t,e),iLe(t)}function k8(t){const e=em()==="source",r=!e;t.sourceButton.classList.toggle("active",e),t.previewButton.classList.toggle("active",r),t.sourceButton.setAttribute("aria-selected",String(e)),t.previewButton.setAttribute("aria-selected",String(r)),t.previewPane.classList.toggle("overlay",r),t.refreshSeparator(),r&&t.ensureRendered()}function oLe(t){let e=!1,r;return{ensureRendered:()=>(e||r||(r=(async()=>{try{const a=Gce(await Hz(ZDe(),!1));t.innerHTML=`
${a}
`,t.querySelectorAll("a[href]").forEach(s=>{s.removeAttribute("href"),s.removeAttribute("target")}),Fce(()=>{}),e=!0}catch(a){throw r=void 0,a}})()),r),invalidate:()=>{e=!1,r=void 0}}}var B3={exports:{}};var lLe=B3.exports,IK;function cLe(){return IK||(IK=1,(function(t,e){(function(r,n){t.exports=n()})(lLe,(function(){var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},n=function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")},i=(function(){function u(d,h){for(var f=0;f1&&arguments[1]!==void 0?arguments[1]:!0,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;n(this,u),this.ctx=d,this.iframes=h,this.exclude=f,this.iframesTimeout=p}return i(u,[{key:"getContexts",value:function(){var h=void 0,f=[];return typeof this.ctx>"u"||!this.ctx?h=[]:NodeList.prototype.isPrototypeOf(this.ctx)?h=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?h=this.ctx:typeof this.ctx=="string"?h=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):h=[this.ctx],h.forEach(function(p){var g=f.filter(function(m){return m.contains(p)}).length>0;f.indexOf(p)===-1&&!g&&f.push(p)}),f}},{key:"getIframeContents",value:function(h,f){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},g=void 0;try{var m=h.contentWindow;if(g=m.document,!m||!g)throw new Error("iframe inaccessible")}catch{p()}g&&f(g)}},{key:"isIframeBlank",value:function(h){var f="about:blank",p=h.getAttribute("src").trim(),g=h.contentWindow.location.href;return g===f&&p!==f&&p}},{key:"observeIframeLoad",value:function(h,f,p){var g=this,m=!1,y=null,v=function b(){if(!m){m=!0,clearTimeout(y);try{g.isIframeBlank(h)||(h.removeEventListener("load",b),g.getIframeContents(h,f,p))}catch{p()}}};h.addEventListener("load",v),y=setTimeout(v,this.iframesTimeout)}},{key:"onIframeReady",value:function(h,f,p){try{h.contentWindow.document.readyState==="complete"?this.isIframeBlank(h)?this.observeIframeLoad(h,f,p):this.getIframeContents(h,f,p):this.observeIframeLoad(h,f,p)}catch{p()}}},{key:"waitForIframes",value:function(h,f){var p=this,g=0;this.forEachIframe(h,function(){return!0},function(m){g++,p.waitForIframes(m.querySelector("html"),function(){--g||f()})},function(m){m||f()})}},{key:"forEachIframe",value:function(h,f,p){var g=this,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},y=h.querySelectorAll("iframe"),v=y.length,b=0;y=Array.prototype.slice.call(y);var _=function(){--v<=0&&m(b)};v||_(),y.forEach(function(E){u.matches(E,g.exclude)?_():g.onIframeReady(E,function(x){f(E)&&(b++,p(x)),_()},_)})}},{key:"createIterator",value:function(h,f,p){return document.createNodeIterator(h,f,p,!1)}},{key:"createInstanceOnIframe",value:function(h){return new u(h.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(h,f,p){var g=h.compareDocumentPosition(p),m=Node.DOCUMENT_POSITION_PRECEDING;if(g&m)if(f!==null){var y=f.compareDocumentPosition(p),v=Node.DOCUMENT_POSITION_FOLLOWING;if(y&v)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(h){var f=h.previousNode(),p=void 0;return f===null?p=h.nextNode():p=h.nextNode()&&h.nextNode(),{prevNode:f,node:p}}},{key:"checkIframeFilter",value:function(h,f,p,g){var m=!1,y=!1;return g.forEach(function(v,b){v.val===p&&(m=b,y=v.handled)}),this.compareNodeIframe(h,f,p)?(m===!1&&!y?g.push({val:p,handled:!0}):m!==!1&&!y&&(g[m].handled=!0),!0):(m===!1&&g.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(h,f,p,g){var m=this;h.forEach(function(y){y.handled||m.getIframeContents(y.val,function(v){m.createInstanceOnIframe(v).forEachNode(f,p,g)})})}},{key:"iterateThroughNodes",value:function(h,f,p,g,m){for(var y=this,v=this.createIterator(f,h,g),b=[],_=[],E=void 0,x=void 0,C=function(){var w=y.getIteratorNode(v);return x=w.prevNode,E=w.node,E};C();)this.iframes&&this.forEachIframe(f,function(T){return y.checkIframeFilter(E,x,T,b)},function(T){y.createInstanceOnIframe(T).forEachNode(h,function(w){return _.push(w)},g)}),_.push(E);_.forEach(function(T){p(T)}),this.iframes&&this.handleOpenIframes(b,h,p,g),m()}},{key:"forEachNode",value:function(h,f,p){var g=this,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},y=this.getContexts(),v=y.length;v||m(),y.forEach(function(b){var _=function(){g.iterateThroughNodes(h,b,f,p,function(){--v<=0&&m()})};g.iframes?g.waitForIframes(b,_):_()})}}],[{key:"matches",value:function(h,f){var p=typeof f=="string"?[f]:f,g=h.matches||h.matchesSelector||h.msMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.webkitMatchesSelector;if(g){var m=!1;return p.every(function(y){return g.call(h,y)?(m=!0,!1):!0}),m}else return!1}}]),u})(),o=(function(){function u(d){n(this,u),this.ctx=d,this.ie=!1;var h=window.navigator.userAgent;(h.indexOf("MSIE")>-1||h.indexOf("Trident")>-1)&&(this.ie=!0)}return i(u,[{key:"log",value:function(h){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",p=this.opt.log;this.opt.debug&&(typeof p>"u"?"undefined":r(p))==="object"&&typeof p[f]=="function"&&p[f]("mark.js: "+h)}},{key:"escapeStr",value:function(h){return h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(h){return this.opt.wildcards!=="disabled"&&(h=this.setupWildcardsRegExp(h)),h=this.escapeStr(h),Object.keys(this.opt.synonyms).length&&(h=this.createSynonymsRegExp(h)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(h=this.setupIgnoreJoinersRegExp(h)),this.opt.diacritics&&(h=this.createDiacriticsRegExp(h)),h=this.createMergedBlanksRegExp(h),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(h=this.createJoinersRegExp(h)),this.opt.wildcards!=="disabled"&&(h=this.createWildcardsRegExp(h)),h=this.createAccuracyRegExp(h),h}},{key:"createSynonymsRegExp",value:function(h){var f=this.opt.synonyms,p=this.opt.caseSensitive?"":"i",g=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var m in f)if(f.hasOwnProperty(m)){var y=f[m],v=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(m):this.escapeStr(m),b=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(y):this.escapeStr(y);v!==""&&b!==""&&(h=h.replace(new RegExp("("+this.escapeStr(v)+"|"+this.escapeStr(b)+")","gm"+p),g+("("+this.processSynomyms(v)+"|")+(this.processSynomyms(b)+")")+g))}return h}},{key:"processSynomyms",value:function(h){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(h=this.setupIgnoreJoinersRegExp(h)),h}},{key:"setupWildcardsRegExp",value:function(h){return h=h.replace(/(?:\\)*\?/g,function(f){return f.charAt(0)==="\\"?"?":""}),h.replace(/(?:\\)*\*/g,function(f){return f.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(h){var f=this.opt.wildcards==="withSpaces";return h.replace(/\u0001/g,f?"[\\S\\s]?":"\\S?").replace(/\u0002/g,f?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(h){return h.replace(/[^(|)\\]/g,function(f,p,g){var m=g.charAt(p+1);return/[(|)\\]/.test(m)||m===""?f:f+"\0"})}},{key:"createJoinersRegExp",value:function(h){var f=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&f.push(this.escapeStr(p.join(""))),this.opt.ignoreJoiners&&f.push("\\u00ad\\u200b\\u200c\\u200d"),f.length?h.split(/\u0000+/).join("["+f.join("")+"]*"):h}},{key:"createDiacriticsRegExp",value:function(h){var f=this.opt.caseSensitive?"":"i",p=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],g=[];return h.split("").forEach(function(m){p.every(function(y){if(y.indexOf(m)!==-1){if(g.indexOf(y)>-1)return!1;h=h.replace(new RegExp("["+y+"]","gm"+f),"["+y+"]"),g.push(y)}return!0})}),h}},{key:"createMergedBlanksRegExp",value:function(h){return h.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(h){var f=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",g=this.opt.accuracy,m=typeof g=="string"?g:g.value,y=typeof g=="string"?[]:g.limiters,v="";switch(y.forEach(function(b){v+="|"+f.escapeStr(b)}),m){case"partially":default:return"()("+h+")";case"complementary":return v="\\s"+(v||this.escapeStr(p)),"()([^"+v+"]*"+h+"[^"+v+"]*)";case"exactly":return"(^|\\s"+v+")("+h+")(?=$|\\s"+v+")"}}},{key:"getSeparatedKeywords",value:function(h){var f=this,p=[];return h.forEach(function(g){f.opt.separateWordSearch?g.split(" ").forEach(function(m){m.trim()&&p.indexOf(m)===-1&&p.push(m)}):g.trim()&&p.indexOf(g)===-1&&p.push(g)}),{keywords:p.sort(function(g,m){return m.length-g.length}),length:p.length}}},{key:"isNumeric",value:function(h){return Number(parseFloat(h))==h}},{key:"checkRanges",value:function(h){var f=this;if(!Array.isArray(h)||Object.prototype.toString.call(h[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(h),[];var p=[],g=0;return h.sort(function(m,y){return m.start-y.start}).forEach(function(m){var y=f.callNoMatchOnInvalidRanges(m,g),v=y.start,b=y.end,_=y.valid;_&&(m.start=v,m.length=b-v,p.push(m),g=b)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(h,f){var p=void 0,g=void 0,m=!1;return h&&typeof h.start<"u"?(p=parseInt(h.start,10),g=p+parseInt(h.length,10),this.isNumeric(h.start)&&this.isNumeric(h.length)&&g-f>0&&g-p>0?m=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(h))),this.opt.noMatch(h))):(this.log("Ignoring invalid range: "+JSON.stringify(h)),this.opt.noMatch(h)),{start:p,end:g,valid:m}}},{key:"checkWhitespaceRanges",value:function(h,f,p){var g=void 0,m=!0,y=p.length,v=f-y,b=parseInt(h.start,10)-v;return b=b>y?y:b,g=b+parseInt(h.length,10),g>y&&(g=y,this.log("End range automatically set to the max value of "+y)),b<0||g-b<0||b>y||g>y?(m=!1,this.log("Invalid range: "+JSON.stringify(h)),this.opt.noMatch(h)):p.substring(b,g).replace(/\s+/g,"")===""&&(m=!1,this.log("Skipping whitespace only range: "+JSON.stringify(h)),this.opt.noMatch(h)),{start:b,end:g,valid:m}}},{key:"getTextNodes",value:function(h){var f=this,p="",g=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(m){g.push({start:p.length,end:(p+=m.textContent).length,node:m})},function(m){return f.matchesExclude(m.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){h({value:p,nodes:g})})}},{key:"matchesExclude",value:function(h){return s.matches(h,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(h,f,p){var g=this.opt.element?this.opt.element:"mark",m=h.splitText(f),y=m.splitText(p-f),v=document.createElement(g);return v.setAttribute("data-markjs","true"),this.opt.className&&v.setAttribute("class",this.opt.className),v.textContent=m.textContent,m.parentNode.replaceChild(v,m),y}},{key:"wrapRangeInMappedTextNode",value:function(h,f,p,g,m){var y=this;h.nodes.every(function(v,b){var _=h.nodes[b+1];if(typeof _>"u"||_.start>f){if(!g(v.node))return!1;var E=f-v.start,x=(p>v.end?v.end:p)-v.start,C=h.value.substr(0,v.start),T=h.value.substr(x+v.start);if(v.node=y.wrapRangeInTextNode(v.node,E,x),h.value=C+T,h.nodes.forEach(function(w,N){N>=b&&(h.nodes[N].start>0&&N!==b&&(h.nodes[N].start-=x),h.nodes[N].end-=x)}),p-=x,m(v.node.previousSibling,v.start),p>v.end)f=v.end;else return!1}return!0})}},{key:"wrapMatches",value:function(h,f,p,g,m){var y=this,v=f===0?0:f+1;this.getTextNodes(function(b){b.nodes.forEach(function(_){_=_.node;for(var E=void 0;(E=h.exec(_.textContent))!==null&&E[v]!=="";)if(p(E[v],_)){var x=E.index;if(v!==0)for(var C=1;C{jl=Array.from(t.querySelectorAll(`.${UE}`)),f0=jl.length>0?Math.min(f0,jl.length-1):0,aue(),iE=!1};o.unmark({done:()=>{if(s)try{const u=n?"":"i";o.markRegExp(new RegExp(r,u),{className:UE,done:l})}catch{iE=!1,f0=0,jl=[]}else o.mark(r,{className:UE,caseSensitive:n,diacritics:a,separateWordSearch:!1,accuracy:i?"exactly":"partially",done:l})}})}function aue(){const t=Cl()!==Uc.sideBySide;jl.forEach((e,r)=>{e.classList.toggle(rue,t&&r===f0)}),t&&jl.length>0&&jl[f0].scrollIntoView({behavior:"smooth",block:"center"})}function pLe(t){GE?.disconnect(),GE=new MutationObserver(()=>{iE||iue(t)}),GE.observe(t,{childList:!0})}function gLe(){lx===null&&(lx=document.createElement("style"),document.head.appendChild(lx));const{light:t,dark:e}=OK[Kw]??OK.github;lx.textContent=[`.${UE} { background: ${t} !important; color: inherit !important; }`,`.${rue} { background: #ffff00 !important; color: #000000 !important; border-radius: 2px; box-shadow: 0px 0px 0px 2px #ffff00, 0px 0px 3px 2px rgba(0, 0, 0, 0.4); }`,"@media (prefers-color-scheme: dark) {",` .${UE} { background: ${e} !important; }`,"}"].join(` +`)}window.__markeditPreviewInitialized__?console.error("MarkEdit Preview has already been initialized. Multiple initializations may cause unexpected behavior."):(PDe(),Yz()?(typeof Yr.MarkEdit.onAppReady=="function"?Yr.MarkEdit.onAppReady(()=>{jDe(),setTimeout(()=>{uM()},2e3)}):setTimeout(()=>{WDe()},4e3),(FE==="automatic"||FE==="quiet")&&setInterval(()=>{uM()},6048e5)):sLe(Z4()),window.__markeditPreviewInitialized__=!0);window.MarkEditGetHtml??=Kce;window.MarkEditRenderHtml??=YDe;window.__markeditPreviewSPI__={performSearch:dLe,setSearchMatchIndex:hLe,clearSearch:nue,searchCounterInfo:fLe};Yz()&&(Yr.MarkEdit.addMainMenuItem({title:ri("viewMode"),icon:tNe()?"eye":void 0,children:[{title:ri("changeMode"),action:()=>{BDe(),fM()},key:EK.key??"V",modifiers:EK.modifiers??["Command"]},{separator:!0},A8(ri("editMode"),Uc.edit),A8(ri("sideBySideMode"),Uc.sideBySide),A8(ri("previewMode"),Uc.preview),{separator:!0},...mLe(),{separator:!0},{title:`${ri("version")} 1.8.0`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/tag/v1.8.0")},{title:`${ri("checkReleases")} (GitHub)`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/latest")},...Oz()?[{title:ri("updateAndRelaunch"),action:async()=>{const t=await jce();await Kz(t.tag_name)?Yr.MarkEdit.relaunchApp():Yr.MarkEdit.showAlert(ri("failedToUpdate"))}}]:[]]}),Yr.MarkEdit.addExtension(ZRe.EditorView.updateListener.of(t=>{t.docChanged&&(t.transactions.every(e=>e.annotation(Vce))||(Qh.renderUpdater!==void 0&&clearTimeout(Qh.renderUpdater),Qh.renderUpdater=setTimeout(fC,500)))})),Yr.MarkEdit.onEditorReady(()=>{P9e&&_De(Yr.MarkEdit.editorView.scrollDOM),FDe(),requestAnimationFrame(async()=>{document.visibilityState==="visible"&&Cl()===Uc.preview&&typeof Yr.MarkEdit.getFileInfo=="function"&&(await Yr.MarkEdit.getFileInfo())?.filePath===void 0&&Yr.MarkEdit.editorAPI.getText().length===0&&Qw(Uc.edit,!1)}),fC(),fM(),EDe(Wce(),Z4()),Qh.keyDownListener!==void 0&&document.removeEventListener("keydown",Qh.keyDownListener),Qh.keyDownListener=t=>$De(t),document.addEventListener("keydown",Qh.keyDownListener)}));function A8(t,e){return{title:t,action:()=>{Qw(e),fM()},state:()=>({isSelected:Cl()===e})}}function mLe(){const t=[{title:ri("copyHtml"),action:GDe},{title:ri("copyRichText"),action:qDe}];return typeof Yr.MarkEdit.showSavePanel>"u"?t:[{title:ri("saveCleanHtml"),action:zDe},{title:ri("saveStyledHtml"),action:UDe},...t]}function fM(){const t=Qce();t!==void 0&&(t.style.display=Cl()===Uc.edit?"none":"")}const Qh={renderUpdater:void 0,keyDownListener:void 0};let Vt=class sue extends Error{constructor(e,r){var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var d;a+15t.replace(yLe,"-$1").toLowerCase(),_Le={"&":"&",">":">","<":"<",'"':""","'":"'"},bLe=/[&><"']/g,ls=t=>String(t).replace(bLe,e=>_Le[e]),F3=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?F3(t.body[0]):t:t.type==="font"?F3(t.body):t,ELe=new Set(["mathord","textord","atom"]),z0=t=>ELe.has(F3(t).type),SLe=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},pC={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 "},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 ",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:t=>"#"+t},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),cli:"--min-rule-thickness ",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:t=>Math.max(0,t),cli:"-s, --max-size ",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:t=>Math.max(0,t),cli:"-e, --max-expand ",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function TLe(t){if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function xLe(t){if(t.default!==void 0)return t.default;var e=Array.isArray(t.type)?t.type[0]:t.type;return TLe(e)}function CLe(t,e,r,n){var i=r[e];t[e]=i!==void 0?n.processor?n.processor(i):i:xLe(n)}let jz=class{constructor(e){e===void 0&&(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(var r of Object.keys(pC)){var n=pC[r];n&&CLe(this,r,e,n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Vt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=SLe(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}},dd=class{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Bc[wLe[this.id]]}sub(){return Bc[kLe[this.id]]}fracNum(){return Bc[ALe[this.id]]}fracDen(){return Bc[RLe[this.id]]}cramp(){return Bc[NLe[this.id]]}text(){return Bc[ILe[this.id]]}isTight(){return this.size>=2}};var Qz=0,gC=1,Gm=2,p0=3,AS=4,ml=5,U_=6,Os=7,Bc=[new dd(Qz,0,!1),new dd(gC,0,!0),new dd(Gm,1,!1),new dd(p0,1,!0),new dd(AS,2,!1),new dd(ml,2,!0),new dd(U_,3,!1),new dd(Os,3,!0)],wLe=[AS,ml,AS,ml,U_,Os,U_,Os],kLe=[ml,ml,ml,ml,Os,Os,Os,Os],ALe=[Gm,p0,AS,ml,U_,Os,U_,Os],RLe=[p0,p0,ml,ml,Os,Os,Os,Os],NLe=[gC,gC,p0,p0,ml,ml,Os,Os],ILe=[Qz,gC,Gm,p0,Gm,p0,Gm,p0],Xr={DISPLAY:Bc[Qz],TEXT:Bc[Gm],SCRIPT:Bc[AS],SCRIPTSCRIPT:Bc[U_]},pM=[{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]]}];function OLe(t){for(var e=0;e=i[0]&&t<=i[1])return r.name}return null}var $3=[];pM.forEach(t=>t.blocks.forEach(e=>$3.push(...e)));function oue(t){for(var e=0;e<$3.length;e+=2)if(t>=$3[e]&&t<=$3[e+1])return!0;return!1}var ya=t=>t+" "+t,Og=80,DLe=function(e,r){return"M95,"+(622+e+r)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.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 @@ -2327,7 +2327,7 @@ c5.3,-9.3,12,-14,20,-14 H400000v`+(40+e)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},DLe=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119 +M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},LLe=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+e/2.084+" -"+e+` @@ -2337,7 +2337,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5, c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},LLe=function(e,r){return"M983 "+(10+e+r)+` +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},MLe=function(e,r){return"M983 "+(10+e+r)+` l`+e/3.13+" -"+e+` c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 @@ -2346,7 +2346,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},MLe=function(e,r){return"M424,"+(2398+e+r)+` +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},PLe=function(e,r){return"M424,"+(2398+e+r)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-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 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 @@ -2356,18 +2356,18 @@ v`+(40+e)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+` -h400000v`+(40+e)+"h-400000z"},PLe=function(e,r){return"M473,"+(2713+e+r)+` +h400000v`+(40+e)+"h-400000z"},BLe=function(e,r){return"M473,"+(2713+e+r)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-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 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},BLe=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},FLe=function(e,r,n){var i=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` +606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},FLe=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},$Le=function(e,r,n){var i=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` H742v`+i+`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 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},$Le=function(e,r,n){r=1e3*r;var i="";switch(e){case"sqrtMain":i=OLe(r,Og);break;case"sqrtSize1":i=DLe(r,Og);break;case"sqrtSize2":i=LLe(r,Og);break;case"sqrtSize3":i=MLe(r,Og);break;case"sqrtSize4":i=PLe(r,Og);break;case"sqrtTall":i=FLe(r,Og,n)}return i},zLe=function(e,r){switch(e){case"⎜":return ya("M291 0 H417 V"+r+" H291z");case"∣":return ya("M145 0 H188 V"+r+" H145z");case"∥":return ya("M145 0 H188 V"+r+" H145z")+ya("M367 0 H410 V"+r+" H367z");case"⎟":return ya("M457 0 H583 V"+r+" H457z");case"⎢":return ya("M319 0 H403 V"+r+" H319z");case"⎥":return ya("M263 0 H347 V"+r+" H263z");case"⎪":return ya("M384 0 H504 V"+r+" H384z");case"⏐":return ya("M312 0 H355 V"+r+" H312z");case"‖":return ya("M257 0 H300 V"+r+" H257z")+ya("M478 0 H521 V"+r+" H478z");default:return""}},DK={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},zLe=function(e,r,n){r=1e3*r;var i="";switch(e){case"sqrtMain":i=DLe(r,Og);break;case"sqrtSize1":i=LLe(r,Og);break;case"sqrtSize2":i=MLe(r,Og);break;case"sqrtSize3":i=PLe(r,Og);break;case"sqrtSize4":i=BLe(r,Og);break;case"sqrtTall":i=$Le(r,Og,n)}return i},ULe=function(e,r){switch(e){case"⎜":return ya("M291 0 H417 V"+r+" H291z");case"∣":return ya("M145 0 H188 V"+r+" H145z");case"∥":return ya("M145 0 H188 V"+r+" H145z")+ya("M367 0 H410 V"+r+" H367z");case"⎟":return ya("M457 0 H583 V"+r+" H457z");case"⎢":return ya("M319 0 H403 V"+r+" H319z");case"⎥":return ya("M263 0 H347 V"+r+" H263z");case"⎪":return ya("M384 0 H504 V"+r+" H384z");case"⏐":return ya("M312 0 H355 V"+r+" H312z");case"‖":return ya("M257 0 H300 V"+r+" H257z")+ya("M478 0 H521 V"+r+" H478z");default:return""}},DK={doubleleftarrow:`M262 157 l10-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 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 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 @@ -2538,7 +2538,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z` c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -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 c-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 -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},ULe=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},GLe=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+r+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -2566,16 +2566,16 @@ c-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 c0,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 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --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.")}};function GLe(t){return"toText"in t}let Mb=class{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(){for(var e=document.createDocumentFragment(),r=0;r{if(GLe(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}};var gM={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},qLe={ex:!0,em:!0,mu:!0},lue=function(e){return typeof e!="string"&&(e=e.unit),e in gM||e in qLe||e==="ex"},wi=function(e,r){var n;if(e.unit in gM)n=gM[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,e.unit==="ex")n=i.fontMetrics().xHeight;else if(e.unit==="em")n=i.fontMetrics().quad;else throw new Vt("Invalid unit: '"+e.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},Jt=function(e){return+e.toFixed(4)+"em"},Jd=function(e){return e.filter(r=>r).join(" ")},Zz=function(e){var r="";for(var n of Object.keys(e)){var i=e[n];i!==void 0&&(r+=yLe(n)+":"+i+";")}return r},cue=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},uue=function(e){var r=document.createElement(e);r.className=Jd(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i/=\x00-\x1f]/,due=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+ls(Jd(this.classes))+'"');var n=Zz(this.style);n&&(r+=' style="'+ls(n)+'"');for(var i of Object.keys(this.attributes)){if(YLe.test(i))throw new Vt("Invalid attribute name '"+i+"'");r+=" "+i+'="'+ls(this.attributes[i])+'"'}r+=">";for(var a=0;a",r};let Pb=class{constructor(e,r,n,i){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,this.italic=void 0,cue.call(this,e,n,i),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return uue.call(this,"span")}toMarkup(){return due.call(this,"span")}},Jw=class{constructor(e,r,n,i){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,cue.call(this,r,i),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return uue.call(this,"a")}toMarkup(){return due.call(this,"a")}},HLe=class{constructor(e,r,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=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e=''+ls(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=Jt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Jd(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="0&&(n+="margin-right:"+Jt(this.italic)+";"),n+=Zz(this.style),n&&(e=!0,r+=' style="'+ls(n)+'"');var i=ls(this.text);return e?(r+=">",r+=i,r+="",r):i}},b0=class{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i':''}},mM=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e=" but got "+String(t)+".")}var XLe=t=>t instanceof Pb||t instanceof Jw||t instanceof Mb,Hc={"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]}},cx={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]},LK={Å:"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 hue(t,e){Hc[t]=e}function Jz(t,e,r){if(!Hc[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),i=Hc[e][n];if(!i&&t[0]in LK&&(n=LK[t[0]].charCodeAt(0),i=Hc[e][n]),!i&&r==="text"&&oue(n)&&(i=Hc[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var R8={};function jLe(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!R8[e]){var r=R8[e]={cssEmPerMu:cx.quad[e]/18};for(var n in cx)cx.hasOwnProperty(n)&&(r[n]=cx[n][e])}return R8[e]}var di={math:{},text:{}};function W(t,e,r,n,i,a){di[t][i]={font:e,group:r,replace:n},a&&n&&(di[t][n]=di[t][i])}var ee="math",Pt="text",be="main",He="ams",mi="accent-token",cr="bin",js="close",Bb="inner",Ar="mathord",ca="op-token",qo="open",J4="punct",je="rel",U0="spacing",tt="textord";W(ee,be,je,"≡","\\equiv",!0);W(ee,be,je,"≺","\\prec",!0);W(ee,be,je,"≻","\\succ",!0);W(ee,be,je,"∼","\\sim",!0);W(ee,be,je,"⊥","\\perp");W(ee,be,je,"⪯","\\preceq",!0);W(ee,be,je,"⪰","\\succeq",!0);W(ee,be,je,"≃","\\simeq",!0);W(ee,be,je,"∣","\\mid",!0);W(ee,be,je,"≪","\\ll",!0);W(ee,be,je,"≫","\\gg",!0);W(ee,be,je,"≍","\\asymp",!0);W(ee,be,je,"∥","\\parallel");W(ee,be,je,"⋈","\\bowtie",!0);W(ee,be,je,"⌣","\\smile",!0);W(ee,be,je,"⊑","\\sqsubseteq",!0);W(ee,be,je,"⊒","\\sqsupseteq",!0);W(ee,be,je,"≐","\\doteq",!0);W(ee,be,je,"⌢","\\frown",!0);W(ee,be,je,"∋","\\ni",!0);W(ee,be,je,"∝","\\propto",!0);W(ee,be,je,"⊢","\\vdash",!0);W(ee,be,je,"⊣","\\dashv",!0);W(ee,be,je,"∋","\\owns");W(ee,be,J4,".","\\ldotp");W(ee,be,J4,"⋅","\\cdotp");W(ee,be,J4,"⋅","·");W(Pt,be,tt,"⋅","·");W(ee,be,tt,"#","\\#");W(Pt,be,tt,"#","\\#");W(ee,be,tt,"&","\\&");W(Pt,be,tt,"&","\\&");W(ee,be,tt,"ℵ","\\aleph",!0);W(ee,be,tt,"∀","\\forall",!0);W(ee,be,tt,"ℏ","\\hbar",!0);W(ee,be,tt,"∃","\\exists",!0);W(ee,be,tt,"∇","\\nabla",!0);W(ee,be,tt,"♭","\\flat",!0);W(ee,be,tt,"ℓ","\\ell",!0);W(ee,be,tt,"♮","\\natural",!0);W(ee,be,tt,"♣","\\clubsuit",!0);W(ee,be,tt,"℘","\\wp",!0);W(ee,be,tt,"♯","\\sharp",!0);W(ee,be,tt,"♢","\\diamondsuit",!0);W(ee,be,tt,"ℜ","\\Re",!0);W(ee,be,tt,"♡","\\heartsuit",!0);W(ee,be,tt,"ℑ","\\Im",!0);W(ee,be,tt,"♠","\\spadesuit",!0);W(ee,be,tt,"§","\\S",!0);W(Pt,be,tt,"§","\\S");W(ee,be,tt,"¶","\\P",!0);W(Pt,be,tt,"¶","\\P");W(ee,be,tt,"†","\\dag");W(Pt,be,tt,"†","\\dag");W(Pt,be,tt,"†","\\textdagger");W(ee,be,tt,"‡","\\ddag");W(Pt,be,tt,"‡","\\ddag");W(Pt,be,tt,"‡","\\textdaggerdbl");W(ee,be,js,"⎱","\\rmoustache",!0);W(ee,be,qo,"⎰","\\lmoustache",!0);W(ee,be,js,"⟯","\\rgroup",!0);W(ee,be,qo,"⟮","\\lgroup",!0);W(ee,be,cr,"∓","\\mp",!0);W(ee,be,cr,"⊖","\\ominus",!0);W(ee,be,cr,"⊎","\\uplus",!0);W(ee,be,cr,"⊓","\\sqcap",!0);W(ee,be,cr,"∗","\\ast");W(ee,be,cr,"⊔","\\sqcup",!0);W(ee,be,cr,"◯","\\bigcirc",!0);W(ee,be,cr,"∙","\\bullet",!0);W(ee,be,cr,"‡","\\ddagger");W(ee,be,cr,"≀","\\wr",!0);W(ee,be,cr,"⨿","\\amalg");W(ee,be,cr,"&","\\And");W(ee,be,je,"⟵","\\longleftarrow",!0);W(ee,be,je,"⇐","\\Leftarrow",!0);W(ee,be,je,"⟸","\\Longleftarrow",!0);W(ee,be,je,"⟶","\\longrightarrow",!0);W(ee,be,je,"⇒","\\Rightarrow",!0);W(ee,be,je,"⟹","\\Longrightarrow",!0);W(ee,be,je,"↔","\\leftrightarrow",!0);W(ee,be,je,"⟷","\\longleftrightarrow",!0);W(ee,be,je,"⇔","\\Leftrightarrow",!0);W(ee,be,je,"⟺","\\Longleftrightarrow",!0);W(ee,be,je,"↦","\\mapsto",!0);W(ee,be,je,"⟼","\\longmapsto",!0);W(ee,be,je,"↗","\\nearrow",!0);W(ee,be,je,"↩","\\hookleftarrow",!0);W(ee,be,je,"↪","\\hookrightarrow",!0);W(ee,be,je,"↘","\\searrow",!0);W(ee,be,je,"↼","\\leftharpoonup",!0);W(ee,be,je,"⇀","\\rightharpoonup",!0);W(ee,be,je,"↙","\\swarrow",!0);W(ee,be,je,"↽","\\leftharpoondown",!0);W(ee,be,je,"⇁","\\rightharpoondown",!0);W(ee,be,je,"↖","\\nwarrow",!0);W(ee,be,je,"⇌","\\rightleftharpoons",!0);W(ee,He,je,"≮","\\nless",!0);W(ee,He,je,"","\\@nleqslant");W(ee,He,je,"","\\@nleqq");W(ee,He,je,"⪇","\\lneq",!0);W(ee,He,je,"≨","\\lneqq",!0);W(ee,He,je,"","\\@lvertneqq");W(ee,He,je,"⋦","\\lnsim",!0);W(ee,He,je,"⪉","\\lnapprox",!0);W(ee,He,je,"⊀","\\nprec",!0);W(ee,He,je,"⋠","\\npreceq",!0);W(ee,He,je,"⋨","\\precnsim",!0);W(ee,He,je,"⪹","\\precnapprox",!0);W(ee,He,je,"≁","\\nsim",!0);W(ee,He,je,"","\\@nshortmid");W(ee,He,je,"∤","\\nmid",!0);W(ee,He,je,"⊬","\\nvdash",!0);W(ee,He,je,"⊭","\\nvDash",!0);W(ee,He,je,"⋪","\\ntriangleleft");W(ee,He,je,"⋬","\\ntrianglelefteq",!0);W(ee,He,je,"⊊","\\subsetneq",!0);W(ee,He,je,"","\\@varsubsetneq");W(ee,He,je,"⫋","\\subsetneqq",!0);W(ee,He,je,"","\\@varsubsetneqq");W(ee,He,je,"≯","\\ngtr",!0);W(ee,He,je,"","\\@ngeqslant");W(ee,He,je,"","\\@ngeqq");W(ee,He,je,"⪈","\\gneq",!0);W(ee,He,je,"≩","\\gneqq",!0);W(ee,He,je,"","\\@gvertneqq");W(ee,He,je,"⋧","\\gnsim",!0);W(ee,He,je,"⪊","\\gnapprox",!0);W(ee,He,je,"⊁","\\nsucc",!0);W(ee,He,je,"⋡","\\nsucceq",!0);W(ee,He,je,"⋩","\\succnsim",!0);W(ee,He,je,"⪺","\\succnapprox",!0);W(ee,He,je,"≆","\\ncong",!0);W(ee,He,je,"","\\@nshortparallel");W(ee,He,je,"∦","\\nparallel",!0);W(ee,He,je,"⊯","\\nVDash",!0);W(ee,He,je,"⋫","\\ntriangleright");W(ee,He,je,"⋭","\\ntrianglerighteq",!0);W(ee,He,je,"","\\@nsupseteqq");W(ee,He,je,"⊋","\\supsetneq",!0);W(ee,He,je,"","\\@varsupsetneq");W(ee,He,je,"⫌","\\supsetneqq",!0);W(ee,He,je,"","\\@varsupsetneqq");W(ee,He,je,"⊮","\\nVdash",!0);W(ee,He,je,"⪵","\\precneqq",!0);W(ee,He,je,"⪶","\\succneqq",!0);W(ee,He,je,"","\\@nsubseteqq");W(ee,He,cr,"⊴","\\unlhd");W(ee,He,cr,"⊵","\\unrhd");W(ee,He,je,"↚","\\nleftarrow",!0);W(ee,He,je,"↛","\\nrightarrow",!0);W(ee,He,je,"⇍","\\nLeftarrow",!0);W(ee,He,je,"⇏","\\nRightarrow",!0);W(ee,He,je,"↮","\\nleftrightarrow",!0);W(ee,He,je,"⇎","\\nLeftrightarrow",!0);W(ee,He,je,"△","\\vartriangle");W(ee,He,tt,"ℏ","\\hslash");W(ee,He,tt,"▽","\\triangledown");W(ee,He,tt,"◊","\\lozenge");W(ee,He,tt,"Ⓢ","\\circledS");W(ee,He,tt,"®","\\circledR");W(Pt,He,tt,"®","\\circledR");W(ee,He,tt,"∡","\\measuredangle",!0);W(ee,He,tt,"∄","\\nexists");W(ee,He,tt,"℧","\\mho");W(ee,He,tt,"Ⅎ","\\Finv",!0);W(ee,He,tt,"⅁","\\Game",!0);W(ee,He,tt,"‵","\\backprime");W(ee,He,tt,"▲","\\blacktriangle");W(ee,He,tt,"▼","\\blacktriangledown");W(ee,He,tt,"■","\\blacksquare");W(ee,He,tt,"⧫","\\blacklozenge");W(ee,He,tt,"★","\\bigstar");W(ee,He,tt,"∢","\\sphericalangle",!0);W(ee,He,tt,"∁","\\complement",!0);W(ee,He,tt,"ð","\\eth",!0);W(Pt,be,tt,"ð","ð");W(ee,He,tt,"╱","\\diagup");W(ee,He,tt,"╲","\\diagdown");W(ee,He,tt,"□","\\square");W(ee,He,tt,"□","\\Box");W(ee,He,tt,"◊","\\Diamond");W(ee,He,tt,"¥","\\yen",!0);W(Pt,He,tt,"¥","\\yen",!0);W(ee,He,tt,"✓","\\checkmark",!0);W(Pt,He,tt,"✓","\\checkmark");W(ee,He,tt,"ℶ","\\beth",!0);W(ee,He,tt,"ℸ","\\daleth",!0);W(ee,He,tt,"ℷ","\\gimel",!0);W(ee,He,tt,"ϝ","\\digamma",!0);W(ee,He,tt,"ϰ","\\varkappa");W(ee,He,qo,"┌","\\@ulcorner",!0);W(ee,He,js,"┐","\\@urcorner",!0);W(ee,He,qo,"└","\\@llcorner",!0);W(ee,He,js,"┘","\\@lrcorner",!0);W(ee,He,je,"≦","\\leqq",!0);W(ee,He,je,"⩽","\\leqslant",!0);W(ee,He,je,"⪕","\\eqslantless",!0);W(ee,He,je,"≲","\\lesssim",!0);W(ee,He,je,"⪅","\\lessapprox",!0);W(ee,He,je,"≊","\\approxeq",!0);W(ee,He,cr,"⋖","\\lessdot");W(ee,He,je,"⋘","\\lll",!0);W(ee,He,je,"≶","\\lessgtr",!0);W(ee,He,je,"⋚","\\lesseqgtr",!0);W(ee,He,je,"⪋","\\lesseqqgtr",!0);W(ee,He,je,"≑","\\doteqdot");W(ee,He,je,"≓","\\risingdotseq",!0);W(ee,He,je,"≒","\\fallingdotseq",!0);W(ee,He,je,"∽","\\backsim",!0);W(ee,He,je,"⋍","\\backsimeq",!0);W(ee,He,je,"⫅","\\subseteqq",!0);W(ee,He,je,"⋐","\\Subset",!0);W(ee,He,je,"⊏","\\sqsubset",!0);W(ee,He,je,"≼","\\preccurlyeq",!0);W(ee,He,je,"⋞","\\curlyeqprec",!0);W(ee,He,je,"≾","\\precsim",!0);W(ee,He,je,"⪷","\\precapprox",!0);W(ee,He,je,"⊲","\\vartriangleleft");W(ee,He,je,"⊴","\\trianglelefteq");W(ee,He,je,"⊨","\\vDash",!0);W(ee,He,je,"⊪","\\Vvdash",!0);W(ee,He,je,"⌣","\\smallsmile");W(ee,He,je,"⌢","\\smallfrown");W(ee,He,je,"≏","\\bumpeq",!0);W(ee,He,je,"≎","\\Bumpeq",!0);W(ee,He,je,"≧","\\geqq",!0);W(ee,He,je,"⩾","\\geqslant",!0);W(ee,He,je,"⪖","\\eqslantgtr",!0);W(ee,He,je,"≳","\\gtrsim",!0);W(ee,He,je,"⪆","\\gtrapprox",!0);W(ee,He,cr,"⋗","\\gtrdot");W(ee,He,je,"⋙","\\ggg",!0);W(ee,He,je,"≷","\\gtrless",!0);W(ee,He,je,"⋛","\\gtreqless",!0);W(ee,He,je,"⪌","\\gtreqqless",!0);W(ee,He,je,"≖","\\eqcirc",!0);W(ee,He,je,"≗","\\circeq",!0);W(ee,He,je,"≜","\\triangleq",!0);W(ee,He,je,"∼","\\thicksim");W(ee,He,je,"≈","\\thickapprox");W(ee,He,je,"⫆","\\supseteqq",!0);W(ee,He,je,"⋑","\\Supset",!0);W(ee,He,je,"⊐","\\sqsupset",!0);W(ee,He,je,"≽","\\succcurlyeq",!0);W(ee,He,je,"⋟","\\curlyeqsucc",!0);W(ee,He,je,"≿","\\succsim",!0);W(ee,He,je,"⪸","\\succapprox",!0);W(ee,He,je,"⊳","\\vartriangleright");W(ee,He,je,"⊵","\\trianglerighteq");W(ee,He,je,"⊩","\\Vdash",!0);W(ee,He,je,"∣","\\shortmid");W(ee,He,je,"∥","\\shortparallel");W(ee,He,je,"≬","\\between",!0);W(ee,He,je,"⋔","\\pitchfork",!0);W(ee,He,je,"∝","\\varpropto");W(ee,He,je,"◀","\\blacktriangleleft");W(ee,He,je,"∴","\\therefore",!0);W(ee,He,je,"∍","\\backepsilon");W(ee,He,je,"▶","\\blacktriangleright");W(ee,He,je,"∵","\\because",!0);W(ee,He,je,"⋘","\\llless");W(ee,He,je,"⋙","\\gggtr");W(ee,He,cr,"⊲","\\lhd");W(ee,He,cr,"⊳","\\rhd");W(ee,He,je,"≂","\\eqsim",!0);W(ee,be,je,"⋈","\\Join");W(ee,He,je,"≑","\\Doteq",!0);W(ee,He,cr,"∔","\\dotplus",!0);W(ee,He,cr,"∖","\\smallsetminus");W(ee,He,cr,"⋒","\\Cap",!0);W(ee,He,cr,"⋓","\\Cup",!0);W(ee,He,cr,"⩞","\\doublebarwedge",!0);W(ee,He,cr,"⊟","\\boxminus",!0);W(ee,He,cr,"⊞","\\boxplus",!0);W(ee,He,cr,"⋇","\\divideontimes",!0);W(ee,He,cr,"⋉","\\ltimes",!0);W(ee,He,cr,"⋊","\\rtimes",!0);W(ee,He,cr,"⋋","\\leftthreetimes",!0);W(ee,He,cr,"⋌","\\rightthreetimes",!0);W(ee,He,cr,"⋏","\\curlywedge",!0);W(ee,He,cr,"⋎","\\curlyvee",!0);W(ee,He,cr,"⊝","\\circleddash",!0);W(ee,He,cr,"⊛","\\circledast",!0);W(ee,He,cr,"⋅","\\centerdot");W(ee,He,cr,"⊺","\\intercal",!0);W(ee,He,cr,"⋒","\\doublecap");W(ee,He,cr,"⋓","\\doublecup");W(ee,He,cr,"⊠","\\boxtimes",!0);W(ee,He,je,"⇢","\\dashrightarrow",!0);W(ee,He,je,"⇠","\\dashleftarrow",!0);W(ee,He,je,"⇇","\\leftleftarrows",!0);W(ee,He,je,"⇆","\\leftrightarrows",!0);W(ee,He,je,"⇚","\\Lleftarrow",!0);W(ee,He,je,"↞","\\twoheadleftarrow",!0);W(ee,He,je,"↢","\\leftarrowtail",!0);W(ee,He,je,"↫","\\looparrowleft",!0);W(ee,He,je,"⇋","\\leftrightharpoons",!0);W(ee,He,je,"↶","\\curvearrowleft",!0);W(ee,He,je,"↺","\\circlearrowleft",!0);W(ee,He,je,"↰","\\Lsh",!0);W(ee,He,je,"⇈","\\upuparrows",!0);W(ee,He,je,"↿","\\upharpoonleft",!0);W(ee,He,je,"⇃","\\downharpoonleft",!0);W(ee,be,je,"⊶","\\origof",!0);W(ee,be,je,"⊷","\\imageof",!0);W(ee,He,je,"⊸","\\multimap",!0);W(ee,He,je,"↭","\\leftrightsquigarrow",!0);W(ee,He,je,"⇉","\\rightrightarrows",!0);W(ee,He,je,"⇄","\\rightleftarrows",!0);W(ee,He,je,"↠","\\twoheadrightarrow",!0);W(ee,He,je,"↣","\\rightarrowtail",!0);W(ee,He,je,"↬","\\looparrowright",!0);W(ee,He,je,"↷","\\curvearrowright",!0);W(ee,He,je,"↻","\\circlearrowright",!0);W(ee,He,je,"↱","\\Rsh",!0);W(ee,He,je,"⇊","\\downdownarrows",!0);W(ee,He,je,"↾","\\upharpoonright",!0);W(ee,He,je,"⇂","\\downharpoonright",!0);W(ee,He,je,"⇝","\\rightsquigarrow",!0);W(ee,He,je,"⇝","\\leadsto");W(ee,He,je,"⇛","\\Rrightarrow",!0);W(ee,He,je,"↾","\\restriction");W(ee,be,tt,"‘","`");W(ee,be,tt,"$","\\$");W(Pt,be,tt,"$","\\$");W(Pt,be,tt,"$","\\textdollar");W(ee,be,tt,"%","\\%");W(Pt,be,tt,"%","\\%");W(ee,be,tt,"_","\\_");W(Pt,be,tt,"_","\\_");W(Pt,be,tt,"_","\\textunderscore");W(ee,be,tt,"∠","\\angle",!0);W(ee,be,tt,"∞","\\infty",!0);W(ee,be,tt,"′","\\prime");W(ee,be,tt,"△","\\triangle");W(ee,be,tt,"Γ","\\Gamma",!0);W(ee,be,tt,"Δ","\\Delta",!0);W(ee,be,tt,"Θ","\\Theta",!0);W(ee,be,tt,"Λ","\\Lambda",!0);W(ee,be,tt,"Ξ","\\Xi",!0);W(ee,be,tt,"Π","\\Pi",!0);W(ee,be,tt,"Σ","\\Sigma",!0);W(ee,be,tt,"Υ","\\Upsilon",!0);W(ee,be,tt,"Φ","\\Phi",!0);W(ee,be,tt,"Ψ","\\Psi",!0);W(ee,be,tt,"Ω","\\Omega",!0);W(ee,be,tt,"A","Α");W(ee,be,tt,"B","Β");W(ee,be,tt,"E","Ε");W(ee,be,tt,"Z","Ζ");W(ee,be,tt,"H","Η");W(ee,be,tt,"I","Ι");W(ee,be,tt,"K","Κ");W(ee,be,tt,"M","Μ");W(ee,be,tt,"N","Ν");W(ee,be,tt,"O","Ο");W(ee,be,tt,"P","Ρ");W(ee,be,tt,"T","Τ");W(ee,be,tt,"X","Χ");W(ee,be,tt,"¬","\\neg",!0);W(ee,be,tt,"¬","\\lnot");W(ee,be,tt,"⊤","\\top");W(ee,be,tt,"⊥","\\bot");W(ee,be,tt,"∅","\\emptyset");W(ee,He,tt,"∅","\\varnothing");W(ee,be,Ar,"α","\\alpha",!0);W(ee,be,Ar,"β","\\beta",!0);W(ee,be,Ar,"γ","\\gamma",!0);W(ee,be,Ar,"δ","\\delta",!0);W(ee,be,Ar,"ϵ","\\epsilon",!0);W(ee,be,Ar,"ζ","\\zeta",!0);W(ee,be,Ar,"η","\\eta",!0);W(ee,be,Ar,"θ","\\theta",!0);W(ee,be,Ar,"ι","\\iota",!0);W(ee,be,Ar,"κ","\\kappa",!0);W(ee,be,Ar,"λ","\\lambda",!0);W(ee,be,Ar,"μ","\\mu",!0);W(ee,be,Ar,"ν","\\nu",!0);W(ee,be,Ar,"ξ","\\xi",!0);W(ee,be,Ar,"ο","\\omicron",!0);W(ee,be,Ar,"π","\\pi",!0);W(ee,be,Ar,"ρ","\\rho",!0);W(ee,be,Ar,"σ","\\sigma",!0);W(ee,be,Ar,"τ","\\tau",!0);W(ee,be,Ar,"υ","\\upsilon",!0);W(ee,be,Ar,"ϕ","\\phi",!0);W(ee,be,Ar,"χ","\\chi",!0);W(ee,be,Ar,"ψ","\\psi",!0);W(ee,be,Ar,"ω","\\omega",!0);W(ee,be,Ar,"ε","\\varepsilon",!0);W(ee,be,Ar,"ϑ","\\vartheta",!0);W(ee,be,Ar,"ϖ","\\varpi",!0);W(ee,be,Ar,"ϱ","\\varrho",!0);W(ee,be,Ar,"ς","\\varsigma",!0);W(ee,be,Ar,"φ","\\varphi",!0);W(ee,be,cr,"∗","*",!0);W(ee,be,cr,"+","+");W(ee,be,cr,"−","-",!0);W(ee,be,cr,"⋅","\\cdot",!0);W(ee,be,cr,"∘","\\circ",!0);W(ee,be,cr,"÷","\\div",!0);W(ee,be,cr,"±","\\pm",!0);W(ee,be,cr,"×","\\times",!0);W(ee,be,cr,"∩","\\cap",!0);W(ee,be,cr,"∪","\\cup",!0);W(ee,be,cr,"∖","\\setminus",!0);W(ee,be,cr,"∧","\\land");W(ee,be,cr,"∨","\\lor");W(ee,be,cr,"∧","\\wedge",!0);W(ee,be,cr,"∨","\\vee",!0);W(ee,be,tt,"√","\\surd");W(ee,be,qo,"⟨","\\langle",!0);W(ee,be,qo,"∣","\\lvert");W(ee,be,qo,"∥","\\lVert");W(ee,be,js,"?","?");W(ee,be,js,"!","!");W(ee,be,js,"⟩","\\rangle",!0);W(ee,be,js,"∣","\\rvert");W(ee,be,js,"∥","\\rVert");W(ee,be,je,"=","=");W(ee,be,je,":",":");W(ee,be,je,"≈","\\approx",!0);W(ee,be,je,"≅","\\cong",!0);W(ee,be,je,"≥","\\ge");W(ee,be,je,"≥","\\geq",!0);W(ee,be,je,"←","\\gets");W(ee,be,je,">","\\gt",!0);W(ee,be,je,"∈","\\in",!0);W(ee,be,je,"","\\@not");W(ee,be,je,"⊂","\\subset",!0);W(ee,be,je,"⊃","\\supset",!0);W(ee,be,je,"⊆","\\subseteq",!0);W(ee,be,je,"⊇","\\supseteq",!0);W(ee,He,je,"⊈","\\nsubseteq",!0);W(ee,He,je,"⊉","\\nsupseteq",!0);W(ee,be,je,"⊨","\\models");W(ee,be,je,"←","\\leftarrow",!0);W(ee,be,je,"≤","\\le");W(ee,be,je,"≤","\\leq",!0);W(ee,be,je,"<","\\lt",!0);W(ee,be,je,"→","\\rightarrow",!0);W(ee,be,je,"→","\\to");W(ee,He,je,"≱","\\ngeq",!0);W(ee,He,je,"≰","\\nleq",!0);W(ee,be,U0," ","\\ ");W(ee,be,U0," ","\\space");W(ee,be,U0," ","\\nobreakspace");W(Pt,be,U0," ","\\ ");W(Pt,be,U0," "," ");W(Pt,be,U0," ","\\space");W(Pt,be,U0," ","\\nobreakspace");W(ee,be,U0,"","\\nobreak");W(ee,be,U0,"","\\allowbreak");W(ee,be,J4,",",",");W(ee,be,J4,";",";");W(ee,He,cr,"⊼","\\barwedge",!0);W(ee,He,cr,"⊻","\\veebar",!0);W(ee,be,cr,"⊙","\\odot",!0);W(ee,be,cr,"⊕","\\oplus",!0);W(ee,be,cr,"⊗","\\otimes",!0);W(ee,be,tt,"∂","\\partial",!0);W(ee,be,cr,"⊘","\\oslash",!0);W(ee,He,cr,"⊚","\\circledcirc",!0);W(ee,He,cr,"⊡","\\boxdot",!0);W(ee,be,cr,"△","\\bigtriangleup");W(ee,be,cr,"▽","\\bigtriangledown");W(ee,be,cr,"†","\\dagger");W(ee,be,cr,"⋄","\\diamond");W(ee,be,cr,"⋆","\\star");W(ee,be,cr,"◃","\\triangleleft");W(ee,be,cr,"▹","\\triangleright");W(ee,be,qo,"{","\\{");W(Pt,be,tt,"{","\\{");W(Pt,be,tt,"{","\\textbraceleft");W(ee,be,js,"}","\\}");W(Pt,be,tt,"}","\\}");W(Pt,be,tt,"}","\\textbraceright");W(ee,be,qo,"{","\\lbrace");W(ee,be,js,"}","\\rbrace");W(ee,be,qo,"[","\\lbrack",!0);W(Pt,be,tt,"[","\\lbrack",!0);W(ee,be,js,"]","\\rbrack",!0);W(Pt,be,tt,"]","\\rbrack",!0);W(ee,be,qo,"(","\\lparen",!0);W(ee,be,js,")","\\rparen",!0);W(Pt,be,tt,"<","\\textless",!0);W(Pt,be,tt,">","\\textgreater",!0);W(ee,be,qo,"⌊","\\lfloor",!0);W(ee,be,js,"⌋","\\rfloor",!0);W(ee,be,qo,"⌈","\\lceil",!0);W(ee,be,js,"⌉","\\rceil",!0);W(ee,be,tt,"\\","\\backslash");W(ee,be,tt,"∣","|");W(ee,be,tt,"∣","\\vert");W(Pt,be,tt,"|","\\textbar",!0);W(ee,be,tt,"∥","\\|");W(ee,be,tt,"∥","\\Vert");W(Pt,be,tt,"∥","\\textbardbl");W(Pt,be,tt,"~","\\textasciitilde");W(Pt,be,tt,"\\","\\textbackslash");W(Pt,be,tt,"^","\\textasciicircum");W(ee,be,je,"↑","\\uparrow",!0);W(ee,be,je,"⇑","\\Uparrow",!0);W(ee,be,je,"↓","\\downarrow",!0);W(ee,be,je,"⇓","\\Downarrow",!0);W(ee,be,je,"↕","\\updownarrow",!0);W(ee,be,je,"⇕","\\Updownarrow",!0);W(ee,be,ca,"∐","\\coprod");W(ee,be,ca,"⋁","\\bigvee");W(ee,be,ca,"⋀","\\bigwedge");W(ee,be,ca,"⨄","\\biguplus");W(ee,be,ca,"⋂","\\bigcap");W(ee,be,ca,"⋃","\\bigcup");W(ee,be,ca,"∫","\\int");W(ee,be,ca,"∫","\\intop");W(ee,be,ca,"∬","\\iint");W(ee,be,ca,"∭","\\iiint");W(ee,be,ca,"∏","\\prod");W(ee,be,ca,"∑","\\sum");W(ee,be,ca,"⨂","\\bigotimes");W(ee,be,ca,"⨁","\\bigoplus");W(ee,be,ca,"⨀","\\bigodot");W(ee,be,ca,"∮","\\oint");W(ee,be,ca,"∯","\\oiint");W(ee,be,ca,"∰","\\oiiint");W(ee,be,ca,"⨆","\\bigsqcup");W(ee,be,ca,"∫","\\smallint");W(Pt,be,Bb,"…","\\textellipsis");W(ee,be,Bb,"…","\\mathellipsis");W(Pt,be,Bb,"…","\\ldots",!0);W(ee,be,Bb,"…","\\ldots",!0);W(ee,be,Bb,"⋯","\\@cdots",!0);W(ee,be,Bb,"⋱","\\ddots",!0);W(ee,be,tt,"⋮","\\varvdots");W(Pt,be,tt,"⋮","\\varvdots");W(ee,be,mi,"ˊ","\\acute");W(ee,be,mi,"ˋ","\\grave");W(ee,be,mi,"¨","\\ddot");W(ee,be,mi,"~","\\tilde");W(ee,be,mi,"ˉ","\\bar");W(ee,be,mi,"˘","\\breve");W(ee,be,mi,"ˇ","\\check");W(ee,be,mi,"^","\\hat");W(ee,be,mi,"⃗","\\vec");W(ee,be,mi,"˙","\\dot");W(ee,be,mi,"˚","\\mathring");W(ee,be,Ar,"","\\@imath");W(ee,be,Ar,"","\\@jmath");W(ee,be,tt,"ı","ı");W(ee,be,tt,"ȷ","ȷ");W(Pt,be,tt,"ı","\\i",!0);W(Pt,be,tt,"ȷ","\\j",!0);W(Pt,be,tt,"ß","\\ss",!0);W(Pt,be,tt,"æ","\\ae",!0);W(Pt,be,tt,"œ","\\oe",!0);W(Pt,be,tt,"ø","\\o",!0);W(Pt,be,tt,"Æ","\\AE",!0);W(Pt,be,tt,"Œ","\\OE",!0);W(Pt,be,tt,"Ø","\\O",!0);W(Pt,be,mi,"ˊ","\\'");W(Pt,be,mi,"ˋ","\\`");W(Pt,be,mi,"ˆ","\\^");W(Pt,be,mi,"˜","\\~");W(Pt,be,mi,"ˉ","\\=");W(Pt,be,mi,"˘","\\u");W(Pt,be,mi,"˙","\\.");W(Pt,be,mi,"¸","\\c");W(Pt,be,mi,"˚","\\r");W(Pt,be,mi,"ˇ","\\v");W(Pt,be,mi,"¨",'\\"');W(Pt,be,mi,"˝","\\H");W(Pt,be,mi,"◯","\\textcircled");var fue={"--":!0,"---":!0,"``":!0,"''":!0};W(Pt,be,tt,"–","--",!0);W(Pt,be,tt,"–","\\textendash");W(Pt,be,tt,"—","---",!0);W(Pt,be,tt,"—","\\textemdash");W(Pt,be,tt,"‘","`",!0);W(Pt,be,tt,"‘","\\textquoteleft");W(Pt,be,tt,"’","'",!0);W(Pt,be,tt,"’","\\textquoteright");W(Pt,be,tt,"“","``",!0);W(Pt,be,tt,"“","\\textquotedblleft");W(Pt,be,tt,"”","''",!0);W(Pt,be,tt,"”","\\textquotedblright");W(ee,be,tt,"°","\\degree",!0);W(Pt,be,tt,"°","\\degree");W(Pt,be,tt,"°","\\textdegree",!0);W(ee,be,tt,"£","\\pounds");W(ee,be,tt,"£","\\mathsterling",!0);W(Pt,be,tt,"£","\\pounds");W(Pt,be,tt,"£","\\textsterling",!0);W(ee,He,tt,"✠","\\maltese");W(Pt,He,tt,"✠","\\maltese");var MK='0123456789/@."';for(var N8=0;N8{var e=t.charCodeAt(0),r=t.charCodeAt(1),n=(e-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return HK[i]}else if(120782<=n&&n<=120831){var a=Math.floor((n-120782)/10);return ZLe[a]}else{if(n===120485||n===120486)return HK[0];if(120486{if(Jd(t.classes)!==Jd(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var i of Object.keys(e.style))if(t.style[i]!==e.style[i])return!1;return!0},pue=t=>{for(var e=0;er&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=i},zt=function(e,r,n,i){var a=new Pb(e,r,n,i);return tU(a),a},th=(t,e,r,n)=>new Pb(t,e,r,n),G_=function(e,r,n){var i=zt([e],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=Jt(i.height),i.maxFontSize=1,i},rMe=function(e,r,n,i){var a=new Jw(e,r,n,i);return tU(a),a},G0=function(e){var r=new Mb(e);return tU(r),r},q_=function(e,r){return e instanceof Mb?zt([],[e],r):e},nMe=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s{var r=zt(["mspace"],[],e),n=wi(t,e);return r.style.marginRight=Jt(n),r},hx=(t,e,r)=>{var n,i;switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}return e==="textbf"&&r==="textit"?i="BoldItalic":e==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",n+"-"+i},SM={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"}},mue={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},yue=function(e,r){var[n,i,a]=mue[e],s=new eh(n),o=new b0([s],{width:Jt(i),height:Jt(a),style:"width:"+Jt(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=th(["overlay"],[o],r);return l.height=a,l.style.height=Jt(a),l.style.width=Jt(i),l},Ti={number:3,unit:"mu"},Jh={number:4,unit:"mu"},Mu={number:5,unit:"mu"},iMe={mord:{mop:Ti,mbin:Jh,mrel:Mu,minner:Ti},mop:{mord:Ti,mop:Ti,mrel:Mu,minner:Ti},mbin:{mord:Jh,mop:Jh,mopen:Jh,minner:Jh},mrel:{mord:Mu,mop:Mu,mopen:Mu,minner:Mu},mopen:{},mclose:{mop:Ti,mbin:Jh,mrel:Mu,minner:Ti},mpunct:{mord:Ti,mop:Ti,mrel:Mu,mopen:Ti,mclose:Ti,mpunct:Ti,minner:Ti},minner:{mord:Ti,mop:Ti,mbin:Jh,mrel:Mu,mopen:Ti,mpunct:Ti,minner:Ti}},aMe={mord:{mop:Ti},mop:{mord:Ti,mop:Ti},mbin:{},mrel:{},mopen:{},mclose:{mop:Ti},mpunct:{},minner:{mop:Ti}},vue={},RS={},NS={};function ar(t){for(var{type:e,names:r,htmlBuilder:n,mathmlBuilder:i}=t,a=0;a{var y=m.classes[0],v=g.classes[0];y==="mbin"&&oMe.has(v)?m.classes[0]="mord":v==="mbin"&&sMe.has(y)&&(g.classes[0]="mord")},{node:h},f,p),TM(a,(g,m)=>{var y,v,b=CM(m),_=CM(g),E=b&&_?g.hasClass("mtight")?(y=aMe[b])==null?void 0:y[_]:(v=iMe[b])==null?void 0:v[_]:null;if(E)return gue(E,u)},{node:h},f,p),a},TM=function(e,r,n,i,a){i&&e.push(i);for(var s=0;sf=>{e.splice(h+1,0,f),s++})(s)}i&&e.pop()},_ue=function(e){return e instanceof Mb||e instanceof Jw||e instanceof Pb&&e.hasClass("enclosing")?e:null},xM=function(e,r){var n=_ue(e);if(n){var i=n.children;if(i.length){if(r==="right")return xM(i[i.length-1],"right");if(r==="left")return xM(i[0],"left")}}return e},CM=function(e,r){if(!e)return null;r&&(e=xM(e,r));var n=e.classes[0];return cMe[n]||null},IS=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return zt(r.concat(n))},An=function(e,r,n){if(!e)return zt();if(RS[e.type]){var i=RS[e.type](e,r);if(n&&r.size!==n.size){i=zt(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Vt("Got group of unknown type: '"+e.type+"'")};function fx(t,e){var r=zt(["base"],t,e),n=zt(["strut"]);return n.style.height=Jt(r.height+r.depth),r.depth&&(n.style.verticalAlign=Jt(-r.depth)),r.children.unshift(n),r}function wM(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=Ca(t,e,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],s=[],o=0;o0&&(a.push(fx(s,e)),s=[]),a.push(n[o]));s.length>0&&a.push(fx(s,e));var u;r?(u=fx(Ca(r,e,!0),e),u.classes=["tag"],a.push(u)):i&&a.push(i);var d=zt(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),u){var h=u.children[0];h.style.height=Jt(d.height+d.depth),d.depth&&(h.style.verticalAlign=Jt(-d.depth))}return d}function bue(t){return new Mb(t)}let Ht=class{constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&e.setAttribute(r,this.attributes[r]);this.classes.length>0&&(e.className=Jd(this.classes));for(var n=0;n0&&(e+=' class ="'+ls(Jd(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}},ra=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ls(this.toText())}toText(){return this.text}},Eue=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",Jt(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}};var uMe=new Set(["\\imath","\\jmath"]),dMe=new Set(["mrow","mtable"]),wl=function(e,r,n){return di[r][e]&&di[r][e].replace&&e.charCodeAt(0)!==55349&&!(fue.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=di[r][e].replace),new ra(e)},rU=function(e){return e.length===1?e[0]:new Ht("mrow",e)},hMe={mathit:"italic",boldsymbol:t=>t.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},nU=(t,e)=>{if(t.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var r=e.font;if(!r||r==="mathnormal")return null;var n=t.mode,i=hMe[r];if(i)return typeof i=="function"?i(t):i;var a=t.text;if(uMe.has(a))return null;if(di[n][a]){var s=di[n][a].replace;s&&(a=s)}var o=SM[r].fontName;return Jz(a,o,n)?SM[r].variant:null};function L8(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof ra&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof ra&&r.text===","}else return!1}var Yo=function(e,r,n){if(e.length===1){var i=$n(e[0],r);return n&&i instanceof Ht&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||L8(s))){var u=l.children[0];u instanceof Ht&&u.type==="mn"&&(u.children=[...s.children,...u.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof ra&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof ra&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),a.pop())}}}a.push(l),s=l}return a},rh=function(e,r,n){return rU(Yo(e,r,n))},$n=function(e,r){if(!e)return new Ht("mrow");if(NS[e.type])return NS[e.type](e,r);throw new Vt("Got group of unknown type: '"+e.type+"'")};function VK(t,e,r,n,i){var a=Yo(t,r),s;a.length===1&&a[0]instanceof Ht&&dMe.has(a[0].type)?s=a[0]:s=new Ht("mrow",a);var o=new Ht("annotation",[new ra(e)]);o.setAttribute("encoding","application/x-tex");var l=new Ht("semantics",[s,o]),u=new Ht("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var d=i?"katex":"katex-mathml";return zt([d],[u])}var fMe=[[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]],WK=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],KK=function(e,r){return r.size<2?e:fMe[e-1][r.size-1]};let Sue=class vf{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||vf.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=WK[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={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};return Object.assign(r,e),new vf(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:KK(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:WK[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=KK(vf.BASESIZE,e);return this.size===r&&this.textSize===vf.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var 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!==vf.BASESIZE?["sizing","reset-size"+this.size,"size"+vf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=jLe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Sue.BASESIZE=6;var Tue=function(e){return new Sue({style:e.displayMode?Xr.DISPLAY:Xr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},xue=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=zt(n,[e])}return e},pMe=function(e,r,n){var i=Tue(n),a;if(n.output==="mathml")return VK(e,r,i,n.displayMode,!0);if(n.output==="html"){var s=wM(e,i);a=zt(["katex"],[s])}else{var o=VK(e,r,i,n.displayMode,!1),l=wM(e,i);a=zt(["katex"],[o,l])}return xue(a,n)},gMe=function(e,r,n){var i=Tue(n),a=wM(e,i),s=zt(["katex"],[a]);return xue(s,n)},mMe={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",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":"="},rk=function(e){var r=new Ht("mo",[new ra(mMe[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},yMe={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],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],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]},vMe=new Set(["widehat","widecheck","widetilde","utilde"]),nk=function(e,r){function n(){var o=4e5,l=e.label.slice(1);if(vMe.has(l)&&"base"in e){var u=e.base.type==="ordgroup"?e.base.body.length:1,d,h,f;if(u>5)l==="widehat"||l==="widecheck"?(d=420,o=2364,f=.42,h=l+"4"):(d=312,o=2340,f=.34,h="tilde4");else{var p=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][p],d=[0,239,300,360,420][p],f=[0,.24,.3,.3,.36,.42][p],h=l+p):(o=[0,600,1033,2339,2340][p],d=[0,260,286,306,312][p],f=[0,.26,.286,.3,.306,.34][p],h="tilde"+p)}var g=new eh(h),m=new b0([g],{width:"100%",height:Jt(f),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:th([],[m],r),minWidth:0,height:f}}else{var y=[],v=yMe[l];if(!v)throw new Error('No SVG data for "'+l+'".');var[b,_,E]=v,x=E/1e3,C=b.length,T,w;if(C===1){if(v.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+l+'".');T=["hide-tail"],w=[v[3]]}else if(C===2)T=["halfarrow-left","halfarrow-right"],w=["xMinYMin","xMaxYMin"];else if(C===3)T=["brace-left","brace-center","brace-right"],w=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+C+" children.");for(var N=0;N0&&(i.style.minWidth=Jt(a)),i},_Me=function(e,r,n,i,a){var s,o=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=zt(["stretchy",r],[],a),r==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new mM({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new mM({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new b0(u,{width:"100%",height:Jt(o)});s=th([],[d],a)}return s.height=o,s.style.height=Jt(o),s},bMe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},EMe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function SMe(t){return t in bMe}function Jr(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function ik(t){var e=ak(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function ak(t){return t&&(t.type==="atom"||EMe.hasOwnProperty(t.type))?t:null}var Cue=t=>{if(t instanceof Po)return t;if(XLe(t)&&t.children.length===1)return Cue(t.children[0])},wue=(t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=Jr(t.base,"accent"),r=n.base,t.base=r,i=KLe(An(t,e)),t.base=n):(n=Jr(t,"accent"),r=n.base);var a=An(r,e.havingCrampedStyle()),s=n.isShifty&&z0(r),o=0;if(s){var l,u;o=(l=(u=Cue(a))==null?void 0:u.skew)!=null?l:0}var d=n.label==="\\c",h=d?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=nk(n,e),f=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Jt(2*o)+")",marginLeft:Jt(2*o)}:void 0}]});else{var p,g;n.label==="\\vec"?(p=yue("vec",e),g=mue.vec[1]):(p=tk({type:"textord",mode:n.mode,text:n.label},e),p=WLe(p),p.italic=0,g=p.width,d&&(h+=p.depth)),f=zt(["accent-body"],[p]);var m=n.label==="\\textcircled";m&&(f.classes.push("accent-full"),h=a.height);var y=o;m||(y-=g/2),f.style.left=Jt(y),n.label==="\\textcircled"&&(f.style.top=".2em"),f=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:f}]})}var v=zt(["mord","accent"],[f],e);return i?(i.children[0]=v,i.height=Math.max(v.height,i.height),i.classes[0]="mord",i):v},TMe=(t,e)=>{var r=t.isStretchy?rk(t.label):new Ht("mo",[wl(t.label,t.mode)]),n=new Ht("mover",[$n(t.base,e),r]);return n.setAttribute("accent","true"),n},xMe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));ar({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"],numArgs:1,handler:(t,e)=>{var r=yC(e[0]),n=!xMe.test(t.funcName),i=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:wue,mathmlBuilder:TMe});ar({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}}});ar({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(t,e)=>{var r=An(t.base,e),n=nk(t,e),i=t.label==="\\utilde"?.12:0,a=Cn({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return zt(["mord","accentunder"],[a],e)},mathmlBuilder:(t,e)=>{var r=rk(t.label),n=new Ht("munder",[$n(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var px=t=>{var e=new Ht("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};ar({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"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var{parser:n,funcName:i}=t;return{type:"xArrow",mode:n.mode,label:i,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),i=q_(An(t.body,n,e),e),a=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=q_(An(t.below,n,e),e),s.classes.push(a+"-arrow-pad"));var o=nk(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(u-=i.depth);var d;if(s){var h=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=Cn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:h}]})}else d=Cn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]}]});return zt(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var r=rk(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var i=px($n(t.body,e));if(t.below){var a=px($n(t.below,e));n=new Ht("munderover",[r,a,i])}else n=new Ht("mover",[r,i])}else if(t.below){var s=px($n(t.below,e));n=new Ht("munder",[r,s])}else n=px(),n=new Ht("mover",[r,n]);return n}});function CMe(t,e){var r=Ca(t.body,e,!0);return zt([t.mclass],r,e)}function wMe(t,e){var r,n=Yo(t.body,e);return t.mclass==="minner"?r=new Ht("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new Ht("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new Ht("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):(t.mclass==="mopen"||t.mclass==="mclose")&&(r.attributes.lspace="0em",r.attributes.rspace="0em")),r}ar({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:ta(i),isCharacterBox:z0(i)}},htmlBuilder:CMe,mathmlBuilder:wMe});var sk=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};ar({type:"mclass",names:["\\@binrel"],numArgs:2,handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:sk(e[0]),body:ta(e[1]),isCharacterBox:z0(e[1])}}});ar({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(t,e){var{parser:r,funcName:n}=t,i=e[1],a=e[0],s;n!=="\\stackrel"?s=sk(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:ta(i)},l=n==="\\underset"?{type:"supsub",mode:a.mode,base:o,sub:a}:{type:"supsub",mode:a.mode,base:o,sup:a};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:z0(l)}}});ar({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:sk(e[0]),body:ta(e[0])}},htmlBuilder(t,e){var r=Ca(t.body,e,!0),n=zt([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=Yo(t.body,e),n=new Ht("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var kMe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},XK=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),jK=t=>t.type==="textord"&&t.text==="@",AMe=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function RMe(t,e,r){var n=kMe[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[e[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function NMe(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new Vt("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],i=[n],a=0;aAV".includes(u))for(var h=0;h<2;h++){for(var f=!0,p=l+1;pAV=|." after @',s[l]);var g=RMe(u,d,t),m={type:"styling",body:[g],mode:"math",style:"display",resetFont:!0};n.push(m),o=XK()}a%2===0?n.push(o):n.shift(),n=[],i.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var y=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:y,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ar({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(t,e){var{parser:r,funcName:n}=t;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=q_(An(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=Jt(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new Ht("mrow",[$n(t.label,e)]);return r=new Ht("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Ht("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ar({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(t,e){var{parser:r}=t;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=q_(An(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Ht("mrow",[$n(t.fragment,e)])}});ar({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(t,e){for(var{parser:r}=t,n=Jr(e[0],"ordgroup"),i=n.body,a="",s=0;s=1114111)throw new Vt("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var IMe=(t,e)=>{var r=Ca(t.body,e.withColor(t.color),!1);return G0(r)},OMe=(t,e)=>{var r=Yo(t.body,e.withColor(t.color)),n=new Ht("mstyle",r);return n.setAttribute("mathcolor",t.color),n};ar({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(t,e){var{parser:r}=t,n=Jr(e[0],"color-token").color,i=e[1];return{type:"color",mode:r.mode,color:n,body:ta(i)}},htmlBuilder:IMe,mathmlBuilder:OMe});ar({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(t,e){var{parser:r,breakOnTokenText:n}=t,i=Jr(e[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}}});ar({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(t,e,r){var{parser:n}=t,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&Jr(i,"size").value}},htmlBuilder(t,e){var r=zt(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=Jt(wi(t.size,e)))),r},mathmlBuilder(t,e){var r=new Ht("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",Jt(wi(t.size,e)))),r}});var kM={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},kue=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Vt("Expected a control sequence",t);return e},DMe=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},Aue=(t,e,r,n)=>{var i=t.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,i,n)};ar({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(t){var{parser:e,funcName:r}=t;e.consumeSpaces();var n=e.fetch();if(kM[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=kM[n.text]),Jr(e.parseFunction(),"internal");throw new Vt("Invalid token after macro prefix",n)}});ar({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var{parser:e,funcName:r}=t,n=e.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Vt("Expected a control sequence",n);for(var a=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[a].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Vt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new Vt('Argument number "'+n.text+'" out of order');a++,o.push([])}else{if(n.text==="EOF")throw new Vt("Expected a macro definition");o[a].push(n.text)}var{tokens:l}=e.gullet.consumeArg();return s&&l.unshift(s),(r==="\\edef"||r==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},r===kM[r]),{type:"internal",mode:e.mode}}});ar({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var{parser:e,funcName:r}=t,n=kue(e.gullet.popToken());e.gullet.consumeSpaces();var i=DMe(e);return Aue(e,n,i,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});ar({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var{parser:e,funcName:r}=t,n=kue(e.gullet.popToken()),i=e.gullet.popToken(),a=e.gullet.popToken();return Aue(e,n,a,r==="\\\\globalfuture"),e.gullet.pushToken(a),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var aE=function(e,r,n){var i=di.math[e]&&di.math[e].replace,a=Jz(i||e,r,n);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return a},iU=function(e,r,n,i){var a=n.havingBaseStyle(r),s=zt(i.concat(a.sizingClasses(n)),[e],n),o=a.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},Rue=function(e,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Jt(a),e.height-=a,e.depth+=a},LMe=function(e,r,n,i,a,s){var o=ks(e,"Main-Regular",a,i),l=iU(o,r,i,s);return Rue(l,i,r),l},MMe=function(e,r,n,i){return ks(e,"Size"+r+"-Regular",n,i)},Nue=function(e,r,n,i,a,s){var o=MMe(e,r,a,i),l=iU(zt(["delimsizing","size"+r],[o],i),Xr.TEXT,i,s);return n&&Rue(l,i,Xr.TEXT),l},M8=function(e,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=zt(["delimsizinginner",i],[zt([],[ks(e,r,n)])]);return{type:"elem",elem:a}},P8=function(e,r,n){var i=Hc["Size4-Regular"][e.charCodeAt(0)]?Hc["Size4-Regular"][e.charCodeAt(0)][4]:Hc["Size1-Regular"][e.charCodeAt(0)][4],a=new eh("inner",zLe(e,Math.round(1e3*r))),s=new b0([a],{width:Jt(i),height:Jt(r),style:"width:"+Jt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=th([],[s],n);return o.height=r,o.style.height=Jt(r),o.style.width=Jt(i),{type:"elem",elem:o}},AM=.008,gx={type:"kern",size:-1*AM},PMe=new Set(["|","\\lvert","\\rvert","\\vert"]),BMe=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Iue=function(e,r,n,i,a,s){var o,l,u,d,h="",f=0;o=u=d=e,l=null;var p="Size1-Regular";e==="\\uparrow"?u=d="⏐":e==="\\Uparrow"?u=d="‖":e==="\\downarrow"?o=u="⏐":e==="\\Downarrow"?o=u="‖":e==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):PMe.has(e)?(u="∣",h="vert",f=333):BMe.has(e)?(u="∥",h="doublevert",f=556):e==="["||e==="\\lbrack"?(o="⎡",u="⎢",d="⎣",p="Size4-Regular",h="lbrack",f=667):e==="]"||e==="\\rbrack"?(o="⎤",u="⎥",d="⎦",p="Size4-Regular",h="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(u=o="⎢",d="⎣",p="Size4-Regular",h="lfloor",f=667):e==="\\lceil"||e==="⌈"?(o="⎡",u=d="⎢",p="Size4-Regular",h="lceil",f=667):e==="\\rfloor"||e==="⌋"?(u=o="⎥",d="⎦",p="Size4-Regular",h="rfloor",f=667):e==="\\rceil"||e==="⌉"?(o="⎤",u=d="⎥",p="Size4-Regular",h="rceil",f=667):e==="("||e==="\\lparen"?(o="⎛",u="⎜",d="⎝",p="Size4-Regular",h="lparen",f=875):e===")"||e==="\\rparen"?(o="⎞",u="⎟",d="⎠",p="Size4-Regular",h="rparen",f=875):e==="\\{"||e==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",p="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",d="⎩",u="⎪",p="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",d="⎭",u="⎪",p="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",d="⎩",u="⎪",p="Size4-Regular");var g=aE(o,p,a),m=g.height+g.depth,y=aE(u,p,a),v=y.height+y.depth,b=aE(d,p,a),_=b.height+b.depth,E=0,x=1;if(l!==null){var C=aE(l,p,a);E=C.height+C.depth,x=2}var T=m+_+E,w=Math.max(0,Math.ceil((r-T)/(x*v))),N=T+w*x*v,O=i.fontMetrics().axisHeight;n&&(O*=i.sizeMultiplier);var M=N/2-O,$=[];if(h.length>0){var F=N-m-_,A=Math.round(N*1e3),I=ULe(h,Math.round(F*1e3)),D=new eh(h,I),L=Jt(f/1e3),R=Jt(A/1e3),P=new b0([D],{width:L,height:R,viewBox:"0 0 "+f+" "+A}),z=th([],[P],i);z.height=A/1e3,z.style.width=L,z.style.height=R,$.push({type:"elem",elem:z})}else{if($.push(M8(d,p,a)),$.push(gx),l===null){var B=N-m-_+2*AM;$.push(P8(u,B,i))}else{var q=(N-m-_-E)/2+2*AM;$.push(P8(u,q,i)),$.push(gx),$.push(M8(l,p,a)),$.push(gx),$.push(P8(u,q,i))}$.push(gx),$.push(M8(o,p,a))}var Y=i.havingBaseStyle(Xr.TEXT),Q=Cn({positionType:"bottom",positionData:M,children:$});return iU(zt(["delimsizing","mult"],[Q],Y),Xr.TEXT,i,s)},B8=80,F8=.08,$8=function(e,r,n,i,a){var s=$Le(e,i,n),o=new eh(e,s),l=new b0([o],{width:"400em",height:Jt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return th(["hide-tail"],[l],a)},FMe=function(e,r){var n=r.havingBaseSizing(),i=Pue("\\surd",e*n.sizeMultiplier,Mue,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l,u,d,h;return i.type==="small"?(d=1e3+1e3*s+B8,e<1?a=1:e<1.4&&(a=.7),l=(1+s+F8)/a,u=(1+s)/a,o=$8("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",h=.833/a):i.type==="large"?(d=(1e3+B8)*qE[i.size],u=(qE[i.size]+s)/a,l=(qE[i.size]+s+F8)/a,o=$8("sqrtSize"+i.size,l,d,s,r),o.style.minWidth="1.02em",h=1/a):(l=e+s+F8,u=e+s,d=Math.floor(1e3*e+s)+B8,o=$8("sqrtTall",l,d,s,r),o.style.minWidth="0.742em",h=1.056),o.height=u,o.style.height=Jt(l),{span:o,advanceWidth:h,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},Oue=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),$Me=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Due=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),qE=[0,1.2,1.8,2.4,3],Lue=function(e,r,n,i,a){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),Oue.has(e)||Due.has(e))return Nue(e,r,!1,n,i,a);if($Me.has(e))return Iue(e,qE[r],!1,n,i,a);throw new Vt("Illegal delimiter: '"+e+"'")},zMe=[{type:"small",style:Xr.SCRIPTSCRIPT},{type:"small",style:Xr.SCRIPT},{type:"small",style:Xr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],UMe=[{type:"small",style:Xr.SCRIPTSCRIPT},{type:"small",style:Xr.SCRIPT},{type:"small",style:Xr.TEXT},{type:"stack"}],Mue=[{type:"small",style:Xr.SCRIPTSCRIPT},{type:"small",style:Xr.SCRIPT},{type:"small",style:Xr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],GMe=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},Pue=function(e,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;sr)return o}return n[n.length-1]},RM=function(e,r,n,i,a,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;Due.has(e)?o=zMe:Oue.has(e)?o=Mue:o=UMe;var l=Pue(e,r,o,i);return l.type==="small"?LMe(e,l.style,n,i,a,s):l.type==="large"?Nue(e,l.size,n,i,a,s):Iue(e,r,n,i,a,s)},z8=function(e,r,n,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),h=Math.max(d/500*l,2*d-u);return RM(e,h,!0,i,a,s)},QK={"\\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}},qMe=new Set(["(","\\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 ZK(t){return"isMiddle"in t}function ok(t,e){var r=ak(t);if(r&&qMe.has(r.text))return r;throw r?new Vt("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new Vt("Invalid delimiter type '"+t.type+"'",t)}ar({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(t,e)=>{var r=ok(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:QK[t.funcName].size,mclass:QK[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?zt([t.mclass]):Lue(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(wl(t.delim,t.mode));var r=new Ht("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Jt(qE[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function JK(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ar({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Vt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:ok(e[0],t).text,color:r}}});ar({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=ok(e[0],t),n=t.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=Jr(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(t,e)=>{JK(t);for(var r=Ca(t.body,e,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s{JK(t);var r=Yo(t.body,e);if(t.left!=="."){var n=new Ht("mo",[wl(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var i=new Ht("mo",[wl(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),r.push(i)}return rU(r)}});ar({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=ok(e[0],t);if(!t.parser.leftrightDepth)throw new Vt("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;return t.delim==="."?r=IS(e,[]):(r=Lue(t.delim,1,e,t.mode,[]),r.isMiddle={delim:t.delim,options:e}),r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?wl("|","text"):wl(t.delim,t.mode),n=new Ht("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var YMe=(t,e)=>{var r=q_(An(t.body,e),e),n=t.label.slice(1),i=e.sizeMultiplier,a,s,o=z0(t.body);if(n==="sout")a=zt(["stretchy","sout"]),a.height=e.fontMetrics().defaultRuleThickness/i,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=wi({number:.6,unit:"pt"},e),u=wi({number:.35,unit:"ex"},e),d=e.havingBaseSizing();i=i/d.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=Jt(h/2+l);var f=Math.floor(1e3*h*i),p=BLe(f),g=new b0([new eh("phase",p)],{width:"400em",height:Jt(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=th(["hide-tail"],[g],e),a.style.height=Jt(h),s=r.depth+l+u}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var m,y,v=0;/box/.test(n)?(v=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(n==="colorbox"?0:v),y=m):n==="angl"?(v=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*v,y=Math.max(0,.25-r.depth)):(m=o?.2:0,y=m),a=_Me(r,n,m,y,e),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=Jt(v)):n==="angl"&&v!==.049&&(a.style.borderTopWidth=Jt(v),a.style.borderRightWidth=Jt(v)),s=r.depth+y,t.backgroundColor&&(a.style.backgroundColor=t.backgroundColor,t.borderColor&&(a.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=Cn({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]});else{var _=/cancel|phase/.test(n)?["svg-align"]:[];b=Cn({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:_}]})}return/cancel/.test(n)&&(b.height=r.height,b.depth=r.depth),/cancel/.test(n)&&!o?zt(["mord","cancel-lap"],[b],e):zt(["mord"],[b],e)},HMe=(t,e)=>{var r,n=new Ht(t.label.includes("colorbox")?"mpadded":"menclose",[$n(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+Jt(i)+" solid "+t.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};ar({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(t,e,r){var{parser:n,funcName:i}=t,a=Jr(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:YMe,mathmlBuilder:HMe});ar({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(t,e,r){var{parser:n,funcName:i}=t,a=Jr(e[0],"color-token").color,s=Jr(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:o}}});ar({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});ar({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}}});ar({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(t,e){var{parser:r,funcName:n}=t;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}}});ar({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var Bue={};function du(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var e=t.parser.settings;if(!e.displayMode)throw new Vt("{"+t.envName+"} can be used only in display mode.")},VMe=new Set(["gather","gather*"]);function aU(t){if(!t.includes("ed"))return!t.includes("*")}function Rh(t,e,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:h,leqno:f}=e;if(t.gullet.beginGroup(),u||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=t.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new Vt("Invalid \\arraystretch: "+p)}t.gullet.beginGroup();var g=[],m=[g],y=[],v=[],b=l!=null?[]:void 0;function _(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function E(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new Zl("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),v.push(eX(t));;){var x=t.parseExpression(!1,u?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var C={type:"ordgroup",mode:t.mode,body:x};r&&(C={type:"styling",mode:t.mode,style:r,resetFont:!0,body:[C]}),g.push(C);var T=t.fetch().text;if(T==="&"){if(h&&g.length===h){if(u||o)throw new Vt("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(T==="\\end"){E(),g.length===1&&C.type==="styling"&&C.body.length===1&&C.body[0].type==="ordgroup"&&C.body[0].body.length===0&&(m.length>1||!d)&&m.pop(),v.length0&&(_+=.25),u.push({pos:_,isDashed:it[Oe]})}for(E(s[0]),n=0;n0&&(M+=b,Tit))for(n=0;n=o)){var re=void 0;if(i>0||e.hskipBeforeAndAfter){var ce,ae;re=(ce=(ae=Y)==null?void 0:ae.pregap)!=null?ce:f,re!==0&&(I=zt(["arraycolsep"],[]),I.style.width=Jt(re),A.push(I))}var se=[];for(n=0;n0){for(var Ne=G_("hline",r,d),ut=G_("hdashline",r,d),De=[{type:"elem",elem:qe,shift:0}];u.length>0;){var Je=u.pop(),st=Je.pos-$;Je.isDashed?De.push({type:"elem",elem:ut,shift:st}):De.push({type:"elem",elem:Ne,shift:st})}qe=Cn({positionType:"individualShift",children:De})}if(L.length===0)return zt(["mord"],[qe],r);var ct=Cn({positionType:"individualShift",children:L}),ot=zt(["tag"],[ct],r);return G0([qe,ot])},WMe={c:"center ",l:"left ",r:"right "},fu=function(e,r){for(var n=[],i=new Ht("mtd",[],["mtr-glue"]),a=new Ht("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,m="",y=!1,v=0,b=g.length;g[0].type==="separator"&&(f+="top ",v=1),g[g.length-1].type==="separator"&&(f+="bottom ",b-=1);for(var _=v;_0?"left ":"",f+=N[N.length-1].length>0?"right ":"";for(var O=1;O0&&f&&(m=1),n[p]={type:"align",align:g,pregap:m,postgap:0}}return a.colSeparationType=f?"align":"alignat",a};du({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=ak(e[0]),n=r?[e[0]]:Jr(e[0],"ordgroup").body,i=n.map(function(s){var o=ik(s),l=o.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Vt("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Rh(t.parser,a,sU(t.envName))},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new Vt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=Rh(t.parser,n,sU(t.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[a],left:e[0],right:e[1],rightColor:void 0}:a},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=Rh(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=ak(e[0]),n=r?[e[0]]:Jr(e[0],"ordgroup").body,i=n.map(function(o){var l=ik(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new Vt("Unknown column alignment: "+u,o)});if(i.length>1)throw new Vt("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},s=Rh(t.parser,a,"script");if(s.body.length>0&&s.body[0].length>1)throw new Vt("{subarray} can contain only one column");return s},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Rh(t.parser,e,sU(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Uue,htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){VMe.has(t.envName)&&lk(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:aU(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Rh(t.parser,e,"display")},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Uue,htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){lk(t);var e={autoTag:aU(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Rh(t.parser,e,"display")},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["CD"],props:{numArgs:0},handler(t){return lk(t),NMe(t.parser)},htmlBuilder:hu,mathmlBuilder:fu});we("\\nonumber","\\gdef\\@eqnsw{0}");we("\\notag","\\nonumber");ar({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(t,e){throw new Vt(t.funcName+" valid only within array environment")}});var tX=Bue;ar({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(t,e){var{parser:r,funcName:n}=t,i=e[0];if(i.type!=="ordgroup")throw new Vt("Invalid environment name",i);for(var a="",s=0;s{var r=t.font,n=e.withFont(r);return An(t.body,n)},XMe=(t,e)=>{var r=t.font,n=e.withFont(r);return $n(t.body,n)},rX={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};ar({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(t,e)=>{var{parser:r,funcName:n}=t,i=yC(e[0]),a=n in rX?rX[n]:n;return{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:KMe,mathmlBuilder:XMe});ar({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"mclass",mode:r.mode,mclass:sk(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:z0(n)}}});ar({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(t,e)=>{var{parser:r,funcName:n,breakOnTokenText:i}=t,{mode:a}=r,s=r.parseExpression(!0,i);return{type:"font",mode:a,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}}});var jMe=(t,e)=>{var r=e.style,n=r.fracNum(),i=r.fracDen(),a;a=e.havingStyle(n);var s=An(t.numer,a,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height0?g=3*f:g=7*f,m=e.fontMetrics().denom1):(h>0?(p=e.fontMetrics().num2,g=f):(p=e.fontMetrics().num3,g=3*f),m=e.fontMetrics().denom2);var y;if(d){var b=e.fontMetrics().axisHeight;p-s.depth-(b+.5*h){var r=new Ht("mfrac",[$n(t.numer,e),$n(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=wi(t.barSize,e);r.setAttribute("linethickness",Jt(n))}if(t.leftDelim!=null||t.rightDelim!=null){var i=[];if(t.leftDelim!=null){var a=new Ht("mo",[new ra(t.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),t.rightDelim!=null){var s=new Ht("mo",[new ra(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}return rU(i)}return r},Gue=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};ar({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1],s,o=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var u=n==="\\cfrac",d=null;return u||n.startsWith("\\d")?d="display":n.startsWith("\\t")&&(d="text"),Gue({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},d)},htmlBuilder:jMe,mathmlBuilder:QMe});ar({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(t){var{parser:e,funcName:r,token:n}=t,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:n}}});var nX=["display","text","script","scriptscript"],iX=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};ar({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(t,e){var{parser:r}=t,n=e[4],i=e[5],a=yC(e[0]),s=a.type==="atom"&&a.family==="open"?iX(a.text):null,o=yC(e[1]),l=o.type==="atom"&&o.family==="close"?iX(o.text):null,u=Jr(e[2],"size"),d,h=null;u.isBlank?d=!0:(h=u.value,d=h.number>0);var f=null,p=e[3];if(p.type==="ordgroup"){if(p.body.length>0){var g=Jr(p.body[0],"textord");f=nX[Number(g.text)]}}else p=Jr(p,"textord"),f=nX[Number(p.text)];return Gue({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:d,barSize:h,leftDelim:s,rightDelim:l},f)}});ar({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(t,e){var{parser:r,funcName:n,token:i}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Jr(e[0],"size").value,token:i}}});ar({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=Jr(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var s=e[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null}}});var que=(t,e)=>{var r=e.style,n,i;t.type==="supsub"?(n=t.sup?An(t.sup,e.havingStyle(r.sup()),e):An(t.sub,e.havingStyle(r.sub()),e),i=Jr(t.base,"horizBrace")):i=Jr(t,"horizBrace");var a=An(i.base,e.havingBaseStyle(Xr.DISPLAY)),s=nk(i,e),o;if(i.isOver?o=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):o=Cn({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:a}]}),n){var l=zt(["minner",i.isOver?"mover":"munder"],[o],e);i.isOver?o=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=Cn({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return zt(["minner",i.isOver?"mover":"munder"],[o],e)},ZMe=(t,e)=>{var r=rk(t.label);return new Ht(t.isOver?"mover":"munder",[$n(t.base,e),r])};ar({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(t,e){var{parser:r,funcName:n}=t;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:e[0]}},htmlBuilder:que,mathmlBuilder:ZMe});ar({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(t,e)=>{var{parser:r}=t,n=e[1],i=Jr(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:ta(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=Ca(t.body,e,!1);return rMe(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=rh(t.body,e);return r instanceof Ht||(r=new Ht("mrow",[r])),r.setAttribute("href",t.href),r}});ar({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(t,e)=>{var{parser:r}=t,n=Jr(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:r,funcName:n,token:i}=t,a=Jr(e[0],"raw").string,s=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(n){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),d=0;d{var r=Ca(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var i=zt(n,r,e);for(var a in t.attributes)a!=="class"&&t.attributes.hasOwnProperty(a)&&i.setAttribute(a,t.attributes[a]);return i},mathmlBuilder:(t,e)=>rh(t.body,e)});ar({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(t,e)=>{var{parser:r}=t;return{type:"htmlmathml",mode:r.mode,html:ta(e[0]),mathml:ta(e[1])}},htmlBuilder:(t,e)=>{var r=Ca(t.html,e,!1);return G0(r)},mathmlBuilder:(t,e)=>rh(t.mathml,e)});var U8=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new Vt("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!lue(n))throw new Vt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};ar({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(t,e,r)=>{var{parser:n}=t,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=Jr(r[0],"raw").string,u=l.split(","),d=0;d{var r=wi(t.height,e),n=0;t.totalheight.number>0&&(n=wi(t.totalheight,e)-r);var i=0;t.width.number>0&&(i=wi(t.width,e));var a={height:Jt(r+n)};i>0&&(a.width=Jt(i)),n>0&&(a.verticalAlign=Jt(-n));var s=new HLe(t.src,t.alt,a);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new Ht("mglyph",[]);r.setAttribute("alt",t.alt);var n=wi(t.height,e),i=0;if(t.totalheight.number>0&&(i=wi(t.totalheight,e)-n,r.setAttribute("valign",Jt(-i))),r.setAttribute("height",Jt(n+i)),t.width.number>0){var a=wi(t.width,e);r.setAttribute("width",Jt(a))}return r.setAttribute("src",t.src),r}});ar({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(t,e){var{parser:r,funcName:n}=t,i=Jr(e[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(t,e){return gue(t.dimension,e)},mathmlBuilder(t,e){var r=wi(t.dimension,e);return new Eue(r)}});ar({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=zt([],[An(t.body,e)]),r=zt(["inner"],[r],e)):r=zt(["inner"],[An(t.body,e)]);var n=zt(["fix"],[]),i=zt([t.alignment],[r,n],e),a=zt(["strut"]);return a.style.height=Jt(i.height+i.depth),i.depth&&(a.style.verticalAlign=Jt(-i.depth)),i.children.unshift(a),i=zt(["thinbox"],[i],e),zt(["mord","vbox"],[i],e)},mathmlBuilder:(t,e)=>{var r=new Ht("mpadded",[$n(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});ar({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){var{funcName:r,parser:n}=t,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:s}}});ar({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){throw new Vt("Mismatched "+t.funcName)}});var aX=(t,e)=>{switch(e.style.size){case Xr.DISPLAY.size:return t.display;case Xr.TEXT.size:return t.text;case Xr.SCRIPT.size:return t.script;case Xr.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};ar({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:ta(e[0]),text:ta(e[1]),script:ta(e[2]),scriptscript:ta(e[3])}},htmlBuilder:(t,e)=>{var r=aX(t,e),n=Ca(r,e,!1);return G0(n)},mathmlBuilder:(t,e)=>{var r=aX(t,e);return rh(r,e)}});var Yue=(t,e,r,n,i,a,s)=>{t=zt([],[t]);var o=r&&z0(r),l,u;if(e){var d=An(e,n.havingStyle(i.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=An(r,n.havingStyle(i.sub()),n);l={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var f;if(u&&l){var p=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+s;f=Cn({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Jt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Jt(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var g=t.height-s;f=Cn({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Jt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t}]})}else if(u){var m=t.depth+s;f=Cn({positionType:"bottom",positionData:m,children:[{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Jt(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var y=[f];if(l&&a!==0&&!o){var v=zt(["mspace"],[],n);v.style.marginRight=Jt(a),y.unshift(v)}return zt(["mop","op-limits"],y,n)},Hue=new Set(["\\smallint"]),Vue=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=Jr(t.base,"op"),i=!0):a=Jr(t,"op");var s=e.style,o=!1;s.size===Xr.DISPLAY.size&&a.symbol&&!Hue.has(a.name)&&(o=!0);var l,u;if(a.symbol){var d=o?"Size2-Regular":"Size1-Regular",h="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(h=a.name.slice(1),a.name=h==="oiint"?"\\iint":"\\iiint"),l=ks(a.name,d,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),u=l.italic,h.length>0){var f=yue(h+"Size"+(o?"2":"1"),e);l=Cn({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),a.name="\\"+h,l.classes.unshift("mop"),l.italic=u}}else if(a.body){var p=Ca(a.body,e,!0);p.length===1&&p[0]instanceof Po?(l=p[0],l.classes[0]="mop"):l=zt(["mop"],p,e)}else{for(var g=[],m=1;m{var r;if(t.symbol)r=new Ht("mo",[wl(t.name,t.mode)]),Hue.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new Ht("mo",Yo(t.body,e));else{r=new Ht("mi",[new ra(t.name.slice(1))]);var n=new Ht("mo",[wl("⁡","text")]);t.parentIsSupSub?r=new Ht("mrow",[r,n]):r=bue([r,n])}return r},ePe={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ar({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],numArgs:0,handler:(t,e)=>{var{parser:r,funcName:n}=t,i=n;return i.length===1&&(i=ePe[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Vue,mathmlBuilder:JMe});ar({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ta(n)}}});var tPe={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ar({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"],numArgs:0,handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}}});ar({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}}});ar({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],numArgs:0,allowedInArgument:!0,handler(t){var{parser:e,funcName:r}=t,n=r;return n.length===1&&(n=tPe[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var Wue=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=Jr(t.base,"operatorname"),i=!0):a=Jr(t,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(h=>{var f="text"in h?h.text:void 0;return typeof f=="string"?{type:"textord",mode:h.mode,text:f}:h}),l=Ca(o,e.withFont("mathrm"),!0),u=0;u{for(var r=Yo(t.body,e.withFont("mathrm")),n=!0,i=0;id.toText()).join("");r=[new ra(o)]}var l=new Ht("mi",r);l.setAttribute("mathvariant","normal");var u=new Ht("mo",[wl("⁡","text")]);return t.parentIsSupSub?new Ht("mrow",[l,u]):bue([l,u])};ar({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"operatorname",mode:r.mode,body:ta(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Wue,mathmlBuilder:rPe});we("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Yp({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?G0(Ca(t.body,e,!1)):zt(["mord"],Ca(t.body,e,!0),e)},mathmlBuilder(t,e){return rh(t.body,e,!0)}});ar({type:"overline",names:["\\overline"],numArgs:1,handler(t,e){var{parser:r}=t,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=An(t.body,e.havingCrampedStyle()),n=G_("overline-line",e),i=e.fontMetrics().defaultRuleThickness,a=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return zt(["mord","overline"],[a],e)},mathmlBuilder(t,e){var r=new Ht("mo",[new ra("‾")]);r.setAttribute("stretchy","true");var n=new Ht("mover",[$n(t.body,e),r]);return n.setAttribute("accent","true"),n}});ar({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"phantom",mode:r.mode,body:ta(n)}},htmlBuilder:(t,e)=>{var r=Ca(t.body,e.withPhantom(),!1);return G0(r)},mathmlBuilder:(t,e)=>{var r=Yo(t.body,e);return new Ht("mphantom",r)}});we("\\hphantom","\\smash{\\phantom{#1}}");ar({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=zt(["inner"],[An(t.body,e.withPhantom())]),n=zt(["fix"],[]);return zt(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=Yo(ta(t.body),e),n=new Ht("mphantom",r),i=new Ht("mpadded",[n]);return i.setAttribute("width","0px"),i}});ar({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(t,e){var{parser:r}=t,n=Jr(e[0],"size").value,i=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(t,e){var r=An(t.body,e),n=wi(t.dy,e);return Cn({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Ht("mpadded",[$n(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});ar({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});ar({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(t,e,r){var{parser:n}=t,i=r[0],a=Jr(e[0],"size"),s=Jr(e[1],"size");return{type:"rule",mode:n.mode,shift:i&&Jr(i,"size").value,width:a.value,height:s.value}},htmlBuilder(t,e){var r=zt(["mord","rule"],[],e),n=wi(t.width,e),i=wi(t.height,e),a=t.shift?wi(t.shift,e):0;return r.style.borderRightWidth=Jt(n),r.style.borderTopWidth=Jt(i),r.style.bottom=Jt(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=wi(t.width,e),n=wi(t.height,e),i=t.shift?wi(t.shift,e):0,a=e.color&&e.getColor()||"black",s=new Ht("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",Jt(r)),s.setAttribute("height",Jt(n));var o=new Ht("mpadded",[s]);return i>=0?o.setAttribute("height",Jt(i)):(o.setAttribute("height",Jt(i)),o.setAttribute("depth",Jt(-i))),o.setAttribute("voffset",Jt(i)),o}});function Kue(t,e,r){for(var n=Ca(t,e,!1),i=e.sizeMultiplier/r.sizeMultiplier,a=0;a{var r=e.havingSize(t.size);return Kue(t.body,r,e)};ar({type:"sizing",names:sX,numArgs:0,allowedInText:!0,handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:sX.indexOf(n)+1,body:a}},htmlBuilder:nPe,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=Yo(t.body,r),i=new Ht("mstyle",n);return i.setAttribute("mathsize",Jt(r.sizeMultiplier)),i}});ar({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(t,e,r)=>{var{parser:n}=t,i=!1,a=!1,s=r[0]&&Jr(r[0],"ordgroup");if(s)for(var o,l=0;l{var r=zt([],[An(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return zt(["mord","smash"],[r],e);if(r.children)for(var n=0;n{var r=new Ht("mpadded",[$n(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});ar({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var{parser:n}=t,i=r[0],a=e[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(t,e){var r=An(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=q_(r,e);var n=e.fontMetrics(),i=n.defaultRuleThickness,a=i;e.style.idr.height+r.depth+s&&(s=(s+h-r.height-r.depth)/2);var f=l.height-r.height-s-u;r.style.paddingLeft=Jt(d);var p=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]});if(t.index){var g=e.havingStyle(Xr.SCRIPTSCRIPT),m=An(t.index,g,e),y=.6*(p.height-p.depth),v=Cn({positionType:"shift",positionData:-y,children:[{type:"elem",elem:m}]}),b=zt(["root"],[v]);return zt(["mord","sqrt"],[b,p],e)}else return zt(["mord","sqrt"],[p],e)},mathmlBuilder(t,e){var{body:r,index:n}=t;return n?new Ht("mroot",[$n(r,e),$n(n,e)]):new Ht("msqrt",[$n(r,e)])}});var NM={display:Xr.DISPLAY,text:Xr.TEXT,script:Xr.SCRIPT,scriptscript:Xr.SCRIPTSCRIPT};function iPe(t){return t in NM}ar({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(t,e){var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);if(!iPe(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(t,e){var r=NM[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),Kue(t.body,n,e)},mathmlBuilder(t,e){var r=NM[t.style],n=e.havingStyle(r);t.resetFont&&(n=n.withFont(""));var i=Yo(t.body,n),a=new Ht("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var aPe=function(e,r){var n=e.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===Xr.DISPLAY.size||n.alwaysHandleSupSub);return i?Vue:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===Xr.DISPLAY.size||n.limits);return a?Wue:null}else{if(n.type==="accent")return z0(n.base)?wue:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?que:null}else return null}else return null};Yp({type:"supsub",htmlBuilder(t,e){var r=aPe(t,e);if(r)return r(t,e);var{base:n,sup:i,sub:a}=t,s=An(n,e),o,l,u=e.fontMetrics(),d=0,h=0,f=n&&z0(n);if(i){var p=e.havingStyle(e.style.sup());o=An(i,p,e),f||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(a){var g=e.havingStyle(e.style.sub());l=An(a,g,e),f||(h=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}var m;e.style===Xr.DISPLAY?m=u.sup1:e.style.cramped?m=u.sup3:m=u.sup2;var y=e.sizeMultiplier,v=Jt(.5/u.ptPerEm/y),b=null;if(l){var _=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");if(s instanceof Po||_){var E;b=Jt(-((E=s.italic)!=null?E:0))}}var x;if(o&&l){d=Math.max(d,m,o.depth+.25*u.xHeight),h=Math.max(h,u.sub2);var C=u.defaultRuleThickness,T=4*C;if(d-o.depth-(l.height-h)0&&(d+=w,h-=w)}var N=[{type:"elem",elem:l,shift:h,marginRight:v,marginLeft:b},{type:"elem",elem:o,shift:-d,marginRight:v}];x=Cn({positionType:"individualShift",children:N})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var O=[{type:"elem",elem:l,marginLeft:b,marginRight:v}];x=Cn({positionType:"shift",positionData:h,children:O})}else if(o)d=Math.max(d,m,o.depth+.25*u.xHeight),x=Cn({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:v}]});else throw new Error("supsub must have either sup or sub.");var M=CM(s,"right")||"mord";return zt([M],[s,zt(["msupsub"],[x])],e)},mathmlBuilder(t,e){var r=!1,n,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var a=[$n(t.base,e)];t.sub&&a.push($n(t.sub,e)),t.sup&&a.push($n(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var u=t.base;u&&u.type==="op"&&u.limits&&e.style===Xr.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(e.style===Xr.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===Xr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===Xr.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===Xr.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===Xr.DISPLAY)?s="mover":s="msup"}return new Ht(s,a)}});Yp({type:"atom",htmlBuilder(t,e){return eU(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Ht("mo",[wl(t.text,t.mode)]);if(t.family==="bin"){var n=nU(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var Xue={mi:"italic",mn:"normal",mtext:"normal"};Yp({type:"mathord",htmlBuilder(t,e){return tk(t,e)},mathmlBuilder(t,e){var r=new Ht("mi",[wl(t.text,t.mode,e)]),n=nU(t,e)||"italic";return n!==Xue[r.type]&&r.setAttribute("mathvariant",n),r}});Yp({type:"textord",htmlBuilder(t,e){return tk(t,e)},mathmlBuilder(t,e){var r=wl(t.text,t.mode,e),n=nU(t,e)||"normal",i;return t.mode==="text"?i=new Ht("mtext",[r]):/[0-9]/.test(t.text)?i=new Ht("mn",[r]):t.text==="\\prime"?i=new Ht("mo",[r]):i=new Ht("mi",[r]),n!==Xue[i.type]&&i.setAttribute("mathvariant",n),i}});var G8={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},q8={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Yp({type:"spacing",htmlBuilder(t,e){if(q8.hasOwnProperty(t.text)){var r=q8[t.text].className||"";if(t.mode==="text"){var n=tk(t,e);return n.classes.push(r),n}else return zt(["mspace",r],[eU(t.text,t.mode,e)],e)}else{if(G8.hasOwnProperty(t.text))return zt(["mspace",G8[t.text]],[],e);throw new Vt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(q8.hasOwnProperty(t.text))r=new Ht("mtext",[new ra(" ")]);else{if(G8.hasOwnProperty(t.text))return new Ht("mspace");throw new Vt('Unknown type of space "'+t.text+'"')}return r}});var oX=()=>{var t=new Ht("mtd",[]);return t.setAttribute("width","50%"),t};Yp({type:"tag",mathmlBuilder(t,e){var r=new Ht("mtable",[new Ht("mtr",[oX(),new Ht("mtd",[rh(t.body,e)]),oX(),new Ht("mtd",[rh(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var lX={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},cX={"\\textbf":"textbf","\\textmd":"textmd"},sPe={"\\textit":"textit","\\textup":"textup"},uX=(t,e)=>{var r=t.font;if(r){if(lX[r])return e.withTextFontFamily(lX[r]);if(cX[r])return e.withTextFontWeight(cX[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(sPe[r])};ar({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"text",mode:r.mode,body:ta(i),font:n}},htmlBuilder(t,e){var r=uX(t,e),n=Ca(t.body,r,!0);return zt(["mord","text"],n,r)},mathmlBuilder(t,e){var r=uX(t,e);return rh(t.body,r)}});ar({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(t,e){var{parser:r}=t;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=An(t.body,e),n=G_("underline-line",e),i=e.fontMetrics().defaultRuleThickness,a=Cn({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return zt(["mord","underline"],[a],e)},mathmlBuilder(t,e){var r=new Ht("mo",[new ra("‾")]);r.setAttribute("stretchy","true");var n=new Ht("munder",[$n(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});ar({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(t,e){var{parser:r}=t;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=An(t.body,e),n=e.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return Cn({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Ht("mpadded",[$n(t.body,e)],["vcenter"]);return new Ht("mrow",[r])}});ar({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(t,e,r){throw new Vt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=dX(t),n=[],i=e.havingStyle(e.style.text()),a=0;at.body.replace(/ /g,t.star?"␣":" "),Md=vue,jue=`[ \r - ]`,oPe="\\\\[a-zA-Z@]+",lPe="\\\\[^\uD800-\uDFFF]",cPe="("+oPe+")"+jue+"*",uPe=`\\\\( +-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.")}};function qLe(t){return"toText"in t}let Mb=class{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(){for(var e=document.createDocumentFragment(),r=0;r{if(qLe(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}};var gM={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},YLe={ex:!0,em:!0,mu:!0},lue=function(e){return typeof e!="string"&&(e=e.unit),e in gM||e in YLe||e==="ex"},wi=function(e,r){var n;if(e.unit in gM)n=gM[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,e.unit==="ex")n=i.fontMetrics().xHeight;else if(e.unit==="em")n=i.fontMetrics().quad;else throw new Vt("Invalid unit: '"+e.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},Jt=function(e){return+e.toFixed(4)+"em"},Jd=function(e){return e.filter(r=>r).join(" ")},Zz=function(e){var r="";for(var n of Object.keys(e)){var i=e[n];i!==void 0&&(r+=vLe(n)+":"+i+";")}return r},cue=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},uue=function(e){var r=document.createElement(e);r.className=Jd(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i/=\x00-\x1f]/,due=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+ls(Jd(this.classes))+'"');var n=Zz(this.style);n&&(r+=' style="'+ls(n)+'"');for(var i of Object.keys(this.attributes)){if(HLe.test(i))throw new Vt("Invalid attribute name '"+i+"'");r+=" "+i+'="'+ls(this.attributes[i])+'"'}r+=">";for(var a=0;a",r};let Pb=class{constructor(e,r,n,i){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,this.italic=void 0,cue.call(this,e,n,i),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return uue.call(this,"span")}toMarkup(){return due.call(this,"span")}},Jw=class{constructor(e,r,n,i){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,cue.call(this,r,i),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return uue.call(this,"a")}toMarkup(){return due.call(this,"a")}},VLe=class{constructor(e,r,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=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e=''+ls(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=Jt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Jd(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="0&&(n+="margin-right:"+Jt(this.italic)+";"),n+=Zz(this.style),n&&(e=!0,r+=' style="'+ls(n)+'"');var i=ls(this.text);return e?(r+=">",r+=i,r+="",r):i}},b0=class{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i':''}},mM=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e=" but got "+String(t)+".")}var jLe=t=>t instanceof Pb||t instanceof Jw||t instanceof Mb,Hc={"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]}},cx={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]},LK={Å:"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 hue(t,e){Hc[t]=e}function Jz(t,e,r){if(!Hc[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),i=Hc[e][n];if(!i&&t[0]in LK&&(n=LK[t[0]].charCodeAt(0),i=Hc[e][n]),!i&&r==="text"&&oue(n)&&(i=Hc[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var R8={};function QLe(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!R8[e]){var r=R8[e]={cssEmPerMu:cx.quad[e]/18};for(var n in cx)cx.hasOwnProperty(n)&&(r[n]=cx[n][e])}return R8[e]}var di={math:{},text:{}};function W(t,e,r,n,i,a){di[t][i]={font:e,group:r,replace:n},a&&n&&(di[t][n]=di[t][i])}var ee="math",Pt="text",be="main",He="ams",mi="accent-token",cr="bin",js="close",Bb="inner",Ar="mathord",ca="op-token",qo="open",J4="punct",je="rel",U0="spacing",tt="textord";W(ee,be,je,"≡","\\equiv",!0);W(ee,be,je,"≺","\\prec",!0);W(ee,be,je,"≻","\\succ",!0);W(ee,be,je,"∼","\\sim",!0);W(ee,be,je,"⊥","\\perp");W(ee,be,je,"⪯","\\preceq",!0);W(ee,be,je,"⪰","\\succeq",!0);W(ee,be,je,"≃","\\simeq",!0);W(ee,be,je,"∣","\\mid",!0);W(ee,be,je,"≪","\\ll",!0);W(ee,be,je,"≫","\\gg",!0);W(ee,be,je,"≍","\\asymp",!0);W(ee,be,je,"∥","\\parallel");W(ee,be,je,"⋈","\\bowtie",!0);W(ee,be,je,"⌣","\\smile",!0);W(ee,be,je,"⊑","\\sqsubseteq",!0);W(ee,be,je,"⊒","\\sqsupseteq",!0);W(ee,be,je,"≐","\\doteq",!0);W(ee,be,je,"⌢","\\frown",!0);W(ee,be,je,"∋","\\ni",!0);W(ee,be,je,"∝","\\propto",!0);W(ee,be,je,"⊢","\\vdash",!0);W(ee,be,je,"⊣","\\dashv",!0);W(ee,be,je,"∋","\\owns");W(ee,be,J4,".","\\ldotp");W(ee,be,J4,"⋅","\\cdotp");W(ee,be,J4,"⋅","·");W(Pt,be,tt,"⋅","·");W(ee,be,tt,"#","\\#");W(Pt,be,tt,"#","\\#");W(ee,be,tt,"&","\\&");W(Pt,be,tt,"&","\\&");W(ee,be,tt,"ℵ","\\aleph",!0);W(ee,be,tt,"∀","\\forall",!0);W(ee,be,tt,"ℏ","\\hbar",!0);W(ee,be,tt,"∃","\\exists",!0);W(ee,be,tt,"∇","\\nabla",!0);W(ee,be,tt,"♭","\\flat",!0);W(ee,be,tt,"ℓ","\\ell",!0);W(ee,be,tt,"♮","\\natural",!0);W(ee,be,tt,"♣","\\clubsuit",!0);W(ee,be,tt,"℘","\\wp",!0);W(ee,be,tt,"♯","\\sharp",!0);W(ee,be,tt,"♢","\\diamondsuit",!0);W(ee,be,tt,"ℜ","\\Re",!0);W(ee,be,tt,"♡","\\heartsuit",!0);W(ee,be,tt,"ℑ","\\Im",!0);W(ee,be,tt,"♠","\\spadesuit",!0);W(ee,be,tt,"§","\\S",!0);W(Pt,be,tt,"§","\\S");W(ee,be,tt,"¶","\\P",!0);W(Pt,be,tt,"¶","\\P");W(ee,be,tt,"†","\\dag");W(Pt,be,tt,"†","\\dag");W(Pt,be,tt,"†","\\textdagger");W(ee,be,tt,"‡","\\ddag");W(Pt,be,tt,"‡","\\ddag");W(Pt,be,tt,"‡","\\textdaggerdbl");W(ee,be,js,"⎱","\\rmoustache",!0);W(ee,be,qo,"⎰","\\lmoustache",!0);W(ee,be,js,"⟯","\\rgroup",!0);W(ee,be,qo,"⟮","\\lgroup",!0);W(ee,be,cr,"∓","\\mp",!0);W(ee,be,cr,"⊖","\\ominus",!0);W(ee,be,cr,"⊎","\\uplus",!0);W(ee,be,cr,"⊓","\\sqcap",!0);W(ee,be,cr,"∗","\\ast");W(ee,be,cr,"⊔","\\sqcup",!0);W(ee,be,cr,"◯","\\bigcirc",!0);W(ee,be,cr,"∙","\\bullet",!0);W(ee,be,cr,"‡","\\ddagger");W(ee,be,cr,"≀","\\wr",!0);W(ee,be,cr,"⨿","\\amalg");W(ee,be,cr,"&","\\And");W(ee,be,je,"⟵","\\longleftarrow",!0);W(ee,be,je,"⇐","\\Leftarrow",!0);W(ee,be,je,"⟸","\\Longleftarrow",!0);W(ee,be,je,"⟶","\\longrightarrow",!0);W(ee,be,je,"⇒","\\Rightarrow",!0);W(ee,be,je,"⟹","\\Longrightarrow",!0);W(ee,be,je,"↔","\\leftrightarrow",!0);W(ee,be,je,"⟷","\\longleftrightarrow",!0);W(ee,be,je,"⇔","\\Leftrightarrow",!0);W(ee,be,je,"⟺","\\Longleftrightarrow",!0);W(ee,be,je,"↦","\\mapsto",!0);W(ee,be,je,"⟼","\\longmapsto",!0);W(ee,be,je,"↗","\\nearrow",!0);W(ee,be,je,"↩","\\hookleftarrow",!0);W(ee,be,je,"↪","\\hookrightarrow",!0);W(ee,be,je,"↘","\\searrow",!0);W(ee,be,je,"↼","\\leftharpoonup",!0);W(ee,be,je,"⇀","\\rightharpoonup",!0);W(ee,be,je,"↙","\\swarrow",!0);W(ee,be,je,"↽","\\leftharpoondown",!0);W(ee,be,je,"⇁","\\rightharpoondown",!0);W(ee,be,je,"↖","\\nwarrow",!0);W(ee,be,je,"⇌","\\rightleftharpoons",!0);W(ee,He,je,"≮","\\nless",!0);W(ee,He,je,"","\\@nleqslant");W(ee,He,je,"","\\@nleqq");W(ee,He,je,"⪇","\\lneq",!0);W(ee,He,je,"≨","\\lneqq",!0);W(ee,He,je,"","\\@lvertneqq");W(ee,He,je,"⋦","\\lnsim",!0);W(ee,He,je,"⪉","\\lnapprox",!0);W(ee,He,je,"⊀","\\nprec",!0);W(ee,He,je,"⋠","\\npreceq",!0);W(ee,He,je,"⋨","\\precnsim",!0);W(ee,He,je,"⪹","\\precnapprox",!0);W(ee,He,je,"≁","\\nsim",!0);W(ee,He,je,"","\\@nshortmid");W(ee,He,je,"∤","\\nmid",!0);W(ee,He,je,"⊬","\\nvdash",!0);W(ee,He,je,"⊭","\\nvDash",!0);W(ee,He,je,"⋪","\\ntriangleleft");W(ee,He,je,"⋬","\\ntrianglelefteq",!0);W(ee,He,je,"⊊","\\subsetneq",!0);W(ee,He,je,"","\\@varsubsetneq");W(ee,He,je,"⫋","\\subsetneqq",!0);W(ee,He,je,"","\\@varsubsetneqq");W(ee,He,je,"≯","\\ngtr",!0);W(ee,He,je,"","\\@ngeqslant");W(ee,He,je,"","\\@ngeqq");W(ee,He,je,"⪈","\\gneq",!0);W(ee,He,je,"≩","\\gneqq",!0);W(ee,He,je,"","\\@gvertneqq");W(ee,He,je,"⋧","\\gnsim",!0);W(ee,He,je,"⪊","\\gnapprox",!0);W(ee,He,je,"⊁","\\nsucc",!0);W(ee,He,je,"⋡","\\nsucceq",!0);W(ee,He,je,"⋩","\\succnsim",!0);W(ee,He,je,"⪺","\\succnapprox",!0);W(ee,He,je,"≆","\\ncong",!0);W(ee,He,je,"","\\@nshortparallel");W(ee,He,je,"∦","\\nparallel",!0);W(ee,He,je,"⊯","\\nVDash",!0);W(ee,He,je,"⋫","\\ntriangleright");W(ee,He,je,"⋭","\\ntrianglerighteq",!0);W(ee,He,je,"","\\@nsupseteqq");W(ee,He,je,"⊋","\\supsetneq",!0);W(ee,He,je,"","\\@varsupsetneq");W(ee,He,je,"⫌","\\supsetneqq",!0);W(ee,He,je,"","\\@varsupsetneqq");W(ee,He,je,"⊮","\\nVdash",!0);W(ee,He,je,"⪵","\\precneqq",!0);W(ee,He,je,"⪶","\\succneqq",!0);W(ee,He,je,"","\\@nsubseteqq");W(ee,He,cr,"⊴","\\unlhd");W(ee,He,cr,"⊵","\\unrhd");W(ee,He,je,"↚","\\nleftarrow",!0);W(ee,He,je,"↛","\\nrightarrow",!0);W(ee,He,je,"⇍","\\nLeftarrow",!0);W(ee,He,je,"⇏","\\nRightarrow",!0);W(ee,He,je,"↮","\\nleftrightarrow",!0);W(ee,He,je,"⇎","\\nLeftrightarrow",!0);W(ee,He,je,"△","\\vartriangle");W(ee,He,tt,"ℏ","\\hslash");W(ee,He,tt,"▽","\\triangledown");W(ee,He,tt,"◊","\\lozenge");W(ee,He,tt,"Ⓢ","\\circledS");W(ee,He,tt,"®","\\circledR");W(Pt,He,tt,"®","\\circledR");W(ee,He,tt,"∡","\\measuredangle",!0);W(ee,He,tt,"∄","\\nexists");W(ee,He,tt,"℧","\\mho");W(ee,He,tt,"Ⅎ","\\Finv",!0);W(ee,He,tt,"⅁","\\Game",!0);W(ee,He,tt,"‵","\\backprime");W(ee,He,tt,"▲","\\blacktriangle");W(ee,He,tt,"▼","\\blacktriangledown");W(ee,He,tt,"■","\\blacksquare");W(ee,He,tt,"⧫","\\blacklozenge");W(ee,He,tt,"★","\\bigstar");W(ee,He,tt,"∢","\\sphericalangle",!0);W(ee,He,tt,"∁","\\complement",!0);W(ee,He,tt,"ð","\\eth",!0);W(Pt,be,tt,"ð","ð");W(ee,He,tt,"╱","\\diagup");W(ee,He,tt,"╲","\\diagdown");W(ee,He,tt,"□","\\square");W(ee,He,tt,"□","\\Box");W(ee,He,tt,"◊","\\Diamond");W(ee,He,tt,"¥","\\yen",!0);W(Pt,He,tt,"¥","\\yen",!0);W(ee,He,tt,"✓","\\checkmark",!0);W(Pt,He,tt,"✓","\\checkmark");W(ee,He,tt,"ℶ","\\beth",!0);W(ee,He,tt,"ℸ","\\daleth",!0);W(ee,He,tt,"ℷ","\\gimel",!0);W(ee,He,tt,"ϝ","\\digamma",!0);W(ee,He,tt,"ϰ","\\varkappa");W(ee,He,qo,"┌","\\@ulcorner",!0);W(ee,He,js,"┐","\\@urcorner",!0);W(ee,He,qo,"└","\\@llcorner",!0);W(ee,He,js,"┘","\\@lrcorner",!0);W(ee,He,je,"≦","\\leqq",!0);W(ee,He,je,"⩽","\\leqslant",!0);W(ee,He,je,"⪕","\\eqslantless",!0);W(ee,He,je,"≲","\\lesssim",!0);W(ee,He,je,"⪅","\\lessapprox",!0);W(ee,He,je,"≊","\\approxeq",!0);W(ee,He,cr,"⋖","\\lessdot");W(ee,He,je,"⋘","\\lll",!0);W(ee,He,je,"≶","\\lessgtr",!0);W(ee,He,je,"⋚","\\lesseqgtr",!0);W(ee,He,je,"⪋","\\lesseqqgtr",!0);W(ee,He,je,"≑","\\doteqdot");W(ee,He,je,"≓","\\risingdotseq",!0);W(ee,He,je,"≒","\\fallingdotseq",!0);W(ee,He,je,"∽","\\backsim",!0);W(ee,He,je,"⋍","\\backsimeq",!0);W(ee,He,je,"⫅","\\subseteqq",!0);W(ee,He,je,"⋐","\\Subset",!0);W(ee,He,je,"⊏","\\sqsubset",!0);W(ee,He,je,"≼","\\preccurlyeq",!0);W(ee,He,je,"⋞","\\curlyeqprec",!0);W(ee,He,je,"≾","\\precsim",!0);W(ee,He,je,"⪷","\\precapprox",!0);W(ee,He,je,"⊲","\\vartriangleleft");W(ee,He,je,"⊴","\\trianglelefteq");W(ee,He,je,"⊨","\\vDash",!0);W(ee,He,je,"⊪","\\Vvdash",!0);W(ee,He,je,"⌣","\\smallsmile");W(ee,He,je,"⌢","\\smallfrown");W(ee,He,je,"≏","\\bumpeq",!0);W(ee,He,je,"≎","\\Bumpeq",!0);W(ee,He,je,"≧","\\geqq",!0);W(ee,He,je,"⩾","\\geqslant",!0);W(ee,He,je,"⪖","\\eqslantgtr",!0);W(ee,He,je,"≳","\\gtrsim",!0);W(ee,He,je,"⪆","\\gtrapprox",!0);W(ee,He,cr,"⋗","\\gtrdot");W(ee,He,je,"⋙","\\ggg",!0);W(ee,He,je,"≷","\\gtrless",!0);W(ee,He,je,"⋛","\\gtreqless",!0);W(ee,He,je,"⪌","\\gtreqqless",!0);W(ee,He,je,"≖","\\eqcirc",!0);W(ee,He,je,"≗","\\circeq",!0);W(ee,He,je,"≜","\\triangleq",!0);W(ee,He,je,"∼","\\thicksim");W(ee,He,je,"≈","\\thickapprox");W(ee,He,je,"⫆","\\supseteqq",!0);W(ee,He,je,"⋑","\\Supset",!0);W(ee,He,je,"⊐","\\sqsupset",!0);W(ee,He,je,"≽","\\succcurlyeq",!0);W(ee,He,je,"⋟","\\curlyeqsucc",!0);W(ee,He,je,"≿","\\succsim",!0);W(ee,He,je,"⪸","\\succapprox",!0);W(ee,He,je,"⊳","\\vartriangleright");W(ee,He,je,"⊵","\\trianglerighteq");W(ee,He,je,"⊩","\\Vdash",!0);W(ee,He,je,"∣","\\shortmid");W(ee,He,je,"∥","\\shortparallel");W(ee,He,je,"≬","\\between",!0);W(ee,He,je,"⋔","\\pitchfork",!0);W(ee,He,je,"∝","\\varpropto");W(ee,He,je,"◀","\\blacktriangleleft");W(ee,He,je,"∴","\\therefore",!0);W(ee,He,je,"∍","\\backepsilon");W(ee,He,je,"▶","\\blacktriangleright");W(ee,He,je,"∵","\\because",!0);W(ee,He,je,"⋘","\\llless");W(ee,He,je,"⋙","\\gggtr");W(ee,He,cr,"⊲","\\lhd");W(ee,He,cr,"⊳","\\rhd");W(ee,He,je,"≂","\\eqsim",!0);W(ee,be,je,"⋈","\\Join");W(ee,He,je,"≑","\\Doteq",!0);W(ee,He,cr,"∔","\\dotplus",!0);W(ee,He,cr,"∖","\\smallsetminus");W(ee,He,cr,"⋒","\\Cap",!0);W(ee,He,cr,"⋓","\\Cup",!0);W(ee,He,cr,"⩞","\\doublebarwedge",!0);W(ee,He,cr,"⊟","\\boxminus",!0);W(ee,He,cr,"⊞","\\boxplus",!0);W(ee,He,cr,"⋇","\\divideontimes",!0);W(ee,He,cr,"⋉","\\ltimes",!0);W(ee,He,cr,"⋊","\\rtimes",!0);W(ee,He,cr,"⋋","\\leftthreetimes",!0);W(ee,He,cr,"⋌","\\rightthreetimes",!0);W(ee,He,cr,"⋏","\\curlywedge",!0);W(ee,He,cr,"⋎","\\curlyvee",!0);W(ee,He,cr,"⊝","\\circleddash",!0);W(ee,He,cr,"⊛","\\circledast",!0);W(ee,He,cr,"⋅","\\centerdot");W(ee,He,cr,"⊺","\\intercal",!0);W(ee,He,cr,"⋒","\\doublecap");W(ee,He,cr,"⋓","\\doublecup");W(ee,He,cr,"⊠","\\boxtimes",!0);W(ee,He,je,"⇢","\\dashrightarrow",!0);W(ee,He,je,"⇠","\\dashleftarrow",!0);W(ee,He,je,"⇇","\\leftleftarrows",!0);W(ee,He,je,"⇆","\\leftrightarrows",!0);W(ee,He,je,"⇚","\\Lleftarrow",!0);W(ee,He,je,"↞","\\twoheadleftarrow",!0);W(ee,He,je,"↢","\\leftarrowtail",!0);W(ee,He,je,"↫","\\looparrowleft",!0);W(ee,He,je,"⇋","\\leftrightharpoons",!0);W(ee,He,je,"↶","\\curvearrowleft",!0);W(ee,He,je,"↺","\\circlearrowleft",!0);W(ee,He,je,"↰","\\Lsh",!0);W(ee,He,je,"⇈","\\upuparrows",!0);W(ee,He,je,"↿","\\upharpoonleft",!0);W(ee,He,je,"⇃","\\downharpoonleft",!0);W(ee,be,je,"⊶","\\origof",!0);W(ee,be,je,"⊷","\\imageof",!0);W(ee,He,je,"⊸","\\multimap",!0);W(ee,He,je,"↭","\\leftrightsquigarrow",!0);W(ee,He,je,"⇉","\\rightrightarrows",!0);W(ee,He,je,"⇄","\\rightleftarrows",!0);W(ee,He,je,"↠","\\twoheadrightarrow",!0);W(ee,He,je,"↣","\\rightarrowtail",!0);W(ee,He,je,"↬","\\looparrowright",!0);W(ee,He,je,"↷","\\curvearrowright",!0);W(ee,He,je,"↻","\\circlearrowright",!0);W(ee,He,je,"↱","\\Rsh",!0);W(ee,He,je,"⇊","\\downdownarrows",!0);W(ee,He,je,"↾","\\upharpoonright",!0);W(ee,He,je,"⇂","\\downharpoonright",!0);W(ee,He,je,"⇝","\\rightsquigarrow",!0);W(ee,He,je,"⇝","\\leadsto");W(ee,He,je,"⇛","\\Rrightarrow",!0);W(ee,He,je,"↾","\\restriction");W(ee,be,tt,"‘","`");W(ee,be,tt,"$","\\$");W(Pt,be,tt,"$","\\$");W(Pt,be,tt,"$","\\textdollar");W(ee,be,tt,"%","\\%");W(Pt,be,tt,"%","\\%");W(ee,be,tt,"_","\\_");W(Pt,be,tt,"_","\\_");W(Pt,be,tt,"_","\\textunderscore");W(ee,be,tt,"∠","\\angle",!0);W(ee,be,tt,"∞","\\infty",!0);W(ee,be,tt,"′","\\prime");W(ee,be,tt,"△","\\triangle");W(ee,be,tt,"Γ","\\Gamma",!0);W(ee,be,tt,"Δ","\\Delta",!0);W(ee,be,tt,"Θ","\\Theta",!0);W(ee,be,tt,"Λ","\\Lambda",!0);W(ee,be,tt,"Ξ","\\Xi",!0);W(ee,be,tt,"Π","\\Pi",!0);W(ee,be,tt,"Σ","\\Sigma",!0);W(ee,be,tt,"Υ","\\Upsilon",!0);W(ee,be,tt,"Φ","\\Phi",!0);W(ee,be,tt,"Ψ","\\Psi",!0);W(ee,be,tt,"Ω","\\Omega",!0);W(ee,be,tt,"A","Α");W(ee,be,tt,"B","Β");W(ee,be,tt,"E","Ε");W(ee,be,tt,"Z","Ζ");W(ee,be,tt,"H","Η");W(ee,be,tt,"I","Ι");W(ee,be,tt,"K","Κ");W(ee,be,tt,"M","Μ");W(ee,be,tt,"N","Ν");W(ee,be,tt,"O","Ο");W(ee,be,tt,"P","Ρ");W(ee,be,tt,"T","Τ");W(ee,be,tt,"X","Χ");W(ee,be,tt,"¬","\\neg",!0);W(ee,be,tt,"¬","\\lnot");W(ee,be,tt,"⊤","\\top");W(ee,be,tt,"⊥","\\bot");W(ee,be,tt,"∅","\\emptyset");W(ee,He,tt,"∅","\\varnothing");W(ee,be,Ar,"α","\\alpha",!0);W(ee,be,Ar,"β","\\beta",!0);W(ee,be,Ar,"γ","\\gamma",!0);W(ee,be,Ar,"δ","\\delta",!0);W(ee,be,Ar,"ϵ","\\epsilon",!0);W(ee,be,Ar,"ζ","\\zeta",!0);W(ee,be,Ar,"η","\\eta",!0);W(ee,be,Ar,"θ","\\theta",!0);W(ee,be,Ar,"ι","\\iota",!0);W(ee,be,Ar,"κ","\\kappa",!0);W(ee,be,Ar,"λ","\\lambda",!0);W(ee,be,Ar,"μ","\\mu",!0);W(ee,be,Ar,"ν","\\nu",!0);W(ee,be,Ar,"ξ","\\xi",!0);W(ee,be,Ar,"ο","\\omicron",!0);W(ee,be,Ar,"π","\\pi",!0);W(ee,be,Ar,"ρ","\\rho",!0);W(ee,be,Ar,"σ","\\sigma",!0);W(ee,be,Ar,"τ","\\tau",!0);W(ee,be,Ar,"υ","\\upsilon",!0);W(ee,be,Ar,"ϕ","\\phi",!0);W(ee,be,Ar,"χ","\\chi",!0);W(ee,be,Ar,"ψ","\\psi",!0);W(ee,be,Ar,"ω","\\omega",!0);W(ee,be,Ar,"ε","\\varepsilon",!0);W(ee,be,Ar,"ϑ","\\vartheta",!0);W(ee,be,Ar,"ϖ","\\varpi",!0);W(ee,be,Ar,"ϱ","\\varrho",!0);W(ee,be,Ar,"ς","\\varsigma",!0);W(ee,be,Ar,"φ","\\varphi",!0);W(ee,be,cr,"∗","*",!0);W(ee,be,cr,"+","+");W(ee,be,cr,"−","-",!0);W(ee,be,cr,"⋅","\\cdot",!0);W(ee,be,cr,"∘","\\circ",!0);W(ee,be,cr,"÷","\\div",!0);W(ee,be,cr,"±","\\pm",!0);W(ee,be,cr,"×","\\times",!0);W(ee,be,cr,"∩","\\cap",!0);W(ee,be,cr,"∪","\\cup",!0);W(ee,be,cr,"∖","\\setminus",!0);W(ee,be,cr,"∧","\\land");W(ee,be,cr,"∨","\\lor");W(ee,be,cr,"∧","\\wedge",!0);W(ee,be,cr,"∨","\\vee",!0);W(ee,be,tt,"√","\\surd");W(ee,be,qo,"⟨","\\langle",!0);W(ee,be,qo,"∣","\\lvert");W(ee,be,qo,"∥","\\lVert");W(ee,be,js,"?","?");W(ee,be,js,"!","!");W(ee,be,js,"⟩","\\rangle",!0);W(ee,be,js,"∣","\\rvert");W(ee,be,js,"∥","\\rVert");W(ee,be,je,"=","=");W(ee,be,je,":",":");W(ee,be,je,"≈","\\approx",!0);W(ee,be,je,"≅","\\cong",!0);W(ee,be,je,"≥","\\ge");W(ee,be,je,"≥","\\geq",!0);W(ee,be,je,"←","\\gets");W(ee,be,je,">","\\gt",!0);W(ee,be,je,"∈","\\in",!0);W(ee,be,je,"","\\@not");W(ee,be,je,"⊂","\\subset",!0);W(ee,be,je,"⊃","\\supset",!0);W(ee,be,je,"⊆","\\subseteq",!0);W(ee,be,je,"⊇","\\supseteq",!0);W(ee,He,je,"⊈","\\nsubseteq",!0);W(ee,He,je,"⊉","\\nsupseteq",!0);W(ee,be,je,"⊨","\\models");W(ee,be,je,"←","\\leftarrow",!0);W(ee,be,je,"≤","\\le");W(ee,be,je,"≤","\\leq",!0);W(ee,be,je,"<","\\lt",!0);W(ee,be,je,"→","\\rightarrow",!0);W(ee,be,je,"→","\\to");W(ee,He,je,"≱","\\ngeq",!0);W(ee,He,je,"≰","\\nleq",!0);W(ee,be,U0," ","\\ ");W(ee,be,U0," ","\\space");W(ee,be,U0," ","\\nobreakspace");W(Pt,be,U0," ","\\ ");W(Pt,be,U0," "," ");W(Pt,be,U0," ","\\space");W(Pt,be,U0," ","\\nobreakspace");W(ee,be,U0,"","\\nobreak");W(ee,be,U0,"","\\allowbreak");W(ee,be,J4,",",",");W(ee,be,J4,";",";");W(ee,He,cr,"⊼","\\barwedge",!0);W(ee,He,cr,"⊻","\\veebar",!0);W(ee,be,cr,"⊙","\\odot",!0);W(ee,be,cr,"⊕","\\oplus",!0);W(ee,be,cr,"⊗","\\otimes",!0);W(ee,be,tt,"∂","\\partial",!0);W(ee,be,cr,"⊘","\\oslash",!0);W(ee,He,cr,"⊚","\\circledcirc",!0);W(ee,He,cr,"⊡","\\boxdot",!0);W(ee,be,cr,"△","\\bigtriangleup");W(ee,be,cr,"▽","\\bigtriangledown");W(ee,be,cr,"†","\\dagger");W(ee,be,cr,"⋄","\\diamond");W(ee,be,cr,"⋆","\\star");W(ee,be,cr,"◃","\\triangleleft");W(ee,be,cr,"▹","\\triangleright");W(ee,be,qo,"{","\\{");W(Pt,be,tt,"{","\\{");W(Pt,be,tt,"{","\\textbraceleft");W(ee,be,js,"}","\\}");W(Pt,be,tt,"}","\\}");W(Pt,be,tt,"}","\\textbraceright");W(ee,be,qo,"{","\\lbrace");W(ee,be,js,"}","\\rbrace");W(ee,be,qo,"[","\\lbrack",!0);W(Pt,be,tt,"[","\\lbrack",!0);W(ee,be,js,"]","\\rbrack",!0);W(Pt,be,tt,"]","\\rbrack",!0);W(ee,be,qo,"(","\\lparen",!0);W(ee,be,js,")","\\rparen",!0);W(Pt,be,tt,"<","\\textless",!0);W(Pt,be,tt,">","\\textgreater",!0);W(ee,be,qo,"⌊","\\lfloor",!0);W(ee,be,js,"⌋","\\rfloor",!0);W(ee,be,qo,"⌈","\\lceil",!0);W(ee,be,js,"⌉","\\rceil",!0);W(ee,be,tt,"\\","\\backslash");W(ee,be,tt,"∣","|");W(ee,be,tt,"∣","\\vert");W(Pt,be,tt,"|","\\textbar",!0);W(ee,be,tt,"∥","\\|");W(ee,be,tt,"∥","\\Vert");W(Pt,be,tt,"∥","\\textbardbl");W(Pt,be,tt,"~","\\textasciitilde");W(Pt,be,tt,"\\","\\textbackslash");W(Pt,be,tt,"^","\\textasciicircum");W(ee,be,je,"↑","\\uparrow",!0);W(ee,be,je,"⇑","\\Uparrow",!0);W(ee,be,je,"↓","\\downarrow",!0);W(ee,be,je,"⇓","\\Downarrow",!0);W(ee,be,je,"↕","\\updownarrow",!0);W(ee,be,je,"⇕","\\Updownarrow",!0);W(ee,be,ca,"∐","\\coprod");W(ee,be,ca,"⋁","\\bigvee");W(ee,be,ca,"⋀","\\bigwedge");W(ee,be,ca,"⨄","\\biguplus");W(ee,be,ca,"⋂","\\bigcap");W(ee,be,ca,"⋃","\\bigcup");W(ee,be,ca,"∫","\\int");W(ee,be,ca,"∫","\\intop");W(ee,be,ca,"∬","\\iint");W(ee,be,ca,"∭","\\iiint");W(ee,be,ca,"∏","\\prod");W(ee,be,ca,"∑","\\sum");W(ee,be,ca,"⨂","\\bigotimes");W(ee,be,ca,"⨁","\\bigoplus");W(ee,be,ca,"⨀","\\bigodot");W(ee,be,ca,"∮","\\oint");W(ee,be,ca,"∯","\\oiint");W(ee,be,ca,"∰","\\oiiint");W(ee,be,ca,"⨆","\\bigsqcup");W(ee,be,ca,"∫","\\smallint");W(Pt,be,Bb,"…","\\textellipsis");W(ee,be,Bb,"…","\\mathellipsis");W(Pt,be,Bb,"…","\\ldots",!0);W(ee,be,Bb,"…","\\ldots",!0);W(ee,be,Bb,"⋯","\\@cdots",!0);W(ee,be,Bb,"⋱","\\ddots",!0);W(ee,be,tt,"⋮","\\varvdots");W(Pt,be,tt,"⋮","\\varvdots");W(ee,be,mi,"ˊ","\\acute");W(ee,be,mi,"ˋ","\\grave");W(ee,be,mi,"¨","\\ddot");W(ee,be,mi,"~","\\tilde");W(ee,be,mi,"ˉ","\\bar");W(ee,be,mi,"˘","\\breve");W(ee,be,mi,"ˇ","\\check");W(ee,be,mi,"^","\\hat");W(ee,be,mi,"⃗","\\vec");W(ee,be,mi,"˙","\\dot");W(ee,be,mi,"˚","\\mathring");W(ee,be,Ar,"","\\@imath");W(ee,be,Ar,"","\\@jmath");W(ee,be,tt,"ı","ı");W(ee,be,tt,"ȷ","ȷ");W(Pt,be,tt,"ı","\\i",!0);W(Pt,be,tt,"ȷ","\\j",!0);W(Pt,be,tt,"ß","\\ss",!0);W(Pt,be,tt,"æ","\\ae",!0);W(Pt,be,tt,"œ","\\oe",!0);W(Pt,be,tt,"ø","\\o",!0);W(Pt,be,tt,"Æ","\\AE",!0);W(Pt,be,tt,"Œ","\\OE",!0);W(Pt,be,tt,"Ø","\\O",!0);W(Pt,be,mi,"ˊ","\\'");W(Pt,be,mi,"ˋ","\\`");W(Pt,be,mi,"ˆ","\\^");W(Pt,be,mi,"˜","\\~");W(Pt,be,mi,"ˉ","\\=");W(Pt,be,mi,"˘","\\u");W(Pt,be,mi,"˙","\\.");W(Pt,be,mi,"¸","\\c");W(Pt,be,mi,"˚","\\r");W(Pt,be,mi,"ˇ","\\v");W(Pt,be,mi,"¨",'\\"');W(Pt,be,mi,"˝","\\H");W(Pt,be,mi,"◯","\\textcircled");var fue={"--":!0,"---":!0,"``":!0,"''":!0};W(Pt,be,tt,"–","--",!0);W(Pt,be,tt,"–","\\textendash");W(Pt,be,tt,"—","---",!0);W(Pt,be,tt,"—","\\textemdash");W(Pt,be,tt,"‘","`",!0);W(Pt,be,tt,"‘","\\textquoteleft");W(Pt,be,tt,"’","'",!0);W(Pt,be,tt,"’","\\textquoteright");W(Pt,be,tt,"“","``",!0);W(Pt,be,tt,"“","\\textquotedblleft");W(Pt,be,tt,"”","''",!0);W(Pt,be,tt,"”","\\textquotedblright");W(ee,be,tt,"°","\\degree",!0);W(Pt,be,tt,"°","\\degree");W(Pt,be,tt,"°","\\textdegree",!0);W(ee,be,tt,"£","\\pounds");W(ee,be,tt,"£","\\mathsterling",!0);W(Pt,be,tt,"£","\\pounds");W(Pt,be,tt,"£","\\textsterling",!0);W(ee,He,tt,"✠","\\maltese");W(Pt,He,tt,"✠","\\maltese");var MK='0123456789/@."';for(var N8=0;N8{var e=t.charCodeAt(0),r=t.charCodeAt(1),n=(e-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return HK[i]}else if(120782<=n&&n<=120831){var a=Math.floor((n-120782)/10);return JLe[a]}else{if(n===120485||n===120486)return HK[0];if(120486{if(Jd(t.classes)!==Jd(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var i of Object.keys(e.style))if(t.style[i]!==e.style[i])return!1;return!0},pue=t=>{for(var e=0;er&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=i},zt=function(e,r,n,i){var a=new Pb(e,r,n,i);return tU(a),a},th=(t,e,r,n)=>new Pb(t,e,r,n),G_=function(e,r,n){var i=zt([e],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=Jt(i.height),i.maxFontSize=1,i},nMe=function(e,r,n,i){var a=new Jw(e,r,n,i);return tU(a),a},G0=function(e){var r=new Mb(e);return tU(r),r},q_=function(e,r){return e instanceof Mb?zt([],[e],r):e},iMe=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s{var r=zt(["mspace"],[],e),n=wi(t,e);return r.style.marginRight=Jt(n),r},hx=(t,e,r)=>{var n,i;switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}return e==="textbf"&&r==="textit"?i="BoldItalic":e==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",n+"-"+i},SM={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"}},mue={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},yue=function(e,r){var[n,i,a]=mue[e],s=new eh(n),o=new b0([s],{width:Jt(i),height:Jt(a),style:"width:"+Jt(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=th(["overlay"],[o],r);return l.height=a,l.style.height=Jt(a),l.style.width=Jt(i),l},Ti={number:3,unit:"mu"},Jh={number:4,unit:"mu"},Mu={number:5,unit:"mu"},aMe={mord:{mop:Ti,mbin:Jh,mrel:Mu,minner:Ti},mop:{mord:Ti,mop:Ti,mrel:Mu,minner:Ti},mbin:{mord:Jh,mop:Jh,mopen:Jh,minner:Jh},mrel:{mord:Mu,mop:Mu,mopen:Mu,minner:Mu},mopen:{},mclose:{mop:Ti,mbin:Jh,mrel:Mu,minner:Ti},mpunct:{mord:Ti,mop:Ti,mrel:Mu,mopen:Ti,mclose:Ti,mpunct:Ti,minner:Ti},minner:{mord:Ti,mop:Ti,mbin:Jh,mrel:Mu,mopen:Ti,mpunct:Ti,minner:Ti}},sMe={mord:{mop:Ti},mop:{mord:Ti,mop:Ti},mbin:{},mrel:{},mopen:{},mclose:{mop:Ti},mpunct:{},minner:{mop:Ti}},vue={},RS={},NS={};function ar(t){for(var{type:e,names:r,htmlBuilder:n,mathmlBuilder:i}=t,a=0;a{var y=m.classes[0],v=g.classes[0];y==="mbin"&&lMe.has(v)?m.classes[0]="mord":v==="mbin"&&oMe.has(y)&&(g.classes[0]="mord")},{node:h},f,p),TM(a,(g,m)=>{var y,v,b=CM(m),_=CM(g),E=b&&_?g.hasClass("mtight")?(y=sMe[b])==null?void 0:y[_]:(v=aMe[b])==null?void 0:v[_]:null;if(E)return gue(E,u)},{node:h},f,p),a},TM=function(e,r,n,i,a){i&&e.push(i);for(var s=0;sf=>{e.splice(h+1,0,f),s++})(s)}i&&e.pop()},_ue=function(e){return e instanceof Mb||e instanceof Jw||e instanceof Pb&&e.hasClass("enclosing")?e:null},xM=function(e,r){var n=_ue(e);if(n){var i=n.children;if(i.length){if(r==="right")return xM(i[i.length-1],"right");if(r==="left")return xM(i[0],"left")}}return e},CM=function(e,r){if(!e)return null;r&&(e=xM(e,r));var n=e.classes[0];return uMe[n]||null},IS=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return zt(r.concat(n))},An=function(e,r,n){if(!e)return zt();if(RS[e.type]){var i=RS[e.type](e,r);if(n&&r.size!==n.size){i=zt(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Vt("Got group of unknown type: '"+e.type+"'")};function fx(t,e){var r=zt(["base"],t,e),n=zt(["strut"]);return n.style.height=Jt(r.height+r.depth),r.depth&&(n.style.verticalAlign=Jt(-r.depth)),r.children.unshift(n),r}function wM(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=Ca(t,e,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],s=[],o=0;o0&&(a.push(fx(s,e)),s=[]),a.push(n[o]));s.length>0&&a.push(fx(s,e));var u;r?(u=fx(Ca(r,e,!0),e),u.classes=["tag"],a.push(u)):i&&a.push(i);var d=zt(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),u){var h=u.children[0];h.style.height=Jt(d.height+d.depth),d.depth&&(h.style.verticalAlign=Jt(-d.depth))}return d}function bue(t){return new Mb(t)}let Ht=class{constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&e.setAttribute(r,this.attributes[r]);this.classes.length>0&&(e.className=Jd(this.classes));for(var n=0;n0&&(e+=' class ="'+ls(Jd(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}},ra=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ls(this.toText())}toText(){return this.text}},Eue=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",Jt(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}};var dMe=new Set(["\\imath","\\jmath"]),hMe=new Set(["mrow","mtable"]),wl=function(e,r,n){return di[r][e]&&di[r][e].replace&&e.charCodeAt(0)!==55349&&!(fue.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=di[r][e].replace),new ra(e)},rU=function(e){return e.length===1?e[0]:new Ht("mrow",e)},fMe={mathit:"italic",boldsymbol:t=>t.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},nU=(t,e)=>{if(t.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var r=e.font;if(!r||r==="mathnormal")return null;var n=t.mode,i=fMe[r];if(i)return typeof i=="function"?i(t):i;var a=t.text;if(dMe.has(a))return null;if(di[n][a]){var s=di[n][a].replace;s&&(a=s)}var o=SM[r].fontName;return Jz(a,o,n)?SM[r].variant:null};function L8(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof ra&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof ra&&r.text===","}else return!1}var Yo=function(e,r,n){if(e.length===1){var i=$n(e[0],r);return n&&i instanceof Ht&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||L8(s))){var u=l.children[0];u instanceof Ht&&u.type==="mn"&&(u.children=[...s.children,...u.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof ra&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof ra&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),a.pop())}}}a.push(l),s=l}return a},rh=function(e,r,n){return rU(Yo(e,r,n))},$n=function(e,r){if(!e)return new Ht("mrow");if(NS[e.type])return NS[e.type](e,r);throw new Vt("Got group of unknown type: '"+e.type+"'")};function VK(t,e,r,n,i){var a=Yo(t,r),s;a.length===1&&a[0]instanceof Ht&&hMe.has(a[0].type)?s=a[0]:s=new Ht("mrow",a);var o=new Ht("annotation",[new ra(e)]);o.setAttribute("encoding","application/x-tex");var l=new Ht("semantics",[s,o]),u=new Ht("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var d=i?"katex":"katex-mathml";return zt([d],[u])}var pMe=[[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]],WK=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],KK=function(e,r){return r.size<2?e:pMe[e-1][r.size-1]};let Sue=class vf{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||vf.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=WK[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={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};return Object.assign(r,e),new vf(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:KK(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:WK[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=KK(vf.BASESIZE,e);return this.size===r&&this.textSize===vf.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var 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!==vf.BASESIZE?["sizing","reset-size"+this.size,"size"+vf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=QLe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Sue.BASESIZE=6;var Tue=function(e){return new Sue({style:e.displayMode?Xr.DISPLAY:Xr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},xue=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=zt(n,[e])}return e},gMe=function(e,r,n){var i=Tue(n),a;if(n.output==="mathml")return VK(e,r,i,n.displayMode,!0);if(n.output==="html"){var s=wM(e,i);a=zt(["katex"],[s])}else{var o=VK(e,r,i,n.displayMode,!1),l=wM(e,i);a=zt(["katex"],[o,l])}return xue(a,n)},mMe=function(e,r,n){var i=Tue(n),a=wM(e,i),s=zt(["katex"],[a]);return xue(s,n)},yMe={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",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":"="},rk=function(e){var r=new Ht("mo",[new ra(yMe[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},vMe={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],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],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]},_Me=new Set(["widehat","widecheck","widetilde","utilde"]),nk=function(e,r){function n(){var o=4e5,l=e.label.slice(1);if(_Me.has(l)&&"base"in e){var u=e.base.type==="ordgroup"?e.base.body.length:1,d,h,f;if(u>5)l==="widehat"||l==="widecheck"?(d=420,o=2364,f=.42,h=l+"4"):(d=312,o=2340,f=.34,h="tilde4");else{var p=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][p],d=[0,239,300,360,420][p],f=[0,.24,.3,.3,.36,.42][p],h=l+p):(o=[0,600,1033,2339,2340][p],d=[0,260,286,306,312][p],f=[0,.26,.286,.3,.306,.34][p],h="tilde"+p)}var g=new eh(h),m=new b0([g],{width:"100%",height:Jt(f),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:th([],[m],r),minWidth:0,height:f}}else{var y=[],v=vMe[l];if(!v)throw new Error('No SVG data for "'+l+'".');var[b,_,E]=v,x=E/1e3,C=b.length,T,w;if(C===1){if(v.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+l+'".');T=["hide-tail"],w=[v[3]]}else if(C===2)T=["halfarrow-left","halfarrow-right"],w=["xMinYMin","xMaxYMin"];else if(C===3)T=["brace-left","brace-center","brace-right"],w=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+C+" children.");for(var N=0;N0&&(i.style.minWidth=Jt(a)),i},bMe=function(e,r,n,i,a){var s,o=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=zt(["stretchy",r],[],a),r==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new mM({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new mM({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new b0(u,{width:"100%",height:Jt(o)});s=th([],[d],a)}return s.height=o,s.style.height=Jt(o),s},EMe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},SMe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function TMe(t){return t in EMe}function Jr(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function ik(t){var e=ak(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function ak(t){return t&&(t.type==="atom"||SMe.hasOwnProperty(t.type))?t:null}var Cue=t=>{if(t instanceof Po)return t;if(jLe(t)&&t.children.length===1)return Cue(t.children[0])},wue=(t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=Jr(t.base,"accent"),r=n.base,t.base=r,i=XLe(An(t,e)),t.base=n):(n=Jr(t,"accent"),r=n.base);var a=An(r,e.havingCrampedStyle()),s=n.isShifty&&z0(r),o=0;if(s){var l,u;o=(l=(u=Cue(a))==null?void 0:u.skew)!=null?l:0}var d=n.label==="\\c",h=d?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=nk(n,e),f=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Jt(2*o)+")",marginLeft:Jt(2*o)}:void 0}]});else{var p,g;n.label==="\\vec"?(p=yue("vec",e),g=mue.vec[1]):(p=tk({type:"textord",mode:n.mode,text:n.label},e),p=KLe(p),p.italic=0,g=p.width,d&&(h+=p.depth)),f=zt(["accent-body"],[p]);var m=n.label==="\\textcircled";m&&(f.classes.push("accent-full"),h=a.height);var y=o;m||(y-=g/2),f.style.left=Jt(y),n.label==="\\textcircled"&&(f.style.top=".2em"),f=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:f}]})}var v=zt(["mord","accent"],[f],e);return i?(i.children[0]=v,i.height=Math.max(v.height,i.height),i.classes[0]="mord",i):v},xMe=(t,e)=>{var r=t.isStretchy?rk(t.label):new Ht("mo",[wl(t.label,t.mode)]),n=new Ht("mover",[$n(t.base,e),r]);return n.setAttribute("accent","true"),n},CMe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));ar({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"],numArgs:1,handler:(t,e)=>{var r=yC(e[0]),n=!CMe.test(t.funcName),i=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:wue,mathmlBuilder:xMe});ar({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}}});ar({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(t,e)=>{var r=An(t.base,e),n=nk(t,e),i=t.label==="\\utilde"?.12:0,a=Cn({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return zt(["mord","accentunder"],[a],e)},mathmlBuilder:(t,e)=>{var r=rk(t.label),n=new Ht("munder",[$n(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var px=t=>{var e=new Ht("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};ar({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"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var{parser:n,funcName:i}=t;return{type:"xArrow",mode:n.mode,label:i,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),i=q_(An(t.body,n,e),e),a=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=q_(An(t.below,n,e),e),s.classes.push(a+"-arrow-pad"));var o=nk(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(u-=i.depth);var d;if(s){var h=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=Cn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:h}]})}else d=Cn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]}]});return zt(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var r=rk(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var i=px($n(t.body,e));if(t.below){var a=px($n(t.below,e));n=new Ht("munderover",[r,a,i])}else n=new Ht("mover",[r,i])}else if(t.below){var s=px($n(t.below,e));n=new Ht("munder",[r,s])}else n=px(),n=new Ht("mover",[r,n]);return n}});function wMe(t,e){var r=Ca(t.body,e,!0);return zt([t.mclass],r,e)}function kMe(t,e){var r,n=Yo(t.body,e);return t.mclass==="minner"?r=new Ht("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new Ht("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new Ht("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):(t.mclass==="mopen"||t.mclass==="mclose")&&(r.attributes.lspace="0em",r.attributes.rspace="0em")),r}ar({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:ta(i),isCharacterBox:z0(i)}},htmlBuilder:wMe,mathmlBuilder:kMe});var sk=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};ar({type:"mclass",names:["\\@binrel"],numArgs:2,handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:sk(e[0]),body:ta(e[1]),isCharacterBox:z0(e[1])}}});ar({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(t,e){var{parser:r,funcName:n}=t,i=e[1],a=e[0],s;n!=="\\stackrel"?s=sk(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:ta(i)},l=n==="\\underset"?{type:"supsub",mode:a.mode,base:o,sub:a}:{type:"supsub",mode:a.mode,base:o,sup:a};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:z0(l)}}});ar({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:sk(e[0]),body:ta(e[0])}},htmlBuilder(t,e){var r=Ca(t.body,e,!0),n=zt([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=Yo(t.body,e),n=new Ht("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var AMe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},XK=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),jK=t=>t.type==="textord"&&t.text==="@",RMe=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function NMe(t,e,r){var n=AMe[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[e[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function IMe(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new Vt("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],i=[n],a=0;aAV".includes(u))for(var h=0;h<2;h++){for(var f=!0,p=l+1;pAV=|." after @',s[l]);var g=NMe(u,d,t),m={type:"styling",body:[g],mode:"math",style:"display",resetFont:!0};n.push(m),o=XK()}a%2===0?n.push(o):n.shift(),n=[],i.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var y=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:y,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ar({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(t,e){var{parser:r,funcName:n}=t;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=q_(An(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=Jt(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new Ht("mrow",[$n(t.label,e)]);return r=new Ht("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Ht("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ar({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(t,e){var{parser:r}=t;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=q_(An(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Ht("mrow",[$n(t.fragment,e)])}});ar({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(t,e){for(var{parser:r}=t,n=Jr(e[0],"ordgroup"),i=n.body,a="",s=0;s=1114111)throw new Vt("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var OMe=(t,e)=>{var r=Ca(t.body,e.withColor(t.color),!1);return G0(r)},DMe=(t,e)=>{var r=Yo(t.body,e.withColor(t.color)),n=new Ht("mstyle",r);return n.setAttribute("mathcolor",t.color),n};ar({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(t,e){var{parser:r}=t,n=Jr(e[0],"color-token").color,i=e[1];return{type:"color",mode:r.mode,color:n,body:ta(i)}},htmlBuilder:OMe,mathmlBuilder:DMe});ar({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(t,e){var{parser:r,breakOnTokenText:n}=t,i=Jr(e[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}}});ar({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(t,e,r){var{parser:n}=t,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&Jr(i,"size").value}},htmlBuilder(t,e){var r=zt(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=Jt(wi(t.size,e)))),r},mathmlBuilder(t,e){var r=new Ht("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",Jt(wi(t.size,e)))),r}});var kM={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},kue=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Vt("Expected a control sequence",t);return e},LMe=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},Aue=(t,e,r,n)=>{var i=t.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,i,n)};ar({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(t){var{parser:e,funcName:r}=t;e.consumeSpaces();var n=e.fetch();if(kM[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=kM[n.text]),Jr(e.parseFunction(),"internal");throw new Vt("Invalid token after macro prefix",n)}});ar({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var{parser:e,funcName:r}=t,n=e.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Vt("Expected a control sequence",n);for(var a=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[a].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Vt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new Vt('Argument number "'+n.text+'" out of order');a++,o.push([])}else{if(n.text==="EOF")throw new Vt("Expected a macro definition");o[a].push(n.text)}var{tokens:l}=e.gullet.consumeArg();return s&&l.unshift(s),(r==="\\edef"||r==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},r===kM[r]),{type:"internal",mode:e.mode}}});ar({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var{parser:e,funcName:r}=t,n=kue(e.gullet.popToken());e.gullet.consumeSpaces();var i=LMe(e);return Aue(e,n,i,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});ar({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var{parser:e,funcName:r}=t,n=kue(e.gullet.popToken()),i=e.gullet.popToken(),a=e.gullet.popToken();return Aue(e,n,a,r==="\\\\globalfuture"),e.gullet.pushToken(a),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var aE=function(e,r,n){var i=di.math[e]&&di.math[e].replace,a=Jz(i||e,r,n);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return a},iU=function(e,r,n,i){var a=n.havingBaseStyle(r),s=zt(i.concat(a.sizingClasses(n)),[e],n),o=a.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},Rue=function(e,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Jt(a),e.height-=a,e.depth+=a},MMe=function(e,r,n,i,a,s){var o=ks(e,"Main-Regular",a,i),l=iU(o,r,i,s);return Rue(l,i,r),l},PMe=function(e,r,n,i){return ks(e,"Size"+r+"-Regular",n,i)},Nue=function(e,r,n,i,a,s){var o=PMe(e,r,a,i),l=iU(zt(["delimsizing","size"+r],[o],i),Xr.TEXT,i,s);return n&&Rue(l,i,Xr.TEXT),l},M8=function(e,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=zt(["delimsizinginner",i],[zt([],[ks(e,r,n)])]);return{type:"elem",elem:a}},P8=function(e,r,n){var i=Hc["Size4-Regular"][e.charCodeAt(0)]?Hc["Size4-Regular"][e.charCodeAt(0)][4]:Hc["Size1-Regular"][e.charCodeAt(0)][4],a=new eh("inner",ULe(e,Math.round(1e3*r))),s=new b0([a],{width:Jt(i),height:Jt(r),style:"width:"+Jt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=th([],[s],n);return o.height=r,o.style.height=Jt(r),o.style.width=Jt(i),{type:"elem",elem:o}},AM=.008,gx={type:"kern",size:-1*AM},BMe=new Set(["|","\\lvert","\\rvert","\\vert"]),FMe=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Iue=function(e,r,n,i,a,s){var o,l,u,d,h="",f=0;o=u=d=e,l=null;var p="Size1-Regular";e==="\\uparrow"?u=d="⏐":e==="\\Uparrow"?u=d="‖":e==="\\downarrow"?o=u="⏐":e==="\\Downarrow"?o=u="‖":e==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):BMe.has(e)?(u="∣",h="vert",f=333):FMe.has(e)?(u="∥",h="doublevert",f=556):e==="["||e==="\\lbrack"?(o="⎡",u="⎢",d="⎣",p="Size4-Regular",h="lbrack",f=667):e==="]"||e==="\\rbrack"?(o="⎤",u="⎥",d="⎦",p="Size4-Regular",h="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(u=o="⎢",d="⎣",p="Size4-Regular",h="lfloor",f=667):e==="\\lceil"||e==="⌈"?(o="⎡",u=d="⎢",p="Size4-Regular",h="lceil",f=667):e==="\\rfloor"||e==="⌋"?(u=o="⎥",d="⎦",p="Size4-Regular",h="rfloor",f=667):e==="\\rceil"||e==="⌉"?(o="⎤",u=d="⎥",p="Size4-Regular",h="rceil",f=667):e==="("||e==="\\lparen"?(o="⎛",u="⎜",d="⎝",p="Size4-Regular",h="lparen",f=875):e===")"||e==="\\rparen"?(o="⎞",u="⎟",d="⎠",p="Size4-Regular",h="rparen",f=875):e==="\\{"||e==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",p="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",d="⎩",u="⎪",p="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",d="⎭",u="⎪",p="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",d="⎩",u="⎪",p="Size4-Regular");var g=aE(o,p,a),m=g.height+g.depth,y=aE(u,p,a),v=y.height+y.depth,b=aE(d,p,a),_=b.height+b.depth,E=0,x=1;if(l!==null){var C=aE(l,p,a);E=C.height+C.depth,x=2}var T=m+_+E,w=Math.max(0,Math.ceil((r-T)/(x*v))),N=T+w*x*v,O=i.fontMetrics().axisHeight;n&&(O*=i.sizeMultiplier);var M=N/2-O,$=[];if(h.length>0){var F=N-m-_,A=Math.round(N*1e3),I=GLe(h,Math.round(F*1e3)),D=new eh(h,I),L=Jt(f/1e3),R=Jt(A/1e3),P=new b0([D],{width:L,height:R,viewBox:"0 0 "+f+" "+A}),z=th([],[P],i);z.height=A/1e3,z.style.width=L,z.style.height=R,$.push({type:"elem",elem:z})}else{if($.push(M8(d,p,a)),$.push(gx),l===null){var B=N-m-_+2*AM;$.push(P8(u,B,i))}else{var q=(N-m-_-E)/2+2*AM;$.push(P8(u,q,i)),$.push(gx),$.push(M8(l,p,a)),$.push(gx),$.push(P8(u,q,i))}$.push(gx),$.push(M8(o,p,a))}var Y=i.havingBaseStyle(Xr.TEXT),Q=Cn({positionType:"bottom",positionData:M,children:$});return iU(zt(["delimsizing","mult"],[Q],Y),Xr.TEXT,i,s)},B8=80,F8=.08,$8=function(e,r,n,i,a){var s=zLe(e,i,n),o=new eh(e,s),l=new b0([o],{width:"400em",height:Jt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return th(["hide-tail"],[l],a)},$Me=function(e,r){var n=r.havingBaseSizing(),i=Pue("\\surd",e*n.sizeMultiplier,Mue,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l,u,d,h;return i.type==="small"?(d=1e3+1e3*s+B8,e<1?a=1:e<1.4&&(a=.7),l=(1+s+F8)/a,u=(1+s)/a,o=$8("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",h=.833/a):i.type==="large"?(d=(1e3+B8)*qE[i.size],u=(qE[i.size]+s)/a,l=(qE[i.size]+s+F8)/a,o=$8("sqrtSize"+i.size,l,d,s,r),o.style.minWidth="1.02em",h=1/a):(l=e+s+F8,u=e+s,d=Math.floor(1e3*e+s)+B8,o=$8("sqrtTall",l,d,s,r),o.style.minWidth="0.742em",h=1.056),o.height=u,o.style.height=Jt(l),{span:o,advanceWidth:h,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},Oue=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),zMe=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Due=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),qE=[0,1.2,1.8,2.4,3],Lue=function(e,r,n,i,a){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),Oue.has(e)||Due.has(e))return Nue(e,r,!1,n,i,a);if(zMe.has(e))return Iue(e,qE[r],!1,n,i,a);throw new Vt("Illegal delimiter: '"+e+"'")},UMe=[{type:"small",style:Xr.SCRIPTSCRIPT},{type:"small",style:Xr.SCRIPT},{type:"small",style:Xr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],GMe=[{type:"small",style:Xr.SCRIPTSCRIPT},{type:"small",style:Xr.SCRIPT},{type:"small",style:Xr.TEXT},{type:"stack"}],Mue=[{type:"small",style:Xr.SCRIPTSCRIPT},{type:"small",style:Xr.SCRIPT},{type:"small",style:Xr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],qMe=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},Pue=function(e,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;sr)return o}return n[n.length-1]},RM=function(e,r,n,i,a,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;Due.has(e)?o=UMe:Oue.has(e)?o=Mue:o=GMe;var l=Pue(e,r,o,i);return l.type==="small"?MMe(e,l.style,n,i,a,s):l.type==="large"?Nue(e,l.size,n,i,a,s):Iue(e,r,n,i,a,s)},z8=function(e,r,n,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),h=Math.max(d/500*l,2*d-u);return RM(e,h,!0,i,a,s)},QK={"\\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}},YMe=new Set(["(","\\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 ZK(t){return"isMiddle"in t}function ok(t,e){var r=ak(t);if(r&&YMe.has(r.text))return r;throw r?new Vt("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new Vt("Invalid delimiter type '"+t.type+"'",t)}ar({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(t,e)=>{var r=ok(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:QK[t.funcName].size,mclass:QK[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?zt([t.mclass]):Lue(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(wl(t.delim,t.mode));var r=new Ht("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Jt(qE[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function JK(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ar({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Vt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:ok(e[0],t).text,color:r}}});ar({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=ok(e[0],t),n=t.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=Jr(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(t,e)=>{JK(t);for(var r=Ca(t.body,e,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s{JK(t);var r=Yo(t.body,e);if(t.left!=="."){var n=new Ht("mo",[wl(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var i=new Ht("mo",[wl(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),r.push(i)}return rU(r)}});ar({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=ok(e[0],t);if(!t.parser.leftrightDepth)throw new Vt("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;return t.delim==="."?r=IS(e,[]):(r=Lue(t.delim,1,e,t.mode,[]),r.isMiddle={delim:t.delim,options:e}),r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?wl("|","text"):wl(t.delim,t.mode),n=new Ht("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var HMe=(t,e)=>{var r=q_(An(t.body,e),e),n=t.label.slice(1),i=e.sizeMultiplier,a,s,o=z0(t.body);if(n==="sout")a=zt(["stretchy","sout"]),a.height=e.fontMetrics().defaultRuleThickness/i,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=wi({number:.6,unit:"pt"},e),u=wi({number:.35,unit:"ex"},e),d=e.havingBaseSizing();i=i/d.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=Jt(h/2+l);var f=Math.floor(1e3*h*i),p=FLe(f),g=new b0([new eh("phase",p)],{width:"400em",height:Jt(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=th(["hide-tail"],[g],e),a.style.height=Jt(h),s=r.depth+l+u}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var m,y,v=0;/box/.test(n)?(v=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(n==="colorbox"?0:v),y=m):n==="angl"?(v=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*v,y=Math.max(0,.25-r.depth)):(m=o?.2:0,y=m),a=bMe(r,n,m,y,e),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=Jt(v)):n==="angl"&&v!==.049&&(a.style.borderTopWidth=Jt(v),a.style.borderRightWidth=Jt(v)),s=r.depth+y,t.backgroundColor&&(a.style.backgroundColor=t.backgroundColor,t.borderColor&&(a.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=Cn({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]});else{var _=/cancel|phase/.test(n)?["svg-align"]:[];b=Cn({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:_}]})}return/cancel/.test(n)&&(b.height=r.height,b.depth=r.depth),/cancel/.test(n)&&!o?zt(["mord","cancel-lap"],[b],e):zt(["mord"],[b],e)},VMe=(t,e)=>{var r,n=new Ht(t.label.includes("colorbox")?"mpadded":"menclose",[$n(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+Jt(i)+" solid "+t.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};ar({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(t,e,r){var{parser:n,funcName:i}=t,a=Jr(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:HMe,mathmlBuilder:VMe});ar({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(t,e,r){var{parser:n,funcName:i}=t,a=Jr(e[0],"color-token").color,s=Jr(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:o}}});ar({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});ar({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}}});ar({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(t,e){var{parser:r,funcName:n}=t;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}}});ar({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var Bue={};function du(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var e=t.parser.settings;if(!e.displayMode)throw new Vt("{"+t.envName+"} can be used only in display mode.")},WMe=new Set(["gather","gather*"]);function aU(t){if(!t.includes("ed"))return!t.includes("*")}function Rh(t,e,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:h,leqno:f}=e;if(t.gullet.beginGroup(),u||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=t.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new Vt("Invalid \\arraystretch: "+p)}t.gullet.beginGroup();var g=[],m=[g],y=[],v=[],b=l!=null?[]:void 0;function _(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function E(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new Zl("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),v.push(eX(t));;){var x=t.parseExpression(!1,u?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var C={type:"ordgroup",mode:t.mode,body:x};r&&(C={type:"styling",mode:t.mode,style:r,resetFont:!0,body:[C]}),g.push(C);var T=t.fetch().text;if(T==="&"){if(h&&g.length===h){if(u||o)throw new Vt("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(T==="\\end"){E(),g.length===1&&C.type==="styling"&&C.body.length===1&&C.body[0].type==="ordgroup"&&C.body[0].body.length===0&&(m.length>1||!d)&&m.pop(),v.length0&&(_+=.25),u.push({pos:_,isDashed:it[Oe]})}for(E(s[0]),n=0;n0&&(M+=b,Tit))for(n=0;n=o)){var re=void 0;if(i>0||e.hskipBeforeAndAfter){var ce,ae;re=(ce=(ae=Y)==null?void 0:ae.pregap)!=null?ce:f,re!==0&&(I=zt(["arraycolsep"],[]),I.style.width=Jt(re),A.push(I))}var se=[];for(n=0;n0){for(var Ne=G_("hline",r,d),ut=G_("hdashline",r,d),De=[{type:"elem",elem:qe,shift:0}];u.length>0;){var Je=u.pop(),st=Je.pos-$;Je.isDashed?De.push({type:"elem",elem:ut,shift:st}):De.push({type:"elem",elem:Ne,shift:st})}qe=Cn({positionType:"individualShift",children:De})}if(L.length===0)return zt(["mord"],[qe],r);var ct=Cn({positionType:"individualShift",children:L}),ot=zt(["tag"],[ct],r);return G0([qe,ot])},KMe={c:"center ",l:"left ",r:"right "},fu=function(e,r){for(var n=[],i=new Ht("mtd",[],["mtr-glue"]),a=new Ht("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,m="",y=!1,v=0,b=g.length;g[0].type==="separator"&&(f+="top ",v=1),g[g.length-1].type==="separator"&&(f+="bottom ",b-=1);for(var _=v;_0?"left ":"",f+=N[N.length-1].length>0?"right ":"";for(var O=1;O0&&f&&(m=1),n[p]={type:"align",align:g,pregap:m,postgap:0}}return a.colSeparationType=f?"align":"alignat",a};du({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=ak(e[0]),n=r?[e[0]]:Jr(e[0],"ordgroup").body,i=n.map(function(s){var o=ik(s),l=o.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Vt("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Rh(t.parser,a,sU(t.envName))},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new Vt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=Rh(t.parser,n,sU(t.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[a],left:e[0],right:e[1],rightColor:void 0}:a},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=Rh(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=ak(e[0]),n=r?[e[0]]:Jr(e[0],"ordgroup").body,i=n.map(function(o){var l=ik(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new Vt("Unknown column alignment: "+u,o)});if(i.length>1)throw new Vt("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},s=Rh(t.parser,a,"script");if(s.body.length>0&&s.body[0].length>1)throw new Vt("{subarray} can contain only one column");return s},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Rh(t.parser,e,sU(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Uue,htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){WMe.has(t.envName)&&lk(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:aU(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Rh(t.parser,e,"display")},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Uue,htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){lk(t);var e={autoTag:aU(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Rh(t.parser,e,"display")},htmlBuilder:hu,mathmlBuilder:fu});du({type:"array",names:["CD"],props:{numArgs:0},handler(t){return lk(t),IMe(t.parser)},htmlBuilder:hu,mathmlBuilder:fu});we("\\nonumber","\\gdef\\@eqnsw{0}");we("\\notag","\\nonumber");ar({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(t,e){throw new Vt(t.funcName+" valid only within array environment")}});var tX=Bue;ar({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(t,e){var{parser:r,funcName:n}=t,i=e[0];if(i.type!=="ordgroup")throw new Vt("Invalid environment name",i);for(var a="",s=0;s{var r=t.font,n=e.withFont(r);return An(t.body,n)},jMe=(t,e)=>{var r=t.font,n=e.withFont(r);return $n(t.body,n)},rX={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};ar({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(t,e)=>{var{parser:r,funcName:n}=t,i=yC(e[0]),a=n in rX?rX[n]:n;return{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:XMe,mathmlBuilder:jMe});ar({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"mclass",mode:r.mode,mclass:sk(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:z0(n)}}});ar({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(t,e)=>{var{parser:r,funcName:n,breakOnTokenText:i}=t,{mode:a}=r,s=r.parseExpression(!0,i);return{type:"font",mode:a,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}}});var QMe=(t,e)=>{var r=e.style,n=r.fracNum(),i=r.fracDen(),a;a=e.havingStyle(n);var s=An(t.numer,a,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height0?g=3*f:g=7*f,m=e.fontMetrics().denom1):(h>0?(p=e.fontMetrics().num2,g=f):(p=e.fontMetrics().num3,g=3*f),m=e.fontMetrics().denom2);var y;if(d){var b=e.fontMetrics().axisHeight;p-s.depth-(b+.5*h){var r=new Ht("mfrac",[$n(t.numer,e),$n(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=wi(t.barSize,e);r.setAttribute("linethickness",Jt(n))}if(t.leftDelim!=null||t.rightDelim!=null){var i=[];if(t.leftDelim!=null){var a=new Ht("mo",[new ra(t.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),t.rightDelim!=null){var s=new Ht("mo",[new ra(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}return rU(i)}return r},Gue=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};ar({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1],s,o=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var u=n==="\\cfrac",d=null;return u||n.startsWith("\\d")?d="display":n.startsWith("\\t")&&(d="text"),Gue({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},d)},htmlBuilder:QMe,mathmlBuilder:ZMe});ar({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(t){var{parser:e,funcName:r,token:n}=t,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:n}}});var nX=["display","text","script","scriptscript"],iX=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};ar({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(t,e){var{parser:r}=t,n=e[4],i=e[5],a=yC(e[0]),s=a.type==="atom"&&a.family==="open"?iX(a.text):null,o=yC(e[1]),l=o.type==="atom"&&o.family==="close"?iX(o.text):null,u=Jr(e[2],"size"),d,h=null;u.isBlank?d=!0:(h=u.value,d=h.number>0);var f=null,p=e[3];if(p.type==="ordgroup"){if(p.body.length>0){var g=Jr(p.body[0],"textord");f=nX[Number(g.text)]}}else p=Jr(p,"textord"),f=nX[Number(p.text)];return Gue({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:d,barSize:h,leftDelim:s,rightDelim:l},f)}});ar({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(t,e){var{parser:r,funcName:n,token:i}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Jr(e[0],"size").value,token:i}}});ar({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=Jr(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var s=e[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null}}});var que=(t,e)=>{var r=e.style,n,i;t.type==="supsub"?(n=t.sup?An(t.sup,e.havingStyle(r.sup()),e):An(t.sub,e.havingStyle(r.sub()),e),i=Jr(t.base,"horizBrace")):i=Jr(t,"horizBrace");var a=An(i.base,e.havingBaseStyle(Xr.DISPLAY)),s=nk(i,e),o;if(i.isOver?o=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):o=Cn({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:a}]}),n){var l=zt(["minner",i.isOver?"mover":"munder"],[o],e);i.isOver?o=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=Cn({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return zt(["minner",i.isOver?"mover":"munder"],[o],e)},JMe=(t,e)=>{var r=rk(t.label);return new Ht(t.isOver?"mover":"munder",[$n(t.base,e),r])};ar({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(t,e){var{parser:r,funcName:n}=t;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:e[0]}},htmlBuilder:que,mathmlBuilder:JMe});ar({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(t,e)=>{var{parser:r}=t,n=e[1],i=Jr(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:ta(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=Ca(t.body,e,!1);return nMe(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=rh(t.body,e);return r instanceof Ht||(r=new Ht("mrow",[r])),r.setAttribute("href",t.href),r}});ar({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(t,e)=>{var{parser:r}=t,n=Jr(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:r,funcName:n,token:i}=t,a=Jr(e[0],"raw").string,s=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(n){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),d=0;d{var r=Ca(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var i=zt(n,r,e);for(var a in t.attributes)a!=="class"&&t.attributes.hasOwnProperty(a)&&i.setAttribute(a,t.attributes[a]);return i},mathmlBuilder:(t,e)=>rh(t.body,e)});ar({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(t,e)=>{var{parser:r}=t;return{type:"htmlmathml",mode:r.mode,html:ta(e[0]),mathml:ta(e[1])}},htmlBuilder:(t,e)=>{var r=Ca(t.html,e,!1);return G0(r)},mathmlBuilder:(t,e)=>rh(t.mathml,e)});var U8=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new Vt("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!lue(n))throw new Vt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};ar({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(t,e,r)=>{var{parser:n}=t,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=Jr(r[0],"raw").string,u=l.split(","),d=0;d{var r=wi(t.height,e),n=0;t.totalheight.number>0&&(n=wi(t.totalheight,e)-r);var i=0;t.width.number>0&&(i=wi(t.width,e));var a={height:Jt(r+n)};i>0&&(a.width=Jt(i)),n>0&&(a.verticalAlign=Jt(-n));var s=new VLe(t.src,t.alt,a);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new Ht("mglyph",[]);r.setAttribute("alt",t.alt);var n=wi(t.height,e),i=0;if(t.totalheight.number>0&&(i=wi(t.totalheight,e)-n,r.setAttribute("valign",Jt(-i))),r.setAttribute("height",Jt(n+i)),t.width.number>0){var a=wi(t.width,e);r.setAttribute("width",Jt(a))}return r.setAttribute("src",t.src),r}});ar({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(t,e){var{parser:r,funcName:n}=t,i=Jr(e[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(t,e){return gue(t.dimension,e)},mathmlBuilder(t,e){var r=wi(t.dimension,e);return new Eue(r)}});ar({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=zt([],[An(t.body,e)]),r=zt(["inner"],[r],e)):r=zt(["inner"],[An(t.body,e)]);var n=zt(["fix"],[]),i=zt([t.alignment],[r,n],e),a=zt(["strut"]);return a.style.height=Jt(i.height+i.depth),i.depth&&(a.style.verticalAlign=Jt(-i.depth)),i.children.unshift(a),i=zt(["thinbox"],[i],e),zt(["mord","vbox"],[i],e)},mathmlBuilder:(t,e)=>{var r=new Ht("mpadded",[$n(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});ar({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){var{funcName:r,parser:n}=t,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:s}}});ar({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){throw new Vt("Mismatched "+t.funcName)}});var aX=(t,e)=>{switch(e.style.size){case Xr.DISPLAY.size:return t.display;case Xr.TEXT.size:return t.text;case Xr.SCRIPT.size:return t.script;case Xr.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};ar({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:ta(e[0]),text:ta(e[1]),script:ta(e[2]),scriptscript:ta(e[3])}},htmlBuilder:(t,e)=>{var r=aX(t,e),n=Ca(r,e,!1);return G0(n)},mathmlBuilder:(t,e)=>{var r=aX(t,e);return rh(r,e)}});var Yue=(t,e,r,n,i,a,s)=>{t=zt([],[t]);var o=r&&z0(r),l,u;if(e){var d=An(e,n.havingStyle(i.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=An(r,n.havingStyle(i.sub()),n);l={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var f;if(u&&l){var p=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+s;f=Cn({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Jt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Jt(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var g=t.height-s;f=Cn({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Jt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t}]})}else if(u){var m=t.depth+s;f=Cn({positionType:"bottom",positionData:m,children:[{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Jt(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var y=[f];if(l&&a!==0&&!o){var v=zt(["mspace"],[],n);v.style.marginRight=Jt(a),y.unshift(v)}return zt(["mop","op-limits"],y,n)},Hue=new Set(["\\smallint"]),Vue=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=Jr(t.base,"op"),i=!0):a=Jr(t,"op");var s=e.style,o=!1;s.size===Xr.DISPLAY.size&&a.symbol&&!Hue.has(a.name)&&(o=!0);var l,u;if(a.symbol){var d=o?"Size2-Regular":"Size1-Regular",h="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(h=a.name.slice(1),a.name=h==="oiint"?"\\iint":"\\iiint"),l=ks(a.name,d,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),u=l.italic,h.length>0){var f=yue(h+"Size"+(o?"2":"1"),e);l=Cn({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),a.name="\\"+h,l.classes.unshift("mop"),l.italic=u}}else if(a.body){var p=Ca(a.body,e,!0);p.length===1&&p[0]instanceof Po?(l=p[0],l.classes[0]="mop"):l=zt(["mop"],p,e)}else{for(var g=[],m=1;m{var r;if(t.symbol)r=new Ht("mo",[wl(t.name,t.mode)]),Hue.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new Ht("mo",Yo(t.body,e));else{r=new Ht("mi",[new ra(t.name.slice(1))]);var n=new Ht("mo",[wl("⁡","text")]);t.parentIsSupSub?r=new Ht("mrow",[r,n]):r=bue([r,n])}return r},tPe={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ar({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],numArgs:0,handler:(t,e)=>{var{parser:r,funcName:n}=t,i=n;return i.length===1&&(i=tPe[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Vue,mathmlBuilder:ePe});ar({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ta(n)}}});var rPe={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ar({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"],numArgs:0,handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}}});ar({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}}});ar({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],numArgs:0,allowedInArgument:!0,handler(t){var{parser:e,funcName:r}=t,n=r;return n.length===1&&(n=rPe[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var Wue=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=Jr(t.base,"operatorname"),i=!0):a=Jr(t,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(h=>{var f="text"in h?h.text:void 0;return typeof f=="string"?{type:"textord",mode:h.mode,text:f}:h}),l=Ca(o,e.withFont("mathrm"),!0),u=0;u{for(var r=Yo(t.body,e.withFont("mathrm")),n=!0,i=0;id.toText()).join("");r=[new ra(o)]}var l=new Ht("mi",r);l.setAttribute("mathvariant","normal");var u=new Ht("mo",[wl("⁡","text")]);return t.parentIsSupSub?new Ht("mrow",[l,u]):bue([l,u])};ar({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"operatorname",mode:r.mode,body:ta(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Wue,mathmlBuilder:nPe});we("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Yp({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?G0(Ca(t.body,e,!1)):zt(["mord"],Ca(t.body,e,!0),e)},mathmlBuilder(t,e){return rh(t.body,e,!0)}});ar({type:"overline",names:["\\overline"],numArgs:1,handler(t,e){var{parser:r}=t,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=An(t.body,e.havingCrampedStyle()),n=G_("overline-line",e),i=e.fontMetrics().defaultRuleThickness,a=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return zt(["mord","overline"],[a],e)},mathmlBuilder(t,e){var r=new Ht("mo",[new ra("‾")]);r.setAttribute("stretchy","true");var n=new Ht("mover",[$n(t.body,e),r]);return n.setAttribute("accent","true"),n}});ar({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"phantom",mode:r.mode,body:ta(n)}},htmlBuilder:(t,e)=>{var r=Ca(t.body,e.withPhantom(),!1);return G0(r)},mathmlBuilder:(t,e)=>{var r=Yo(t.body,e);return new Ht("mphantom",r)}});we("\\hphantom","\\smash{\\phantom{#1}}");ar({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=zt(["inner"],[An(t.body,e.withPhantom())]),n=zt(["fix"],[]);return zt(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=Yo(ta(t.body),e),n=new Ht("mphantom",r),i=new Ht("mpadded",[n]);return i.setAttribute("width","0px"),i}});ar({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(t,e){var{parser:r}=t,n=Jr(e[0],"size").value,i=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(t,e){var r=An(t.body,e),n=wi(t.dy,e);return Cn({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Ht("mpadded",[$n(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});ar({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});ar({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(t,e,r){var{parser:n}=t,i=r[0],a=Jr(e[0],"size"),s=Jr(e[1],"size");return{type:"rule",mode:n.mode,shift:i&&Jr(i,"size").value,width:a.value,height:s.value}},htmlBuilder(t,e){var r=zt(["mord","rule"],[],e),n=wi(t.width,e),i=wi(t.height,e),a=t.shift?wi(t.shift,e):0;return r.style.borderRightWidth=Jt(n),r.style.borderTopWidth=Jt(i),r.style.bottom=Jt(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=wi(t.width,e),n=wi(t.height,e),i=t.shift?wi(t.shift,e):0,a=e.color&&e.getColor()||"black",s=new Ht("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",Jt(r)),s.setAttribute("height",Jt(n));var o=new Ht("mpadded",[s]);return i>=0?o.setAttribute("height",Jt(i)):(o.setAttribute("height",Jt(i)),o.setAttribute("depth",Jt(-i))),o.setAttribute("voffset",Jt(i)),o}});function Kue(t,e,r){for(var n=Ca(t,e,!1),i=e.sizeMultiplier/r.sizeMultiplier,a=0;a{var r=e.havingSize(t.size);return Kue(t.body,r,e)};ar({type:"sizing",names:sX,numArgs:0,allowedInText:!0,handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:sX.indexOf(n)+1,body:a}},htmlBuilder:iPe,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=Yo(t.body,r),i=new Ht("mstyle",n);return i.setAttribute("mathsize",Jt(r.sizeMultiplier)),i}});ar({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(t,e,r)=>{var{parser:n}=t,i=!1,a=!1,s=r[0]&&Jr(r[0],"ordgroup");if(s)for(var o,l=0;l{var r=zt([],[An(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return zt(["mord","smash"],[r],e);if(r.children)for(var n=0;n{var r=new Ht("mpadded",[$n(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});ar({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var{parser:n}=t,i=r[0],a=e[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(t,e){var r=An(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=q_(r,e);var n=e.fontMetrics(),i=n.defaultRuleThickness,a=i;e.style.idr.height+r.depth+s&&(s=(s+h-r.height-r.depth)/2);var f=l.height-r.height-s-u;r.style.paddingLeft=Jt(d);var p=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]});if(t.index){var g=e.havingStyle(Xr.SCRIPTSCRIPT),m=An(t.index,g,e),y=.6*(p.height-p.depth),v=Cn({positionType:"shift",positionData:-y,children:[{type:"elem",elem:m}]}),b=zt(["root"],[v]);return zt(["mord","sqrt"],[b,p],e)}else return zt(["mord","sqrt"],[p],e)},mathmlBuilder(t,e){var{body:r,index:n}=t;return n?new Ht("mroot",[$n(r,e),$n(n,e)]):new Ht("msqrt",[$n(r,e)])}});var NM={display:Xr.DISPLAY,text:Xr.TEXT,script:Xr.SCRIPT,scriptscript:Xr.SCRIPTSCRIPT};function aPe(t){return t in NM}ar({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(t,e){var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);if(!aPe(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(t,e){var r=NM[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),Kue(t.body,n,e)},mathmlBuilder(t,e){var r=NM[t.style],n=e.havingStyle(r);t.resetFont&&(n=n.withFont(""));var i=Yo(t.body,n),a=new Ht("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var sPe=function(e,r){var n=e.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===Xr.DISPLAY.size||n.alwaysHandleSupSub);return i?Vue:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===Xr.DISPLAY.size||n.limits);return a?Wue:null}else{if(n.type==="accent")return z0(n.base)?wue:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?que:null}else return null}else return null};Yp({type:"supsub",htmlBuilder(t,e){var r=sPe(t,e);if(r)return r(t,e);var{base:n,sup:i,sub:a}=t,s=An(n,e),o,l,u=e.fontMetrics(),d=0,h=0,f=n&&z0(n);if(i){var p=e.havingStyle(e.style.sup());o=An(i,p,e),f||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(a){var g=e.havingStyle(e.style.sub());l=An(a,g,e),f||(h=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}var m;e.style===Xr.DISPLAY?m=u.sup1:e.style.cramped?m=u.sup3:m=u.sup2;var y=e.sizeMultiplier,v=Jt(.5/u.ptPerEm/y),b=null;if(l){var _=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");if(s instanceof Po||_){var E;b=Jt(-((E=s.italic)!=null?E:0))}}var x;if(o&&l){d=Math.max(d,m,o.depth+.25*u.xHeight),h=Math.max(h,u.sub2);var C=u.defaultRuleThickness,T=4*C;if(d-o.depth-(l.height-h)0&&(d+=w,h-=w)}var N=[{type:"elem",elem:l,shift:h,marginRight:v,marginLeft:b},{type:"elem",elem:o,shift:-d,marginRight:v}];x=Cn({positionType:"individualShift",children:N})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var O=[{type:"elem",elem:l,marginLeft:b,marginRight:v}];x=Cn({positionType:"shift",positionData:h,children:O})}else if(o)d=Math.max(d,m,o.depth+.25*u.xHeight),x=Cn({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:v}]});else throw new Error("supsub must have either sup or sub.");var M=CM(s,"right")||"mord";return zt([M],[s,zt(["msupsub"],[x])],e)},mathmlBuilder(t,e){var r=!1,n,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var a=[$n(t.base,e)];t.sub&&a.push($n(t.sub,e)),t.sup&&a.push($n(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var u=t.base;u&&u.type==="op"&&u.limits&&e.style===Xr.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(e.style===Xr.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===Xr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===Xr.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===Xr.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===Xr.DISPLAY)?s="mover":s="msup"}return new Ht(s,a)}});Yp({type:"atom",htmlBuilder(t,e){return eU(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Ht("mo",[wl(t.text,t.mode)]);if(t.family==="bin"){var n=nU(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var Xue={mi:"italic",mn:"normal",mtext:"normal"};Yp({type:"mathord",htmlBuilder(t,e){return tk(t,e)},mathmlBuilder(t,e){var r=new Ht("mi",[wl(t.text,t.mode,e)]),n=nU(t,e)||"italic";return n!==Xue[r.type]&&r.setAttribute("mathvariant",n),r}});Yp({type:"textord",htmlBuilder(t,e){return tk(t,e)},mathmlBuilder(t,e){var r=wl(t.text,t.mode,e),n=nU(t,e)||"normal",i;return t.mode==="text"?i=new Ht("mtext",[r]):/[0-9]/.test(t.text)?i=new Ht("mn",[r]):t.text==="\\prime"?i=new Ht("mo",[r]):i=new Ht("mi",[r]),n!==Xue[i.type]&&i.setAttribute("mathvariant",n),i}});var G8={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},q8={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Yp({type:"spacing",htmlBuilder(t,e){if(q8.hasOwnProperty(t.text)){var r=q8[t.text].className||"";if(t.mode==="text"){var n=tk(t,e);return n.classes.push(r),n}else return zt(["mspace",r],[eU(t.text,t.mode,e)],e)}else{if(G8.hasOwnProperty(t.text))return zt(["mspace",G8[t.text]],[],e);throw new Vt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(q8.hasOwnProperty(t.text))r=new Ht("mtext",[new ra(" ")]);else{if(G8.hasOwnProperty(t.text))return new Ht("mspace");throw new Vt('Unknown type of space "'+t.text+'"')}return r}});var oX=()=>{var t=new Ht("mtd",[]);return t.setAttribute("width","50%"),t};Yp({type:"tag",mathmlBuilder(t,e){var r=new Ht("mtable",[new Ht("mtr",[oX(),new Ht("mtd",[rh(t.body,e)]),oX(),new Ht("mtd",[rh(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var lX={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},cX={"\\textbf":"textbf","\\textmd":"textmd"},oPe={"\\textit":"textit","\\textup":"textup"},uX=(t,e)=>{var r=t.font;if(r){if(lX[r])return e.withTextFontFamily(lX[r]);if(cX[r])return e.withTextFontWeight(cX[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(oPe[r])};ar({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"text",mode:r.mode,body:ta(i),font:n}},htmlBuilder(t,e){var r=uX(t,e),n=Ca(t.body,r,!0);return zt(["mord","text"],n,r)},mathmlBuilder(t,e){var r=uX(t,e);return rh(t.body,r)}});ar({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(t,e){var{parser:r}=t;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=An(t.body,e),n=G_("underline-line",e),i=e.fontMetrics().defaultRuleThickness,a=Cn({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return zt(["mord","underline"],[a],e)},mathmlBuilder(t,e){var r=new Ht("mo",[new ra("‾")]);r.setAttribute("stretchy","true");var n=new Ht("munder",[$n(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});ar({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(t,e){var{parser:r}=t;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=An(t.body,e),n=e.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return Cn({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Ht("mpadded",[$n(t.body,e)],["vcenter"]);return new Ht("mrow",[r])}});ar({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(t,e,r){throw new Vt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=dX(t),n=[],i=e.havingStyle(e.style.text()),a=0;at.body.replace(/ /g,t.star?"␣":" "),Md=vue,jue=`[ \r + ]`,lPe="\\\\[a-zA-Z@]+",cPe="\\\\[^\uD800-\uDFFF]",uPe="("+lPe+")"+jue+"*",dPe=`\\\\( |[ \r ]+ -?)[ \r ]*`,IM="[̀-ͯ]",dPe=new RegExp(IM+"+$"),hPe="("+jue+"+)|"+(uPe+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(IM+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(IM+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+cPe)+("|"+lPe+")");let hX=class{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(hPe,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new Zl("EOF",new ul(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new Vt("Unexpected character: '"+e[r]+"'",new Zl(e[r],new ul(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=e.indexOf(` -`,this.tokenRegex.lastIndex);return a===-1?(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=a+1,this.lex()}return new Zl(i,new ul(this,r,this.tokenRegex.lastIndex))}},fPe=class{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Vt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}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,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}};var pPe=Fue;we("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});we("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});we("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});we("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});we("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});we("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");we("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var fX={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};we("\\char",function(t){var e=t.popToken(),r,n=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new Vt("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=fX[e.text],n==null||n>=r)throw new Vt("Invalid base-"+r+" digit "+e.text);for(var i;(i=fX[t.future().text])!=null&&i{var i=t.consumeArg().tokens;if(i.length!==1)throw new Vt("\\newcommand's first argument must be a macro name");var a=i[0].text,s=t.isDefined(a);if(s&&!e)throw new Vt("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new Vt("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=t.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var l="",u=t.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Vt("Invalid number of arguments: "+l);o=parseInt(l),i=t.consumeArg().tokens}return s&&n||t.macros.set(a,{tokens:i,numArgs:o}),""};we("\\newcommand",t=>oU(t,!1,!0,!1));we("\\renewcommand",t=>oU(t,!0,!1,!1));we("\\providecommand",t=>oU(t,!0,!0,!0));we("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});we("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});we("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),Md[r],di.math[r],di.text[r]),""});we("\\bgroup","{");we("\\egroup","}");we("~","\\nobreakspace");we("\\lq","`");we("\\rq","'");we("\\aa","\\r a");we("\\AA","\\r A");we("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");we("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");we("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");we("ℬ","\\mathscr{B}");we("ℰ","\\mathscr{E}");we("ℱ","\\mathscr{F}");we("ℋ","\\mathscr{H}");we("ℐ","\\mathscr{I}");we("ℒ","\\mathscr{L}");we("ℳ","\\mathscr{M}");we("ℛ","\\mathscr{R}");we("ℭ","\\mathfrak{C}");we("ℌ","\\mathfrak{H}");we("ℨ","\\mathfrak{Z}");we("\\Bbbk","\\Bbb{k}");we("\\llap","\\mathllap{\\textrm{#1}}");we("\\rlap","\\mathrlap{\\textrm{#1}}");we("\\clap","\\mathclap{\\textrm{#1}}");we("\\mathstrut","\\vphantom{(}");we("\\underbar","\\underline{\\text{#1}}");we("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');we("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");we("\\ne","\\neq");we("≠","\\neq");we("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");we("∉","\\notin");we("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");we("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");we("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");we("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");we("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");we("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");we("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");we("⟂","\\perp");we("‼","\\mathclose{!\\mkern-0.8mu!}");we("∌","\\notni");we("⌜","\\ulcorner");we("⌝","\\urcorner");we("⌞","\\llcorner");we("⌟","\\lrcorner");we("©","\\copyright");we("®","\\textregistered");we("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');we("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');we("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');we("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');we("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");we("⋮","\\vdots");we("\\varGamma","\\mathit{\\Gamma}");we("\\varDelta","\\mathit{\\Delta}");we("\\varTheta","\\mathit{\\Theta}");we("\\varLambda","\\mathit{\\Lambda}");we("\\varXi","\\mathit{\\Xi}");we("\\varPi","\\mathit{\\Pi}");we("\\varSigma","\\mathit{\\Sigma}");we("\\varUpsilon","\\mathit{\\Upsilon}");we("\\varPhi","\\mathit{\\Phi}");we("\\varPsi","\\mathit{\\Psi}");we("\\varOmega","\\mathit{\\Omega}");we("\\substack","\\begin{subarray}{c}#1\\end{subarray}");we("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");we("\\boxed","\\fbox{$\\displaystyle{#1}$}");we("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");we("\\implies","\\DOTSB\\;\\Longrightarrow\\;");we("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");we("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");we("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var pX={",":"\\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"},gPe=new Set(["bin","rel"]);we("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in pX?e=pX[r]:(r.slice(0,4)==="\\not"||r in di.math&&gPe.has(di.math[r].group))&&(e="\\dotsb"),e});var lU={")":!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};we("\\dotso",function(t){var e=t.future().text;return e in lU?"\\ldots\\,":"\\ldots"});we("\\dotsc",function(t){var e=t.future().text;return e in lU&&e!==","?"\\ldots\\,":"\\ldots"});we("\\cdots",function(t){var e=t.future().text;return e in lU?"\\@cdots\\,":"\\@cdots"});we("\\dotsb","\\cdots");we("\\dotsm","\\cdots");we("\\dotsi","\\!\\cdots");we("\\dotsx","\\ldots\\,");we("\\DOTSI","\\relax");we("\\DOTSB","\\relax");we("\\DOTSX","\\relax");we("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");we("\\,","\\tmspace+{3mu}{.1667em}");we("\\thinspace","\\,");we("\\>","\\mskip{4mu}");we("\\:","\\tmspace+{4mu}{.2222em}");we("\\medspace","\\:");we("\\;","\\tmspace+{5mu}{.2777em}");we("\\thickspace","\\;");we("\\!","\\tmspace-{3mu}{.1667em}");we("\\negthinspace","\\!");we("\\negmedspace","\\tmspace-{4mu}{.2222em}");we("\\negthickspace","\\tmspace-{5mu}{.277em}");we("\\enspace","\\kern.5em ");we("\\enskip","\\hskip.5em\\relax");we("\\quad","\\hskip1em\\relax");we("\\qquad","\\hskip2em\\relax");we("\\tag","\\@ifstar\\tag@literal\\tag@paren");we("\\tag@paren","\\tag@literal{({#1})}");we("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new Vt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});we("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");we("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");we("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");we("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");we("\\newline","\\\\\\relax");we("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Que=Jt(Hc["Main-Regular"][84][1]-.7*Hc["Main-Regular"][65][1]);we("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Que+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");we("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Que+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");we("\\hspace","\\@ifstar\\@hspacer\\@hspace");we("\\@hspace","\\hskip #1\\relax");we("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");we("\\ordinarycolon",":");we("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");we("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');we("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');we("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');we("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');we("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');we("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');we("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');we("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');we("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');we("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');we("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');we("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');we("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');we("∷","\\dblcolon");we("∹","\\eqcolon");we("≔","\\coloneqq");we("≕","\\eqqcolon");we("⩴","\\Coloneqq");we("\\ratio","\\vcentcolon");we("\\coloncolon","\\dblcolon");we("\\colonequals","\\coloneqq");we("\\coloncolonequals","\\Coloneqq");we("\\equalscolon","\\eqqcolon");we("\\equalscoloncolon","\\Eqqcolon");we("\\colonminus","\\coloneq");we("\\coloncolonminus","\\Coloneq");we("\\minuscolon","\\eqcolon");we("\\minuscoloncolon","\\Eqcolon");we("\\coloncolonapprox","\\Colonapprox");we("\\coloncolonsim","\\Colonsim");we("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");we("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");we("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");we("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");we("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");we("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");we("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");we("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");we("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");we("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");we("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");we("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");we("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");we("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");we("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");we("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");we("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");we("\\nleqq","\\html@mathml{\\@nleqq}{≰}");we("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");we("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");we("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");we("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");we("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");we("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");we("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");we("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");we("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");we("\\imath","\\html@mathml{\\@imath}{ı}");we("\\jmath","\\html@mathml{\\@jmath}{ȷ}");we("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");we("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");we("⟦","\\llbracket");we("⟧","\\rrbracket");we("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");we("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");we("⦃","\\lBrace");we("⦄","\\rBrace");we("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");we("⦵","\\minuso");we("\\darr","\\downarrow");we("\\dArr","\\Downarrow");we("\\Darr","\\Downarrow");we("\\lang","\\langle");we("\\rang","\\rangle");we("\\uarr","\\uparrow");we("\\uArr","\\Uparrow");we("\\Uarr","\\Uparrow");we("\\N","\\mathbb{N}");we("\\R","\\mathbb{R}");we("\\Z","\\mathbb{Z}");we("\\alef","\\aleph");we("\\alefsym","\\aleph");we("\\Alpha","\\mathrm{A}");we("\\Beta","\\mathrm{B}");we("\\bull","\\bullet");we("\\Chi","\\mathrm{X}");we("\\clubs","\\clubsuit");we("\\cnums","\\mathbb{C}");we("\\Complex","\\mathbb{C}");we("\\Dagger","\\ddagger");we("\\diamonds","\\diamondsuit");we("\\empty","\\emptyset");we("\\Epsilon","\\mathrm{E}");we("\\Eta","\\mathrm{H}");we("\\exist","\\exists");we("\\harr","\\leftrightarrow");we("\\hArr","\\Leftrightarrow");we("\\Harr","\\Leftrightarrow");we("\\hearts","\\heartsuit");we("\\image","\\Im");we("\\infin","\\infty");we("\\Iota","\\mathrm{I}");we("\\isin","\\in");we("\\Kappa","\\mathrm{K}");we("\\larr","\\leftarrow");we("\\lArr","\\Leftarrow");we("\\Larr","\\Leftarrow");we("\\lrarr","\\leftrightarrow");we("\\lrArr","\\Leftrightarrow");we("\\Lrarr","\\Leftrightarrow");we("\\Mu","\\mathrm{M}");we("\\natnums","\\mathbb{N}");we("\\Nu","\\mathrm{N}");we("\\Omicron","\\mathrm{O}");we("\\plusmn","\\pm");we("\\rarr","\\rightarrow");we("\\rArr","\\Rightarrow");we("\\Rarr","\\Rightarrow");we("\\real","\\Re");we("\\reals","\\mathbb{R}");we("\\Reals","\\mathbb{R}");we("\\Rho","\\mathrm{P}");we("\\sdot","\\cdot");we("\\sect","\\S");we("\\spades","\\spadesuit");we("\\sub","\\subset");we("\\sube","\\subseteq");we("\\supe","\\supseteq");we("\\Tau","\\mathrm{T}");we("\\thetasym","\\vartheta");we("\\weierp","\\wp");we("\\Zeta","\\mathrm{Z}");we("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");we("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");we("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");we("\\bra","\\mathinner{\\langle{#1}|}");we("\\ket","\\mathinner{|{#1}\\rangle}");we("\\braket","\\mathinner{\\langle{#1}\\rangle}");we("\\Bra","\\left\\langle#1\\right|");we("\\Ket","\\left|#1\\right\\rangle");var Zue=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,i=e.consumeArg().tokens,a=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=h=>f=>{t&&(f.macros.set("|",s),i.length&&f.macros.set("\\|",o));var p=h;if(!h&&i.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?i:n,numArgs:0}};e.macros.set("|",l(!1)),i.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...a,...u,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};we("\\bra@ket",Zue(!1));we("\\bra@set",Zue(!0));we("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");we("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");we("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");we("\\angln","{\\angl n}");we("\\blue","\\textcolor{##6495ed}{#1}");we("\\orange","\\textcolor{##ffa500}{#1}");we("\\pink","\\textcolor{##ff00af}{#1}");we("\\red","\\textcolor{##df0030}{#1}");we("\\green","\\textcolor{##28ae7b}{#1}");we("\\gray","\\textcolor{gray}{#1}");we("\\purple","\\textcolor{##9d38bd}{#1}");we("\\blueA","\\textcolor{##ccfaff}{#1}");we("\\blueB","\\textcolor{##80f6ff}{#1}");we("\\blueC","\\textcolor{##63d9ea}{#1}");we("\\blueD","\\textcolor{##11accd}{#1}");we("\\blueE","\\textcolor{##0c7f99}{#1}");we("\\tealA","\\textcolor{##94fff5}{#1}");we("\\tealB","\\textcolor{##26edd5}{#1}");we("\\tealC","\\textcolor{##01d1c1}{#1}");we("\\tealD","\\textcolor{##01a995}{#1}");we("\\tealE","\\textcolor{##208170}{#1}");we("\\greenA","\\textcolor{##b6ffb0}{#1}");we("\\greenB","\\textcolor{##8af281}{#1}");we("\\greenC","\\textcolor{##74cf70}{#1}");we("\\greenD","\\textcolor{##1fab54}{#1}");we("\\greenE","\\textcolor{##0d923f}{#1}");we("\\goldA","\\textcolor{##ffd0a9}{#1}");we("\\goldB","\\textcolor{##ffbb71}{#1}");we("\\goldC","\\textcolor{##ff9c39}{#1}");we("\\goldD","\\textcolor{##e07d10}{#1}");we("\\goldE","\\textcolor{##a75a05}{#1}");we("\\redA","\\textcolor{##fca9a9}{#1}");we("\\redB","\\textcolor{##ff8482}{#1}");we("\\redC","\\textcolor{##f9685d}{#1}");we("\\redD","\\textcolor{##e84d39}{#1}");we("\\redE","\\textcolor{##bc2612}{#1}");we("\\maroonA","\\textcolor{##ffbde0}{#1}");we("\\maroonB","\\textcolor{##ff92c6}{#1}");we("\\maroonC","\\textcolor{##ed5fa6}{#1}");we("\\maroonD","\\textcolor{##ca337c}{#1}");we("\\maroonE","\\textcolor{##9e034e}{#1}");we("\\purpleA","\\textcolor{##ddd7ff}{#1}");we("\\purpleB","\\textcolor{##c6b9fc}{#1}");we("\\purpleC","\\textcolor{##aa87ff}{#1}");we("\\purpleD","\\textcolor{##7854ab}{#1}");we("\\purpleE","\\textcolor{##543b78}{#1}");we("\\mintA","\\textcolor{##f5f9e8}{#1}");we("\\mintB","\\textcolor{##edf2df}{#1}");we("\\mintC","\\textcolor{##e0e5cc}{#1}");we("\\grayA","\\textcolor{##f6f7f7}{#1}");we("\\grayB","\\textcolor{##f0f1f2}{#1}");we("\\grayC","\\textcolor{##e3e5e6}{#1}");we("\\grayD","\\textcolor{##d6d8da}{#1}");we("\\grayE","\\textcolor{##babec2}{#1}");we("\\grayF","\\textcolor{##888d93}{#1}");we("\\grayG","\\textcolor{##626569}{#1}");we("\\grayH","\\textcolor{##3b3e40}{#1}");we("\\grayI","\\textcolor{##21242c}{#1}");we("\\kaBlue","\\textcolor{##314453}{#1}");we("\\kaGreen","\\textcolor{##71B307}{#1}");var Jue={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};let mPe=class{constructor(e,r,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=r,this.expansionCount=0,this.feed(e),this.macros=new fPe(pPe,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new hX(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&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){var r,n,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Zl("EOF",n.loc)),this.pushTokens(i),new Zl("",ul.range(r,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Vt("Extra }",a)}else if(a.text==="EOF")throw new Vt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",a);if(e&&n)if((s===0||s===1&&e[o]==="{")&&a.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new Vt("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;ithis.settings.maxExpand)throw new Vt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||e&&i.unexpandable){if(e&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new Vt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Vt("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Vt("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Zl(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var s=i.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var o=new hX(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(e){return this.macros.has(e)||Md.hasOwnProperty(e)||di.math.hasOwnProperty(e)||di.text.hasOwnProperty(e)||Jue.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Md.hasOwnProperty(e)&&!Md[e].primitive}};var gX=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,mx=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Y8={"́":{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"}},mX={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let e0e=class t0e{constructor(e,r){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 mPe(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new Vt("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(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{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Zl("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(t0e.endOfExpression.has(i.text)||r&&i.text===r||e&&Md[i.text]&&Md[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,i=0;i=128)this.settings.strict&&(oue(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:ul.range(e),text:r};else return null;if(this.consume(),a)for(var d=0;d=I?A:""+Array(I+1-L.length).join(D)+A},E={s:_,z:function(A){var I=-A.utcOffset(),D=Math.abs(I),L=Math.floor(D/60),R=D%60;return(I<=0?"+":"-")+_(L,2,"0")+":"+_(R,2,"0")},m:function A(I,D){if(I.date()1)return A(z[0])}else{var B=I.name;C[B]=I,R=B}return!L&&R&&(x=R),R||!L&&x},O=function(A,I){if(w(A))return A.clone();var D=typeof I=="object"?I:{};return D.date=A,D.args=arguments,new $(D)},M=E;M.l=N,M.i=w,M.w=function(A,I){return O(A,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var $=(function(){function A(D){this.$L=N(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[T]=!0}var I=A.prototype;return I.parse=function(D){this.$d=(function(L){var R=L.date,P=L.utc;if(R===null)return new Date(NaN);if(M.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var z=R.match(y);if(z){var B=z[2]-1||0,q=(z[7]||"0").substring(0,3);return P?new Date(Date.UTC(z[1],B,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)):new Date(z[1],B,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)}}return new Date(R)})(D),this.init()},I.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},I.$utils=function(){return M},I.isValid=function(){return this.$d.toString()!==m},I.isSame=function(D,L){var R=O(D);return this.startOf(L)<=R&&R<=this.endOf(L)},I.isAfter=function(D,L){return O(D)l0e(t,"name",{value:e,configurable:!0}),uk=(t,e)=>{for(var r in e)l0e(t,r,{get:e[r],enumerable:!0})},Pu={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ge={trace:S((...t)=>{},"trace"),debug:S((...t)=>{},"debug"),info:S((...t)=>{},"info"),warn:S((...t)=>{},"warn"),error:S((...t)=>{},"error"),fatal:S((...t)=>{},"fatal")},dU=S(function(t="fatal"){let e=Pu.fatal;typeof t=="string"?t.toLowerCase()in Pu&&(e=Pu[t]):typeof t=="number"&&(e=t),ge.trace=()=>{},ge.debug=()=>{},ge.info=()=>{},ge.warn=()=>{},ge.error=()=>{},ge.fatal=()=>{},e<=Pu.fatal&&(ge.fatal=console.error?console.error.bind(console,al("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",al("FATAL"))),e<=Pu.error&&(ge.error=console.error?console.error.bind(console,al("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",al("ERROR"))),e<=Pu.warn&&(ge.warn=console.warn?console.warn.bind(console,al("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",al("WARN"))),e<=Pu.info&&(ge.info=console.info?console.info.bind(console,al("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",al("INFO"))),e<=Pu.debug&&(ge.debug=console.debug?console.debug.bind(console,al("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",al("DEBUG"))),e<=Pu.trace&&(ge.trace=console.debug?console.debug.bind(console,al("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",al("TRACE")))},"setLogLevel"),al=S(t=>`%c${Pa().format("ss.SSS")} : ${t} : `,"format");const U3={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},n)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const i=r<.5?r*(1+e):r+e-r*e,a=2*r-i;switch(n){case"r":return U3.hue2rgb(a,i,t+1/3)*255;case"g":return U3.hue2rgb(a,i,t)*255;case"b":return U3.hue2rgb(a,i,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const i=Math.max(t,e,r),a=Math.min(t,e,r),s=(i+a)/2;if(n==="l")return s*100;if(i===a)return 0;const o=i-a,l=s>.5?o/(2-i-a):o/(i+a);if(n==="s")return l*100;switch(i){case t:return((e-r)/o+(ee>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},TPe={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},qr={channel:U3,lang:SPe,unit:TPe},bd={};for(let t=0;t<=255;t++)bd[t]=qr.unit.dec2hex(t);const ns={ALL:0,RGB:1,HSL:2};let xPe=class{constructor(){this.type=ns.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ns.ALL}is(e){return this.type===e}};class CPe{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new xPe}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=ns.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:n,l:i}=e;r===void 0&&(e.h=qr.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=qr.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=qr.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:n,b:i}=e;r===void 0&&(e.r=qr.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=qr.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=qr.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(ns.HSL)&&r!==void 0?r:(this._ensureHSL(),qr.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(ns.HSL)&&r!==void 0?r:(this._ensureHSL(),qr.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(ns.HSL)&&r!==void 0?r:(this._ensureHSL(),qr.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(ns.RGB)&&r!==void 0?r:(this._ensureRGB(),qr.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(ns.RGB)&&r!==void 0?r:(this._ensureRGB(),qr.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(ns.RGB)&&r!==void 0?r:(this._ensureRGB(),qr.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ns.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ns.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ns.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ns.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ns.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ns.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const dk=new CPe({r:0,g:0,b:0,a:0},"transparent"),qm={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(qm.re);if(!e)return;const r=e[1],n=parseInt(r,16),i=r.length,a=i%4===0,s=i>4,o=s?1:17,l=s?8:4,u=a?0:-1,d=s?255:15;return dk.set({r:(n>>l*(u+3)&d)*o,g:(n>>l*(u+2)&d)*o,b:(n>>l*(u+1)&d)*o,a:a?(n&d)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`#${bd[Math.round(e)]}${bd[Math.round(r)]}${bd[Math.round(n)]}${bd[Math.round(i*255)]}`:`#${bd[Math.round(e)]}${bd[Math.round(r)]}${bd[Math.round(n)]}`}},Zf={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(Zf.hueRe);if(e){const[,r,n]=e;switch(n){case"grad":return qr.channel.clamp.h(parseFloat(r)*.9);case"rad":return qr.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return qr.channel.clamp.h(parseFloat(r)*360)}}return qr.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(Zf.re);if(!r)return;const[,n,i,a,s,o]=r;return dk.set({h:Zf._hue2deg(n),s:qr.channel.clamp.s(parseFloat(i)),l:qr.channel.clamp.l(parseFloat(a)),a:s?qr.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${qr.lang.round(e)}, ${qr.lang.round(r)}%, ${qr.lang.round(n)}%, ${i})`:`hsl(${qr.lang.round(e)}, ${qr.lang.round(r)}%, ${qr.lang.round(n)}%)`}},YE={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=YE.colors[t];if(e)return qm.parse(e)},stringify:t=>{const e=qm.stringify(t);for(const r in YE.colors)if(YE.colors[r]===e)return r}},sE={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(sE.re);if(!r)return;const[,n,i,a,s,o,l,u,d]=r;return dk.set({r:qr.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:qr.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:qr.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:u?qr.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${qr.lang.round(e)}, ${qr.lang.round(r)}, ${qr.lang.round(n)}, ${qr.lang.round(i)})`:`rgb(${qr.lang.round(e)}, ${qr.lang.round(r)}, ${qr.lang.round(n)})`}},dc={format:{keyword:YE,hex:qm,rgb:sE,rgba:sE,hsl:Zf,hsla:Zf},parse:t=>{if(typeof t!="string")return t;const e=qm.parse(t)||sE.parse(t)||Zf.parse(t)||YE.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(ns.HSL)||t.data.r===void 0?Zf.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?sE.stringify(t):qm.stringify(t)},c0e=(t,e)=>{const r=dc.parse(t);for(const n in e)r[n]=qr.channel.clamp[n](e[n]);return dc.stringify(r)},Jl=(t,e,r=0,n=1)=>{if(typeof t!="number")return c0e(t,{a:e});const i=dk.set({r:qr.channel.clamp.r(t),g:qr.channel.clamp.g(e),b:qr.channel.clamp.b(r),a:qr.channel.clamp.a(n)});return dc.stringify(i)},hU=(t,e)=>qr.lang.round(dc.parse(t)[e]),wPe=t=>{const{r:e,g:r,b:n}=dc.parse(t),i=.2126*qr.channel.toLinear(e)+.7152*qr.channel.toLinear(r)+.0722*qr.channel.toLinear(n);return qr.lang.round(i)},kPe=t=>wPe(t)>=.5,Qs=t=>!kPe(t),fU=(t,e,r)=>{const n=dc.parse(t),i=n[e],a=qr.channel.clamp[e](i+r);return i!==a&&(n[e]=a),dc.stringify(n)},vt=(t,e)=>fU(t,"l",e),_t=(t,e)=>fU(t,"l",-e),vX=(t,e)=>fU(t,"a",-e),_e=(t,e)=>{const r=dc.parse(t),n={};for(const i in e)e[i]&&(n[i]=r[i]+e[i]);return c0e(t,n)},APe=(t,e,r=50)=>{const{r:n,g:i,b:a,a:s}=dc.parse(t),{r:o,g:l,b:u,a:d}=dc.parse(e),h=r/100,f=h*2-1,p=s-d,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,y=1-m,v=n*m+o*y,b=i*m+l*y,_=a*m+u*y,E=s*h+d*(1-h);return Jl(v,b,_,E)},lt=(t,e=100)=>{const r=dc.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,APe(r,t,e)};const{entries:u0e,setPrototypeOf:_X,isFrozen:RPe,getPrototypeOf:NPe,getOwnPropertyDescriptor:IPe}=Object;let{freeze:Gs,seal:kl,create:G3}=Object,{apply:OM,construct:DM}=typeof Reflect<"u"&&Reflect;Gs||(Gs=function(e){return e});kl||(kl=function(e){return e});OM||(OM=function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a1?r-1:0),i=1;i1?r-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:q3;_X&&_X(t,null);let n=e.length;for(;n--;){let i=e[n];if(typeof i=="string"){const a=r(i);a!==i&&(RPe(e)||(e[n]=a),i=a)}t[i]=!0}return t}function BPe(t){for(let e=0;e/gm),GPe=kl(/\$\{[\w\W]*/gm),qPe=kl(/^data-[\-\w.\u00B7-\uFFFF]+$/),YPe=kl(/^aria-[\-\w]+$/),d0e=kl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),HPe=kl(/^(?:\w+script|data):/i),VPe=kl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),h0e=kl(/^html$/i),WPe=kl(/^[a-z][.\w]*(-[.\w]+)+$/i);var CX=Object.freeze({__proto__:null,ARIA_ATTR:YPe,ATTR_WHITESPACE:VPe,CUSTOM_ELEMENT:WPe,DATA_ATTR:qPe,DOCTYPE_NAME:h0e,ERB_EXPR:UPe,IS_ALLOWED_URI:d0e,IS_SCRIPT_OR_DATA:HPe,MUSTACHE_EXPR:zPe,TMPLIT_EXPR:GPe});const C2={element:1,text:3,progressingInstruction:7,comment:8,document:9},KPe=function(){return typeof window>"u"?null:window},XPe=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},wX=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function f0e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:KPe();const e=Ct=>f0e(Ct);if(e.version="3.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==C2.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:p}=t,g=l.prototype,m=x2(g,"cloneNode"),y=x2(g,"remove"),v=x2(g,"nextSibling"),b=x2(g,"childNodes"),_=x2(g,"parentNode");if(typeof s=="function"){const Ct=r.createElement("template");Ct.content&&Ct.content.ownerDocument&&(r=Ct.content.ownerDocument)}let E,x="";const{implementation:C,createNodeIterator:T,createDocumentFragment:w,getElementsByTagName:N}=r,{importNode:O}=n;let M=wX();e.isSupported=typeof u0e=="function"&&typeof _=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$,ERB_EXPR:F,TMPLIT_EXPR:A,DATA_ATTR:I,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:P}=CX;let{IS_ALLOWED_URI:z}=CX,B=null;const q=an({},[...EX,...W8,...K8,...X8,...SX]);let Y=null;const Q=an({},[...TX,...j8,...xX,...vx]);let H=Object.seal(G3(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),J=null,Z=null;const pe=Object.seal(G3(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let re=!0,ce=!0,ae=!1,se=!0,xe=!1,Te=!0,Ge=!1,ze=!1,Xe=!1,Le=!1,Re=!1,qe=!1,Ne=!0,ut=!1;const De="user-content-";let Je=!0,st=!1,ct={},ot=null;const it=an({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Oe=null;const U=an({},["audio","video","img","source","image","track"]);let oe=null;const de=an({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),G="http://www.w3.org/1998/Math/MathML",ie="http://www.w3.org/2000/svg",j="http://www.w3.org/1999/xhtml";let V=j,ue=!1,Fe=null;const me=an({},[G,ie,j],H8);let Ce=an({},["mi","mo","mn","ms","mtext"]),ye=an({},["annotation-xml"]);const Me=an({},["title","style","font","a","script"]);let Ie=null;const he=["application/xhtml+xml","text/html"],le="text/html";let Be=null,ve=null;const gt=r.createElement("form"),Et=function(Ye){return Ye instanceof RegExp||Ye instanceof Function},et=function(){let Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ve&&ve===Ye)){if((!Ye||typeof Ye!="object")&&(Ye={}),Ye=wc(Ye),Ie=he.indexOf(Ye.PARSER_MEDIA_TYPE)===-1?le:Ye.PARSER_MEDIA_TYPE,Be=Ie==="application/xhtml+xml"?H8:q3,B=Ao(Ye,"ALLOWED_TAGS")?an({},Ye.ALLOWED_TAGS,Be):q,Y=Ao(Ye,"ALLOWED_ATTR")?an({},Ye.ALLOWED_ATTR,Be):Q,Fe=Ao(Ye,"ALLOWED_NAMESPACES")?an({},Ye.ALLOWED_NAMESPACES,H8):me,oe=Ao(Ye,"ADD_URI_SAFE_ATTR")?an(wc(de),Ye.ADD_URI_SAFE_ATTR,Be):de,Oe=Ao(Ye,"ADD_DATA_URI_TAGS")?an(wc(U),Ye.ADD_DATA_URI_TAGS,Be):U,ot=Ao(Ye,"FORBID_CONTENTS")?an({},Ye.FORBID_CONTENTS,Be):it,J=Ao(Ye,"FORBID_TAGS")?an({},Ye.FORBID_TAGS,Be):wc({}),Z=Ao(Ye,"FORBID_ATTR")?an({},Ye.FORBID_ATTR,Be):wc({}),ct=Ao(Ye,"USE_PROFILES")?Ye.USE_PROFILES:!1,re=Ye.ALLOW_ARIA_ATTR!==!1,ce=Ye.ALLOW_DATA_ATTR!==!1,ae=Ye.ALLOW_UNKNOWN_PROTOCOLS||!1,se=Ye.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xe=Ye.SAFE_FOR_TEMPLATES||!1,Te=Ye.SAFE_FOR_XML!==!1,Ge=Ye.WHOLE_DOCUMENT||!1,Le=Ye.RETURN_DOM||!1,Re=Ye.RETURN_DOM_FRAGMENT||!1,qe=Ye.RETURN_TRUSTED_TYPE||!1,Xe=Ye.FORCE_BODY||!1,Ne=Ye.SANITIZE_DOM!==!1,ut=Ye.SANITIZE_NAMED_PROPS||!1,Je=Ye.KEEP_CONTENT!==!1,st=Ye.IN_PLACE||!1,z=Ye.ALLOWED_URI_REGEXP||d0e,V=Ye.NAMESPACE||j,Ce=Ye.MATHML_TEXT_INTEGRATION_POINTS||Ce,ye=Ye.HTML_INTEGRATION_POINTS||ye,H=Ye.CUSTOM_ELEMENT_HANDLING||{},Ye.CUSTOM_ELEMENT_HANDLING&&Et(Ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=Ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ye.CUSTOM_ELEMENT_HANDLING&&Et(Ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=Ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ye.CUSTOM_ELEMENT_HANDLING&&typeof Ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=Ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(ce=!1),Re&&(Le=!0),ct&&(B=an({},SX),Y=G3(null),ct.html===!0&&(an(B,EX),an(Y,TX)),ct.svg===!0&&(an(B,W8),an(Y,j8),an(Y,vx)),ct.svgFilters===!0&&(an(B,K8),an(Y,j8),an(Y,vx)),ct.mathMl===!0&&(an(B,X8),an(Y,xX),an(Y,vx))),Ao(Ye,"ADD_TAGS")||(pe.tagCheck=null),Ao(Ye,"ADD_ATTR")||(pe.attributeCheck=null),Ye.ADD_TAGS&&(typeof Ye.ADD_TAGS=="function"?pe.tagCheck=Ye.ADD_TAGS:(B===q&&(B=wc(B)),an(B,Ye.ADD_TAGS,Be))),Ye.ADD_ATTR&&(typeof Ye.ADD_ATTR=="function"?pe.attributeCheck=Ye.ADD_ATTR:(Y===Q&&(Y=wc(Y)),an(Y,Ye.ADD_ATTR,Be))),Ye.ADD_URI_SAFE_ATTR&&an(oe,Ye.ADD_URI_SAFE_ATTR,Be),Ye.FORBID_CONTENTS&&(ot===it&&(ot=wc(ot)),an(ot,Ye.FORBID_CONTENTS,Be)),Ye.ADD_FORBID_CONTENTS&&(ot===it&&(ot=wc(ot)),an(ot,Ye.ADD_FORBID_CONTENTS,Be)),Je&&(B["#text"]=!0),Ge&&an(B,["html","head","body"]),B.table&&(an(B,["tbody"]),delete J.tbody),Ye.TRUSTED_TYPES_POLICY){if(typeof Ye.TRUSTED_TYPES_POLICY.createHTML!="function")throw T2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ye.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw T2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=Ye.TRUSTED_TYPES_POLICY,x=E.createHTML("")}else E===void 0&&(E=XPe(p,i)),E!==null&&typeof x=="string"&&(x=E.createHTML(""));Gs&&Gs(Ye),ve=Ye}},dt=an({},[...W8,...K8,...FPe]),ft=an({},[...X8,...$Pe]),mt=function(Ye){let pt=_(Ye);(!pt||!pt.tagName)&&(pt={namespaceURI:V,tagName:"template"});const Dt=q3(Ye.tagName),Zt=q3(pt.tagName);return Fe[Ye.namespaceURI]?Ye.namespaceURI===ie?pt.namespaceURI===j?Dt==="svg":pt.namespaceURI===G?Dt==="svg"&&(Zt==="annotation-xml"||Ce[Zt]):!!dt[Dt]:Ye.namespaceURI===G?pt.namespaceURI===j?Dt==="math":pt.namespaceURI===ie?Dt==="math"&&ye[Zt]:!!ft[Dt]:Ye.namespaceURI===j?pt.namespaceURI===ie&&!ye[Zt]||pt.namespaceURI===G&&!Ce[Zt]?!1:!ft[Dt]&&(Me[Dt]||!dt[Dt]):!!(Ie==="application/xhtml+xml"&&Fe[Ye.namespaceURI]):!1},fe=function(Ye){E2(e.removed,{element:Ye});try{_(Ye).removeChild(Ye)}catch{y(Ye)}},It=function(Ye,pt){try{E2(e.removed,{attribute:pt.getAttributeNode(Ye),from:pt})}catch{E2(e.removed,{attribute:null,from:pt})}if(pt.removeAttribute(Ye),Ye==="is")if(Le||Re)try{fe(pt)}catch{}else try{pt.setAttribute(Ye,"")}catch{}},St=function(Ye){let pt=null,Dt=null;if(Xe)Ye=""+Ye;else{const Vr=V8(Ye,/^[\r\n\t ]+/);Dt=Vr&&Vr[0]}Ie==="application/xhtml+xml"&&V===j&&(Ye=''+Ye+"");const Zt=E?E.createHTML(Ye):Ye;if(V===j)try{pt=new f().parseFromString(Zt,Ie)}catch{}if(!pt||!pt.documentElement){pt=C.createDocument(V,"template",null);try{pt.documentElement.innerHTML=ue?x:Zt}catch{}}const wr=pt.body||pt.documentElement;return Ye&&Dt&&wr.insertBefore(r.createTextNode(Dt),wr.childNodes[0]||null),V===j?N.call(pt,Ge?"html":"body")[0]:Ge?pt.documentElement:wr},Tt=function(Ye){return T.call(Ye.ownerDocument||Ye,Ye,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Nt=function(Ye){return Ye instanceof h&&(typeof Ye.nodeName!="string"||typeof Ye.textContent!="string"||typeof Ye.removeChild!="function"||!(Ye.attributes instanceof d)||typeof Ye.removeAttribute!="function"||typeof Ye.setAttribute!="function"||typeof Ye.namespaceURI!="string"||typeof Ye.insertBefore!="function"||typeof Ye.hasChildNodes!="function")},Hr=function(Ye){return typeof o=="function"&&Ye instanceof o};function Pe(Ct,Ye,pt){yx(Ct,Dt=>{Dt.call(e,Ye,pt,ve)})}const yt=function(Ye){let pt=null;if(Pe(M.beforeSanitizeElements,Ye,null),Nt(Ye))return fe(Ye),!0;const Dt=Be(Ye.nodeName);if(Pe(M.uponSanitizeElement,Ye,{tagName:Dt,allowedTags:B}),Te&&Ye.hasChildNodes()&&!Hr(Ye.firstElementChild)&&bs(/<[/\w!]/g,Ye.innerHTML)&&bs(/<[/\w!]/g,Ye.textContent)||Ye.nodeType===C2.progressingInstruction||Te&&Ye.nodeType===C2.comment&&bs(/<[/\w]/g,Ye.data))return fe(Ye),!0;if(!(pe.tagCheck instanceof Function&&pe.tagCheck(Dt))&&(!B[Dt]||J[Dt])){if(!J[Dt]&&Ot(Dt)&&(H.tagNameCheck instanceof RegExp&&bs(H.tagNameCheck,Dt)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Dt)))return!1;if(Je&&!ot[Dt]){const Zt=_(Ye)||Ye.parentNode,wr=b(Ye)||Ye.childNodes;if(wr&&Zt){const Vr=wr.length;for(let Kr=Vr-1;Kr>=0;--Kr){const Gn=m(wr[Kr],!0);Gn.__removalCount=(Ye.__removalCount||0)+1,Zt.insertBefore(Gn,v(Ye))}}}return fe(Ye),!0}return Ye instanceof l&&!mt(Ye)||(Dt==="noscript"||Dt==="noembed"||Dt==="noframes")&&bs(/<\/no(script|embed|frames)/i,Ye.innerHTML)?(fe(Ye),!0):(xe&&Ye.nodeType===C2.text&&(pt=Ye.textContent,yx([$,F,A],Zt=>{pt=S2(pt,Zt," ")}),Ye.textContent!==pt&&(E2(e.removed,{element:Ye.cloneNode()}),Ye.textContent=pt)),Pe(M.afterSanitizeElements,Ye,null),!1)},bt=function(Ye,pt,Dt){if(Z[pt]||Ne&&(pt==="id"||pt==="name")&&(Dt in r||Dt in gt))return!1;if(!(ce&&!Z[pt]&&bs(I,pt))){if(!(re&&bs(D,pt))){if(!(pe.attributeCheck instanceof Function&&pe.attributeCheck(pt,Ye))){if(!Y[pt]||Z[pt]){if(!(Ot(Ye)&&(H.tagNameCheck instanceof RegExp&&bs(H.tagNameCheck,Ye)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Ye))&&(H.attributeNameCheck instanceof RegExp&&bs(H.attributeNameCheck,pt)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(pt,Ye))||pt==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&bs(H.tagNameCheck,Dt)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Dt))))return!1}else if(!oe[pt]){if(!bs(z,S2(Dt,R,""))){if(!((pt==="src"||pt==="xlink:href"||pt==="href")&&Ye!=="script"&&LPe(Dt,"data:")===0&&Oe[Ye])){if(!(ae&&!bs(L,S2(Dt,R,"")))){if(Dt)return!1}}}}}}}return!0},Ot=function(Ye){return Ye!=="annotation-xml"&&V8(Ye,P)},Qt=function(Ye){Pe(M.beforeSanitizeAttributes,Ye,null);const{attributes:pt}=Ye;if(!pt||Nt(Ye))return;const Dt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let Zt=pt.length;for(;Zt--;){const wr=pt[Zt],{name:Vr,namespaceURI:Kr,value:Gn}=wr,ji=Be(Vr),Mt=Gn;let Xt=Vr==="value"?Mt:MPe(Mt);if(Dt.attrName=ji,Dt.attrValue=Xt,Dt.keepAttr=!0,Dt.forceKeepAttr=void 0,Pe(M.uponSanitizeAttribute,Ye,Dt),Xt=Dt.attrValue,ut&&(ji==="id"||ji==="name")&&(It(Vr,Ye),Xt=De+Xt),Te&&bs(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Xt)){It(Vr,Ye);continue}if(ji==="attributename"&&V8(Xt,"href")){It(Vr,Ye);continue}if(Dt.forceKeepAttr)continue;if(!Dt.keepAttr){It(Vr,Ye);continue}if(!se&&bs(/\/>/i,Xt)){It(Vr,Ye);continue}xe&&yx([$,F,A],xt=>{Xt=S2(Xt,xt," ")});const kt=Be(Ye.nodeName);if(!bt(kt,ji,Xt)){It(Vr,Ye);continue}if(E&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Kr)switch(p.getAttributeType(kt,ji)){case"TrustedHTML":{Xt=E.createHTML(Xt);break}case"TrustedScriptURL":{Xt=E.createScriptURL(Xt);break}}if(Xt!==Mt)try{Kr?Ye.setAttributeNS(Kr,Vr,Xt):Ye.setAttribute(Vr,Xt),Nt(Ye)?fe(Ye):bX(e.removed)}catch{It(Vr,Ye)}}Pe(M.afterSanitizeAttributes,Ye,null)},br=function Ct(Ye){let pt=null;const Dt=Tt(Ye);for(Pe(M.beforeSanitizeShadowDOM,Ye,null);pt=Dt.nextNode();)Pe(M.uponSanitizeShadowNode,pt,null),yt(pt),Qt(pt),pt.content instanceof a&&Ct(pt.content);Pe(M.afterSanitizeShadowDOM,Ye,null)};return e.sanitize=function(Ct){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pt=null,Dt=null,Zt=null,wr=null;if(ue=!Ct,ue&&(Ct=""),typeof Ct!="string"&&!Hr(Ct))if(typeof Ct.toString=="function"){if(Ct=Ct.toString(),typeof Ct!="string")throw T2("dirty is not a string, aborting")}else throw T2("toString is not a function");if(!e.isSupported)return Ct;if(ze||et(Ye),e.removed=[],typeof Ct=="string"&&(st=!1),st){if(Ct.nodeName){const Gn=Be(Ct.nodeName);if(!B[Gn]||J[Gn])throw T2("root node is forbidden and cannot be sanitized in-place")}}else if(Ct instanceof o)pt=St(""),Dt=pt.ownerDocument.importNode(Ct,!0),Dt.nodeType===C2.element&&Dt.nodeName==="BODY"||Dt.nodeName==="HTML"?pt=Dt:pt.appendChild(Dt);else{if(!Le&&!xe&&!Ge&&Ct.indexOf("<")===-1)return E&&qe?E.createHTML(Ct):Ct;if(pt=St(Ct),!pt)return Le?null:qe?x:""}pt&&Xe&&fe(pt.firstChild);const Vr=Tt(st?Ct:pt);for(;Zt=Vr.nextNode();)yt(Zt),Qt(Zt),Zt.content instanceof a&&br(Zt.content);if(st)return Ct;if(Le){if(Re)for(wr=w.call(pt.ownerDocument);pt.firstChild;)wr.appendChild(pt.firstChild);else wr=pt;return(Y.shadowroot||Y.shadowrootmode)&&(wr=O.call(n,wr,!0)),wr}let Kr=Ge?pt.outerHTML:pt.innerHTML;return Ge&&B["!doctype"]&&pt.ownerDocument&&pt.ownerDocument.doctype&&pt.ownerDocument.doctype.name&&bs(h0e,pt.ownerDocument.doctype.name)&&(Kr=" -`+Kr),xe&&yx([$,F,A],Gn=>{Kr=S2(Kr,Gn," ")}),E&&qe?E.createHTML(Kr):Kr},e.setConfig=function(){let Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};et(Ct),ze=!0},e.clearConfig=function(){ve=null,ze=!1},e.isValidAttribute=function(Ct,Ye,pt){ve||et({});const Dt=Be(Ct),Zt=Be(Ye);return bt(Dt,Zt,pt)},e.addHook=function(Ct,Ye){typeof Ye=="function"&&E2(M[Ct],Ye)},e.removeHook=function(Ct,Ye){if(Ye!==void 0){const pt=OPe(M[Ct],Ye);return pt===-1?void 0:DPe(M[Ct],pt,1)[0]}return bX(M[Ct])},e.removeHooks=function(Ct){M[Ct]=[]},e.removeAllHooks=function(){M=wX()},e}var nh=f0e(),p0e=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,HE=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,jPe=/\s*%%.*\n/gm,u1,g0e=(u1=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},S(u1,"UnknownDiagramError"),u1),_p={},pU=S(function(t,e){t=t.replace(p0e,"").replace(HE,"").replace(jPe,` -`);for(const[r,{detector:n}]of Object.entries(_p))if(n(t,e))return r;throw new g0e(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),LM=S((...t)=>{for(const{id:e,detector:r,loader:n}of t)m0e(e,r,n)},"registerLazyLoadedDiagrams"),m0e=S((t,e,r)=>{_p[t]&&ge.warn(`Detector with key ${t} already exists. Overwriting.`),_p[t]={detector:e,loader:r},ge.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),QPe=S(t=>_p[t].loader,"getDiagramLoader"),MM=S((t,e,{depth:r=2,clobber:n=!1}={})=>{const i={depth:r,clobber:n};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(a=>MM(t,a,i)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(a=>{t.includes(a)||t.push(a)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(a=>{typeof e[a]=="object"&&e[a]!==null&&(t[a]===void 0||typeof t[a]=="object")?(t[a]===void 0&&(t[a]=Array.isArray(e[a])?[]:{}),t[a]=MM(t[a],e[a],{depth:r-1,clobber:n})):(n||typeof t[a]!="object"&&typeof e[a]!="object")&&(t[a]=e[a])}),t)},"assignWithDepth"),Vi=MM,pu="#ffffff",gu="#f2f2f2",$r=S((t,e)=>e?_e(t,{s:-40,l:10}):_e(t,{s:-40,l:-10}),"mkBorder"),d1,ZPe=(d1=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||_t(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||_t(this.mainBkg,10)):(this.rowOdd=this.rowOdd||vt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||vt(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||_e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||_e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||_e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||_e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||_e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||_e(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||_e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||_e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||_e(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(d1,"Theme"),d1),JPe=S(t=>{const e=new ZPe;return e.calculate(t),e},"getThemeVariables"),h1,eBe=(h1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=_e(this.primaryColor,{h:-160}),this.primaryBorderColor=lt(this.background),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.lineColor=lt(this.background),this.textColor=lt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(lt("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Jl(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=_t("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=_t(this.sectionBkgColor,10),this.taskBorderColor=Jl(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Jl(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||vt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||_t(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=vt(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=vt(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=vt(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=lt(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=_e(this.primaryColor,{h:64}),this.fillType3=_e(this.secondaryColor,{h:64}),this.fillType4=_e(this.primaryColor,{h:-64}),this.fillType5=_e(this.secondaryColor,{h:-64}),this.fillType6=_e(this.primaryColor,{h:128}),this.fillType7=_e(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||_e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||_e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||_e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||_e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||_e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||_e(this.primaryColor,{h:210}),this.cScale9=this.cScale9||_e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||_e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||_e(this.primaryColor,{h:330});for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(h1,"Theme"),h1),tBe=S(t=>{const e=new eBe;return e.calculate(t),e},"getThemeVariables"),f1,rBe=(f1=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=_e(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=_e(this.primaryColor,{h:-160}),this.primaryBorderColor=$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.lineColor=lt(this.background),this.textColor=lt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=$r(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Jl(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||_e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||_e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||_e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||_e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||_e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||_e(this.primaryColor,{h:210}),this.cScale9=this.cScale9||_e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||_e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||_e(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||_t(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||_t(this.tertiaryColor,40);for(let e=0;e{this[n]==="calculated"&&(this[n]=void 0)}),typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(f1,"Theme"),f1),Fb=S(t=>{const e=new rBe;return e.calculate(t),e},"getThemeVariables"),p1,nBe=(p1=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=vt("#cde498",10),this.primaryBorderColor=$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.primaryColor),this.lineColor=lt(this.background),this.textColor=lt(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=_t(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||_e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||_e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||_e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||_e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||_e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||_e(this.primaryColor,{h:210}),this.cScale9=this.cScale9||_e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||_e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||_e(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||_t(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||_t(this.tertiaryColor,40);for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(p1,"Theme"),p1),iBe=S(t=>{const e=new nBe;return e.calculate(t),e},"getThemeVariables"),g1,aBe=(g1=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=vt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=_e(this.primaryColor,{h:-160}),this.primaryBorderColor=$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.lineColor=lt(this.background),this.textColor=lt(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||vt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=vt(this.contrast,55),this.border2=this.contrast,this.actorBorder=vt(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(g1,"Theme"),g1),sBe=S(t=>{const e=new aBe;return e.calculate(t),e},"getThemeVariables"),m1,oBe=(m1=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=$r(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=_e(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||e,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||_e(e,{h:30}),this.cScale4=this.cScale4||_e(e,{h:60}),this.cScale5=this.cScale5||_e(e,{h:90}),this.cScale6=this.cScale6||_e(e,{h:120}),this.cScale7=this.cScale7||_e(e,{h:150}),this.cScale8=this.cScale8||_e(e,{h:210,l:150}),this.cScale9=this.cScale9||_e(e,{h:270}),this.cScale10=this.cScale10||_e(e,{h:300}),this.cScale11=this.cScale11||_e(e,{h:330}),this.darkMode)for(let a=0;a{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(m1,"Theme"),m1),lBe=S(t=>{const e=new oBe;return e.calculate(t),e},"getThemeVariables"),y1,cBe=(y1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=_e(this.primaryColor,{h:-160}),this.primaryBorderColor=lt(this.background),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(lt("#323D47"),10),this.border1="#ccc",this.border2=Jl(255,255,255,.25),this.arrowheadColor=lt(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||_e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||_e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||_e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||_e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||_e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||_e(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||_e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||_e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||_e(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(y1,"Theme"),y1),uBe=S(t=>{const e=new cBe;return e.calculate(t),e},"getThemeVariables"),v1,dBe=(v1=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=$r("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=_e(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let a=0;a{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(v1,"Theme"),v1),hBe=S(t=>{const e=new dBe;return e.calculate(t),e},"getThemeVariables"),_1,fBe=(_1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=_e(this.primaryColor,{h:-160}),this.primaryBorderColor=lt(this.background),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(lt("#323D47"),10),this.border1="#ccc",this.border2=Jl(255,255,255,.25),this.arrowheadColor=lt(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||_e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||_e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||_e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||_e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||_e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||_e(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||_e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||_e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||_e(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(_1,"Theme"),_1),pBe=S(t=>{const e=new fBe;return e.calculate(t),e},"getThemeVariables"),b1,gBe=(b1=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=$r(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=_e(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let a=0;a{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(b1,"Theme"),b1),mBe=S(t=>{const e=new gBe;return e.calculate(t),e},"getThemeVariables"),E1,yBe=(E1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=_e(this.primaryColor,{h:-160}),this.primaryBorderColor=lt(this.background),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(lt("#323D47"),10),this.border1="#ccc",this.border2=Jl(255,255,255,.25),this.arrowheadColor=lt(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(E1,"Theme"),E1),vBe=S(t=>{const e=new yBe;return e.calculate(t),e},"getThemeVariables"),g0={base:{getThemeVariables:JPe},dark:{getThemeVariables:tBe},default:{getThemeVariables:Fb},forest:{getThemeVariables:iBe},neutral:{getThemeVariables:sBe},neo:{getThemeVariables:lBe},"neo-dark":{getThemeVariables:uBe},redux:{getThemeVariables:hBe},"redux-dark":{getThemeVariables:pBe},"redux-color":{getThemeVariables:mBe},"redux-dark-color":{getThemeVariables:vBe}},Es={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},y0e={...Es,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:g0.default.getThemeVariables(),sequence:{...Es.sequence,messageFont:S(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:S(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:S(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Es.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Es.c4,useWidth:void 0,personFont:S(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Es.flowchart,inheritDir:!1},external_personFont:S(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:S(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:S(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:S(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:S(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:S(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:S(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:S(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:S(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:S(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:S(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:S(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:S(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:S(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:S(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:S(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:S(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:S(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:S(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:S(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:S(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Es.pie,useWidth:984},xyChart:{...Es.xyChart,useWidth:void 0},requirement:{...Es.requirement,useWidth:void 0},packet:{...Es.packet},eventmodeling:{...Es.eventmodeling},treeView:{...Es.treeView,useWidth:void 0},radar:{...Es.radar},ishikawa:{...Es.ishikawa},sankey:{...Es.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Es.venn}},v0e=S((t,e="")=>Object.keys(t).reduce((r,n)=>Array.isArray(t[n])?r:typeof t[n]=="object"&&t[n]!==null?[...r,e+n,...v0e(t[n],"")]:[...r,e+n],[]),"keyify"),_Be=new Set(v0e(y0e,"")),on=y0e,vC=S(t=>{if(ge.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>vC(e));return}for(const e of Object.keys(t)){if(ge.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!_Be.has(e)||t[e]==null){ge.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){if(e==="nodeColors"){const n=/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;for(const i of Object.keys(t[e]))(typeof t[e][i]!="string"||!n.test(t[e][i]))&&(ge.debug("sanitize deleting invalid color:",i,t[e][i]),delete t[e][i])}else ge.debug("sanitizing object",e),vC(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)e.includes(n)&&(ge.debug("sanitizing css option",e),t[e]=_0e(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}ge.debug("After sanitization",t)}},"sanitizeDirective"),_0e=S(t=>{let e=0,r=0;for(const n of t){if(e!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),uo=Vi({},Y_),_C,bp=[],VE=Vi({},Y_),hk=S((t,e)=>{let r=Vi({},t),n={};for(const i of e)S0e(i),n=Vi(n,i);if(r=Vi(r,n),n.theme&&n.theme in g0){const i=Vi({},_C),a=Vi(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in g0&&(r.themeVariables=g0[r.theme].getThemeVariables(a))}return VE=r,x0e(VE),VE},"updateCurrentConfig"),bBe=S(t=>(uo=Vi({},Y_),uo=Vi(uo,t),t.theme&&g0[t.theme]&&(uo.themeVariables=g0[t.theme].getThemeVariables(t.themeVariables)),hk(uo,bp),uo),"setSiteConfig"),EBe=S(t=>{_C=Vi({},t)},"saveConfigFromInitialize"),SBe=S(t=>(uo=Vi(uo,t),hk(uo,bp),uo),"updateSiteConfig"),b0e=S(()=>Vi({},uo),"getSiteConfig"),E0e=S(t=>(x0e(t),Vi(VE,t),xr()),"setConfig"),xr=S(()=>Vi({},VE),"getConfig"),S0e=S(t=>{t&&(["secure",...uo.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(ge.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&S0e(t[e])}))},"sanitize"),TBe=S(t=>{vC(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),bp.push(t),hk(uo,bp)},"addDirective"),bC=S((t=uo)=>{bp=[],hk(t,bp)},"reset"),xBe={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},kX={},T0e=S(t=>{kX[t]||(ge.warn(xBe[t]),kX[t]=!0)},"issueWarning"),x0e=S(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&T0e("LAZY_LOAD_DEPRECATED")},"checkConfig"),CBe=S(()=>{let t={};_C&&(t=Vi(t,_C));for(const e of bp)t=Vi(t,e);return t},"getUserDefinedConfig"),In=S(t=>(t.flowchart?.htmlLabels!=null&&T0e("FLOWCHART_HTML_LABELS_DEPRECATED"),q0(t.htmlLabels??t.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),$b=//gi,wBe=S(t=>t?k0e(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),kBe=(()=>{let t=!1;return()=>{t||(C0e(),t=!0)}})();function C0e(){const t="data-temp-href-target";nh.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),nh.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}S(C0e,"setupDompurifyHooks");var w0e=S(t=>(kBe(),nh.sanitize(t)),"removeScript"),AX=S((t,e)=>{if(In(e)){const r=e.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?t=w0e(t):r!=="loose"&&(t=k0e(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=IBe(t))}return t},"sanitizeMore"),un=S((t,e)=>t&&(e.dompurifyConfig?t=nh.sanitize(AX(t,e),e.dompurifyConfig).toString():t=nh.sanitize(AX(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),ABe=S((t,e)=>typeof t=="string"?un(t,e):t.flat().map(r=>un(r,e)),"sanitizeTextOrArray"),RBe=S(t=>$b.test(t),"hasBreaks"),NBe=S(t=>t.split($b),"splitBreaks"),IBe=S(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),k0e=S(t=>t.replace($b,"#br#"),"breakToPlaceholder"),fk=S(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),OBe=S(function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),DBe=S(function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),Td=S(function(t){const e=t.split(/(,)/),r=[];for(let n=0;n0&&n+1Math.max(0,t.split(e).length-1),"countOccurrence"),LBe=S((t,e)=>{const r=PM(t,"~"),n=PM(e,"~");return r===1&&n===1},"shouldCombineSets"),MBe=S(t=>{const e=PM(t,"~");let r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const n=[...t];let i=n.indexOf("~"),a=n.lastIndexOf("~");for(;i!==-1&&a!==-1&&i!==a;)n[i]="<",n[a]=">",i=n.indexOf("~"),a=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),RX=S(()=>window.MathMLElement!==void 0,"isMathMLSupported"),BM=/\$\$(.*)\$\$/g,Xi=S(t=>(t.match(BM)?.length??0)>0,"hasKatex"),eT=S(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await pk(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);const i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),PBe=S(async(t,e)=>{if(!Xi(t))return t;if(!(RX()||e.legacyMathML||e.forceLegacyMathML))return t.replace(BM,"MathML is unsupported in this environment.");{const{default:r}=await Promise.resolve().then(()=>Cat),n=e.forceLegacyMathML||!RX()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split($b).map(i=>Xi(i)?`
${i}
`:`
${i}
`).join("").replace(BM,(i,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(//g,""))}},"renderKatexUnsanitized"),pk=S(async(t,e)=>un(await PBe(t,e),e),"renderKatexSanitized"),qt={getRows:wBe,sanitizeText:un,sanitizeTextOrArray:ABe,hasBreaks:RBe,splitBreaks:NBe,lineBreakRegex:$b,removeScript:w0e,getUrl:fk,evaluate:q0,getMax:OBe,getMin:DBe},BBe=S(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),FBe=S(function(t,e,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${e}px;`)):(n.set("height",t),n.set("width",e)),n},"calculateSvgSizeAttrs"),ua=S(function(t,e,r,n){const i=FBe(e,r,n);BBe(t,i)},"configureSvgSize"),zb=S(function(t,e,r,n){const i=e.node().getBBox(),a=i.width,s=i.height;ge.info(`SVG bounds: ${a}x${s}`,i);let o=0,l=0;ge.info(`Graph bounds: ${o}x${l}`,t),o=a+r*2,l=s+r*2,ge.info(`Calculated bounds: ${o}x${l}`),ua(e,l,o,n);const u=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;e.attr("viewBox",u)},"setupGraphViewbox"),Y3={};function FM(t){return[...t.cssRules].map(e=>e.cssText).join(` -`)}S(FM,"cssStyleSheetToString");var $Be=S((t,e,r,n)=>{let i="";return t in Y3&&Y3[t]?i=Y3[t]({...r,svgId:n}):ge.warn(`No theme found for ${t}`),` & { +?)[ \r ]*`,IM="[̀-ͯ]",hPe=new RegExp(IM+"+$"),fPe="("+jue+"+)|"+(dPe+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(IM+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(IM+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+uPe)+("|"+cPe+")");let hX=class{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(fPe,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new Zl("EOF",new ul(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new Vt("Unexpected character: '"+e[r]+"'",new Zl(e[r],new ul(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=e.indexOf(` +`,this.tokenRegex.lastIndex);return a===-1?(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=a+1,this.lex()}return new Zl(i,new ul(this,r,this.tokenRegex.lastIndex))}},pPe=class{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Vt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}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,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}};var gPe=Fue;we("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});we("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});we("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});we("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});we("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});we("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");we("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var fX={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};we("\\char",function(t){var e=t.popToken(),r,n=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new Vt("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=fX[e.text],n==null||n>=r)throw new Vt("Invalid base-"+r+" digit "+e.text);for(var i;(i=fX[t.future().text])!=null&&i{var i=t.consumeArg().tokens;if(i.length!==1)throw new Vt("\\newcommand's first argument must be a macro name");var a=i[0].text,s=t.isDefined(a);if(s&&!e)throw new Vt("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new Vt("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=t.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var l="",u=t.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Vt("Invalid number of arguments: "+l);o=parseInt(l),i=t.consumeArg().tokens}return s&&n||t.macros.set(a,{tokens:i,numArgs:o}),""};we("\\newcommand",t=>oU(t,!1,!0,!1));we("\\renewcommand",t=>oU(t,!0,!1,!1));we("\\providecommand",t=>oU(t,!0,!0,!0));we("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});we("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});we("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),Md[r],di.math[r],di.text[r]),""});we("\\bgroup","{");we("\\egroup","}");we("~","\\nobreakspace");we("\\lq","`");we("\\rq","'");we("\\aa","\\r a");we("\\AA","\\r A");we("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");we("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");we("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");we("ℬ","\\mathscr{B}");we("ℰ","\\mathscr{E}");we("ℱ","\\mathscr{F}");we("ℋ","\\mathscr{H}");we("ℐ","\\mathscr{I}");we("ℒ","\\mathscr{L}");we("ℳ","\\mathscr{M}");we("ℛ","\\mathscr{R}");we("ℭ","\\mathfrak{C}");we("ℌ","\\mathfrak{H}");we("ℨ","\\mathfrak{Z}");we("\\Bbbk","\\Bbb{k}");we("\\llap","\\mathllap{\\textrm{#1}}");we("\\rlap","\\mathrlap{\\textrm{#1}}");we("\\clap","\\mathclap{\\textrm{#1}}");we("\\mathstrut","\\vphantom{(}");we("\\underbar","\\underline{\\text{#1}}");we("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');we("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");we("\\ne","\\neq");we("≠","\\neq");we("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");we("∉","\\notin");we("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");we("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");we("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");we("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");we("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");we("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");we("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");we("⟂","\\perp");we("‼","\\mathclose{!\\mkern-0.8mu!}");we("∌","\\notni");we("⌜","\\ulcorner");we("⌝","\\urcorner");we("⌞","\\llcorner");we("⌟","\\lrcorner");we("©","\\copyright");we("®","\\textregistered");we("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');we("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');we("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');we("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');we("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");we("⋮","\\vdots");we("\\varGamma","\\mathit{\\Gamma}");we("\\varDelta","\\mathit{\\Delta}");we("\\varTheta","\\mathit{\\Theta}");we("\\varLambda","\\mathit{\\Lambda}");we("\\varXi","\\mathit{\\Xi}");we("\\varPi","\\mathit{\\Pi}");we("\\varSigma","\\mathit{\\Sigma}");we("\\varUpsilon","\\mathit{\\Upsilon}");we("\\varPhi","\\mathit{\\Phi}");we("\\varPsi","\\mathit{\\Psi}");we("\\varOmega","\\mathit{\\Omega}");we("\\substack","\\begin{subarray}{c}#1\\end{subarray}");we("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");we("\\boxed","\\fbox{$\\displaystyle{#1}$}");we("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");we("\\implies","\\DOTSB\\;\\Longrightarrow\\;");we("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");we("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");we("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var pX={",":"\\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"},mPe=new Set(["bin","rel"]);we("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in pX?e=pX[r]:(r.slice(0,4)==="\\not"||r in di.math&&mPe.has(di.math[r].group))&&(e="\\dotsb"),e});var lU={")":!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};we("\\dotso",function(t){var e=t.future().text;return e in lU?"\\ldots\\,":"\\ldots"});we("\\dotsc",function(t){var e=t.future().text;return e in lU&&e!==","?"\\ldots\\,":"\\ldots"});we("\\cdots",function(t){var e=t.future().text;return e in lU?"\\@cdots\\,":"\\@cdots"});we("\\dotsb","\\cdots");we("\\dotsm","\\cdots");we("\\dotsi","\\!\\cdots");we("\\dotsx","\\ldots\\,");we("\\DOTSI","\\relax");we("\\DOTSB","\\relax");we("\\DOTSX","\\relax");we("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");we("\\,","\\tmspace+{3mu}{.1667em}");we("\\thinspace","\\,");we("\\>","\\mskip{4mu}");we("\\:","\\tmspace+{4mu}{.2222em}");we("\\medspace","\\:");we("\\;","\\tmspace+{5mu}{.2777em}");we("\\thickspace","\\;");we("\\!","\\tmspace-{3mu}{.1667em}");we("\\negthinspace","\\!");we("\\negmedspace","\\tmspace-{4mu}{.2222em}");we("\\negthickspace","\\tmspace-{5mu}{.277em}");we("\\enspace","\\kern.5em ");we("\\enskip","\\hskip.5em\\relax");we("\\quad","\\hskip1em\\relax");we("\\qquad","\\hskip2em\\relax");we("\\tag","\\@ifstar\\tag@literal\\tag@paren");we("\\tag@paren","\\tag@literal{({#1})}");we("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new Vt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});we("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");we("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");we("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");we("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");we("\\newline","\\\\\\relax");we("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Que=Jt(Hc["Main-Regular"][84][1]-.7*Hc["Main-Regular"][65][1]);we("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Que+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");we("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Que+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");we("\\hspace","\\@ifstar\\@hspacer\\@hspace");we("\\@hspace","\\hskip #1\\relax");we("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");we("\\ordinarycolon",":");we("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");we("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');we("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');we("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');we("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');we("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');we("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');we("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');we("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');we("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');we("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');we("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');we("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');we("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');we("∷","\\dblcolon");we("∹","\\eqcolon");we("≔","\\coloneqq");we("≕","\\eqqcolon");we("⩴","\\Coloneqq");we("\\ratio","\\vcentcolon");we("\\coloncolon","\\dblcolon");we("\\colonequals","\\coloneqq");we("\\coloncolonequals","\\Coloneqq");we("\\equalscolon","\\eqqcolon");we("\\equalscoloncolon","\\Eqqcolon");we("\\colonminus","\\coloneq");we("\\coloncolonminus","\\Coloneq");we("\\minuscolon","\\eqcolon");we("\\minuscoloncolon","\\Eqcolon");we("\\coloncolonapprox","\\Colonapprox");we("\\coloncolonsim","\\Colonsim");we("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");we("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");we("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");we("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");we("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");we("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");we("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");we("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");we("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");we("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");we("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");we("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");we("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");we("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");we("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");we("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");we("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");we("\\nleqq","\\html@mathml{\\@nleqq}{≰}");we("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");we("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");we("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");we("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");we("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");we("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");we("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");we("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");we("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");we("\\imath","\\html@mathml{\\@imath}{ı}");we("\\jmath","\\html@mathml{\\@jmath}{ȷ}");we("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");we("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");we("⟦","\\llbracket");we("⟧","\\rrbracket");we("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");we("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");we("⦃","\\lBrace");we("⦄","\\rBrace");we("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");we("⦵","\\minuso");we("\\darr","\\downarrow");we("\\dArr","\\Downarrow");we("\\Darr","\\Downarrow");we("\\lang","\\langle");we("\\rang","\\rangle");we("\\uarr","\\uparrow");we("\\uArr","\\Uparrow");we("\\Uarr","\\Uparrow");we("\\N","\\mathbb{N}");we("\\R","\\mathbb{R}");we("\\Z","\\mathbb{Z}");we("\\alef","\\aleph");we("\\alefsym","\\aleph");we("\\Alpha","\\mathrm{A}");we("\\Beta","\\mathrm{B}");we("\\bull","\\bullet");we("\\Chi","\\mathrm{X}");we("\\clubs","\\clubsuit");we("\\cnums","\\mathbb{C}");we("\\Complex","\\mathbb{C}");we("\\Dagger","\\ddagger");we("\\diamonds","\\diamondsuit");we("\\empty","\\emptyset");we("\\Epsilon","\\mathrm{E}");we("\\Eta","\\mathrm{H}");we("\\exist","\\exists");we("\\harr","\\leftrightarrow");we("\\hArr","\\Leftrightarrow");we("\\Harr","\\Leftrightarrow");we("\\hearts","\\heartsuit");we("\\image","\\Im");we("\\infin","\\infty");we("\\Iota","\\mathrm{I}");we("\\isin","\\in");we("\\Kappa","\\mathrm{K}");we("\\larr","\\leftarrow");we("\\lArr","\\Leftarrow");we("\\Larr","\\Leftarrow");we("\\lrarr","\\leftrightarrow");we("\\lrArr","\\Leftrightarrow");we("\\Lrarr","\\Leftrightarrow");we("\\Mu","\\mathrm{M}");we("\\natnums","\\mathbb{N}");we("\\Nu","\\mathrm{N}");we("\\Omicron","\\mathrm{O}");we("\\plusmn","\\pm");we("\\rarr","\\rightarrow");we("\\rArr","\\Rightarrow");we("\\Rarr","\\Rightarrow");we("\\real","\\Re");we("\\reals","\\mathbb{R}");we("\\Reals","\\mathbb{R}");we("\\Rho","\\mathrm{P}");we("\\sdot","\\cdot");we("\\sect","\\S");we("\\spades","\\spadesuit");we("\\sub","\\subset");we("\\sube","\\subseteq");we("\\supe","\\supseteq");we("\\Tau","\\mathrm{T}");we("\\thetasym","\\vartheta");we("\\weierp","\\wp");we("\\Zeta","\\mathrm{Z}");we("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");we("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");we("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");we("\\bra","\\mathinner{\\langle{#1}|}");we("\\ket","\\mathinner{|{#1}\\rangle}");we("\\braket","\\mathinner{\\langle{#1}\\rangle}");we("\\Bra","\\left\\langle#1\\right|");we("\\Ket","\\left|#1\\right\\rangle");var Zue=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,i=e.consumeArg().tokens,a=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=h=>f=>{t&&(f.macros.set("|",s),i.length&&f.macros.set("\\|",o));var p=h;if(!h&&i.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?i:n,numArgs:0}};e.macros.set("|",l(!1)),i.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...a,...u,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};we("\\bra@ket",Zue(!1));we("\\bra@set",Zue(!0));we("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");we("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");we("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");we("\\angln","{\\angl n}");we("\\blue","\\textcolor{##6495ed}{#1}");we("\\orange","\\textcolor{##ffa500}{#1}");we("\\pink","\\textcolor{##ff00af}{#1}");we("\\red","\\textcolor{##df0030}{#1}");we("\\green","\\textcolor{##28ae7b}{#1}");we("\\gray","\\textcolor{gray}{#1}");we("\\purple","\\textcolor{##9d38bd}{#1}");we("\\blueA","\\textcolor{##ccfaff}{#1}");we("\\blueB","\\textcolor{##80f6ff}{#1}");we("\\blueC","\\textcolor{##63d9ea}{#1}");we("\\blueD","\\textcolor{##11accd}{#1}");we("\\blueE","\\textcolor{##0c7f99}{#1}");we("\\tealA","\\textcolor{##94fff5}{#1}");we("\\tealB","\\textcolor{##26edd5}{#1}");we("\\tealC","\\textcolor{##01d1c1}{#1}");we("\\tealD","\\textcolor{##01a995}{#1}");we("\\tealE","\\textcolor{##208170}{#1}");we("\\greenA","\\textcolor{##b6ffb0}{#1}");we("\\greenB","\\textcolor{##8af281}{#1}");we("\\greenC","\\textcolor{##74cf70}{#1}");we("\\greenD","\\textcolor{##1fab54}{#1}");we("\\greenE","\\textcolor{##0d923f}{#1}");we("\\goldA","\\textcolor{##ffd0a9}{#1}");we("\\goldB","\\textcolor{##ffbb71}{#1}");we("\\goldC","\\textcolor{##ff9c39}{#1}");we("\\goldD","\\textcolor{##e07d10}{#1}");we("\\goldE","\\textcolor{##a75a05}{#1}");we("\\redA","\\textcolor{##fca9a9}{#1}");we("\\redB","\\textcolor{##ff8482}{#1}");we("\\redC","\\textcolor{##f9685d}{#1}");we("\\redD","\\textcolor{##e84d39}{#1}");we("\\redE","\\textcolor{##bc2612}{#1}");we("\\maroonA","\\textcolor{##ffbde0}{#1}");we("\\maroonB","\\textcolor{##ff92c6}{#1}");we("\\maroonC","\\textcolor{##ed5fa6}{#1}");we("\\maroonD","\\textcolor{##ca337c}{#1}");we("\\maroonE","\\textcolor{##9e034e}{#1}");we("\\purpleA","\\textcolor{##ddd7ff}{#1}");we("\\purpleB","\\textcolor{##c6b9fc}{#1}");we("\\purpleC","\\textcolor{##aa87ff}{#1}");we("\\purpleD","\\textcolor{##7854ab}{#1}");we("\\purpleE","\\textcolor{##543b78}{#1}");we("\\mintA","\\textcolor{##f5f9e8}{#1}");we("\\mintB","\\textcolor{##edf2df}{#1}");we("\\mintC","\\textcolor{##e0e5cc}{#1}");we("\\grayA","\\textcolor{##f6f7f7}{#1}");we("\\grayB","\\textcolor{##f0f1f2}{#1}");we("\\grayC","\\textcolor{##e3e5e6}{#1}");we("\\grayD","\\textcolor{##d6d8da}{#1}");we("\\grayE","\\textcolor{##babec2}{#1}");we("\\grayF","\\textcolor{##888d93}{#1}");we("\\grayG","\\textcolor{##626569}{#1}");we("\\grayH","\\textcolor{##3b3e40}{#1}");we("\\grayI","\\textcolor{##21242c}{#1}");we("\\kaBlue","\\textcolor{##314453}{#1}");we("\\kaGreen","\\textcolor{##71B307}{#1}");var Jue={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};let yPe=class{constructor(e,r,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=r,this.expansionCount=0,this.feed(e),this.macros=new pPe(gPe,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new hX(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&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){var r,n,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Zl("EOF",n.loc)),this.pushTokens(i),new Zl("",ul.range(r,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Vt("Extra }",a)}else if(a.text==="EOF")throw new Vt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",a);if(e&&n)if((s===0||s===1&&e[o]==="{")&&a.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new Vt("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;ithis.settings.maxExpand)throw new Vt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||e&&i.unexpandable){if(e&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new Vt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Vt("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Vt("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Zl(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var s=i.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var o=new hX(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(e){return this.macros.has(e)||Md.hasOwnProperty(e)||di.math.hasOwnProperty(e)||di.text.hasOwnProperty(e)||Jue.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Md.hasOwnProperty(e)&&!Md[e].primitive}};var gX=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,mx=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Y8={"́":{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"}},mX={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let e0e=class t0e{constructor(e,r){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 yPe(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new Vt("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(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{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Zl("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(t0e.endOfExpression.has(i.text)||r&&i.text===r||e&&Md[i.text]&&Md[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,i=0;i=128)this.settings.strict&&(oue(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:ul.range(e),text:r};else return null;if(this.consume(),a)for(var d=0;d=I?A:""+Array(I+1-L.length).join(D)+A},E={s:_,z:function(A){var I=-A.utcOffset(),D=Math.abs(I),L=Math.floor(D/60),R=D%60;return(I<=0?"+":"-")+_(L,2,"0")+":"+_(R,2,"0")},m:function A(I,D){if(I.date()1)return A(z[0])}else{var B=I.name;C[B]=I,R=B}return!L&&R&&(x=R),R||!L&&x},O=function(A,I){if(w(A))return A.clone();var D=typeof I=="object"?I:{};return D.date=A,D.args=arguments,new $(D)},M=E;M.l=N,M.i=w,M.w=function(A,I){return O(A,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var $=(function(){function A(D){this.$L=N(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[T]=!0}var I=A.prototype;return I.parse=function(D){this.$d=(function(L){var R=L.date,P=L.utc;if(R===null)return new Date(NaN);if(M.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var z=R.match(y);if(z){var B=z[2]-1||0,q=(z[7]||"0").substring(0,3);return P?new Date(Date.UTC(z[1],B,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)):new Date(z[1],B,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)}}return new Date(R)})(D),this.init()},I.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},I.$utils=function(){return M},I.isValid=function(){return this.$d.toString()!==m},I.isSame=function(D,L){var R=O(D);return this.startOf(L)<=R&&R<=this.endOf(L)},I.isAfter=function(D,L){return O(D)l0e(t,"name",{value:e,configurable:!0}),uk=(t,e)=>{for(var r in e)l0e(t,r,{get:e[r],enumerable:!0})},Pu={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ge={trace:S((...t)=>{},"trace"),debug:S((...t)=>{},"debug"),info:S((...t)=>{},"info"),warn:S((...t)=>{},"warn"),error:S((...t)=>{},"error"),fatal:S((...t)=>{},"fatal")},dU=S(function(t="fatal"){let e=Pu.fatal;typeof t=="string"?t.toLowerCase()in Pu&&(e=Pu[t]):typeof t=="number"&&(e=t),ge.trace=()=>{},ge.debug=()=>{},ge.info=()=>{},ge.warn=()=>{},ge.error=()=>{},ge.fatal=()=>{},e<=Pu.fatal&&(ge.fatal=console.error?console.error.bind(console,al("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",al("FATAL"))),e<=Pu.error&&(ge.error=console.error?console.error.bind(console,al("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",al("ERROR"))),e<=Pu.warn&&(ge.warn=console.warn?console.warn.bind(console,al("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",al("WARN"))),e<=Pu.info&&(ge.info=console.info?console.info.bind(console,al("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",al("INFO"))),e<=Pu.debug&&(ge.debug=console.debug?console.debug.bind(console,al("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",al("DEBUG"))),e<=Pu.trace&&(ge.trace=console.debug?console.debug.bind(console,al("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",al("TRACE")))},"setLogLevel"),al=S(t=>`%c${Pa().format("ss.SSS")} : ${t} : `,"format");const U3={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},n)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const i=r<.5?r*(1+e):r+e-r*e,a=2*r-i;switch(n){case"r":return U3.hue2rgb(a,i,t+1/3)*255;case"g":return U3.hue2rgb(a,i,t)*255;case"b":return U3.hue2rgb(a,i,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const i=Math.max(t,e,r),a=Math.min(t,e,r),s=(i+a)/2;if(n==="l")return s*100;if(i===a)return 0;const o=i-a,l=s>.5?o/(2-i-a):o/(i+a);if(n==="s")return l*100;switch(i){case t:return((e-r)/o+(ee>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},xPe={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},qr={channel:U3,lang:TPe,unit:xPe},bd={};for(let t=0;t<=255;t++)bd[t]=qr.unit.dec2hex(t);const ns={ALL:0,RGB:1,HSL:2};let CPe=class{constructor(){this.type=ns.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ns.ALL}is(e){return this.type===e}};class wPe{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new CPe}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=ns.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:n,l:i}=e;r===void 0&&(e.h=qr.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=qr.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=qr.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:n,b:i}=e;r===void 0&&(e.r=qr.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=qr.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=qr.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(ns.HSL)&&r!==void 0?r:(this._ensureHSL(),qr.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(ns.HSL)&&r!==void 0?r:(this._ensureHSL(),qr.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(ns.HSL)&&r!==void 0?r:(this._ensureHSL(),qr.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(ns.RGB)&&r!==void 0?r:(this._ensureRGB(),qr.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(ns.RGB)&&r!==void 0?r:(this._ensureRGB(),qr.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(ns.RGB)&&r!==void 0?r:(this._ensureRGB(),qr.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ns.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ns.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ns.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ns.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ns.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ns.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const dk=new wPe({r:0,g:0,b:0,a:0},"transparent"),qm={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(qm.re);if(!e)return;const r=e[1],n=parseInt(r,16),i=r.length,a=i%4===0,s=i>4,o=s?1:17,l=s?8:4,u=a?0:-1,d=s?255:15;return dk.set({r:(n>>l*(u+3)&d)*o,g:(n>>l*(u+2)&d)*o,b:(n>>l*(u+1)&d)*o,a:a?(n&d)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`#${bd[Math.round(e)]}${bd[Math.round(r)]}${bd[Math.round(n)]}${bd[Math.round(i*255)]}`:`#${bd[Math.round(e)]}${bd[Math.round(r)]}${bd[Math.round(n)]}`}},Zf={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(Zf.hueRe);if(e){const[,r,n]=e;switch(n){case"grad":return qr.channel.clamp.h(parseFloat(r)*.9);case"rad":return qr.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return qr.channel.clamp.h(parseFloat(r)*360)}}return qr.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(Zf.re);if(!r)return;const[,n,i,a,s,o]=r;return dk.set({h:Zf._hue2deg(n),s:qr.channel.clamp.s(parseFloat(i)),l:qr.channel.clamp.l(parseFloat(a)),a:s?qr.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${qr.lang.round(e)}, ${qr.lang.round(r)}%, ${qr.lang.round(n)}%, ${i})`:`hsl(${qr.lang.round(e)}, ${qr.lang.round(r)}%, ${qr.lang.round(n)}%)`}},YE={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=YE.colors[t];if(e)return qm.parse(e)},stringify:t=>{const e=qm.stringify(t);for(const r in YE.colors)if(YE.colors[r]===e)return r}},sE={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(sE.re);if(!r)return;const[,n,i,a,s,o,l,u,d]=r;return dk.set({r:qr.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:qr.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:qr.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:u?qr.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${qr.lang.round(e)}, ${qr.lang.round(r)}, ${qr.lang.round(n)}, ${qr.lang.round(i)})`:`rgb(${qr.lang.round(e)}, ${qr.lang.round(r)}, ${qr.lang.round(n)})`}},dc={format:{keyword:YE,hex:qm,rgb:sE,rgba:sE,hsl:Zf,hsla:Zf},parse:t=>{if(typeof t!="string")return t;const e=qm.parse(t)||sE.parse(t)||Zf.parse(t)||YE.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(ns.HSL)||t.data.r===void 0?Zf.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?sE.stringify(t):qm.stringify(t)},c0e=(t,e)=>{const r=dc.parse(t);for(const n in e)r[n]=qr.channel.clamp[n](e[n]);return dc.stringify(r)},Jl=(t,e,r=0,n=1)=>{if(typeof t!="number")return c0e(t,{a:e});const i=dk.set({r:qr.channel.clamp.r(t),g:qr.channel.clamp.g(e),b:qr.channel.clamp.b(r),a:qr.channel.clamp.a(n)});return dc.stringify(i)},hU=(t,e)=>qr.lang.round(dc.parse(t)[e]),kPe=t=>{const{r:e,g:r,b:n}=dc.parse(t),i=.2126*qr.channel.toLinear(e)+.7152*qr.channel.toLinear(r)+.0722*qr.channel.toLinear(n);return qr.lang.round(i)},APe=t=>kPe(t)>=.5,Qs=t=>!APe(t),fU=(t,e,r)=>{const n=dc.parse(t),i=n[e],a=qr.channel.clamp[e](i+r);return i!==a&&(n[e]=a),dc.stringify(n)},vt=(t,e)=>fU(t,"l",e),_t=(t,e)=>fU(t,"l",-e),vX=(t,e)=>fU(t,"a",-e),_e=(t,e)=>{const r=dc.parse(t),n={};for(const i in e)e[i]&&(n[i]=r[i]+e[i]);return c0e(t,n)},RPe=(t,e,r=50)=>{const{r:n,g:i,b:a,a:s}=dc.parse(t),{r:o,g:l,b:u,a:d}=dc.parse(e),h=r/100,f=h*2-1,p=s-d,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,y=1-m,v=n*m+o*y,b=i*m+l*y,_=a*m+u*y,E=s*h+d*(1-h);return Jl(v,b,_,E)},lt=(t,e=100)=>{const r=dc.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,RPe(r,t,e)};const{entries:u0e,setPrototypeOf:_X,isFrozen:NPe,getPrototypeOf:IPe,getOwnPropertyDescriptor:OPe}=Object;let{freeze:Gs,seal:kl,create:G3}=Object,{apply:OM,construct:DM}=typeof Reflect<"u"&&Reflect;Gs||(Gs=function(e){return e});kl||(kl=function(e){return e});OM||(OM=function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a1?r-1:0),i=1;i1?r-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:q3;_X&&_X(t,null);let n=e.length;for(;n--;){let i=e[n];if(typeof i=="string"){const a=r(i);a!==i&&(NPe(e)||(e[n]=a),i=a)}t[i]=!0}return t}function FPe(t){for(let e=0;e/gm),qPe=kl(/\$\{[\w\W]*/gm),YPe=kl(/^data-[\-\w.\u00B7-\uFFFF]+$/),HPe=kl(/^aria-[\-\w]+$/),d0e=kl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),VPe=kl(/^(?:\w+script|data):/i),WPe=kl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),h0e=kl(/^html$/i),KPe=kl(/^[a-z][.\w]*(-[.\w]+)+$/i);var CX=Object.freeze({__proto__:null,ARIA_ATTR:HPe,ATTR_WHITESPACE:WPe,CUSTOM_ELEMENT:KPe,DATA_ATTR:YPe,DOCTYPE_NAME:h0e,ERB_EXPR:GPe,IS_ALLOWED_URI:d0e,IS_SCRIPT_OR_DATA:VPe,MUSTACHE_EXPR:UPe,TMPLIT_EXPR:qPe});const C2={element:1,text:3,progressingInstruction:7,comment:8,document:9},XPe=function(){return typeof window>"u"?null:window},jPe=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},wX=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function f0e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:XPe();const e=Ct=>f0e(Ct);if(e.version="3.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==C2.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:p}=t,g=l.prototype,m=x2(g,"cloneNode"),y=x2(g,"remove"),v=x2(g,"nextSibling"),b=x2(g,"childNodes"),_=x2(g,"parentNode");if(typeof s=="function"){const Ct=r.createElement("template");Ct.content&&Ct.content.ownerDocument&&(r=Ct.content.ownerDocument)}let E,x="";const{implementation:C,createNodeIterator:T,createDocumentFragment:w,getElementsByTagName:N}=r,{importNode:O}=n;let M=wX();e.isSupported=typeof u0e=="function"&&typeof _=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$,ERB_EXPR:F,TMPLIT_EXPR:A,DATA_ATTR:I,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:P}=CX;let{IS_ALLOWED_URI:z}=CX,B=null;const q=an({},[...EX,...W8,...K8,...X8,...SX]);let Y=null;const Q=an({},[...TX,...j8,...xX,...vx]);let H=Object.seal(G3(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),J=null,Z=null;const pe=Object.seal(G3(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let re=!0,ce=!0,ae=!1,se=!0,xe=!1,Te=!0,Ge=!1,ze=!1,Xe=!1,Le=!1,Re=!1,qe=!1,Ne=!0,ut=!1;const De="user-content-";let Je=!0,st=!1,ct={},ot=null;const it=an({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Oe=null;const U=an({},["audio","video","img","source","image","track"]);let oe=null;const de=an({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),G="http://www.w3.org/1998/Math/MathML",ie="http://www.w3.org/2000/svg",j="http://www.w3.org/1999/xhtml";let V=j,ue=!1,Fe=null;const me=an({},[G,ie,j],H8);let Ce=an({},["mi","mo","mn","ms","mtext"]),ye=an({},["annotation-xml"]);const Me=an({},["title","style","font","a","script"]);let Ie=null;const he=["application/xhtml+xml","text/html"],le="text/html";let Be=null,ve=null;const gt=r.createElement("form"),Et=function(Ye){return Ye instanceof RegExp||Ye instanceof Function},et=function(){let Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ve&&ve===Ye)){if((!Ye||typeof Ye!="object")&&(Ye={}),Ye=wc(Ye),Ie=he.indexOf(Ye.PARSER_MEDIA_TYPE)===-1?le:Ye.PARSER_MEDIA_TYPE,Be=Ie==="application/xhtml+xml"?H8:q3,B=Ao(Ye,"ALLOWED_TAGS")?an({},Ye.ALLOWED_TAGS,Be):q,Y=Ao(Ye,"ALLOWED_ATTR")?an({},Ye.ALLOWED_ATTR,Be):Q,Fe=Ao(Ye,"ALLOWED_NAMESPACES")?an({},Ye.ALLOWED_NAMESPACES,H8):me,oe=Ao(Ye,"ADD_URI_SAFE_ATTR")?an(wc(de),Ye.ADD_URI_SAFE_ATTR,Be):de,Oe=Ao(Ye,"ADD_DATA_URI_TAGS")?an(wc(U),Ye.ADD_DATA_URI_TAGS,Be):U,ot=Ao(Ye,"FORBID_CONTENTS")?an({},Ye.FORBID_CONTENTS,Be):it,J=Ao(Ye,"FORBID_TAGS")?an({},Ye.FORBID_TAGS,Be):wc({}),Z=Ao(Ye,"FORBID_ATTR")?an({},Ye.FORBID_ATTR,Be):wc({}),ct=Ao(Ye,"USE_PROFILES")?Ye.USE_PROFILES:!1,re=Ye.ALLOW_ARIA_ATTR!==!1,ce=Ye.ALLOW_DATA_ATTR!==!1,ae=Ye.ALLOW_UNKNOWN_PROTOCOLS||!1,se=Ye.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xe=Ye.SAFE_FOR_TEMPLATES||!1,Te=Ye.SAFE_FOR_XML!==!1,Ge=Ye.WHOLE_DOCUMENT||!1,Le=Ye.RETURN_DOM||!1,Re=Ye.RETURN_DOM_FRAGMENT||!1,qe=Ye.RETURN_TRUSTED_TYPE||!1,Xe=Ye.FORCE_BODY||!1,Ne=Ye.SANITIZE_DOM!==!1,ut=Ye.SANITIZE_NAMED_PROPS||!1,Je=Ye.KEEP_CONTENT!==!1,st=Ye.IN_PLACE||!1,z=Ye.ALLOWED_URI_REGEXP||d0e,V=Ye.NAMESPACE||j,Ce=Ye.MATHML_TEXT_INTEGRATION_POINTS||Ce,ye=Ye.HTML_INTEGRATION_POINTS||ye,H=Ye.CUSTOM_ELEMENT_HANDLING||{},Ye.CUSTOM_ELEMENT_HANDLING&&Et(Ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=Ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ye.CUSTOM_ELEMENT_HANDLING&&Et(Ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=Ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ye.CUSTOM_ELEMENT_HANDLING&&typeof Ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=Ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(ce=!1),Re&&(Le=!0),ct&&(B=an({},SX),Y=G3(null),ct.html===!0&&(an(B,EX),an(Y,TX)),ct.svg===!0&&(an(B,W8),an(Y,j8),an(Y,vx)),ct.svgFilters===!0&&(an(B,K8),an(Y,j8),an(Y,vx)),ct.mathMl===!0&&(an(B,X8),an(Y,xX),an(Y,vx))),Ao(Ye,"ADD_TAGS")||(pe.tagCheck=null),Ao(Ye,"ADD_ATTR")||(pe.attributeCheck=null),Ye.ADD_TAGS&&(typeof Ye.ADD_TAGS=="function"?pe.tagCheck=Ye.ADD_TAGS:(B===q&&(B=wc(B)),an(B,Ye.ADD_TAGS,Be))),Ye.ADD_ATTR&&(typeof Ye.ADD_ATTR=="function"?pe.attributeCheck=Ye.ADD_ATTR:(Y===Q&&(Y=wc(Y)),an(Y,Ye.ADD_ATTR,Be))),Ye.ADD_URI_SAFE_ATTR&&an(oe,Ye.ADD_URI_SAFE_ATTR,Be),Ye.FORBID_CONTENTS&&(ot===it&&(ot=wc(ot)),an(ot,Ye.FORBID_CONTENTS,Be)),Ye.ADD_FORBID_CONTENTS&&(ot===it&&(ot=wc(ot)),an(ot,Ye.ADD_FORBID_CONTENTS,Be)),Je&&(B["#text"]=!0),Ge&&an(B,["html","head","body"]),B.table&&(an(B,["tbody"]),delete J.tbody),Ye.TRUSTED_TYPES_POLICY){if(typeof Ye.TRUSTED_TYPES_POLICY.createHTML!="function")throw T2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ye.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw T2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=Ye.TRUSTED_TYPES_POLICY,x=E.createHTML("")}else E===void 0&&(E=jPe(p,i)),E!==null&&typeof x=="string"&&(x=E.createHTML(""));Gs&&Gs(Ye),ve=Ye}},dt=an({},[...W8,...K8,...$Pe]),ft=an({},[...X8,...zPe]),mt=function(Ye){let pt=_(Ye);(!pt||!pt.tagName)&&(pt={namespaceURI:V,tagName:"template"});const Dt=q3(Ye.tagName),Zt=q3(pt.tagName);return Fe[Ye.namespaceURI]?Ye.namespaceURI===ie?pt.namespaceURI===j?Dt==="svg":pt.namespaceURI===G?Dt==="svg"&&(Zt==="annotation-xml"||Ce[Zt]):!!dt[Dt]:Ye.namespaceURI===G?pt.namespaceURI===j?Dt==="math":pt.namespaceURI===ie?Dt==="math"&&ye[Zt]:!!ft[Dt]:Ye.namespaceURI===j?pt.namespaceURI===ie&&!ye[Zt]||pt.namespaceURI===G&&!Ce[Zt]?!1:!ft[Dt]&&(Me[Dt]||!dt[Dt]):!!(Ie==="application/xhtml+xml"&&Fe[Ye.namespaceURI]):!1},fe=function(Ye){E2(e.removed,{element:Ye});try{_(Ye).removeChild(Ye)}catch{y(Ye)}},It=function(Ye,pt){try{E2(e.removed,{attribute:pt.getAttributeNode(Ye),from:pt})}catch{E2(e.removed,{attribute:null,from:pt})}if(pt.removeAttribute(Ye),Ye==="is")if(Le||Re)try{fe(pt)}catch{}else try{pt.setAttribute(Ye,"")}catch{}},St=function(Ye){let pt=null,Dt=null;if(Xe)Ye=""+Ye;else{const Vr=V8(Ye,/^[\r\n\t ]+/);Dt=Vr&&Vr[0]}Ie==="application/xhtml+xml"&&V===j&&(Ye=''+Ye+"");const Zt=E?E.createHTML(Ye):Ye;if(V===j)try{pt=new f().parseFromString(Zt,Ie)}catch{}if(!pt||!pt.documentElement){pt=C.createDocument(V,"template",null);try{pt.documentElement.innerHTML=ue?x:Zt}catch{}}const wr=pt.body||pt.documentElement;return Ye&&Dt&&wr.insertBefore(r.createTextNode(Dt),wr.childNodes[0]||null),V===j?N.call(pt,Ge?"html":"body")[0]:Ge?pt.documentElement:wr},Tt=function(Ye){return T.call(Ye.ownerDocument||Ye,Ye,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Nt=function(Ye){return Ye instanceof h&&(typeof Ye.nodeName!="string"||typeof Ye.textContent!="string"||typeof Ye.removeChild!="function"||!(Ye.attributes instanceof d)||typeof Ye.removeAttribute!="function"||typeof Ye.setAttribute!="function"||typeof Ye.namespaceURI!="string"||typeof Ye.insertBefore!="function"||typeof Ye.hasChildNodes!="function")},Hr=function(Ye){return typeof o=="function"&&Ye instanceof o};function Pe(Ct,Ye,pt){yx(Ct,Dt=>{Dt.call(e,Ye,pt,ve)})}const yt=function(Ye){let pt=null;if(Pe(M.beforeSanitizeElements,Ye,null),Nt(Ye))return fe(Ye),!0;const Dt=Be(Ye.nodeName);if(Pe(M.uponSanitizeElement,Ye,{tagName:Dt,allowedTags:B}),Te&&Ye.hasChildNodes()&&!Hr(Ye.firstElementChild)&&bs(/<[/\w!]/g,Ye.innerHTML)&&bs(/<[/\w!]/g,Ye.textContent)||Ye.nodeType===C2.progressingInstruction||Te&&Ye.nodeType===C2.comment&&bs(/<[/\w]/g,Ye.data))return fe(Ye),!0;if(!(pe.tagCheck instanceof Function&&pe.tagCheck(Dt))&&(!B[Dt]||J[Dt])){if(!J[Dt]&&Ot(Dt)&&(H.tagNameCheck instanceof RegExp&&bs(H.tagNameCheck,Dt)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Dt)))return!1;if(Je&&!ot[Dt]){const Zt=_(Ye)||Ye.parentNode,wr=b(Ye)||Ye.childNodes;if(wr&&Zt){const Vr=wr.length;for(let Kr=Vr-1;Kr>=0;--Kr){const Gn=m(wr[Kr],!0);Gn.__removalCount=(Ye.__removalCount||0)+1,Zt.insertBefore(Gn,v(Ye))}}}return fe(Ye),!0}return Ye instanceof l&&!mt(Ye)||(Dt==="noscript"||Dt==="noembed"||Dt==="noframes")&&bs(/<\/no(script|embed|frames)/i,Ye.innerHTML)?(fe(Ye),!0):(xe&&Ye.nodeType===C2.text&&(pt=Ye.textContent,yx([$,F,A],Zt=>{pt=S2(pt,Zt," ")}),Ye.textContent!==pt&&(E2(e.removed,{element:Ye.cloneNode()}),Ye.textContent=pt)),Pe(M.afterSanitizeElements,Ye,null),!1)},bt=function(Ye,pt,Dt){if(Z[pt]||Ne&&(pt==="id"||pt==="name")&&(Dt in r||Dt in gt))return!1;if(!(ce&&!Z[pt]&&bs(I,pt))){if(!(re&&bs(D,pt))){if(!(pe.attributeCheck instanceof Function&&pe.attributeCheck(pt,Ye))){if(!Y[pt]||Z[pt]){if(!(Ot(Ye)&&(H.tagNameCheck instanceof RegExp&&bs(H.tagNameCheck,Ye)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Ye))&&(H.attributeNameCheck instanceof RegExp&&bs(H.attributeNameCheck,pt)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(pt,Ye))||pt==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&bs(H.tagNameCheck,Dt)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Dt))))return!1}else if(!oe[pt]){if(!bs(z,S2(Dt,R,""))){if(!((pt==="src"||pt==="xlink:href"||pt==="href")&&Ye!=="script"&&MPe(Dt,"data:")===0&&Oe[Ye])){if(!(ae&&!bs(L,S2(Dt,R,"")))){if(Dt)return!1}}}}}}}return!0},Ot=function(Ye){return Ye!=="annotation-xml"&&V8(Ye,P)},Qt=function(Ye){Pe(M.beforeSanitizeAttributes,Ye,null);const{attributes:pt}=Ye;if(!pt||Nt(Ye))return;const Dt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let Zt=pt.length;for(;Zt--;){const wr=pt[Zt],{name:Vr,namespaceURI:Kr,value:Gn}=wr,ji=Be(Vr),Mt=Gn;let Xt=Vr==="value"?Mt:PPe(Mt);if(Dt.attrName=ji,Dt.attrValue=Xt,Dt.keepAttr=!0,Dt.forceKeepAttr=void 0,Pe(M.uponSanitizeAttribute,Ye,Dt),Xt=Dt.attrValue,ut&&(ji==="id"||ji==="name")&&(It(Vr,Ye),Xt=De+Xt),Te&&bs(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Xt)){It(Vr,Ye);continue}if(ji==="attributename"&&V8(Xt,"href")){It(Vr,Ye);continue}if(Dt.forceKeepAttr)continue;if(!Dt.keepAttr){It(Vr,Ye);continue}if(!se&&bs(/\/>/i,Xt)){It(Vr,Ye);continue}xe&&yx([$,F,A],xt=>{Xt=S2(Xt,xt," ")});const kt=Be(Ye.nodeName);if(!bt(kt,ji,Xt)){It(Vr,Ye);continue}if(E&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Kr)switch(p.getAttributeType(kt,ji)){case"TrustedHTML":{Xt=E.createHTML(Xt);break}case"TrustedScriptURL":{Xt=E.createScriptURL(Xt);break}}if(Xt!==Mt)try{Kr?Ye.setAttributeNS(Kr,Vr,Xt):Ye.setAttribute(Vr,Xt),Nt(Ye)?fe(Ye):bX(e.removed)}catch{It(Vr,Ye)}}Pe(M.afterSanitizeAttributes,Ye,null)},br=function Ct(Ye){let pt=null;const Dt=Tt(Ye);for(Pe(M.beforeSanitizeShadowDOM,Ye,null);pt=Dt.nextNode();)Pe(M.uponSanitizeShadowNode,pt,null),yt(pt),Qt(pt),pt.content instanceof a&&Ct(pt.content);Pe(M.afterSanitizeShadowDOM,Ye,null)};return e.sanitize=function(Ct){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pt=null,Dt=null,Zt=null,wr=null;if(ue=!Ct,ue&&(Ct=""),typeof Ct!="string"&&!Hr(Ct))if(typeof Ct.toString=="function"){if(Ct=Ct.toString(),typeof Ct!="string")throw T2("dirty is not a string, aborting")}else throw T2("toString is not a function");if(!e.isSupported)return Ct;if(ze||et(Ye),e.removed=[],typeof Ct=="string"&&(st=!1),st){if(Ct.nodeName){const Gn=Be(Ct.nodeName);if(!B[Gn]||J[Gn])throw T2("root node is forbidden and cannot be sanitized in-place")}}else if(Ct instanceof o)pt=St(""),Dt=pt.ownerDocument.importNode(Ct,!0),Dt.nodeType===C2.element&&Dt.nodeName==="BODY"||Dt.nodeName==="HTML"?pt=Dt:pt.appendChild(Dt);else{if(!Le&&!xe&&!Ge&&Ct.indexOf("<")===-1)return E&&qe?E.createHTML(Ct):Ct;if(pt=St(Ct),!pt)return Le?null:qe?x:""}pt&&Xe&&fe(pt.firstChild);const Vr=Tt(st?Ct:pt);for(;Zt=Vr.nextNode();)yt(Zt),Qt(Zt),Zt.content instanceof a&&br(Zt.content);if(st)return Ct;if(Le){if(Re)for(wr=w.call(pt.ownerDocument);pt.firstChild;)wr.appendChild(pt.firstChild);else wr=pt;return(Y.shadowroot||Y.shadowrootmode)&&(wr=O.call(n,wr,!0)),wr}let Kr=Ge?pt.outerHTML:pt.innerHTML;return Ge&&B["!doctype"]&&pt.ownerDocument&&pt.ownerDocument.doctype&&pt.ownerDocument.doctype.name&&bs(h0e,pt.ownerDocument.doctype.name)&&(Kr=" +`+Kr),xe&&yx([$,F,A],Gn=>{Kr=S2(Kr,Gn," ")}),E&&qe?E.createHTML(Kr):Kr},e.setConfig=function(){let Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};et(Ct),ze=!0},e.clearConfig=function(){ve=null,ze=!1},e.isValidAttribute=function(Ct,Ye,pt){ve||et({});const Dt=Be(Ct),Zt=Be(Ye);return bt(Dt,Zt,pt)},e.addHook=function(Ct,Ye){typeof Ye=="function"&&E2(M[Ct],Ye)},e.removeHook=function(Ct,Ye){if(Ye!==void 0){const pt=DPe(M[Ct],Ye);return pt===-1?void 0:LPe(M[Ct],pt,1)[0]}return bX(M[Ct])},e.removeHooks=function(Ct){M[Ct]=[]},e.removeAllHooks=function(){M=wX()},e}var nh=f0e(),p0e=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,HE=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,QPe=/\s*%%.*\n/gm,u1,g0e=(u1=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},S(u1,"UnknownDiagramError"),u1),_p={},pU=S(function(t,e){t=t.replace(p0e,"").replace(HE,"").replace(QPe,` +`);for(const[r,{detector:n}]of Object.entries(_p))if(n(t,e))return r;throw new g0e(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),LM=S((...t)=>{for(const{id:e,detector:r,loader:n}of t)m0e(e,r,n)},"registerLazyLoadedDiagrams"),m0e=S((t,e,r)=>{_p[t]&&ge.warn(`Detector with key ${t} already exists. Overwriting.`),_p[t]={detector:e,loader:r},ge.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),ZPe=S(t=>_p[t].loader,"getDiagramLoader"),MM=S((t,e,{depth:r=2,clobber:n=!1}={})=>{const i={depth:r,clobber:n};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(a=>MM(t,a,i)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(a=>{t.includes(a)||t.push(a)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(a=>{typeof e[a]=="object"&&e[a]!==null&&(t[a]===void 0||typeof t[a]=="object")?(t[a]===void 0&&(t[a]=Array.isArray(e[a])?[]:{}),t[a]=MM(t[a],e[a],{depth:r-1,clobber:n})):(n||typeof t[a]!="object"&&typeof e[a]!="object")&&(t[a]=e[a])}),t)},"assignWithDepth"),Vi=MM,pu="#ffffff",gu="#f2f2f2",$r=S((t,e)=>e?_e(t,{s:-40,l:10}):_e(t,{s:-40,l:-10}),"mkBorder"),d1,JPe=(d1=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||_t(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||_t(this.mainBkg,10)):(this.rowOdd=this.rowOdd||vt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||vt(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||_e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||_e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||_e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||_e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||_e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||_e(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||_e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||_e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||_e(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(d1,"Theme"),d1),eBe=S(t=>{const e=new JPe;return e.calculate(t),e},"getThemeVariables"),h1,tBe=(h1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=_e(this.primaryColor,{h:-160}),this.primaryBorderColor=lt(this.background),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.lineColor=lt(this.background),this.textColor=lt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(lt("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Jl(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=_t("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=_t(this.sectionBkgColor,10),this.taskBorderColor=Jl(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Jl(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||vt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||_t(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=vt(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=vt(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=vt(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=lt(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=_e(this.primaryColor,{h:64}),this.fillType3=_e(this.secondaryColor,{h:64}),this.fillType4=_e(this.primaryColor,{h:-64}),this.fillType5=_e(this.secondaryColor,{h:-64}),this.fillType6=_e(this.primaryColor,{h:128}),this.fillType7=_e(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||_e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||_e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||_e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||_e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||_e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||_e(this.primaryColor,{h:210}),this.cScale9=this.cScale9||_e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||_e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||_e(this.primaryColor,{h:330});for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(h1,"Theme"),h1),rBe=S(t=>{const e=new tBe;return e.calculate(t),e},"getThemeVariables"),f1,nBe=(f1=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=_e(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=_e(this.primaryColor,{h:-160}),this.primaryBorderColor=$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.lineColor=lt(this.background),this.textColor=lt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=$r(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Jl(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||_e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||_e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||_e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||_e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||_e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||_e(this.primaryColor,{h:210}),this.cScale9=this.cScale9||_e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||_e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||_e(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||_t(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||_t(this.tertiaryColor,40);for(let e=0;e{this[n]==="calculated"&&(this[n]=void 0)}),typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(f1,"Theme"),f1),Fb=S(t=>{const e=new nBe;return e.calculate(t),e},"getThemeVariables"),p1,iBe=(p1=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=vt("#cde498",10),this.primaryBorderColor=$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.primaryColor),this.lineColor=lt(this.background),this.textColor=lt(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=_t(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||_e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||_e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||_e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||_e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||_e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||_e(this.primaryColor,{h:210}),this.cScale9=this.cScale9||_e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||_e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||_e(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||_t(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||_t(this.tertiaryColor,40);for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(p1,"Theme"),p1),aBe=S(t=>{const e=new iBe;return e.calculate(t),e},"getThemeVariables"),g1,sBe=(g1=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=vt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=_e(this.primaryColor,{h:-160}),this.primaryBorderColor=$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.lineColor=lt(this.background),this.textColor=lt(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||vt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=vt(this.contrast,55),this.border2=this.contrast,this.actorBorder=vt(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(g1,"Theme"),g1),oBe=S(t=>{const e=new sBe;return e.calculate(t),e},"getThemeVariables"),m1,lBe=(m1=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=$r(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=_e(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||e,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||_e(e,{h:30}),this.cScale4=this.cScale4||_e(e,{h:60}),this.cScale5=this.cScale5||_e(e,{h:90}),this.cScale6=this.cScale6||_e(e,{h:120}),this.cScale7=this.cScale7||_e(e,{h:150}),this.cScale8=this.cScale8||_e(e,{h:210,l:150}),this.cScale9=this.cScale9||_e(e,{h:270}),this.cScale10=this.cScale10||_e(e,{h:300}),this.cScale11=this.cScale11||_e(e,{h:330}),this.darkMode)for(let a=0;a{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(m1,"Theme"),m1),cBe=S(t=>{const e=new lBe;return e.calculate(t),e},"getThemeVariables"),y1,uBe=(y1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=_e(this.primaryColor,{h:-160}),this.primaryBorderColor=lt(this.background),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(lt("#323D47"),10),this.border1="#ccc",this.border2=Jl(255,255,255,.25),this.arrowheadColor=lt(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||_e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||_e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||_e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||_e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||_e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||_e(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||_e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||_e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||_e(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(y1,"Theme"),y1),dBe=S(t=>{const e=new uBe;return e.calculate(t),e},"getThemeVariables"),v1,hBe=(v1=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=$r("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=_e(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let a=0;a{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(v1,"Theme"),v1),fBe=S(t=>{const e=new hBe;return e.calculate(t),e},"getThemeVariables"),_1,pBe=(_1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=_e(this.primaryColor,{h:-160}),this.primaryBorderColor=lt(this.background),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(lt("#323D47"),10),this.border1="#ccc",this.border2=Jl(255,255,255,.25),this.arrowheadColor=lt(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||_e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||_e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||_e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||_e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||_e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||_e(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||_e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||_e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||_e(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(_1,"Theme"),_1),gBe=S(t=>{const e=new pBe;return e.calculate(t),e},"getThemeVariables"),b1,mBe=(b1=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=$r(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=_e(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let a=0;a{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(b1,"Theme"),b1),yBe=S(t=>{const e=new mBe;return e.calculate(t),e},"getThemeVariables"),E1,vBe=(E1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=_e(this.primaryColor,{h:-160}),this.primaryBorderColor=lt(this.background),this.secondaryBorderColor=$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$r(this.tertiaryColor,this.darkMode),this.primaryTextColor=lt(this.primaryColor),this.secondaryTextColor=lt(this.secondaryColor),this.tertiaryTextColor=lt(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(lt("#323D47"),10),this.border1="#ccc",this.border2=Jl(255,255,255,.25),this.arrowheadColor=lt(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||_e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||_e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$r(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$r(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$r(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$r(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||lt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||lt(this.tertiaryColor),this.lineColor=this.lineColor||lt(this.background),this.arrowheadColor=this.arrowheadColor||lt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?_t(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||_t(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||lt(this.lineColor),this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||vt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},S(E1,"Theme"),E1),_Be=S(t=>{const e=new vBe;return e.calculate(t),e},"getThemeVariables"),g0={base:{getThemeVariables:eBe},dark:{getThemeVariables:rBe},default:{getThemeVariables:Fb},forest:{getThemeVariables:aBe},neutral:{getThemeVariables:oBe},neo:{getThemeVariables:cBe},"neo-dark":{getThemeVariables:dBe},redux:{getThemeVariables:fBe},"redux-dark":{getThemeVariables:gBe},"redux-color":{getThemeVariables:yBe},"redux-dark-color":{getThemeVariables:_Be}},Es={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},y0e={...Es,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:g0.default.getThemeVariables(),sequence:{...Es.sequence,messageFont:S(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:S(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:S(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Es.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Es.c4,useWidth:void 0,personFont:S(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Es.flowchart,inheritDir:!1},external_personFont:S(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:S(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:S(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:S(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:S(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:S(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:S(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:S(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:S(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:S(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:S(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:S(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:S(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:S(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:S(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:S(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:S(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:S(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:S(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:S(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:S(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Es.pie,useWidth:984},xyChart:{...Es.xyChart,useWidth:void 0},requirement:{...Es.requirement,useWidth:void 0},packet:{...Es.packet},eventmodeling:{...Es.eventmodeling},treeView:{...Es.treeView,useWidth:void 0},radar:{...Es.radar},ishikawa:{...Es.ishikawa},sankey:{...Es.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Es.venn}},v0e=S((t,e="")=>Object.keys(t).reduce((r,n)=>Array.isArray(t[n])?r:typeof t[n]=="object"&&t[n]!==null?[...r,e+n,...v0e(t[n],"")]:[...r,e+n],[]),"keyify"),bBe=new Set(v0e(y0e,"")),on=y0e,vC=S(t=>{if(ge.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>vC(e));return}for(const e of Object.keys(t)){if(ge.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!bBe.has(e)||t[e]==null){ge.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){if(e==="nodeColors"){const n=/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;for(const i of Object.keys(t[e]))(typeof t[e][i]!="string"||!n.test(t[e][i]))&&(ge.debug("sanitize deleting invalid color:",i,t[e][i]),delete t[e][i])}else ge.debug("sanitizing object",e),vC(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)e.includes(n)&&(ge.debug("sanitizing css option",e),t[e]=_0e(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}ge.debug("After sanitization",t)}},"sanitizeDirective"),_0e=S(t=>{let e=0,r=0;for(const n of t){if(e!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),uo=Vi({},Y_),_C,bp=[],VE=Vi({},Y_),hk=S((t,e)=>{let r=Vi({},t),n={};for(const i of e)S0e(i),n=Vi(n,i);if(r=Vi(r,n),n.theme&&n.theme in g0){const i=Vi({},_C),a=Vi(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in g0&&(r.themeVariables=g0[r.theme].getThemeVariables(a))}return VE=r,x0e(VE),VE},"updateCurrentConfig"),EBe=S(t=>(uo=Vi({},Y_),uo=Vi(uo,t),t.theme&&g0[t.theme]&&(uo.themeVariables=g0[t.theme].getThemeVariables(t.themeVariables)),hk(uo,bp),uo),"setSiteConfig"),SBe=S(t=>{_C=Vi({},t)},"saveConfigFromInitialize"),TBe=S(t=>(uo=Vi(uo,t),hk(uo,bp),uo),"updateSiteConfig"),b0e=S(()=>Vi({},uo),"getSiteConfig"),E0e=S(t=>(x0e(t),Vi(VE,t),xr()),"setConfig"),xr=S(()=>Vi({},VE),"getConfig"),S0e=S(t=>{t&&(["secure",...uo.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(ge.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&S0e(t[e])}))},"sanitize"),xBe=S(t=>{vC(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),bp.push(t),hk(uo,bp)},"addDirective"),bC=S((t=uo)=>{bp=[],hk(t,bp)},"reset"),CBe={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},kX={},T0e=S(t=>{kX[t]||(ge.warn(CBe[t]),kX[t]=!0)},"issueWarning"),x0e=S(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&T0e("LAZY_LOAD_DEPRECATED")},"checkConfig"),wBe=S(()=>{let t={};_C&&(t=Vi(t,_C));for(const e of bp)t=Vi(t,e);return t},"getUserDefinedConfig"),In=S(t=>(t.flowchart?.htmlLabels!=null&&T0e("FLOWCHART_HTML_LABELS_DEPRECATED"),q0(t.htmlLabels??t.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),$b=//gi,kBe=S(t=>t?k0e(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),ABe=(()=>{let t=!1;return()=>{t||(C0e(),t=!0)}})();function C0e(){const t="data-temp-href-target";nh.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),nh.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}S(C0e,"setupDompurifyHooks");var w0e=S(t=>(ABe(),nh.sanitize(t)),"removeScript"),AX=S((t,e)=>{if(In(e)){const r=e.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?t=w0e(t):r!=="loose"&&(t=k0e(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=OBe(t))}return t},"sanitizeMore"),un=S((t,e)=>t&&(e.dompurifyConfig?t=nh.sanitize(AX(t,e),e.dompurifyConfig).toString():t=nh.sanitize(AX(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),RBe=S((t,e)=>typeof t=="string"?un(t,e):t.flat().map(r=>un(r,e)),"sanitizeTextOrArray"),NBe=S(t=>$b.test(t),"hasBreaks"),IBe=S(t=>t.split($b),"splitBreaks"),OBe=S(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),k0e=S(t=>t.replace($b,"#br#"),"breakToPlaceholder"),fk=S(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),DBe=S(function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),LBe=S(function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),Td=S(function(t){const e=t.split(/(,)/),r=[];for(let n=0;n0&&n+1Math.max(0,t.split(e).length-1),"countOccurrence"),MBe=S((t,e)=>{const r=PM(t,"~"),n=PM(e,"~");return r===1&&n===1},"shouldCombineSets"),PBe=S(t=>{const e=PM(t,"~");let r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const n=[...t];let i=n.indexOf("~"),a=n.lastIndexOf("~");for(;i!==-1&&a!==-1&&i!==a;)n[i]="<",n[a]=">",i=n.indexOf("~"),a=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),RX=S(()=>window.MathMLElement!==void 0,"isMathMLSupported"),BM=/\$\$(.*)\$\$/g,Xi=S(t=>(t.match(BM)?.length??0)>0,"hasKatex"),eT=S(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await pk(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);const i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),BBe=S(async(t,e)=>{if(!Xi(t))return t;if(!(RX()||e.legacyMathML||e.forceLegacyMathML))return t.replace(BM,"MathML is unsupported in this environment.");{const{default:r}=await Promise.resolve().then(()=>wat),n=e.forceLegacyMathML||!RX()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split($b).map(i=>Xi(i)?`
${i}
`:`
${i}
`).join("").replace(BM,(i,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(//g,""))}},"renderKatexUnsanitized"),pk=S(async(t,e)=>un(await BBe(t,e),e),"renderKatexSanitized"),qt={getRows:kBe,sanitizeText:un,sanitizeTextOrArray:RBe,hasBreaks:NBe,splitBreaks:IBe,lineBreakRegex:$b,removeScript:w0e,getUrl:fk,evaluate:q0,getMax:DBe,getMin:LBe},FBe=S(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),$Be=S(function(t,e,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${e}px;`)):(n.set("height",t),n.set("width",e)),n},"calculateSvgSizeAttrs"),ua=S(function(t,e,r,n){const i=$Be(e,r,n);FBe(t,i)},"configureSvgSize"),zb=S(function(t,e,r,n){const i=e.node().getBBox(),a=i.width,s=i.height;ge.info(`SVG bounds: ${a}x${s}`,i);let o=0,l=0;ge.info(`Graph bounds: ${o}x${l}`,t),o=a+r*2,l=s+r*2,ge.info(`Calculated bounds: ${o}x${l}`),ua(e,l,o,n);const u=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;e.attr("viewBox",u)},"setupGraphViewbox"),Y3={};function FM(t){return[...t.cssRules].map(e=>e.cssText).join(` +`)}S(FM,"cssStyleSheetToString");var zBe=S((t,e,r,n)=>{let i="";return t in Y3&&Y3[t]?i=Y3[t]({...r,svgId:n}):ge.warn(`No theme found for ${t}`),` & { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; fill: ${r.textColor} @@ -2693,27 +2693,27 @@ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, } ${e} -`},"getStyles"),zBe=S((t,e)=>{e!==void 0&&(Y3[t]=e)},"addStylesForDiagram"),UBe=$Be,gU={};uk(gU,{clear:()=>oi,getAccDescription:()=>_i,getAccTitle:()=>yi,getDiagramTitle:()=>li,setAccDescription:()=>vi,setAccTitle:()=>ai,setDiagramTitle:()=>pi});var mU="",yU="",vU="",_U=S(t=>un(t,xr()),"sanitizeText"),oi=S(()=>{mU="",vU="",yU=""},"clear"),ai=S(t=>{mU=_U(t).replace(/^\s+/g,"")},"setAccTitle"),yi=S(()=>mU,"getAccTitle"),vi=S(t=>{vU=_U(t).replace(/\n\s+/g,` -`)},"setAccDescription"),_i=S(()=>vU,"getAccDescription"),pi=S(t=>{yU=_U(t)},"setDiagramTitle"),li=S(()=>yU,"getDiagramTitle"),NX=ge,GBe=dU,Ke=xr,$M=E0e,A0e=Y_,bU=S(t=>un(t,Ke()),"sanitizeText"),EU=zb,qBe=S(()=>gU,"getCommonDb"),EC={},SC=S((t,e,r)=>{EC[t]&&NX.warn(`Diagram with id ${t} already registered. Overwriting.`),EC[t]=e,r&&m0e(t,r),zBe(t,e.styles),e.injectUtils?.(NX,GBe,Ke,bU,EU,qBe(),()=>{})},"registerDiagram"),zM=S(t=>{if(t in EC)return EC[t];throw new YBe(t)},"getDiagram"),S1,YBe=(S1=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},S(S1,"DiagramNotFoundError"),S1);function H3(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function HBe(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function SU(t){let e,r,n;t.length!==2?(e=H3,r=(o,l)=>H3(t(o),l),n=(o,l)=>t(o)-l):(e=t===H3||t===HBe?t:VBe,r=t,n=t);function i(o,l,u=0,d=o.length){if(u>>1;r(o[h],l)<0?u=h+1:d=h}while(u>>1;r(o[h],l)<=0?u=h+1:d=h}while(uu&&n(o[h-1],l)>-n(o[h],l)?h-1:h}return{left:i,center:s,right:a}}function VBe(){return 0}function WBe(t){return t===null?NaN:+t}const KBe=SU(H3),XBe=KBe.right;SU(WBe).center;class IX extends Map{constructor(e,r=ZBe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,i]of e)this.set(n,i)}get(e){return super.get(OX(this,e))}has(e){return super.has(OX(this,e))}set(e,r){return super.set(jBe(this,e),r)}delete(e){return super.delete(QBe(this,e))}}function OX({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function jBe({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function QBe({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function ZBe(t){return t!==null&&typeof t=="object"?t.valueOf():t}const JBe=Math.sqrt(50),eFe=Math.sqrt(10),tFe=Math.sqrt(2);function TC(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=JBe?10:a>=eFe?5:a>=tFe?2:1;let o,l,u;return i<0?(u=Math.pow(10,-i)/s,o=Math.round(t*u),l=Math.round(e*u),o/ue&&--l,u=-u):(u=Math.pow(10,i)*s,o=Math.round(t/u),l=Math.round(e/u),o*ue&&--l),l0))return[];if(t===e)return[t];const n=e=i))return[];const o=a-i+1,l=new Array(o);if(n)if(s<0)for(let u=0;u=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r=i)&&(r=i)}return r}function iFe(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function aFe(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,a=new Array(i);++n+t(e)}function uFe(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function dFe(){return!this.__axis}function R0e(t,e){var r=[],n=null,i=null,a=6,s=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===V3||t===_x?-1:1,d=t===_x||t===Q8?"x":"y",h=t===V3||t===qM?oFe:lFe;function f(p){var g=n??(e.ticks?e.ticks.apply(e,r):e.domain()),m=i??(e.tickFormat?e.tickFormat.apply(e,r):sFe),y=Math.max(a,0)+o,v=e.range(),b=+v[0]+l,_=+v[v.length-1]+l,E=(e.bandwidth?uFe:cFe)(e.copy(),l),x=p.selection?p.selection():p,C=x.selectAll(".domain").data([null]),T=x.selectAll(".tick").data(g,e).order(),w=T.exit(),N=T.enter().append("g").attr("class","tick"),O=T.select("line"),M=T.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(N),O=O.merge(N.append("line").attr("stroke","currentColor").attr(d+"2",u*a)),M=M.merge(N.append("text").attr("fill","currentColor").attr(d,u*y).attr("dy",t===V3?"0em":t===qM?"0.71em":"0.32em")),p!==x&&(C=C.transition(p),T=T.transition(p),O=O.transition(p),M=M.transition(p),w=w.transition(p).attr("opacity",DX).attr("transform",function($){return isFinite($=E($))?h($+l):this.getAttribute("transform")}),N.attr("opacity",DX).attr("transform",function($){var F=this.parentNode.__axis;return h((F&&isFinite(F=F($))?F:E($))+l)})),w.remove(),C.attr("d",t===_x||t===Q8?s?"M"+u*s+","+b+"H"+l+"V"+_+"H"+u*s:"M"+l+","+b+"V"+_:s?"M"+b+","+u*s+"V"+l+"H"+_+"V"+u*s:"M"+b+","+l+"H"+_),T.attr("opacity",1).attr("transform",function($){return h(E($)+l)}),O.attr(d+"2",u*a),M.attr(d,u*y).text(m),x.filter(dFe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Q8?"start":t===_x?"end":"middle"),x.each(function(){this.__axis=E})}return f.scale=function(p){return arguments.length?(e=p,f):e},f.ticks=function(){return r=Array.from(arguments),f},f.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),f):r.slice()},f.tickValues=function(p){return arguments.length?(n=p==null?null:Array.from(p),f):n&&n.slice()},f.tickFormat=function(p){return arguments.length?(i=p,f):i},f.tickSize=function(p){return arguments.length?(a=s=+p,f):a},f.tickSizeInner=function(p){return arguments.length?(a=+p,f):a},f.tickSizeOuter=function(p){return arguments.length?(s=+p,f):s},f.tickPadding=function(p){return arguments.length?(o=+p,f):o},f.offset=function(p){return arguments.length?(l=+p,f):l},f}function hFe(t){return R0e(V3,t)}function fFe(t){return R0e(qM,t)}var pFe={value:()=>{}};function N0e(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}W3.prototype=N0e.prototype={constructor:W3,on:function(t,e){var r=this._,n=gFe(t+"",r),i,a=-1,s=n.length;if(arguments.length<2){for(;++a0)for(var r=new Array(i),n=0,i,a;n=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),MX.hasOwnProperty(e)?{space:MX[e],local:t}:t}function yFe(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===YM&&e.documentElement.namespaceURI===YM?e.createElement(t):e.createElementNS(r,t)}}function vFe(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function I0e(t){var e=gk(t);return(e.local?vFe:yFe)(e)}function _Fe(){}function TU(t){return t==null?_Fe:function(){return this.querySelector(t)}}function bFe(t){typeof t!="function"&&(t=TU(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i=_&&(_=b+1);!(x=y[_])&&++_=0;)(s=n[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function HFe(t){t||(t=VFe);function e(h,f){return h&&f?t(h.__data__,f.__data__):!h-!f}for(var r=this._groups,n=r.length,i=new Array(n),a=0;ae?1:t>=e?0:NaN}function WFe(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function KFe(){return Array.from(this)}function XFe(){for(var t=this._groups,e=0,r=t.length;e1?this.each((e==null?s$e:typeof e=="function"?l$e:o$e)(t,e,r??"")):H_(this.node(),t)}function H_(t,e){return t.style.getPropertyValue(e)||P0e(t).getComputedStyle(t,null).getPropertyValue(e)}function u$e(t){return function(){delete this[t]}}function d$e(t,e){return function(){this[t]=e}}function h$e(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function f$e(t,e){return arguments.length>1?this.each((e==null?u$e:typeof e=="function"?h$e:d$e)(t,e)):this.node()[t]}function B0e(t){return t.trim().split(/^|\s+/)}function xU(t){return t.classList||new F0e(t)}function F0e(t){this._node=t,this._names=B0e(t.getAttribute("class")||"")}F0e.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function $0e(t,e){for(var r=xU(t),n=-1,i=e.length;++n=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function U$e(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,i=e.length,a;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?bx(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?bx(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=j$e.exec(t))?new os(e[1],e[2],e[3],1):(e=Q$e.exec(t))?new os(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Z$e.exec(t))?bx(e[1],e[2],e[3],e[4]):(e=J$e.exec(t))?bx(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=eze.exec(t))?GX(e[1],e[2]/100,e[3]/100,1):(e=tze.exec(t))?GX(e[1],e[2]/100,e[3]/100,e[4]):PX.hasOwnProperty(t)?$X(PX[t]):t==="transparent"?new os(NaN,NaN,NaN,0):null}function $X(t){return new os(t>>16&255,t>>8&255,t&255,1)}function bx(t,e,r,n){return n<=0&&(t=e=r=NaN),new os(t,e,r,n)}function q0e(t){return t instanceof Hp||(t=Ep(t)),t?(t=t.rgb(),new os(t.r,t.g,t.b,t.opacity)):new os}function HM(t,e,r,n){return arguments.length===1?q0e(t):new os(t,e,r,n??1)}function os(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}rT(os,HM,mk(Hp,{brighter(t){return t=t==null?CC:Math.pow(CC,t),new os(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?OS:Math.pow(OS,t),new os(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new os(dp(this.r),dp(this.g),dp(this.b),wC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zX,formatHex:zX,formatHex8:ize,formatRgb:UX,toString:UX}));function zX(){return`#${Jf(this.r)}${Jf(this.g)}${Jf(this.b)}`}function ize(){return`#${Jf(this.r)}${Jf(this.g)}${Jf(this.b)}${Jf((isNaN(this.opacity)?1:this.opacity)*255)}`}function UX(){const t=wC(this.opacity);return`${t===1?"rgb(":"rgba("}${dp(this.r)}, ${dp(this.g)}, ${dp(this.b)}${t===1?")":`, ${t})`}`}function wC(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function dp(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Jf(t){return t=dp(t),(t<16?"0":"")+t.toString(16)}function GX(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Kl(t,e,r,n)}function Y0e(t){if(t instanceof Kl)return new Kl(t.h,t.s,t.l,t.opacity);if(t instanceof Hp||(t=Ep(t)),!t)return new Kl;if(t instanceof Kl)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),s=NaN,o=a-i,l=(a+i)/2;return o?(e===a?s=(r-n)/o+(r0&&l<1?0:s,new Kl(s,o,l,t.opacity)}function aze(t,e,r,n){return arguments.length===1?Y0e(t):new Kl(t,e,r,n??1)}function Kl(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}rT(Kl,aze,mk(Hp,{brighter(t){return t=t==null?CC:Math.pow(CC,t),new Kl(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?OS:Math.pow(OS,t),new Kl(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new os(Z8(t>=240?t-240:t+120,i,n),Z8(t,i,n),Z8(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new Kl(qX(this.h),Ex(this.s),Ex(this.l),wC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=wC(this.opacity);return`${t===1?"hsl(":"hsla("}${qX(this.h)}, ${Ex(this.s)*100}%, ${Ex(this.l)*100}%${t===1?")":`, ${t})`}`}}));function qX(t){return t=(t||0)%360,t<0?t+360:t}function Ex(t){return Math.max(0,Math.min(1,t||0))}function Z8(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const sze=Math.PI/180,oze=180/Math.PI,kC=18,H0e=.96422,V0e=1,W0e=.82521,K0e=4/29,Hm=6/29,X0e=3*Hm*Hm,lze=Hm*Hm*Hm;function j0e(t){if(t instanceof eu)return new eu(t.l,t.a,t.b,t.opacity);if(t instanceof i0)return Q0e(t);t instanceof os||(t=q0e(t));var e=rR(t.r),r=rR(t.g),n=rR(t.b),i=J8((.2225045*e+.7168786*r+.0606169*n)/V0e),a,s;return e===r&&r===n?a=s=i:(a=J8((.4360747*e+.3850649*r+.1430804*n)/H0e),s=J8((.0139322*e+.0971045*r+.7141733*n)/W0e)),new eu(116*i-16,500*(a-i),200*(i-s),t.opacity)}function cze(t,e,r,n){return arguments.length===1?j0e(t):new eu(t,e,r,n??1)}function eu(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}rT(eu,cze,mk(Hp,{brighter(t){return new eu(this.l+kC*(t??1),this.a,this.b,this.opacity)},darker(t){return new eu(this.l-kC*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=H0e*eR(e),t=V0e*eR(t),r=W0e*eR(r),new os(tR(3.1338561*e-1.6168667*t-.4906146*r),tR(-.9787684*e+1.9161415*t+.033454*r),tR(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function J8(t){return t>lze?Math.pow(t,1/3):t/X0e+K0e}function eR(t){return t>Hm?t*t*t:X0e*(t-K0e)}function tR(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rR(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function uze(t){if(t instanceof i0)return new i0(t.h,t.c,t.l,t.opacity);if(t instanceof eu||(t=j0e(t)),t.a===0&&t.b===0)return new i0(NaN,0()=>t;function Z0e(t,e){return function(r){return t+r*e}}function dze(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function hze(t,e){var r=e-t;return r?Z0e(t,r>180||r<-180?r-360*Math.round(r/360):r):yk(isNaN(t)?e:t)}function fze(t){return(t=+t)==1?WE:function(e,r){return r-e?dze(e,r,t):yk(isNaN(e)?r:e)}}function WE(t,e){var r=e-t;return r?Z0e(t,r):yk(isNaN(t)?e:t)}const AC=(function t(e){var r=fze(e);function n(i,a){var s=r((i=HM(i)).r,(a=HM(a)).r),o=r(i.g,a.g),l=r(i.b,a.b),u=WE(i.opacity,a.opacity);return function(d){return i.r=s(d),i.g=o(d),i.b=l(d),i.opacity=u(d),i+""}}return n.gamma=t,n})(1);function pze(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),i;return function(a){for(i=0;ir&&(a=e.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(n=n[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:Yl(n,i)})),r=nR.lastIndex;return r180?d+=360:d-u>180&&(u+=360),f.push({i:h.push(i(h)+"rotate(",null,n)-2,x:Yl(u,d)})):d&&h.push(i(h)+"rotate("+d+n)}function o(u,d,h,f){u!==d?f.push({i:h.push(i(h)+"skewX(",null,n)-2,x:Yl(u,d)}):d&&h.push(i(h)+"skewX("+d+n)}function l(u,d,h,f,p,g){if(u!==h||d!==f){var m=p.push(i(p)+"scale(",null,",",null,")");g.push({i:m-4,x:Yl(u,h)},{i:m-2,x:Yl(d,f)})}else(h!==1||f!==1)&&p.push(i(p)+"scale("+h+","+f+")")}return function(u,d){var h=[],f=[];return u=t(u),d=t(d),a(u.translateX,u.translateY,d.translateX,d.translateY,h,f),s(u.rotate,d.rotate,h,f),o(u.skewX,d.skewX,h,f),l(u.scaleX,u.scaleY,d.scaleX,d.scaleY,h,f),u=d=null,function(p){for(var g=-1,m=f.length,y;++g=0&&t._call.call(void 0,e),t=t._next;--V_}function HX(){Sp=(NC=LS.now())+vk,V_=oE=0;try{Rze()}finally{V_=0,Ize(),Sp=0}}function Nze(){var t=LS.now(),e=t-NC;e>rde&&(vk-=e,NC=t)}function Ize(){for(var t,e=RC,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:RC=r);lE=t,XM(n)}function XM(t){if(!V_){oE&&(oE=clearTimeout(oE));var e=t-Sp;e>24?(t<1/0&&(oE=setTimeout(HX,t-LS.now()-vk)),w2&&(w2=clearInterval(w2))):(w2||(NC=LS.now(),w2=setInterval(Nze,rde)),V_=1,nde(HX))}}function VX(t,e,r){var n=new IC;return e=e==null?0:+e,n.restart(i=>{n.stop(),t(i+e)},e,r),n}var Oze=N0e("start","end","cancel","interrupt"),Dze=[],ade=0,WX=1,jM=2,K3=3,KX=4,QM=5,X3=6;function _k(t,e,r,n,i,a){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;Lze(t,r,{name:e,index:n,group:i,on:Oze,tween:Dze,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:ade})}function kU(t,e){var r=yc(t,e);if(r.state>ade)throw new Error("too late; already scheduled");return r}function mu(t,e){var r=yc(t,e);if(r.state>K3)throw new Error("too late; already running");return r}function yc(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Lze(t,e,r){var n=t.__transition,i;n[e]=r,r.timer=ide(a,0,r.time);function a(u){r.state=WX,r.timer.restart(s,r.delay,r.time),r.delay<=u&&s(u-r.delay)}function s(u){var d,h,f,p;if(r.state!==WX)return l();for(d in n)if(p=n[d],p.name===r.name){if(p.state===K3)return VX(s);p.state===KX?(p.state=X3,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete n[d]):+djM&&n.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function dUe(t,e,r){var n,i,a=uUe(e)?kU:mu;return function(){var s=a(this,t),o=s.on;o!==n&&(i=(n=o).copy()).on(e,r),s.on=i}}function hUe(t,e){var r=this._id;return arguments.length<2?yc(this.node(),r).on.on(t):this.each(dUe(r,t,e))}function fUe(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function pUe(){return this.on("end.remove",fUe(this._id))}function gUe(t){var e=this._name,r=this._id;typeof t!="function"&&(t=TU(t));for(var n=this._groups,i=n.length,a=new Array(i),s=0;s=0))throw new Error(`invalid digits: ${t}`);if(e>15)return cde;const r=10**e;return function(n){this._+=n[0];for(let i=1,a=n.length;i_f)if(!(Math.abs(h*l-u*d)>_f)||!a)this._append`L${this._x1=e},${this._y1=r}`;else{let p=n-s,g=i-o,m=l*l+u*u,y=p*p+g*g,v=Math.sqrt(m),b=Math.sqrt(f),_=a*Math.tan((ZM-Math.acos((m+f-y)/(2*v*b)))/2),E=_/b,x=_/v;Math.abs(E-1)>_f&&this._append`L${e+E*d},${r+E*h}`,this._append`A${a},${a},0,0,${+(h*p>d*g)},${this._x1=e+x*l},${this._y1=r+x*u}`}}arc(e,r,n,i,a,s){if(e=+e,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(i),l=n*Math.sin(i),u=e+o,d=r+l,h=1^s,f=s?i-a:a-i;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>_f||Math.abs(this._y1-d)>_f)&&this._append`L${u},${d}`,n&&(f<0&&(f=f%JM+JM),f>zUe?this._append`A${n},${n},0,1,${h},${e-o},${r-l}A${n},${n},0,1,${h},${this._x1=u},${this._y1=d}`:f>_f&&this._append`A${n},${n},0,${+(f>=ZM)},${h},${this._x1=e+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(e,r,n,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}};function qUe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function OC(t,e){if(!isFinite(t)||t===0)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function W_(t){return t=OC(Math.abs(t)),t?t[1]:NaN}function YUe(t,e){return function(r,n){for(var i=r.length,a=[],s=0,o=t[0],l=0;i>0&&o>0&&(l+o+1>n&&(o=Math.max(1,n-l)),a.push(r.substring(i-=o,i+o)),!((l+=o+1)>n));)o=t[s=(s+1)%t.length];return a.reverse().join(e)}}function HUe(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var VUe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function DC(t){if(!(e=VUe.exec(t)))throw new Error("invalid format: "+t);var e;return new RU({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}DC.prototype=RU.prototype;function RU(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}RU.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function WUe(t){e:for(var e=t.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(i+1):t}var LC;function KUe(t,e){var r=OC(t,e);if(!r)return LC=void 0,t.toPrecision(e);var n=r[0],i=r[1],a=i-(LC=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+OC(t,Math.max(0,e+a-1))[0]}function XX(t,e){var r=OC(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const jX={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:qUe,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>XX(t*100,e),r:XX,s:KUe,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function QX(t){return t}var ZX=Array.prototype.map,JX=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function XUe(t){var e=t.grouping===void 0||t.thousands===void 0?QX:YUe(ZX.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?QX:HUe(ZX.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",o=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(h,f){h=DC(h);var p=h.fill,g=h.align,m=h.sign,y=h.symbol,v=h.zero,b=h.width,_=h.comma,E=h.precision,x=h.trim,C=h.type;C==="n"?(_=!0,C="g"):jX[C]||(E===void 0&&(E=12),x=!0,C="g"),(v||p==="0"&&g==="=")&&(v=!0,p="0",g="=");var T=(f&&f.prefix!==void 0?f.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),w=(y==="$"?n:/[%p]/.test(C)?s:"")+(f&&f.suffix!==void 0?f.suffix:""),N=jX[C],O=/[defgprs%]/.test(C);E=E===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function M($){var F=T,A=w,I,D,L;if(C==="c")A=N($)+A,$="";else{$=+$;var R=$<0||1/$<0;if($=isNaN($)?l:N(Math.abs($),E),x&&($=WUe($)),R&&+$==0&&m!=="+"&&(R=!1),F=(R?m==="("?m:o:m==="-"||m==="("?"":m)+F,A=(C==="s"&&!isNaN($)&&LC!==void 0?JX[8+LC/3]:"")+A+(R&&m==="("?")":""),O){for(I=-1,D=$.length;++IL||L>57){A=(L===46?i+$.slice(I+1):$.slice(I))+A,$=$.slice(0,I);break}}}_&&!v&&($=e($,1/0));var P=F.length+$.length+A.length,z=P>1)+F+$+A+z.slice(P);break;default:$=z+F+$+A;break}return a($)}return M.toString=function(){return h+""},M}function d(h,f){var p=Math.max(-8,Math.min(8,Math.floor(W_(f)/3)))*3,g=Math.pow(10,-p),m=u((h=DC(h),h.type="f",h),{suffix:JX[8+p/3]});return function(y){return m(g*y)}}return{format:u,formatPrefix:d}}var Tx,Lf,ude;jUe({thousands:",",grouping:[3],currency:["$",""]});function jUe(t){return Tx=XUe(t),Lf=Tx.format,ude=Tx.formatPrefix,Tx}function QUe(t){return Math.max(0,-W_(Math.abs(t)))}function ZUe(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(W_(e)/3)))*3-W_(Math.abs(t)))}function JUe(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,W_(e)-W_(t))+1}function eGe(t){var e=0,r=t.children,n=r&&r.length;if(!n)e=1;else for(;--n>=0;)e+=r[n].value;t.value=e}function tGe(){return this.eachAfter(eGe)}function rGe(t,e){let r=-1;for(const n of this)t.call(e,n,++r,this);return this}function nGe(t,e){for(var r=this,n=[r],i,a,s=-1;r=n.pop();)if(t.call(e,r,++s,this),i=r.children)for(a=i.length-1;a>=0;--a)n.push(i[a]);return this}function iGe(t,e){for(var r=this,n=[r],i=[],a,s,o,l=-1;r=n.pop();)if(i.push(r),a=r.children)for(s=0,o=a.length;s=0;)r+=n[i].value;e.value=r})}function oGe(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function lGe(t){for(var e=this,r=cGe(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n}function cGe(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;for(t=r.pop(),e=n.pop();t===e;)i=t,t=r.pop(),e=n.pop();return i}function uGe(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function dGe(){return Array.from(this)}function hGe(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function fGe(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e}function*pGe(){var t=this,e,r=[t],n,i,a;do for(e=r.reverse(),r=[];t=e.pop();)if(yield t,n=t.children)for(i=0,a=n.length;i=0;--o)i.push(a=s[o]=new MC(s[o])),a.parent=n,a.depth=n.depth+1;return r.eachBefore(_Ge)}function gGe(){return NU(this).eachBefore(vGe)}function mGe(t){return t.children}function yGe(t){return Array.isArray(t)?t[1]:null}function vGe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function _Ge(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function MC(t){this.data=t,this.depth=this.height=0,this.parent=null}MC.prototype=NU.prototype={constructor:MC,count:tGe,each:rGe,eachAfter:iGe,eachBefore:nGe,find:aGe,sum:sGe,sort:oGe,path:lGe,ancestors:uGe,descendants:dGe,leaves:hGe,links:fGe,copy:gGe,[Symbol.iterator]:pGe};function bGe(t){if(typeof t!="function")throw new Error;return t}function k2(){return 0}function A2(t){return function(){return t}}function EGe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function SGe(t,e,r,n,i){for(var a=t.children,s,o=-1,l=a.length,u=t.value&&(n-e)/t.value;++ob&&(b=u),C=y*y*x,_=Math.max(b/C,C/v),_>E){y-=u;break}E=_}s.push(l={value:y,dice:p1?n:1)},r})(xGe);function kGe(){var t=wGe,e=!1,r=1,n=1,i=[0],a=k2,s=k2,o=k2,l=k2,u=k2;function d(f){return f.x0=f.y0=0,f.x1=r,f.y1=n,f.eachBefore(h),i=[0],e&&f.eachBefore(EGe),f}function h(f){var p=i[f.depth],g=f.x0+p,m=f.y0+p,y=f.x1-p,v=f.y1-p;ye&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function IGe(t,e,r){var n=t[0],i=t[1],a=e[0],s=e[1];return i2?OGe:IGe,l=u=null,h}function h(f){return f==null||isNaN(f=+f)?a:(l||(l=o(t.map(n),e,r)))(n(s(f)))}return h.invert=function(f){return s(i((u||(u=o(e,t.map(n),Yl)))(f)))},h.domain=function(f){return arguments.length?(t=Array.from(f,RGe),d()):t.slice()},h.range=function(f){return arguments.length?(e=Array.from(f),d()):e.slice()},h.rangeRound=function(f){return e=Array.from(f),r=Eze,d()},h.clamp=function(f){return arguments.length?(s=f?!0:Sm,d()):s!==Sm},h.interpolate=function(f){return arguments.length?(r=f,d()):r},h.unknown=function(f){return arguments.length?(a=f,h):a},function(f,p){return n=f,i=p,d()}}function hde(){return DGe()(Sm,Sm)}function LGe(t,e,r,n){var i=GM(t,e,r),a;switch(n=DC(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(a=ZUe(i,s))&&(n.precision=a),ude(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=JUe(i,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=QUe(i))&&(n.precision=a-(n.type==="%")*2);break}}return Lf(n)}function MGe(t){var e=t.domain;return t.ticks=function(r){var n=e();return rFe(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var i=e();return LGe(i[0],i[i.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),i=0,a=n.length-1,s=n[i],o=n[a],l,u,d=10;for(o0;){if(u=UM(s,o,r),u===l)return n[i]=s,n[a]=o,e(n);if(u>0)s=Math.floor(s/u)*u,o=Math.ceil(o/u)*u;else if(u<0)s=Math.ceil(s*u)/u,o=Math.floor(o*u)/u;else break;l=u}return t},t}function K_(){var t=hde();return t.copy=function(){return dde(t,K_())},bk.apply(t,arguments),MGe(t)}function PGe(t,e){t=t.slice();var r=0,n=t.length-1,i=t[r],a=t[n],s;return a(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const s=i(a),o=i.ceil(a);return a-s(e(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,o)=>{const l=[];if(a=i.ceil(a),o=o==null?1:Math.floor(o),!(a0))return l;let u;do l.push(u=new Date(+a)),e(a,o),t(a);while(uRa(s=>{if(s>=s)for(;t(s),!a(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;e(s,-1),!a(s););else for(;--o>=0;)for(;e(s,1),!a(s););}),r&&(i.count=(a,s)=>(iR.setTime(+a),aR.setTime(+s),t(iR),t(aR),Math.floor(r(iR,aR))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const X_=Ra(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);X_.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Ra(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):X_);X_.range;const a0=1e3,yl=a0*60,s0=yl*60,S0=s0*24,IU=S0*7,rj=S0*30,sR=S0*365,Pd=Ra(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*a0)},(t,e)=>(e-t)/a0,t=>t.getUTCSeconds());Pd.range;const MS=Ra(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*a0)},(t,e)=>{t.setTime(+t+e*yl)},(t,e)=>(e-t)/yl,t=>t.getMinutes());MS.range;const BGe=Ra(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*yl)},(t,e)=>(e-t)/yl,t=>t.getUTCMinutes());BGe.range;const PS=Ra(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*a0-t.getMinutes()*yl)},(t,e)=>{t.setTime(+t+e*s0)},(t,e)=>(e-t)/s0,t=>t.getHours());PS.range;const FGe=Ra(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*s0)},(t,e)=>(e-t)/s0,t=>t.getUTCHours());FGe.range;const Tp=Ra(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*yl)/S0,t=>t.getDate()-1);Tp.range;const OU=Ra(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/S0,t=>t.getUTCDate()-1);OU.range;const $Ge=Ra(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/S0,t=>Math.floor(t/S0));$Ge.range;function Vp(t){return Ra(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*yl)/IU)}const nT=Vp(0),BS=Vp(1),fde=Vp(2),pde=Vp(3),xp=Vp(4),gde=Vp(5),mde=Vp(6);nT.range;BS.range;fde.range;pde.range;xp.range;gde.range;mde.range;function Wp(t){return Ra(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/IU)}const yde=Wp(0),PC=Wp(1),zGe=Wp(2),UGe=Wp(3),j_=Wp(4),GGe=Wp(5),qGe=Wp(6);yde.range;PC.range;zGe.range;UGe.range;j_.range;GGe.range;qGe.range;const FS=Ra(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());FS.range;const YGe=Ra(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());YGe.range;const T0=Ra(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());T0.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ra(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});T0.range;const Cp=Ra(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Cp.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ra(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});Cp.range;function HGe(t,e,r,n,i,a){const s=[[Pd,1,a0],[Pd,5,5*a0],[Pd,15,15*a0],[Pd,30,30*a0],[a,1,yl],[a,5,5*yl],[a,15,15*yl],[a,30,30*yl],[i,1,s0],[i,3,3*s0],[i,6,6*s0],[i,12,12*s0],[n,1,S0],[n,2,2*S0],[r,1,IU],[e,1,rj],[e,3,3*rj],[t,1,sR]];function o(u,d,h){const f=dy).right(s,f);if(p===s.length)return t.every(GM(u/sR,d/sR,h));if(p===0)return X_.every(Math.max(GM(u,d,h),1));const[g,m]=s[f/s[p-1][2]53)return null;"w"in se||(se.w=1),"Z"in se?(Te=lR(R2(se.y,0,1)),Ge=Te.getUTCDay(),Te=Ge>4||Ge===0?PC.ceil(Te):PC(Te),Te=OU.offset(Te,(se.V-1)*7),se.y=Te.getUTCFullYear(),se.m=Te.getUTCMonth(),se.d=Te.getUTCDate()+(se.w+6)%7):(Te=oR(R2(se.y,0,1)),Ge=Te.getDay(),Te=Ge>4||Ge===0?BS.ceil(Te):BS(Te),Te=Tp.offset(Te,(se.V-1)*7),se.y=Te.getFullYear(),se.m=Te.getMonth(),se.d=Te.getDate()+(se.w+6)%7)}else("W"in se||"U"in se)&&("w"in se||(se.w="u"in se?se.u%7:"W"in se?1:0),Ge="Z"in se?lR(R2(se.y,0,1)).getUTCDay():oR(R2(se.y,0,1)).getDay(),se.m=0,se.d="W"in se?(se.w+6)%7+se.W*7-(Ge+5)%7:se.w+se.U*7-(Ge+6)%7);return"Z"in se?(se.H+=se.Z/100|0,se.M+=se.Z%100,lR(se)):oR(se)}}function w(re,ce,ae,se){for(var xe=0,Te=ce.length,Ge=ae.length,ze,Xe;xe=Ge)return-1;if(ze=ce.charCodeAt(xe++),ze===37){if(ze=ce.charAt(xe++),Xe=x[ze in nj?ce.charAt(xe++):ze],!Xe||(se=Xe(re,ae,se))<0)return-1}else if(ze!=ae.charCodeAt(se++))return-1}return se}function N(re,ce,ae){var se=u.exec(ce.slice(ae));return se?(re.p=d.get(se[0].toLowerCase()),ae+se[0].length):-1}function O(re,ce,ae){var se=p.exec(ce.slice(ae));return se?(re.w=g.get(se[0].toLowerCase()),ae+se[0].length):-1}function M(re,ce,ae){var se=h.exec(ce.slice(ae));return se?(re.w=f.get(se[0].toLowerCase()),ae+se[0].length):-1}function $(re,ce,ae){var se=v.exec(ce.slice(ae));return se?(re.m=b.get(se[0].toLowerCase()),ae+se[0].length):-1}function F(re,ce,ae){var se=m.exec(ce.slice(ae));return se?(re.m=y.get(se[0].toLowerCase()),ae+se[0].length):-1}function A(re,ce,ae){return w(re,e,ce,ae)}function I(re,ce,ae){return w(re,r,ce,ae)}function D(re,ce,ae){return w(re,n,ce,ae)}function L(re){return s[re.getDay()]}function R(re){return a[re.getDay()]}function P(re){return l[re.getMonth()]}function z(re){return o[re.getMonth()]}function B(re){return i[+(re.getHours()>=12)]}function q(re){return 1+~~(re.getMonth()/3)}function Y(re){return s[re.getUTCDay()]}function Q(re){return a[re.getUTCDay()]}function H(re){return l[re.getUTCMonth()]}function J(re){return o[re.getUTCMonth()]}function Z(re){return i[+(re.getUTCHours()>=12)]}function pe(re){return 1+~~(re.getUTCMonth()/3)}return{format:function(re){var ce=C(re+="",_);return ce.toString=function(){return re},ce},parse:function(re){var ce=T(re+="",!1);return ce.toString=function(){return re},ce},utcFormat:function(re){var ce=C(re+="",E);return ce.toString=function(){return re},ce},utcParse:function(re){var ce=T(re+="",!0);return ce.toString=function(){return re},ce}}}var nj={"-":"",_:" ",0:"0"},za=/^\s*\d+/,XGe=/^%/,jGe=/[\\^$*+?|[\]().{}]/g;function Sn(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a[e.toLowerCase(),r]))}function ZGe(t,e,r){var n=za.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function JGe(t,e,r){var n=za.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function eqe(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function tqe(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function rqe(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function ij(t,e,r){var n=za.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function aj(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nqe(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function iqe(t,e,r){var n=za.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function aqe(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function sj(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function sqe(t,e,r){var n=za.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function oj(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function oqe(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function lqe(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function cqe(t,e,r){var n=za.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function uqe(t,e,r){var n=za.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function dqe(t,e,r){var n=XGe.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function hqe(t,e,r){var n=za.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function fqe(t,e,r){var n=za.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function lj(t,e){return Sn(t.getDate(),e,2)}function pqe(t,e){return Sn(t.getHours(),e,2)}function gqe(t,e){return Sn(t.getHours()%12||12,e,2)}function mqe(t,e){return Sn(1+Tp.count(T0(t),t),e,3)}function vde(t,e){return Sn(t.getMilliseconds(),e,3)}function yqe(t,e){return vde(t,e)+"000"}function vqe(t,e){return Sn(t.getMonth()+1,e,2)}function _qe(t,e){return Sn(t.getMinutes(),e,2)}function bqe(t,e){return Sn(t.getSeconds(),e,2)}function Eqe(t){var e=t.getDay();return e===0?7:e}function Sqe(t,e){return Sn(nT.count(T0(t)-1,t),e,2)}function _de(t){var e=t.getDay();return e>=4||e===0?xp(t):xp.ceil(t)}function Tqe(t,e){return t=_de(t),Sn(xp.count(T0(t),t)+(T0(t).getDay()===4),e,2)}function xqe(t){return t.getDay()}function Cqe(t,e){return Sn(BS.count(T0(t)-1,t),e,2)}function wqe(t,e){return Sn(t.getFullYear()%100,e,2)}function kqe(t,e){return t=_de(t),Sn(t.getFullYear()%100,e,2)}function Aqe(t,e){return Sn(t.getFullYear()%1e4,e,4)}function Rqe(t,e){var r=t.getDay();return t=r>=4||r===0?xp(t):xp.ceil(t),Sn(t.getFullYear()%1e4,e,4)}function Nqe(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Sn(e/60|0,"0",2)+Sn(e%60,"0",2)}function cj(t,e){return Sn(t.getUTCDate(),e,2)}function Iqe(t,e){return Sn(t.getUTCHours(),e,2)}function Oqe(t,e){return Sn(t.getUTCHours()%12||12,e,2)}function Dqe(t,e){return Sn(1+OU.count(Cp(t),t),e,3)}function bde(t,e){return Sn(t.getUTCMilliseconds(),e,3)}function Lqe(t,e){return bde(t,e)+"000"}function Mqe(t,e){return Sn(t.getUTCMonth()+1,e,2)}function Pqe(t,e){return Sn(t.getUTCMinutes(),e,2)}function Bqe(t,e){return Sn(t.getUTCSeconds(),e,2)}function Fqe(t){var e=t.getUTCDay();return e===0?7:e}function $qe(t,e){return Sn(yde.count(Cp(t)-1,t),e,2)}function Ede(t){var e=t.getUTCDay();return e>=4||e===0?j_(t):j_.ceil(t)}function zqe(t,e){return t=Ede(t),Sn(j_.count(Cp(t),t)+(Cp(t).getUTCDay()===4),e,2)}function Uqe(t){return t.getUTCDay()}function Gqe(t,e){return Sn(PC.count(Cp(t)-1,t),e,2)}function qqe(t,e){return Sn(t.getUTCFullYear()%100,e,2)}function Yqe(t,e){return t=Ede(t),Sn(t.getUTCFullYear()%100,e,2)}function Hqe(t,e){return Sn(t.getUTCFullYear()%1e4,e,4)}function Vqe(t,e){var r=t.getUTCDay();return t=r>=4||r===0?j_(t):j_.ceil(t),Sn(t.getUTCFullYear()%1e4,e,4)}function Wqe(){return"+0000"}function uj(){return"%"}function dj(t){return+t}function hj(t){return Math.floor(+t/1e3)}var Dg,BC;Kqe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Kqe(t){return Dg=KGe(t),BC=Dg.format,Dg.parse,Dg.utcFormat,Dg.utcParse,Dg}function Xqe(t){return new Date(t)}function jqe(t){return t instanceof Date?+t:+new Date(+t)}function Sde(t,e,r,n,i,a,s,o,l,u){var d=hde(),h=d.invert,f=d.domain,p=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),b=u("%b %d"),_=u("%B"),E=u("%Y");function x(C){return(l(C)1?0:t<-1?$S:Math.acos(t)}function pj(t){return t>=1?FC:t<=-1?-FC:Math.asin(t)}function Tde(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new GUe(e)}function rYe(t){return t.innerRadius}function nYe(t){return t.outerRadius}function iYe(t){return t.startAngle}function aYe(t){return t.endAngle}function sYe(t){return t&&t.padAngle}function oYe(t,e,r,n,i,a,s,o){var l=r-t,u=n-e,d=s-i,h=o-a,f=h*l-d*u;if(!(f*fA*A+I*I&&(w=O,N=M),{cx:w,cy:N,x01:-d,y01:-h,x11:w*(i/x-1),y11:N*(i/x-1)}}function Q_(){var t=rYe,e=nYe,r=Yi(0),n=null,i=iYe,a=aYe,s=sYe,o=null,l=Tde(u);function u(){var d,h,f=+t.apply(this,arguments),p=+e.apply(this,arguments),g=i.apply(this,arguments)-FC,m=a.apply(this,arguments)-FC,y=fj(m-g),v=m>g;if(o||(o=d=l()),pis))o.moveTo(0,0);else if(y>j3-is)o.moveTo(p*ef(g),p*Sc(g)),o.arc(0,0,p,g,m,!v),f>is&&(o.moveTo(f*ef(m),f*Sc(m)),o.arc(0,0,f,m,g,v));else{var b=g,_=m,E=g,x=m,C=y,T=y,w=s.apply(this,arguments)/2,N=w>is&&(n?+n.apply(this,arguments):Tm(f*f+p*p)),O=cR(fj(p-f)/2,+r.apply(this,arguments)),M=O,$=O,F,A;if(N>is){var I=pj(N/f*Sc(w)),D=pj(N/p*Sc(w));(C-=I*2)>is?(I*=v?1:-1,E+=I,x-=I):(C=0,E=x=(g+m)/2),(T-=D*2)>is?(D*=v?1:-1,b+=D,_-=D):(T=0,b=_=(g+m)/2)}var L=p*ef(b),R=p*Sc(b),P=f*ef(x),z=f*Sc(x);if(O>is){var B=p*ef(_),q=p*Sc(_),Y=f*ef(E),Q=f*Sc(E),H;if(y<$S)if(H=oYe(L,R,Y,Q,B,q,P,z)){var J=L-H[0],Z=R-H[1],pe=B-H[0],re=q-H[1],ce=1/Sc(tYe((J*pe+Z*re)/(Tm(J*J+Z*Z)*Tm(pe*pe+re*re)))/2),ae=Tm(H[0]*H[0]+H[1]*H[1]);M=cR(O,(f-ae)/(ce-1)),$=cR(O,(p-ae)/(ce+1))}else M=$=0}T>is?$>is?(F=xx(Y,Q,L,R,p,$,v),A=xx(B,q,P,z,p,$,v),o.moveTo(F.cx+F.x01,F.cy+F.y01),$is)||!(C>is)?o.lineTo(P,z):M>is?(F=xx(P,z,B,q,f,-M,v),A=xx(L,R,Y,Q,f,-M,v),o.lineTo(F.cx+F.x01,F.cy+F.y01),Mt?1:e>=t?0:NaN}function dYe(t){return t}function hYe(){var t=dYe,e=uYe,r=null,n=Yi(0),i=Yi(j3),a=Yi(0);function s(o){var l,u=(o=xde(o)).length,d,h,f=0,p=new Array(u),g=new Array(u),m=+n.apply(this,arguments),y=Math.min(j3,Math.max(-j3,i.apply(this,arguments)-m)),v,b=Math.min(Math.abs(y)/u,a.apply(this,arguments)),_=b*(y<0?-1:1),E;for(l=0;l0&&(f+=E);for(e!=null?p.sort(function(x,C){return e(g[x],g[C])}):r!=null&&p.sort(function(x,C){return r(o[x],o[C])}),l=0,h=f?(y-u*_)/f:0;l0?E*h:0)+_,g[d]={data:o[d],index:l,value:E,startAngle:m,endAngle:v,padAngle:b};return g}return s.value=function(o){return arguments.length?(t=typeof o=="function"?o:Yi(+o),s):t},s.sortValues=function(o){return arguments.length?(e=o,r=null,s):e},s.sort=function(o){return arguments.length?(r=o,e=null,s):r},s.startAngle=function(o){return arguments.length?(n=typeof o=="function"?o:Yi(+o),s):n},s.endAngle=function(o){return arguments.length?(i=typeof o=="function"?o:Yi(+o),s):i},s.padAngle=function(o){return arguments.length?(a=typeof o=="function"?o:Yi(+o),s):a},s}class wde{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function kde(t){return new wde(t,!0)}function Ade(t){return new wde(t,!1)}function ih(){}function $C(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Ek(t){this._context=t}Ek.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:$C(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:$C(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function US(t){return new Ek(t)}function Rde(t){this._context=t}Rde.prototype={areaStart:ih,areaEnd:ih,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:$C(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function fYe(t){return new Rde(t)}function Nde(t){this._context=t}Nde.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:$C(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function pYe(t){return new Nde(t)}function Ide(t,e){this._basis=new Ek(t),this._beta=e}Ide.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n=t[0],i=e[0],a=t[r]-n,s=e[r]-i,o=-1,l;++o<=r;)l=o/r,this._basis.point(this._beta*t[o]+(1-this._beta)*(n+l*a),this._beta*e[o]+(1-this._beta)*(i+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const gYe=(function t(e){function r(n){return e===1?new Ek(n):new Ide(n,e)}return r.beta=function(n){return t(+n)},r})(.85);function zC(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function DU(t,e){this._context=t,this._k=(1-e)/6}DU.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:zC(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:zC(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ode=(function t(e){function r(n){return new DU(n,e)}return r.tension=function(n){return t(+n)},r})(0);function LU(t,e){this._context=t,this._k=(1-e)/6}LU.prototype={areaStart:ih,areaEnd:ih,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:zC(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const mYe=(function t(e){function r(n){return new LU(n,e)}return r.tension=function(n){return t(+n)},r})(0);function MU(t,e){this._context=t,this._k=(1-e)/6}MU.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:zC(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const yYe=(function t(e){function r(n){return new MU(n,e)}return r.tension=function(n){return t(+n)},r})(0);function PU(t,e,r){var n=t._x1,i=t._y1,a=t._x2,s=t._y2;if(t._l01_a>is){var o=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*o-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*o-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>is){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,d=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/d,s=(s*u+t._y1*t._l23_2a-r*t._l12_2a)/d}t._context.bezierCurveTo(n,i,a,s,t._x2,t._y2)}function Dde(t,e){this._context=t,this._alpha=e}Dde.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:PU(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Lde=(function t(e){function r(n){return e?new Dde(n,e):new DU(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function Mde(t,e){this._context=t,this._alpha=e}Mde.prototype={areaStart:ih,areaEnd:ih,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:PU(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const vYe=(function t(e){function r(n){return e?new Mde(n,e):new LU(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function Pde(t,e){this._context=t,this._alpha=e}Pde.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:PU(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const _Ye=(function t(e){function r(n){return e?new Pde(n,e):new MU(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function Bde(t){this._context=t}Bde.prototype={areaStart:ih,areaEnd:ih,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function bYe(t){return new Bde(t)}function gj(t){return t<0?-1:1}function mj(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),s=(r-t._y1)/(i||n<0&&-0),o=(a*i+s*n)/(n+i);return(gj(a)+gj(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function yj(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function uR(t,e,r){var n=t._x0,i=t._y0,a=t._x1,s=t._y1,o=(a-n)/3;t._context.bezierCurveTo(n+o,i+o*e,a-o,s-o*r,a,s)}function UC(t){this._context=t}UC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:uR(this,this._t0,yj(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,uR(this,yj(this,r=mj(this,t,e)),r);break;default:uR(this,this._t0,r=mj(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function Fde(t){this._context=new $de(t)}(Fde.prototype=Object.create(UC.prototype)).point=function(t,e){UC.prototype.point.call(this,e,t)};function $de(t){this._context=t}$de.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}};function zde(t){return new UC(t)}function Ude(t){return new Fde(t)}function Gde(t){this._context=t}Gde.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=vj(t),i=vj(e),a=0,s=1;s=0;--e)i[e]=(s[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function Yde(t){return new Sk(t,.5)}function Hde(t){return new Sk(t,0)}function Vde(t){return new Sk(t,1)}function cE(t,e,r){this.k=t,this.x=e,this.y=r}cE.prototype={constructor:cE,scale:function(t){return t===1?this:new cE(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new cE(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};cE.prototype;var To=S(t=>{const{securityLevel:e}=Ke();let r=At("body");if(e==="sandbox"){const a=At(`#i${t}`).node()?.contentDocument??document;r=At(a.body)}return r.select(`#${t}`)},"selectSvgElement");function BU(t){return typeof t>"u"||t===null}S(BU,"isNothing");function Wde(t){return typeof t=="object"&&t!==null}S(Wde,"isObject");function Kde(t){return Array.isArray(t)?t:BU(t)?[]:[t]}S(Kde,"toArray");function Xde(t,e){var r,n,i,a;if(e)for(a=Object.keys(e),r=0,n=a.length;r{e!==void 0&&(Y3[t]=e)},"addStylesForDiagram"),GBe=zBe,gU={};uk(gU,{clear:()=>oi,getAccDescription:()=>_i,getAccTitle:()=>yi,getDiagramTitle:()=>li,setAccDescription:()=>vi,setAccTitle:()=>ai,setDiagramTitle:()=>pi});var mU="",yU="",vU="",_U=S(t=>un(t,xr()),"sanitizeText"),oi=S(()=>{mU="",vU="",yU=""},"clear"),ai=S(t=>{mU=_U(t).replace(/^\s+/g,"")},"setAccTitle"),yi=S(()=>mU,"getAccTitle"),vi=S(t=>{vU=_U(t).replace(/\n\s+/g,` +`)},"setAccDescription"),_i=S(()=>vU,"getAccDescription"),pi=S(t=>{yU=_U(t)},"setDiagramTitle"),li=S(()=>yU,"getDiagramTitle"),NX=ge,qBe=dU,Ke=xr,$M=E0e,A0e=Y_,bU=S(t=>un(t,Ke()),"sanitizeText"),EU=zb,YBe=S(()=>gU,"getCommonDb"),EC={},SC=S((t,e,r)=>{EC[t]&&NX.warn(`Diagram with id ${t} already registered. Overwriting.`),EC[t]=e,r&&m0e(t,r),UBe(t,e.styles),e.injectUtils?.(NX,qBe,Ke,bU,EU,YBe(),()=>{})},"registerDiagram"),zM=S(t=>{if(t in EC)return EC[t];throw new HBe(t)},"getDiagram"),S1,HBe=(S1=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},S(S1,"DiagramNotFoundError"),S1);function H3(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function VBe(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function SU(t){let e,r,n;t.length!==2?(e=H3,r=(o,l)=>H3(t(o),l),n=(o,l)=>t(o)-l):(e=t===H3||t===VBe?t:WBe,r=t,n=t);function i(o,l,u=0,d=o.length){if(u>>1;r(o[h],l)<0?u=h+1:d=h}while(u>>1;r(o[h],l)<=0?u=h+1:d=h}while(uu&&n(o[h-1],l)>-n(o[h],l)?h-1:h}return{left:i,center:s,right:a}}function WBe(){return 0}function KBe(t){return t===null?NaN:+t}const XBe=SU(H3),jBe=XBe.right;SU(KBe).center;class IX extends Map{constructor(e,r=JBe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,i]of e)this.set(n,i)}get(e){return super.get(OX(this,e))}has(e){return super.has(OX(this,e))}set(e,r){return super.set(QBe(this,e),r)}delete(e){return super.delete(ZBe(this,e))}}function OX({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function QBe({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function ZBe({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function JBe(t){return t!==null&&typeof t=="object"?t.valueOf():t}const eFe=Math.sqrt(50),tFe=Math.sqrt(10),rFe=Math.sqrt(2);function TC(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=eFe?10:a>=tFe?5:a>=rFe?2:1;let o,l,u;return i<0?(u=Math.pow(10,-i)/s,o=Math.round(t*u),l=Math.round(e*u),o/ue&&--l,u=-u):(u=Math.pow(10,i)*s,o=Math.round(t/u),l=Math.round(e/u),o*ue&&--l),l0))return[];if(t===e)return[t];const n=e=i))return[];const o=a-i+1,l=new Array(o);if(n)if(s<0)for(let u=0;u=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r=i)&&(r=i)}return r}function aFe(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function sFe(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,a=new Array(i);++n+t(e)}function dFe(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function hFe(){return!this.__axis}function R0e(t,e){var r=[],n=null,i=null,a=6,s=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===V3||t===_x?-1:1,d=t===_x||t===Q8?"x":"y",h=t===V3||t===qM?lFe:cFe;function f(p){var g=n??(e.ticks?e.ticks.apply(e,r):e.domain()),m=i??(e.tickFormat?e.tickFormat.apply(e,r):oFe),y=Math.max(a,0)+o,v=e.range(),b=+v[0]+l,_=+v[v.length-1]+l,E=(e.bandwidth?dFe:uFe)(e.copy(),l),x=p.selection?p.selection():p,C=x.selectAll(".domain").data([null]),T=x.selectAll(".tick").data(g,e).order(),w=T.exit(),N=T.enter().append("g").attr("class","tick"),O=T.select("line"),M=T.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(N),O=O.merge(N.append("line").attr("stroke","currentColor").attr(d+"2",u*a)),M=M.merge(N.append("text").attr("fill","currentColor").attr(d,u*y).attr("dy",t===V3?"0em":t===qM?"0.71em":"0.32em")),p!==x&&(C=C.transition(p),T=T.transition(p),O=O.transition(p),M=M.transition(p),w=w.transition(p).attr("opacity",DX).attr("transform",function($){return isFinite($=E($))?h($+l):this.getAttribute("transform")}),N.attr("opacity",DX).attr("transform",function($){var F=this.parentNode.__axis;return h((F&&isFinite(F=F($))?F:E($))+l)})),w.remove(),C.attr("d",t===_x||t===Q8?s?"M"+u*s+","+b+"H"+l+"V"+_+"H"+u*s:"M"+l+","+b+"V"+_:s?"M"+b+","+u*s+"V"+l+"H"+_+"V"+u*s:"M"+b+","+l+"H"+_),T.attr("opacity",1).attr("transform",function($){return h(E($)+l)}),O.attr(d+"2",u*a),M.attr(d,u*y).text(m),x.filter(hFe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Q8?"start":t===_x?"end":"middle"),x.each(function(){this.__axis=E})}return f.scale=function(p){return arguments.length?(e=p,f):e},f.ticks=function(){return r=Array.from(arguments),f},f.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),f):r.slice()},f.tickValues=function(p){return arguments.length?(n=p==null?null:Array.from(p),f):n&&n.slice()},f.tickFormat=function(p){return arguments.length?(i=p,f):i},f.tickSize=function(p){return arguments.length?(a=s=+p,f):a},f.tickSizeInner=function(p){return arguments.length?(a=+p,f):a},f.tickSizeOuter=function(p){return arguments.length?(s=+p,f):s},f.tickPadding=function(p){return arguments.length?(o=+p,f):o},f.offset=function(p){return arguments.length?(l=+p,f):l},f}function fFe(t){return R0e(V3,t)}function pFe(t){return R0e(qM,t)}var gFe={value:()=>{}};function N0e(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}W3.prototype=N0e.prototype={constructor:W3,on:function(t,e){var r=this._,n=mFe(t+"",r),i,a=-1,s=n.length;if(arguments.length<2){for(;++a0)for(var r=new Array(i),n=0,i,a;n=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),MX.hasOwnProperty(e)?{space:MX[e],local:t}:t}function vFe(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===YM&&e.documentElement.namespaceURI===YM?e.createElement(t):e.createElementNS(r,t)}}function _Fe(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function I0e(t){var e=gk(t);return(e.local?_Fe:vFe)(e)}function bFe(){}function TU(t){return t==null?bFe:function(){return this.querySelector(t)}}function EFe(t){typeof t!="function"&&(t=TU(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i=_&&(_=b+1);!(x=y[_])&&++_=0;)(s=n[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function VFe(t){t||(t=WFe);function e(h,f){return h&&f?t(h.__data__,f.__data__):!h-!f}for(var r=this._groups,n=r.length,i=new Array(n),a=0;ae?1:t>=e?0:NaN}function KFe(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function XFe(){return Array.from(this)}function jFe(){for(var t=this._groups,e=0,r=t.length;e1?this.each((e==null?o$e:typeof e=="function"?c$e:l$e)(t,e,r??"")):H_(this.node(),t)}function H_(t,e){return t.style.getPropertyValue(e)||P0e(t).getComputedStyle(t,null).getPropertyValue(e)}function d$e(t){return function(){delete this[t]}}function h$e(t,e){return function(){this[t]=e}}function f$e(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function p$e(t,e){return arguments.length>1?this.each((e==null?d$e:typeof e=="function"?f$e:h$e)(t,e)):this.node()[t]}function B0e(t){return t.trim().split(/^|\s+/)}function xU(t){return t.classList||new F0e(t)}function F0e(t){this._node=t,this._names=B0e(t.getAttribute("class")||"")}F0e.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function $0e(t,e){for(var r=xU(t),n=-1,i=e.length;++n=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function G$e(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,i=e.length,a;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?bx(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?bx(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Q$e.exec(t))?new os(e[1],e[2],e[3],1):(e=Z$e.exec(t))?new os(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=J$e.exec(t))?bx(e[1],e[2],e[3],e[4]):(e=eze.exec(t))?bx(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=tze.exec(t))?GX(e[1],e[2]/100,e[3]/100,1):(e=rze.exec(t))?GX(e[1],e[2]/100,e[3]/100,e[4]):PX.hasOwnProperty(t)?$X(PX[t]):t==="transparent"?new os(NaN,NaN,NaN,0):null}function $X(t){return new os(t>>16&255,t>>8&255,t&255,1)}function bx(t,e,r,n){return n<=0&&(t=e=r=NaN),new os(t,e,r,n)}function q0e(t){return t instanceof Hp||(t=Ep(t)),t?(t=t.rgb(),new os(t.r,t.g,t.b,t.opacity)):new os}function HM(t,e,r,n){return arguments.length===1?q0e(t):new os(t,e,r,n??1)}function os(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}rT(os,HM,mk(Hp,{brighter(t){return t=t==null?CC:Math.pow(CC,t),new os(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?OS:Math.pow(OS,t),new os(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new os(dp(this.r),dp(this.g),dp(this.b),wC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zX,formatHex:zX,formatHex8:aze,formatRgb:UX,toString:UX}));function zX(){return`#${Jf(this.r)}${Jf(this.g)}${Jf(this.b)}`}function aze(){return`#${Jf(this.r)}${Jf(this.g)}${Jf(this.b)}${Jf((isNaN(this.opacity)?1:this.opacity)*255)}`}function UX(){const t=wC(this.opacity);return`${t===1?"rgb(":"rgba("}${dp(this.r)}, ${dp(this.g)}, ${dp(this.b)}${t===1?")":`, ${t})`}`}function wC(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function dp(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Jf(t){return t=dp(t),(t<16?"0":"")+t.toString(16)}function GX(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Kl(t,e,r,n)}function Y0e(t){if(t instanceof Kl)return new Kl(t.h,t.s,t.l,t.opacity);if(t instanceof Hp||(t=Ep(t)),!t)return new Kl;if(t instanceof Kl)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),s=NaN,o=a-i,l=(a+i)/2;return o?(e===a?s=(r-n)/o+(r0&&l<1?0:s,new Kl(s,o,l,t.opacity)}function sze(t,e,r,n){return arguments.length===1?Y0e(t):new Kl(t,e,r,n??1)}function Kl(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}rT(Kl,sze,mk(Hp,{brighter(t){return t=t==null?CC:Math.pow(CC,t),new Kl(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?OS:Math.pow(OS,t),new Kl(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new os(Z8(t>=240?t-240:t+120,i,n),Z8(t,i,n),Z8(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new Kl(qX(this.h),Ex(this.s),Ex(this.l),wC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=wC(this.opacity);return`${t===1?"hsl(":"hsla("}${qX(this.h)}, ${Ex(this.s)*100}%, ${Ex(this.l)*100}%${t===1?")":`, ${t})`}`}}));function qX(t){return t=(t||0)%360,t<0?t+360:t}function Ex(t){return Math.max(0,Math.min(1,t||0))}function Z8(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const oze=Math.PI/180,lze=180/Math.PI,kC=18,H0e=.96422,V0e=1,W0e=.82521,K0e=4/29,Hm=6/29,X0e=3*Hm*Hm,cze=Hm*Hm*Hm;function j0e(t){if(t instanceof eu)return new eu(t.l,t.a,t.b,t.opacity);if(t instanceof i0)return Q0e(t);t instanceof os||(t=q0e(t));var e=rR(t.r),r=rR(t.g),n=rR(t.b),i=J8((.2225045*e+.7168786*r+.0606169*n)/V0e),a,s;return e===r&&r===n?a=s=i:(a=J8((.4360747*e+.3850649*r+.1430804*n)/H0e),s=J8((.0139322*e+.0971045*r+.7141733*n)/W0e)),new eu(116*i-16,500*(a-i),200*(i-s),t.opacity)}function uze(t,e,r,n){return arguments.length===1?j0e(t):new eu(t,e,r,n??1)}function eu(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}rT(eu,uze,mk(Hp,{brighter(t){return new eu(this.l+kC*(t??1),this.a,this.b,this.opacity)},darker(t){return new eu(this.l-kC*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=H0e*eR(e),t=V0e*eR(t),r=W0e*eR(r),new os(tR(3.1338561*e-1.6168667*t-.4906146*r),tR(-.9787684*e+1.9161415*t+.033454*r),tR(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function J8(t){return t>cze?Math.pow(t,1/3):t/X0e+K0e}function eR(t){return t>Hm?t*t*t:X0e*(t-K0e)}function tR(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rR(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function dze(t){if(t instanceof i0)return new i0(t.h,t.c,t.l,t.opacity);if(t instanceof eu||(t=j0e(t)),t.a===0&&t.b===0)return new i0(NaN,0()=>t;function Z0e(t,e){return function(r){return t+r*e}}function hze(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function fze(t,e){var r=e-t;return r?Z0e(t,r>180||r<-180?r-360*Math.round(r/360):r):yk(isNaN(t)?e:t)}function pze(t){return(t=+t)==1?WE:function(e,r){return r-e?hze(e,r,t):yk(isNaN(e)?r:e)}}function WE(t,e){var r=e-t;return r?Z0e(t,r):yk(isNaN(t)?e:t)}const AC=(function t(e){var r=pze(e);function n(i,a){var s=r((i=HM(i)).r,(a=HM(a)).r),o=r(i.g,a.g),l=r(i.b,a.b),u=WE(i.opacity,a.opacity);return function(d){return i.r=s(d),i.g=o(d),i.b=l(d),i.opacity=u(d),i+""}}return n.gamma=t,n})(1);function gze(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),i;return function(a){for(i=0;ir&&(a=e.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(n=n[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:Yl(n,i)})),r=nR.lastIndex;return r180?d+=360:d-u>180&&(u+=360),f.push({i:h.push(i(h)+"rotate(",null,n)-2,x:Yl(u,d)})):d&&h.push(i(h)+"rotate("+d+n)}function o(u,d,h,f){u!==d?f.push({i:h.push(i(h)+"skewX(",null,n)-2,x:Yl(u,d)}):d&&h.push(i(h)+"skewX("+d+n)}function l(u,d,h,f,p,g){if(u!==h||d!==f){var m=p.push(i(p)+"scale(",null,",",null,")");g.push({i:m-4,x:Yl(u,h)},{i:m-2,x:Yl(d,f)})}else(h!==1||f!==1)&&p.push(i(p)+"scale("+h+","+f+")")}return function(u,d){var h=[],f=[];return u=t(u),d=t(d),a(u.translateX,u.translateY,d.translateX,d.translateY,h,f),s(u.rotate,d.rotate,h,f),o(u.skewX,d.skewX,h,f),l(u.scaleX,u.scaleY,d.scaleX,d.scaleY,h,f),u=d=null,function(p){for(var g=-1,m=f.length,y;++g=0&&t._call.call(void 0,e),t=t._next;--V_}function HX(){Sp=(NC=LS.now())+vk,V_=oE=0;try{Nze()}finally{V_=0,Oze(),Sp=0}}function Ize(){var t=LS.now(),e=t-NC;e>rde&&(vk-=e,NC=t)}function Oze(){for(var t,e=RC,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:RC=r);lE=t,XM(n)}function XM(t){if(!V_){oE&&(oE=clearTimeout(oE));var e=t-Sp;e>24?(t<1/0&&(oE=setTimeout(HX,t-LS.now()-vk)),w2&&(w2=clearInterval(w2))):(w2||(NC=LS.now(),w2=setInterval(Ize,rde)),V_=1,nde(HX))}}function VX(t,e,r){var n=new IC;return e=e==null?0:+e,n.restart(i=>{n.stop(),t(i+e)},e,r),n}var Dze=N0e("start","end","cancel","interrupt"),Lze=[],ade=0,WX=1,jM=2,K3=3,KX=4,QM=5,X3=6;function _k(t,e,r,n,i,a){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;Mze(t,r,{name:e,index:n,group:i,on:Dze,tween:Lze,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:ade})}function kU(t,e){var r=yc(t,e);if(r.state>ade)throw new Error("too late; already scheduled");return r}function mu(t,e){var r=yc(t,e);if(r.state>K3)throw new Error("too late; already running");return r}function yc(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Mze(t,e,r){var n=t.__transition,i;n[e]=r,r.timer=ide(a,0,r.time);function a(u){r.state=WX,r.timer.restart(s,r.delay,r.time),r.delay<=u&&s(u-r.delay)}function s(u){var d,h,f,p;if(r.state!==WX)return l();for(d in n)if(p=n[d],p.name===r.name){if(p.state===K3)return VX(s);p.state===KX?(p.state=X3,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete n[d]):+djM&&n.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function hUe(t,e,r){var n,i,a=dUe(e)?kU:mu;return function(){var s=a(this,t),o=s.on;o!==n&&(i=(n=o).copy()).on(e,r),s.on=i}}function fUe(t,e){var r=this._id;return arguments.length<2?yc(this.node(),r).on.on(t):this.each(hUe(r,t,e))}function pUe(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function gUe(){return this.on("end.remove",pUe(this._id))}function mUe(t){var e=this._name,r=this._id;typeof t!="function"&&(t=TU(t));for(var n=this._groups,i=n.length,a=new Array(i),s=0;s=0))throw new Error(`invalid digits: ${t}`);if(e>15)return cde;const r=10**e;return function(n){this._+=n[0];for(let i=1,a=n.length;i_f)if(!(Math.abs(h*l-u*d)>_f)||!a)this._append`L${this._x1=e},${this._y1=r}`;else{let p=n-s,g=i-o,m=l*l+u*u,y=p*p+g*g,v=Math.sqrt(m),b=Math.sqrt(f),_=a*Math.tan((ZM-Math.acos((m+f-y)/(2*v*b)))/2),E=_/b,x=_/v;Math.abs(E-1)>_f&&this._append`L${e+E*d},${r+E*h}`,this._append`A${a},${a},0,0,${+(h*p>d*g)},${this._x1=e+x*l},${this._y1=r+x*u}`}}arc(e,r,n,i,a,s){if(e=+e,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(i),l=n*Math.sin(i),u=e+o,d=r+l,h=1^s,f=s?i-a:a-i;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>_f||Math.abs(this._y1-d)>_f)&&this._append`L${u},${d}`,n&&(f<0&&(f=f%JM+JM),f>UUe?this._append`A${n},${n},0,1,${h},${e-o},${r-l}A${n},${n},0,1,${h},${this._x1=u},${this._y1=d}`:f>_f&&this._append`A${n},${n},0,${+(f>=ZM)},${h},${this._x1=e+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(e,r,n,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}};function YUe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function OC(t,e){if(!isFinite(t)||t===0)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function W_(t){return t=OC(Math.abs(t)),t?t[1]:NaN}function HUe(t,e){return function(r,n){for(var i=r.length,a=[],s=0,o=t[0],l=0;i>0&&o>0&&(l+o+1>n&&(o=Math.max(1,n-l)),a.push(r.substring(i-=o,i+o)),!((l+=o+1)>n));)o=t[s=(s+1)%t.length];return a.reverse().join(e)}}function VUe(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var WUe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function DC(t){if(!(e=WUe.exec(t)))throw new Error("invalid format: "+t);var e;return new RU({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}DC.prototype=RU.prototype;function RU(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}RU.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function KUe(t){e:for(var e=t.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(i+1):t}var LC;function XUe(t,e){var r=OC(t,e);if(!r)return LC=void 0,t.toPrecision(e);var n=r[0],i=r[1],a=i-(LC=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+OC(t,Math.max(0,e+a-1))[0]}function XX(t,e){var r=OC(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const jX={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:YUe,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>XX(t*100,e),r:XX,s:XUe,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function QX(t){return t}var ZX=Array.prototype.map,JX=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function jUe(t){var e=t.grouping===void 0||t.thousands===void 0?QX:HUe(ZX.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?QX:VUe(ZX.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",o=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(h,f){h=DC(h);var p=h.fill,g=h.align,m=h.sign,y=h.symbol,v=h.zero,b=h.width,_=h.comma,E=h.precision,x=h.trim,C=h.type;C==="n"?(_=!0,C="g"):jX[C]||(E===void 0&&(E=12),x=!0,C="g"),(v||p==="0"&&g==="=")&&(v=!0,p="0",g="=");var T=(f&&f.prefix!==void 0?f.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),w=(y==="$"?n:/[%p]/.test(C)?s:"")+(f&&f.suffix!==void 0?f.suffix:""),N=jX[C],O=/[defgprs%]/.test(C);E=E===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function M($){var F=T,A=w,I,D,L;if(C==="c")A=N($)+A,$="";else{$=+$;var R=$<0||1/$<0;if($=isNaN($)?l:N(Math.abs($),E),x&&($=KUe($)),R&&+$==0&&m!=="+"&&(R=!1),F=(R?m==="("?m:o:m==="-"||m==="("?"":m)+F,A=(C==="s"&&!isNaN($)&&LC!==void 0?JX[8+LC/3]:"")+A+(R&&m==="("?")":""),O){for(I=-1,D=$.length;++IL||L>57){A=(L===46?i+$.slice(I+1):$.slice(I))+A,$=$.slice(0,I);break}}}_&&!v&&($=e($,1/0));var P=F.length+$.length+A.length,z=P>1)+F+$+A+z.slice(P);break;default:$=z+F+$+A;break}return a($)}return M.toString=function(){return h+""},M}function d(h,f){var p=Math.max(-8,Math.min(8,Math.floor(W_(f)/3)))*3,g=Math.pow(10,-p),m=u((h=DC(h),h.type="f",h),{suffix:JX[8+p/3]});return function(y){return m(g*y)}}return{format:u,formatPrefix:d}}var Tx,Lf,ude;QUe({thousands:",",grouping:[3],currency:["$",""]});function QUe(t){return Tx=jUe(t),Lf=Tx.format,ude=Tx.formatPrefix,Tx}function ZUe(t){return Math.max(0,-W_(Math.abs(t)))}function JUe(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(W_(e)/3)))*3-W_(Math.abs(t)))}function eGe(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,W_(e)-W_(t))+1}function tGe(t){var e=0,r=t.children,n=r&&r.length;if(!n)e=1;else for(;--n>=0;)e+=r[n].value;t.value=e}function rGe(){return this.eachAfter(tGe)}function nGe(t,e){let r=-1;for(const n of this)t.call(e,n,++r,this);return this}function iGe(t,e){for(var r=this,n=[r],i,a,s=-1;r=n.pop();)if(t.call(e,r,++s,this),i=r.children)for(a=i.length-1;a>=0;--a)n.push(i[a]);return this}function aGe(t,e){for(var r=this,n=[r],i=[],a,s,o,l=-1;r=n.pop();)if(i.push(r),a=r.children)for(s=0,o=a.length;s=0;)r+=n[i].value;e.value=r})}function lGe(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function cGe(t){for(var e=this,r=uGe(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n}function uGe(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;for(t=r.pop(),e=n.pop();t===e;)i=t,t=r.pop(),e=n.pop();return i}function dGe(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function hGe(){return Array.from(this)}function fGe(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function pGe(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e}function*gGe(){var t=this,e,r=[t],n,i,a;do for(e=r.reverse(),r=[];t=e.pop();)if(yield t,n=t.children)for(i=0,a=n.length;i=0;--o)i.push(a=s[o]=new MC(s[o])),a.parent=n,a.depth=n.depth+1;return r.eachBefore(bGe)}function mGe(){return NU(this).eachBefore(_Ge)}function yGe(t){return t.children}function vGe(t){return Array.isArray(t)?t[1]:null}function _Ge(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function bGe(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function MC(t){this.data=t,this.depth=this.height=0,this.parent=null}MC.prototype=NU.prototype={constructor:MC,count:rGe,each:nGe,eachAfter:aGe,eachBefore:iGe,find:sGe,sum:oGe,sort:lGe,path:cGe,ancestors:dGe,descendants:hGe,leaves:fGe,links:pGe,copy:mGe,[Symbol.iterator]:gGe};function EGe(t){if(typeof t!="function")throw new Error;return t}function k2(){return 0}function A2(t){return function(){return t}}function SGe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function TGe(t,e,r,n,i){for(var a=t.children,s,o=-1,l=a.length,u=t.value&&(n-e)/t.value;++ob&&(b=u),C=y*y*x,_=Math.max(b/C,C/v),_>E){y-=u;break}E=_}s.push(l={value:y,dice:p1?n:1)},r})(CGe);function AGe(){var t=kGe,e=!1,r=1,n=1,i=[0],a=k2,s=k2,o=k2,l=k2,u=k2;function d(f){return f.x0=f.y0=0,f.x1=r,f.y1=n,f.eachBefore(h),i=[0],e&&f.eachBefore(SGe),f}function h(f){var p=i[f.depth],g=f.x0+p,m=f.y0+p,y=f.x1-p,v=f.y1-p;ye&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function OGe(t,e,r){var n=t[0],i=t[1],a=e[0],s=e[1];return i2?DGe:OGe,l=u=null,h}function h(f){return f==null||isNaN(f=+f)?a:(l||(l=o(t.map(n),e,r)))(n(s(f)))}return h.invert=function(f){return s(i((u||(u=o(e,t.map(n),Yl)))(f)))},h.domain=function(f){return arguments.length?(t=Array.from(f,NGe),d()):t.slice()},h.range=function(f){return arguments.length?(e=Array.from(f),d()):e.slice()},h.rangeRound=function(f){return e=Array.from(f),r=Sze,d()},h.clamp=function(f){return arguments.length?(s=f?!0:Sm,d()):s!==Sm},h.interpolate=function(f){return arguments.length?(r=f,d()):r},h.unknown=function(f){return arguments.length?(a=f,h):a},function(f,p){return n=f,i=p,d()}}function hde(){return LGe()(Sm,Sm)}function MGe(t,e,r,n){var i=GM(t,e,r),a;switch(n=DC(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(a=JUe(i,s))&&(n.precision=a),ude(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=eGe(i,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=ZUe(i))&&(n.precision=a-(n.type==="%")*2);break}}return Lf(n)}function PGe(t){var e=t.domain;return t.ticks=function(r){var n=e();return nFe(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var i=e();return MGe(i[0],i[i.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),i=0,a=n.length-1,s=n[i],o=n[a],l,u,d=10;for(o0;){if(u=UM(s,o,r),u===l)return n[i]=s,n[a]=o,e(n);if(u>0)s=Math.floor(s/u)*u,o=Math.ceil(o/u)*u;else if(u<0)s=Math.ceil(s*u)/u,o=Math.floor(o*u)/u;else break;l=u}return t},t}function K_(){var t=hde();return t.copy=function(){return dde(t,K_())},bk.apply(t,arguments),PGe(t)}function BGe(t,e){t=t.slice();var r=0,n=t.length-1,i=t[r],a=t[n],s;return a(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const s=i(a),o=i.ceil(a);return a-s(e(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,o)=>{const l=[];if(a=i.ceil(a),o=o==null?1:Math.floor(o),!(a0))return l;let u;do l.push(u=new Date(+a)),e(a,o),t(a);while(uRa(s=>{if(s>=s)for(;t(s),!a(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;e(s,-1),!a(s););else for(;--o>=0;)for(;e(s,1),!a(s););}),r&&(i.count=(a,s)=>(iR.setTime(+a),aR.setTime(+s),t(iR),t(aR),Math.floor(r(iR,aR))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const X_=Ra(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);X_.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Ra(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):X_);X_.range;const a0=1e3,yl=a0*60,s0=yl*60,S0=s0*24,IU=S0*7,rj=S0*30,sR=S0*365,Pd=Ra(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*a0)},(t,e)=>(e-t)/a0,t=>t.getUTCSeconds());Pd.range;const MS=Ra(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*a0)},(t,e)=>{t.setTime(+t+e*yl)},(t,e)=>(e-t)/yl,t=>t.getMinutes());MS.range;const FGe=Ra(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*yl)},(t,e)=>(e-t)/yl,t=>t.getUTCMinutes());FGe.range;const PS=Ra(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*a0-t.getMinutes()*yl)},(t,e)=>{t.setTime(+t+e*s0)},(t,e)=>(e-t)/s0,t=>t.getHours());PS.range;const $Ge=Ra(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*s0)},(t,e)=>(e-t)/s0,t=>t.getUTCHours());$Ge.range;const Tp=Ra(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*yl)/S0,t=>t.getDate()-1);Tp.range;const OU=Ra(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/S0,t=>t.getUTCDate()-1);OU.range;const zGe=Ra(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/S0,t=>Math.floor(t/S0));zGe.range;function Vp(t){return Ra(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*yl)/IU)}const nT=Vp(0),BS=Vp(1),fde=Vp(2),pde=Vp(3),xp=Vp(4),gde=Vp(5),mde=Vp(6);nT.range;BS.range;fde.range;pde.range;xp.range;gde.range;mde.range;function Wp(t){return Ra(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/IU)}const yde=Wp(0),PC=Wp(1),UGe=Wp(2),GGe=Wp(3),j_=Wp(4),qGe=Wp(5),YGe=Wp(6);yde.range;PC.range;UGe.range;GGe.range;j_.range;qGe.range;YGe.range;const FS=Ra(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());FS.range;const HGe=Ra(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());HGe.range;const T0=Ra(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());T0.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ra(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});T0.range;const Cp=Ra(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Cp.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ra(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});Cp.range;function VGe(t,e,r,n,i,a){const s=[[Pd,1,a0],[Pd,5,5*a0],[Pd,15,15*a0],[Pd,30,30*a0],[a,1,yl],[a,5,5*yl],[a,15,15*yl],[a,30,30*yl],[i,1,s0],[i,3,3*s0],[i,6,6*s0],[i,12,12*s0],[n,1,S0],[n,2,2*S0],[r,1,IU],[e,1,rj],[e,3,3*rj],[t,1,sR]];function o(u,d,h){const f=dy).right(s,f);if(p===s.length)return t.every(GM(u/sR,d/sR,h));if(p===0)return X_.every(Math.max(GM(u,d,h),1));const[g,m]=s[f/s[p-1][2]53)return null;"w"in se||(se.w=1),"Z"in se?(Te=lR(R2(se.y,0,1)),Ge=Te.getUTCDay(),Te=Ge>4||Ge===0?PC.ceil(Te):PC(Te),Te=OU.offset(Te,(se.V-1)*7),se.y=Te.getUTCFullYear(),se.m=Te.getUTCMonth(),se.d=Te.getUTCDate()+(se.w+6)%7):(Te=oR(R2(se.y,0,1)),Ge=Te.getDay(),Te=Ge>4||Ge===0?BS.ceil(Te):BS(Te),Te=Tp.offset(Te,(se.V-1)*7),se.y=Te.getFullYear(),se.m=Te.getMonth(),se.d=Te.getDate()+(se.w+6)%7)}else("W"in se||"U"in se)&&("w"in se||(se.w="u"in se?se.u%7:"W"in se?1:0),Ge="Z"in se?lR(R2(se.y,0,1)).getUTCDay():oR(R2(se.y,0,1)).getDay(),se.m=0,se.d="W"in se?(se.w+6)%7+se.W*7-(Ge+5)%7:se.w+se.U*7-(Ge+6)%7);return"Z"in se?(se.H+=se.Z/100|0,se.M+=se.Z%100,lR(se)):oR(se)}}function w(re,ce,ae,se){for(var xe=0,Te=ce.length,Ge=ae.length,ze,Xe;xe=Ge)return-1;if(ze=ce.charCodeAt(xe++),ze===37){if(ze=ce.charAt(xe++),Xe=x[ze in nj?ce.charAt(xe++):ze],!Xe||(se=Xe(re,ae,se))<0)return-1}else if(ze!=ae.charCodeAt(se++))return-1}return se}function N(re,ce,ae){var se=u.exec(ce.slice(ae));return se?(re.p=d.get(se[0].toLowerCase()),ae+se[0].length):-1}function O(re,ce,ae){var se=p.exec(ce.slice(ae));return se?(re.w=g.get(se[0].toLowerCase()),ae+se[0].length):-1}function M(re,ce,ae){var se=h.exec(ce.slice(ae));return se?(re.w=f.get(se[0].toLowerCase()),ae+se[0].length):-1}function $(re,ce,ae){var se=v.exec(ce.slice(ae));return se?(re.m=b.get(se[0].toLowerCase()),ae+se[0].length):-1}function F(re,ce,ae){var se=m.exec(ce.slice(ae));return se?(re.m=y.get(se[0].toLowerCase()),ae+se[0].length):-1}function A(re,ce,ae){return w(re,e,ce,ae)}function I(re,ce,ae){return w(re,r,ce,ae)}function D(re,ce,ae){return w(re,n,ce,ae)}function L(re){return s[re.getDay()]}function R(re){return a[re.getDay()]}function P(re){return l[re.getMonth()]}function z(re){return o[re.getMonth()]}function B(re){return i[+(re.getHours()>=12)]}function q(re){return 1+~~(re.getMonth()/3)}function Y(re){return s[re.getUTCDay()]}function Q(re){return a[re.getUTCDay()]}function H(re){return l[re.getUTCMonth()]}function J(re){return o[re.getUTCMonth()]}function Z(re){return i[+(re.getUTCHours()>=12)]}function pe(re){return 1+~~(re.getUTCMonth()/3)}return{format:function(re){var ce=C(re+="",_);return ce.toString=function(){return re},ce},parse:function(re){var ce=T(re+="",!1);return ce.toString=function(){return re},ce},utcFormat:function(re){var ce=C(re+="",E);return ce.toString=function(){return re},ce},utcParse:function(re){var ce=T(re+="",!0);return ce.toString=function(){return re},ce}}}var nj={"-":"",_:" ",0:"0"},za=/^\s*\d+/,jGe=/^%/,QGe=/[\\^$*+?|[\]().{}]/g;function Sn(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a[e.toLowerCase(),r]))}function JGe(t,e,r){var n=za.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function eqe(t,e,r){var n=za.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function tqe(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function rqe(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function nqe(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function ij(t,e,r){var n=za.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function aj(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function iqe(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function aqe(t,e,r){var n=za.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function sqe(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function sj(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function oqe(t,e,r){var n=za.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function oj(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function lqe(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function cqe(t,e,r){var n=za.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function uqe(t,e,r){var n=za.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function dqe(t,e,r){var n=za.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function hqe(t,e,r){var n=jGe.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function fqe(t,e,r){var n=za.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function pqe(t,e,r){var n=za.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function lj(t,e){return Sn(t.getDate(),e,2)}function gqe(t,e){return Sn(t.getHours(),e,2)}function mqe(t,e){return Sn(t.getHours()%12||12,e,2)}function yqe(t,e){return Sn(1+Tp.count(T0(t),t),e,3)}function vde(t,e){return Sn(t.getMilliseconds(),e,3)}function vqe(t,e){return vde(t,e)+"000"}function _qe(t,e){return Sn(t.getMonth()+1,e,2)}function bqe(t,e){return Sn(t.getMinutes(),e,2)}function Eqe(t,e){return Sn(t.getSeconds(),e,2)}function Sqe(t){var e=t.getDay();return e===0?7:e}function Tqe(t,e){return Sn(nT.count(T0(t)-1,t),e,2)}function _de(t){var e=t.getDay();return e>=4||e===0?xp(t):xp.ceil(t)}function xqe(t,e){return t=_de(t),Sn(xp.count(T0(t),t)+(T0(t).getDay()===4),e,2)}function Cqe(t){return t.getDay()}function wqe(t,e){return Sn(BS.count(T0(t)-1,t),e,2)}function kqe(t,e){return Sn(t.getFullYear()%100,e,2)}function Aqe(t,e){return t=_de(t),Sn(t.getFullYear()%100,e,2)}function Rqe(t,e){return Sn(t.getFullYear()%1e4,e,4)}function Nqe(t,e){var r=t.getDay();return t=r>=4||r===0?xp(t):xp.ceil(t),Sn(t.getFullYear()%1e4,e,4)}function Iqe(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Sn(e/60|0,"0",2)+Sn(e%60,"0",2)}function cj(t,e){return Sn(t.getUTCDate(),e,2)}function Oqe(t,e){return Sn(t.getUTCHours(),e,2)}function Dqe(t,e){return Sn(t.getUTCHours()%12||12,e,2)}function Lqe(t,e){return Sn(1+OU.count(Cp(t),t),e,3)}function bde(t,e){return Sn(t.getUTCMilliseconds(),e,3)}function Mqe(t,e){return bde(t,e)+"000"}function Pqe(t,e){return Sn(t.getUTCMonth()+1,e,2)}function Bqe(t,e){return Sn(t.getUTCMinutes(),e,2)}function Fqe(t,e){return Sn(t.getUTCSeconds(),e,2)}function $qe(t){var e=t.getUTCDay();return e===0?7:e}function zqe(t,e){return Sn(yde.count(Cp(t)-1,t),e,2)}function Ede(t){var e=t.getUTCDay();return e>=4||e===0?j_(t):j_.ceil(t)}function Uqe(t,e){return t=Ede(t),Sn(j_.count(Cp(t),t)+(Cp(t).getUTCDay()===4),e,2)}function Gqe(t){return t.getUTCDay()}function qqe(t,e){return Sn(PC.count(Cp(t)-1,t),e,2)}function Yqe(t,e){return Sn(t.getUTCFullYear()%100,e,2)}function Hqe(t,e){return t=Ede(t),Sn(t.getUTCFullYear()%100,e,2)}function Vqe(t,e){return Sn(t.getUTCFullYear()%1e4,e,4)}function Wqe(t,e){var r=t.getUTCDay();return t=r>=4||r===0?j_(t):j_.ceil(t),Sn(t.getUTCFullYear()%1e4,e,4)}function Kqe(){return"+0000"}function uj(){return"%"}function dj(t){return+t}function hj(t){return Math.floor(+t/1e3)}var Dg,BC;Xqe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Xqe(t){return Dg=XGe(t),BC=Dg.format,Dg.parse,Dg.utcFormat,Dg.utcParse,Dg}function jqe(t){return new Date(t)}function Qqe(t){return t instanceof Date?+t:+new Date(+t)}function Sde(t,e,r,n,i,a,s,o,l,u){var d=hde(),h=d.invert,f=d.domain,p=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),b=u("%b %d"),_=u("%B"),E=u("%Y");function x(C){return(l(C)1?0:t<-1?$S:Math.acos(t)}function pj(t){return t>=1?FC:t<=-1?-FC:Math.asin(t)}function Tde(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new qUe(e)}function nYe(t){return t.innerRadius}function iYe(t){return t.outerRadius}function aYe(t){return t.startAngle}function sYe(t){return t.endAngle}function oYe(t){return t&&t.padAngle}function lYe(t,e,r,n,i,a,s,o){var l=r-t,u=n-e,d=s-i,h=o-a,f=h*l-d*u;if(!(f*fA*A+I*I&&(w=O,N=M),{cx:w,cy:N,x01:-d,y01:-h,x11:w*(i/x-1),y11:N*(i/x-1)}}function Q_(){var t=nYe,e=iYe,r=Yi(0),n=null,i=aYe,a=sYe,s=oYe,o=null,l=Tde(u);function u(){var d,h,f=+t.apply(this,arguments),p=+e.apply(this,arguments),g=i.apply(this,arguments)-FC,m=a.apply(this,arguments)-FC,y=fj(m-g),v=m>g;if(o||(o=d=l()),pis))o.moveTo(0,0);else if(y>j3-is)o.moveTo(p*ef(g),p*Sc(g)),o.arc(0,0,p,g,m,!v),f>is&&(o.moveTo(f*ef(m),f*Sc(m)),o.arc(0,0,f,m,g,v));else{var b=g,_=m,E=g,x=m,C=y,T=y,w=s.apply(this,arguments)/2,N=w>is&&(n?+n.apply(this,arguments):Tm(f*f+p*p)),O=cR(fj(p-f)/2,+r.apply(this,arguments)),M=O,$=O,F,A;if(N>is){var I=pj(N/f*Sc(w)),D=pj(N/p*Sc(w));(C-=I*2)>is?(I*=v?1:-1,E+=I,x-=I):(C=0,E=x=(g+m)/2),(T-=D*2)>is?(D*=v?1:-1,b+=D,_-=D):(T=0,b=_=(g+m)/2)}var L=p*ef(b),R=p*Sc(b),P=f*ef(x),z=f*Sc(x);if(O>is){var B=p*ef(_),q=p*Sc(_),Y=f*ef(E),Q=f*Sc(E),H;if(y<$S)if(H=lYe(L,R,Y,Q,B,q,P,z)){var J=L-H[0],Z=R-H[1],pe=B-H[0],re=q-H[1],ce=1/Sc(rYe((J*pe+Z*re)/(Tm(J*J+Z*Z)*Tm(pe*pe+re*re)))/2),ae=Tm(H[0]*H[0]+H[1]*H[1]);M=cR(O,(f-ae)/(ce-1)),$=cR(O,(p-ae)/(ce+1))}else M=$=0}T>is?$>is?(F=xx(Y,Q,L,R,p,$,v),A=xx(B,q,P,z,p,$,v),o.moveTo(F.cx+F.x01,F.cy+F.y01),$is)||!(C>is)?o.lineTo(P,z):M>is?(F=xx(P,z,B,q,f,-M,v),A=xx(L,R,Y,Q,f,-M,v),o.lineTo(F.cx+F.x01,F.cy+F.y01),Mt?1:e>=t?0:NaN}function hYe(t){return t}function fYe(){var t=hYe,e=dYe,r=null,n=Yi(0),i=Yi(j3),a=Yi(0);function s(o){var l,u=(o=xde(o)).length,d,h,f=0,p=new Array(u),g=new Array(u),m=+n.apply(this,arguments),y=Math.min(j3,Math.max(-j3,i.apply(this,arguments)-m)),v,b=Math.min(Math.abs(y)/u,a.apply(this,arguments)),_=b*(y<0?-1:1),E;for(l=0;l0&&(f+=E);for(e!=null?p.sort(function(x,C){return e(g[x],g[C])}):r!=null&&p.sort(function(x,C){return r(o[x],o[C])}),l=0,h=f?(y-u*_)/f:0;l0?E*h:0)+_,g[d]={data:o[d],index:l,value:E,startAngle:m,endAngle:v,padAngle:b};return g}return s.value=function(o){return arguments.length?(t=typeof o=="function"?o:Yi(+o),s):t},s.sortValues=function(o){return arguments.length?(e=o,r=null,s):e},s.sort=function(o){return arguments.length?(r=o,e=null,s):r},s.startAngle=function(o){return arguments.length?(n=typeof o=="function"?o:Yi(+o),s):n},s.endAngle=function(o){return arguments.length?(i=typeof o=="function"?o:Yi(+o),s):i},s.padAngle=function(o){return arguments.length?(a=typeof o=="function"?o:Yi(+o),s):a},s}class wde{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function kde(t){return new wde(t,!0)}function Ade(t){return new wde(t,!1)}function ih(){}function $C(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Ek(t){this._context=t}Ek.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:$C(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:$C(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function US(t){return new Ek(t)}function Rde(t){this._context=t}Rde.prototype={areaStart:ih,areaEnd:ih,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:$C(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function pYe(t){return new Rde(t)}function Nde(t){this._context=t}Nde.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:$C(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function gYe(t){return new Nde(t)}function Ide(t,e){this._basis=new Ek(t),this._beta=e}Ide.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n=t[0],i=e[0],a=t[r]-n,s=e[r]-i,o=-1,l;++o<=r;)l=o/r,this._basis.point(this._beta*t[o]+(1-this._beta)*(n+l*a),this._beta*e[o]+(1-this._beta)*(i+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const mYe=(function t(e){function r(n){return e===1?new Ek(n):new Ide(n,e)}return r.beta=function(n){return t(+n)},r})(.85);function zC(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function DU(t,e){this._context=t,this._k=(1-e)/6}DU.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:zC(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:zC(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ode=(function t(e){function r(n){return new DU(n,e)}return r.tension=function(n){return t(+n)},r})(0);function LU(t,e){this._context=t,this._k=(1-e)/6}LU.prototype={areaStart:ih,areaEnd:ih,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:zC(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const yYe=(function t(e){function r(n){return new LU(n,e)}return r.tension=function(n){return t(+n)},r})(0);function MU(t,e){this._context=t,this._k=(1-e)/6}MU.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:zC(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const vYe=(function t(e){function r(n){return new MU(n,e)}return r.tension=function(n){return t(+n)},r})(0);function PU(t,e,r){var n=t._x1,i=t._y1,a=t._x2,s=t._y2;if(t._l01_a>is){var o=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*o-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*o-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>is){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,d=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/d,s=(s*u+t._y1*t._l23_2a-r*t._l12_2a)/d}t._context.bezierCurveTo(n,i,a,s,t._x2,t._y2)}function Dde(t,e){this._context=t,this._alpha=e}Dde.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:PU(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Lde=(function t(e){function r(n){return e?new Dde(n,e):new DU(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function Mde(t,e){this._context=t,this._alpha=e}Mde.prototype={areaStart:ih,areaEnd:ih,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:PU(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const _Ye=(function t(e){function r(n){return e?new Mde(n,e):new LU(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function Pde(t,e){this._context=t,this._alpha=e}Pde.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:PU(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const bYe=(function t(e){function r(n){return e?new Pde(n,e):new MU(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function Bde(t){this._context=t}Bde.prototype={areaStart:ih,areaEnd:ih,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function EYe(t){return new Bde(t)}function gj(t){return t<0?-1:1}function mj(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),s=(r-t._y1)/(i||n<0&&-0),o=(a*i+s*n)/(n+i);return(gj(a)+gj(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function yj(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function uR(t,e,r){var n=t._x0,i=t._y0,a=t._x1,s=t._y1,o=(a-n)/3;t._context.bezierCurveTo(n+o,i+o*e,a-o,s-o*r,a,s)}function UC(t){this._context=t}UC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:uR(this,this._t0,yj(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,uR(this,yj(this,r=mj(this,t,e)),r);break;default:uR(this,this._t0,r=mj(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function Fde(t){this._context=new $de(t)}(Fde.prototype=Object.create(UC.prototype)).point=function(t,e){UC.prototype.point.call(this,e,t)};function $de(t){this._context=t}$de.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}};function zde(t){return new UC(t)}function Ude(t){return new Fde(t)}function Gde(t){this._context=t}Gde.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=vj(t),i=vj(e),a=0,s=1;s=0;--e)i[e]=(s[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function Yde(t){return new Sk(t,.5)}function Hde(t){return new Sk(t,0)}function Vde(t){return new Sk(t,1)}function cE(t,e,r){this.k=t,this.x=e,this.y=r}cE.prototype={constructor:cE,scale:function(t){return t===1?this:new cE(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new cE(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};cE.prototype;var To=S(t=>{const{securityLevel:e}=Ke();let r=At("body");if(e==="sandbox"){const a=At(`#i${t}`).node()?.contentDocument??document;r=At(a.body)}return r.select(`#${t}`)},"selectSvgElement");function BU(t){return typeof t>"u"||t===null}S(BU,"isNothing");function Wde(t){return typeof t=="object"&&t!==null}S(Wde,"isObject");function Kde(t){return Array.isArray(t)?t:BU(t)?[]:[t]}S(Kde,"toArray");function Xde(t,e){var r,n,i,a;if(e)for(a=Object.keys(e),r=0,n=a.length;ro&&(a=" ... ",e=n-o+a.length),r-n>o&&(s=" ...",r=n+o-s.length),{str:a+t.slice(e,r).replace(/\t/g,"→")+s,pos:n-e+a.length}}S(Q3,"getLine");function Z3(t,e){return Sa.repeat(" ",e-t.length)+t}S(Z3,"padStart");function Zde(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],a,s=-1;a=r.exec(t.buffer);)i.push(a.index),n.push(a.index+a[0].length),t.position<=a.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var o="",l,u,d=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+d+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)u=Q3(t.buffer,n[s-l],i[s-l],t.position-(n[s]-n[s-l]),h),o=Sa.repeat(" ",e.indent)+Z3((t.line-l+1).toString(),d)+" | "+u.str+` `+o;for(u=Q3(t.buffer,n[s],i[s],t.position,h),o+=Sa.repeat(" ",e.indent)+Z3((t.line+1).toString(),d)+" | "+u.str+` `,o+=Sa.repeat("-",e.indent+d+3+u.pos)+`^ `,l=1;l<=e.linesAfter&&!(s+l>=i.length);l++)u=Q3(t.buffer,n[s+l],i[s+l],t.position-(n[s]-n[s+l]),h),o+=Sa.repeat(" ",e.indent)+Z3((t.line+l+1).toString(),d)+" | "+u.str+` -`;return o.replace(/\n$/,"")}S(Zde,"makeSnippet");var kYe=Zde,AYe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],RYe=["scalar","sequence","mapping"];function Jde(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}S(Jde,"compileStyleAliases");function ehe(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(AYe.indexOf(r)===-1)throw new po('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Jde(e.styleAliases||null),RYe.indexOf(this.kind)===-1)throw new po('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}S(ehe,"Type$1");var cs=ehe;function rP(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(a,s){a.tag===n.tag&&a.kind===n.kind&&a.multi===n.multi&&(i=s)}),r[i]=n}),r}S(rP,"compileList");function the(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(S(n,"collectType"),e=0,r=arguments.length;e=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:S(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:S(function(t){return t.toString(10)},"decimal"),hexadecimal:S(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),FYe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function phe(t){return!(t===null||!FYe.test(t)||t[t.length-1]==="_")}S(phe,"resolveYamlFloat");function ghe(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}S(ghe,"constructYamlFloat");var $Ye=/^[-+]?[0-9]+e/;function mhe(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Sa.isNegativeZero(t))return"-0.0";return r=t.toString(10),$Ye.test(r)?r.replace("e",".e"):r}S(mhe,"representYamlFloat");function yhe(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Sa.isNegativeZero(t))}S(yhe,"isFloat");var zYe=new cs("tag:yaml.org,2002:float",{kind:"scalar",resolve:phe,construct:ghe,predicate:yhe,represent:mhe,defaultStyle:"lowercase"}),vhe=LYe.extend({implicit:[MYe,PYe,BYe,zYe]}),UYe=vhe,_he=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),bhe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Ehe(t){return t===null?!1:_he.exec(t)!==null||bhe.exec(t)!==null}S(Ehe,"resolveYamlTimestamp");function She(t){var e,r,n,i,a,s,o,l=0,u=null,d,h,f;if(e=_he.exec(t),e===null&&(e=bhe.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(a=+e[4],s=+e[5],o=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(d=+e[10],h=+(e[11]||0),u=(d*60+h)*6e4,e[9]==="-"&&(u=-u)),f=new Date(Date.UTC(r,n,i,a,s,o,l)),u&&f.setTime(f.getTime()-u),f}S(She,"constructYamlTimestamp");function The(t){return t.toISOString()}S(The,"representYamlTimestamp");var GYe=new cs("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ehe,construct:She,instanceOf:Date,represent:The});function xhe(t){return t==="<<"||t===null}S(xhe,"resolveYamlMerge");var qYe=new cs("tag:yaml.org,2002:merge",{kind:"scalar",resolve:xhe}),$U=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function Che(t){if(t===null)return!1;var e,r,n=0,i=t.length,a=$U;for(r=0;r64)){if(e<0)return!1;n+=6}return n%8===0}S(Che,"resolveYamlBinary");function whe(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,a=$U,s=0,o=[];for(e=0;e>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(n.charAt(e));return r=i%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}S(whe,"constructYamlBinary");function khe(t){var e="",r=0,n,i,a=t.length,s=$U;for(n=0;n>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[n];return i=a%3,i===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):i===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):i===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}S(khe,"representYamlBinary");function Ahe(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}S(Ahe,"isBinary");var YYe=new cs("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Che,construct:whe,predicate:Ahe,represent:khe}),HYe=Object.prototype.hasOwnProperty,VYe=Object.prototype.toString;function Rhe(t){if(t===null)return!0;var e=[],r,n,i,a,s,o=t;for(r=0,n=o.length;r>10)+55296,(t-65536&1023)+56320)}S(qhe,"charFromCodepoint");function zU(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}S(zU,"setProperty");var Yhe=new Array(256),Hhe=new Array(256);for(tf=0;tf<256;tf++)Yhe[tf]=iP(tf)?1:0,Hhe[tf]=iP(tf);var tf;function Vhe(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Mhe,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}S(Vhe,"State$1");function UU(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=kYe(r),new po(e,r)}S(UU,"generateError");function Tr(t,e){throw UU(t,e)}S(Tr,"throwError");function GS(t,e){t.onWarning&&t.onWarning.call(null,UU(t,e))}S(GS,"throwWarning");var bj={YAML:S(function(e,r,n){var i,a,s;e.version!==null&&Tr(e,"duplication of %YAML directive"),n.length!==1&&Tr(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Tr(e,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&Tr(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&GS(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:S(function(e,r,n){var i,a;n.length!==2&&Tr(e,"TAG directive accepts exactly two arguments"),i=n[0],a=n[1],Fhe.test(i)||Tr(e,"ill-formed tag handle (first argument) of the TAG directive"),ah.call(e.tagMap,i)&&Tr(e,'there is a previously declared suffix for "'+i+'" tag handle'),$he.test(a)||Tr(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Tr(e,"tag prefix is malformed: "+a)}e.tagMap[i]=a},"handleTagDirective")};function m0(t,e,r,n){var i,a,s,o;if(e1&&(t.result+=Sa.repeat(` -`,e-1))}S(xk,"writeFoldedLines");function Whe(t,e,r){var n,i,a,s,o,l,u,d,h=t.kind,f=t.result,p;if(p=t.input.charCodeAt(t.position),Ds(p)||ep(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=t.input.charCodeAt(t.position+1),Ds(i)||r&&ep(i)))return!1;for(t.kind="scalar",t.result="",a=s=t.position,o=!1;p!==0;){if(p===58){if(i=t.input.charCodeAt(t.position+1),Ds(i)||r&&ep(i))break}else if(p===35){if(n=t.input.charCodeAt(t.position-1),Ds(n))break}else{if(t.position===t.lineStart&&iT(t)||r&&ep(p))break;if(ec(p))if(l=t.line,u=t.lineStart,d=t.lineIndent,Wi(t,!1,-1),t.lineIndent>=e){o=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=u,t.lineIndent=d;break}}o&&(m0(t,a,s,!1),xk(t,t.line-l),a=s=t.position,o=!1),Vd(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return m0(t,a,s,!1),t.result?!0:(t.kind=h,t.result=f,!1)}S(Whe,"readPlainScalar");function Khe(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(m0(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else ec(r)?(m0(t,n,i,!0),xk(t,Wi(t,!1,e)),n=i=t.position):t.position===t.lineStart&&iT(t)?Tr(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Tr(t,"unexpected end of the stream within a single quoted scalar")}S(Khe,"readSingleQuotedScalar");function Xhe(t,e){var r,n,i,a,s,o;if(o=t.input.charCodeAt(t.position),o!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(o=t.input.charCodeAt(t.position))!==0;){if(o===34)return m0(t,r,t.position,!0),t.position++,!0;if(o===92){if(m0(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),ec(o))Wi(t,!1,e);else if(o<256&&Yhe[o])t.result+=Hhe[o],t.position++;else if((s=Uhe(o))>0){for(i=s,a=0;i>0;i--)o=t.input.charCodeAt(++t.position),(s=zhe(o))>=0?a=(a<<4)+s:Tr(t,"expected hexadecimal character");t.result+=qhe(a),t.position++}else Tr(t,"unknown escape sequence");r=n=t.position}else ec(o)?(m0(t,r,n,!0),xk(t,Wi(t,!1,e)),r=n=t.position):t.position===t.lineStart&&iT(t)?Tr(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Tr(t,"unexpected end of the stream within a double quoted scalar")}S(Xhe,"readDoubleQuotedScalar");function jhe(t,e){var r=!0,n,i,a,s=t.tag,o,l=t.anchor,u,d,h,f,p,g=Object.create(null),m,y,v,b;if(b=t.input.charCodeAt(t.position),b===91)d=93,p=!1,o=[];else if(b===123)d=125,p=!0,o={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),b=t.input.charCodeAt(++t.position);b!==0;){if(Wi(t,!0,e),b=t.input.charCodeAt(t.position),b===d)return t.position++,t.tag=s,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=o,!0;r?b===44&&Tr(t,"expected the node content, but found ','"):Tr(t,"missed comma between flow collection entries"),y=m=v=null,h=f=!1,b===63&&(u=t.input.charCodeAt(t.position+1),Ds(u)&&(h=f=!0,t.position++,Wi(t,!0,e))),n=t.line,i=t.lineStart,a=t.position,wp(t,e,qC,!1,!0),y=t.tag,m=t.result,Wi(t,!0,e),b=t.input.charCodeAt(t.position),(f||t.line===n)&&b===58&&(h=!0,b=t.input.charCodeAt(++t.position),Wi(t,!0,e),wp(t,e,qC,!1,!0),v=t.result),p?tp(t,o,g,y,m,v,n,i,a):h?o.push(tp(t,null,g,y,m,v,n,i,a)):o.push(m),Wi(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(r=!0,b=t.input.charCodeAt(++t.position)):r=!1}Tr(t,"unexpected end of the stream within a flow collection")}S(jhe,"readFlowCollection");function Qhe(t,e){var r,n,i=dR,a=!1,s=!1,o=e,l=0,u=!1,d,h;if(h=t.input.charCodeAt(t.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)dR===i?i=h===43?_j:ZYe:Tr(t,"repeat of a chomping mode identifier");else if((d=Ghe(h))>=0)d===0?Tr(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Tr(t,"repeat of an indentation width identifier"):(o=e+d-1,s=!0);else break;if(Vd(h)){do h=t.input.charCodeAt(++t.position);while(Vd(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!ec(h)&&h!==0)}for(;h!==0;){for(Tk(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!s||t.lineIndento&&(o=t.lineIndent),ec(h)){l++;continue}if(t.lineIndent=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:S(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:S(function(t){return t.toString(10)},"decimal"),hexadecimal:S(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),$Ye=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function phe(t){return!(t===null||!$Ye.test(t)||t[t.length-1]==="_")}S(phe,"resolveYamlFloat");function ghe(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}S(ghe,"constructYamlFloat");var zYe=/^[-+]?[0-9]+e/;function mhe(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Sa.isNegativeZero(t))return"-0.0";return r=t.toString(10),zYe.test(r)?r.replace("e",".e"):r}S(mhe,"representYamlFloat");function yhe(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Sa.isNegativeZero(t))}S(yhe,"isFloat");var UYe=new cs("tag:yaml.org,2002:float",{kind:"scalar",resolve:phe,construct:ghe,predicate:yhe,represent:mhe,defaultStyle:"lowercase"}),vhe=MYe.extend({implicit:[PYe,BYe,FYe,UYe]}),GYe=vhe,_he=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),bhe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Ehe(t){return t===null?!1:_he.exec(t)!==null||bhe.exec(t)!==null}S(Ehe,"resolveYamlTimestamp");function She(t){var e,r,n,i,a,s,o,l=0,u=null,d,h,f;if(e=_he.exec(t),e===null&&(e=bhe.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(a=+e[4],s=+e[5],o=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(d=+e[10],h=+(e[11]||0),u=(d*60+h)*6e4,e[9]==="-"&&(u=-u)),f=new Date(Date.UTC(r,n,i,a,s,o,l)),u&&f.setTime(f.getTime()-u),f}S(She,"constructYamlTimestamp");function The(t){return t.toISOString()}S(The,"representYamlTimestamp");var qYe=new cs("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ehe,construct:She,instanceOf:Date,represent:The});function xhe(t){return t==="<<"||t===null}S(xhe,"resolveYamlMerge");var YYe=new cs("tag:yaml.org,2002:merge",{kind:"scalar",resolve:xhe}),$U=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function Che(t){if(t===null)return!1;var e,r,n=0,i=t.length,a=$U;for(r=0;r64)){if(e<0)return!1;n+=6}return n%8===0}S(Che,"resolveYamlBinary");function whe(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,a=$U,s=0,o=[];for(e=0;e>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(n.charAt(e));return r=i%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}S(whe,"constructYamlBinary");function khe(t){var e="",r=0,n,i,a=t.length,s=$U;for(n=0;n>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[n];return i=a%3,i===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):i===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):i===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}S(khe,"representYamlBinary");function Ahe(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}S(Ahe,"isBinary");var HYe=new cs("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Che,construct:whe,predicate:Ahe,represent:khe}),VYe=Object.prototype.hasOwnProperty,WYe=Object.prototype.toString;function Rhe(t){if(t===null)return!0;var e=[],r,n,i,a,s,o=t;for(r=0,n=o.length;r>10)+55296,(t-65536&1023)+56320)}S(qhe,"charFromCodepoint");function zU(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}S(zU,"setProperty");var Yhe=new Array(256),Hhe=new Array(256);for(tf=0;tf<256;tf++)Yhe[tf]=iP(tf)?1:0,Hhe[tf]=iP(tf);var tf;function Vhe(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Mhe,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}S(Vhe,"State$1");function UU(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=AYe(r),new po(e,r)}S(UU,"generateError");function Tr(t,e){throw UU(t,e)}S(Tr,"throwError");function GS(t,e){t.onWarning&&t.onWarning.call(null,UU(t,e))}S(GS,"throwWarning");var bj={YAML:S(function(e,r,n){var i,a,s;e.version!==null&&Tr(e,"duplication of %YAML directive"),n.length!==1&&Tr(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Tr(e,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&Tr(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&GS(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:S(function(e,r,n){var i,a;n.length!==2&&Tr(e,"TAG directive accepts exactly two arguments"),i=n[0],a=n[1],Fhe.test(i)||Tr(e,"ill-formed tag handle (first argument) of the TAG directive"),ah.call(e.tagMap,i)&&Tr(e,'there is a previously declared suffix for "'+i+'" tag handle'),$he.test(a)||Tr(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Tr(e,"tag prefix is malformed: "+a)}e.tagMap[i]=a},"handleTagDirective")};function m0(t,e,r,n){var i,a,s,o;if(e1&&(t.result+=Sa.repeat(` +`,e-1))}S(xk,"writeFoldedLines");function Whe(t,e,r){var n,i,a,s,o,l,u,d,h=t.kind,f=t.result,p;if(p=t.input.charCodeAt(t.position),Ds(p)||ep(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=t.input.charCodeAt(t.position+1),Ds(i)||r&&ep(i)))return!1;for(t.kind="scalar",t.result="",a=s=t.position,o=!1;p!==0;){if(p===58){if(i=t.input.charCodeAt(t.position+1),Ds(i)||r&&ep(i))break}else if(p===35){if(n=t.input.charCodeAt(t.position-1),Ds(n))break}else{if(t.position===t.lineStart&&iT(t)||r&&ep(p))break;if(ec(p))if(l=t.line,u=t.lineStart,d=t.lineIndent,Wi(t,!1,-1),t.lineIndent>=e){o=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=u,t.lineIndent=d;break}}o&&(m0(t,a,s,!1),xk(t,t.line-l),a=s=t.position,o=!1),Vd(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return m0(t,a,s,!1),t.result?!0:(t.kind=h,t.result=f,!1)}S(Whe,"readPlainScalar");function Khe(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(m0(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else ec(r)?(m0(t,n,i,!0),xk(t,Wi(t,!1,e)),n=i=t.position):t.position===t.lineStart&&iT(t)?Tr(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Tr(t,"unexpected end of the stream within a single quoted scalar")}S(Khe,"readSingleQuotedScalar");function Xhe(t,e){var r,n,i,a,s,o;if(o=t.input.charCodeAt(t.position),o!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(o=t.input.charCodeAt(t.position))!==0;){if(o===34)return m0(t,r,t.position,!0),t.position++,!0;if(o===92){if(m0(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),ec(o))Wi(t,!1,e);else if(o<256&&Yhe[o])t.result+=Hhe[o],t.position++;else if((s=Uhe(o))>0){for(i=s,a=0;i>0;i--)o=t.input.charCodeAt(++t.position),(s=zhe(o))>=0?a=(a<<4)+s:Tr(t,"expected hexadecimal character");t.result+=qhe(a),t.position++}else Tr(t,"unknown escape sequence");r=n=t.position}else ec(o)?(m0(t,r,n,!0),xk(t,Wi(t,!1,e)),r=n=t.position):t.position===t.lineStart&&iT(t)?Tr(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Tr(t,"unexpected end of the stream within a double quoted scalar")}S(Xhe,"readDoubleQuotedScalar");function jhe(t,e){var r=!0,n,i,a,s=t.tag,o,l=t.anchor,u,d,h,f,p,g=Object.create(null),m,y,v,b;if(b=t.input.charCodeAt(t.position),b===91)d=93,p=!1,o=[];else if(b===123)d=125,p=!0,o={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),b=t.input.charCodeAt(++t.position);b!==0;){if(Wi(t,!0,e),b=t.input.charCodeAt(t.position),b===d)return t.position++,t.tag=s,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=o,!0;r?b===44&&Tr(t,"expected the node content, but found ','"):Tr(t,"missed comma between flow collection entries"),y=m=v=null,h=f=!1,b===63&&(u=t.input.charCodeAt(t.position+1),Ds(u)&&(h=f=!0,t.position++,Wi(t,!0,e))),n=t.line,i=t.lineStart,a=t.position,wp(t,e,qC,!1,!0),y=t.tag,m=t.result,Wi(t,!0,e),b=t.input.charCodeAt(t.position),(f||t.line===n)&&b===58&&(h=!0,b=t.input.charCodeAt(++t.position),Wi(t,!0,e),wp(t,e,qC,!1,!0),v=t.result),p?tp(t,o,g,y,m,v,n,i,a):h?o.push(tp(t,null,g,y,m,v,n,i,a)):o.push(m),Wi(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(r=!0,b=t.input.charCodeAt(++t.position)):r=!1}Tr(t,"unexpected end of the stream within a flow collection")}S(jhe,"readFlowCollection");function Qhe(t,e){var r,n,i=dR,a=!1,s=!1,o=e,l=0,u=!1,d,h;if(h=t.input.charCodeAt(t.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)dR===i?i=h===43?_j:JYe:Tr(t,"repeat of a chomping mode identifier");else if((d=Ghe(h))>=0)d===0?Tr(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Tr(t,"repeat of an indentation width identifier"):(o=e+d-1,s=!0);else break;if(Vd(h)){do h=t.input.charCodeAt(++t.position);while(Vd(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!ec(h)&&h!==0)}for(;h!==0;){for(Tk(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!s||t.lineIndento&&(o=t.lineIndent),ec(h)){l++;continue}if(t.lineIndente)&&l!==0)Tr(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(y&&(s=t.line,o=t.lineStart,l=t.position),wp(t,e,YC,!0,i)&&(y?g=t.result:m=t.result),y||(tp(t,h,f,p,g,m,s,o,l),p=g=m=null),Wi(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&b!==0)Tr(t,"bad indentation of a mapping entry");else if(t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h"),t.result!==null&&g.kind!==t.kind&&Tr(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Tr(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||d}S(wp,"composeNode");function rfe(t){var e=t.position,r,n,i,a=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Wi(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(a=!0,s=t.input.charCodeAt(++t.position),r=t.position;s!==0&&!Ds(s);)s=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&Tr(t,"directive name must not be less than one character in length");s!==0;){for(;Vd(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!ec(s));break}if(ec(s))break;for(r=t.position;s!==0&&!Ds(s);)s=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}s!==0&&Tk(t),ah.call(bj,n)?bj[n](t,n,i):GS(t,'unknown document directive "'+n+'"')}if(Wi(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Wi(t,!0,-1)):a&&Tr(t,"directives end mark is expected"),wp(t,t.lineIndent-1,YC,!1,!0),Wi(t,!0,-1),t.checkLineBreaks&&eHe.test(t.input.slice(e,t.position))&&GS(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&iT(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Wi(t,!0,-1));return}if(t.position"u"&&(r=e,e=null);var n=GU(t,r);if(typeof e!="function")return n;for(var i=0,a=n.length;ie)&&l!==0)Tr(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(y&&(s=t.line,o=t.lineStart,l=t.position),wp(t,e,YC,!0,i)&&(y?g=t.result:m=t.result),y||(tp(t,h,f,p,g,m,s,o,l),p=g=m=null),Wi(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&b!==0)Tr(t,"bad indentation of a mapping entry");else if(t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h"),t.result!==null&&g.kind!==t.kind&&Tr(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Tr(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||d}S(wp,"composeNode");function rfe(t){var e=t.position,r,n,i,a=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Wi(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(a=!0,s=t.input.charCodeAt(++t.position),r=t.position;s!==0&&!Ds(s);)s=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&Tr(t,"directive name must not be less than one character in length");s!==0;){for(;Vd(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!ec(s));break}if(ec(s))break;for(r=t.position;s!==0&&!Ds(s);)s=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}s!==0&&Tk(t),ah.call(bj,n)?bj[n](t,n,i):GS(t,'unknown document directive "'+n+'"')}if(Wi(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Wi(t,!0,-1)):a&&Tr(t,"directives end mark is expected"),wp(t,t.lineIndent-1,YC,!1,!0),Wi(t,!0,-1),t.checkLineBreaks&&tHe.test(t.input.slice(e,t.position))&&GS(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&iT(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Wi(t,!0,-1));return}if(t.position"u"&&(r=e,e=null);var n=GU(t,r);if(typeof e!="function")return n;for(var i=0,a=n.length;i=55296&&r<=56319&&e+1=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}S(xm,"codePointAt");function YU(t){var e=/^\n* /;return e.test(t)}S(YU,"needIndentIndicator");var yfe=1,dP=2,vfe=3,_fe=4,rm=5;function bfe(t,e,r,n,i,a,s,o){var l,u=0,d=null,h=!1,f=!1,p=n!==-1,g=-1,m=gfe(xm(t,0))&&mfe(xm(t,t.length-1));if(e||s)for(l=0;l=65536?l+=2:l++){if(u=xm(t,l),!J_(u))return rm;m=m&&uP(u,d,o),d=u}else{for(l=0;l=65536?l+=2:l++){if(u=xm(t,l),u===qS)h=!0,p&&(f=f||l-g-1>n&&t[g+1]!==" ",g=l);else if(!J_(u))return rm;m=m&&uP(u,d,o),d=u}f=f||p&&l-g-1>n&&t[g+1]!==" "}return!h&&!f?m&&!s&&!i(t)?yfe:a===YS?rm:dP:r>9&&YU(t)?rm:s?a===YS?rm:dP:f?_fe:vfe}S(bfe,"chooseScalarStyle");function Efe(t,e,r,n,i){t.dump=(function(){if(e.length===0)return t.quotingType===YS?'""':"''";if(!t.noCompatMode&&(EHe.indexOf(e)!==-1||SHe.test(e)))return t.quotingType===YS?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),o=n||t.flowLevel>-1&&r>=t.flowLevel;function l(u){return pfe(t,u)}switch(S(l,"testAmbiguity"),bfe(e,o,t.indent,s,l,t.quotingType,t.forceQuotes&&!n,i)){case yfe:return e;case dP:return"'"+e.replace(/'/g,"''")+"'";case vfe:return"|"+hP(e,t.indent)+fP(lP(e,a));case _fe:return">"+hP(e,t.indent)+fP(lP(Sfe(e,s),a));case rm:return'"'+Tfe(e)+'"';default:throw new po("impossible error: invalid scalar style")}})()}S(Efe,"writeScalar");function hP(t,e){var r=YU(t)?String(e):"",n=t[t.length-1]===` +`+Sa.repeat(" ",t.indent*e)}S(VC,"generateNextLine");function pfe(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r=55296&&r<=56319&&e+1=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}S(xm,"codePointAt");function YU(t){var e=/^\n* /;return e.test(t)}S(YU,"needIndentIndicator");var yfe=1,dP=2,vfe=3,_fe=4,rm=5;function bfe(t,e,r,n,i,a,s,o){var l,u=0,d=null,h=!1,f=!1,p=n!==-1,g=-1,m=gfe(xm(t,0))&&mfe(xm(t,t.length-1));if(e||s)for(l=0;l=65536?l+=2:l++){if(u=xm(t,l),!J_(u))return rm;m=m&&uP(u,d,o),d=u}else{for(l=0;l=65536?l+=2:l++){if(u=xm(t,l),u===qS)h=!0,p&&(f=f||l-g-1>n&&t[g+1]!==" ",g=l);else if(!J_(u))return rm;m=m&&uP(u,d,o),d=u}f=f||p&&l-g-1>n&&t[g+1]!==" "}return!h&&!f?m&&!s&&!i(t)?yfe:a===YS?rm:dP:r>9&&YU(t)?rm:s?a===YS?rm:dP:f?_fe:vfe}S(bfe,"chooseScalarStyle");function Efe(t,e,r,n,i){t.dump=(function(){if(e.length===0)return t.quotingType===YS?'""':"''";if(!t.noCompatMode&&(SHe.indexOf(e)!==-1||THe.test(e)))return t.quotingType===YS?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),o=n||t.flowLevel>-1&&r>=t.flowLevel;function l(u){return pfe(t,u)}switch(S(l,"testAmbiguity"),bfe(e,o,t.indent,s,l,t.quotingType,t.forceQuotes&&!n,i)){case yfe:return e;case dP:return"'"+e.replace(/'/g,"''")+"'";case vfe:return"|"+hP(e,t.indent)+fP(lP(e,a));case _fe:return">"+hP(e,t.indent)+fP(lP(Sfe(e,s),a));case rm:return'"'+Tfe(e)+'"';default:throw new po("impossible error: invalid scalar style")}})()}S(Efe,"writeScalar");function hP(t,e){var r=YU(t)?String(e):"",n=t[t.length-1]===` `,i=n&&(t[t.length-2]===` `||t===` `),a=i?"+":n?"":"-";return r+a+` @@ -2724,13 +2724,13 @@ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, `:"")+pP(l,e),i=a}return n}S(Sfe,"foldString");function pP(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,a,s=0,o=0,l="";n=r.exec(t);)o=n.index,o-i>e&&(a=s>i?s:o,l+=` `+t.slice(i,a),i=a+1),s=o;return l+=` `,t.length-i>e&&s>i?l+=t.slice(i,s)+` -`+t.slice(s+1):l+=t.slice(i),l.slice(1)}S(pP,"foldLine");function Tfe(t){for(var e="",r=0,n,i=0;i=65536?i+=2:i++)r=xm(t,i),n=ps[r],!n&&J_(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||hfe(r);return e}S(Tfe,"escapeString");function xfe(t,e,r){var n="",i=t.tag,a,s,o;for(a=0,s=r.length;a"u"&&nu(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}S(xfe,"writeFlowSequence");function gP(t,e,r,n){var i="",a=t.tag,s,o,l;for(s=0,o=r.length;s"u"&&nu(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=VC(t,e)),t.dump&&qS===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=a,t.dump=i||"[]"}S(gP,"writeBlockSequence");function Cfe(t,e,r){var n="",i=t.tag,a=Object.keys(r),s,o,l,u,d;for(s=0,o=a.length;s1024&&(d+="? "),d+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),nu(t,e,u,!1,!1)&&(d+=t.dump,n+=d));t.tag=i,t.dump="{"+n+"}"}S(Cfe,"writeFlowMapping");function wfe(t,e,r,n){var i="",a=t.tag,s=Object.keys(r),o,l,u,d,h,f;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new po("sortKeys must be a boolean or a function");for(o=0,l=s.length;o1024,h&&(t.dump&&qS===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=VC(t,e)),nu(t,e+1,d,!0,h)&&(t.dump&&qS===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=a,t.dump=i||"{}"}S(wfe,"writeBlockMapping");function mP(t,e,r){var n,i,a,s,o,l;for(i=r?t.explicitTypes:t.implicitTypes,a=0,s=i.length;a tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}S(mP,"detectType");function nu(t,e,r,n,i,a,s){t.tag=null,t.dump=r,mP(t,r,!1)||mP(t,r,!0);var o=ife.call(t.dump),l=n,u;n&&(n=t.flowLevel<0||t.flowLevel>e);var d=o==="[object Object]"||o==="[object Array]",h,f;if(d&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(i=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(d&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),o==="[object Object]")n&&Object.keys(t.dump).length!==0?(wfe(t,e,t.dump,i),f&&(t.dump="&ref_"+h+t.dump)):(Cfe(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(o==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?gP(t,e-1,t.dump,i):gP(t,e,t.dump,i),f&&(t.dump="&ref_"+h+t.dump)):(xfe(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(o==="[object String]")t.tag!=="?"&&Efe(t,t.dump,e,a,l);else{if(o==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new po("unacceptable kind of an object to dump "+o)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}S(nu,"writeNode");function kfe(t,e){var r=[],n=[],i,a;for(WC(t,r,n),i=0,a=n.length;i{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";const r=t.x??0,n=t.y??0;return"translate("+-(r+t.width/2)+", "+-(n+t.height/2)+")"},"computeLabelTransform"),as={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Ej={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function uE(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=ci(t),e=ci(e);const[r,n]=[t.x,t.y],[i,a]=[e.x,e.y],s=i-r,o=a-n;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}S(uE,"calculateDeltaAndAngle");var ci=S(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),Afe=S(t=>({x:S(function(e,r,n){let i=0;const a=ci(n[0]).x=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(as,t.arrowTypeEnd)){const{angle:p,deltaX:g}=uE(n[n.length-1],n[n.length-2]);i=as[t.arrowTypeEnd]*Math.cos(p)*(g>=0?1:-1)}const s=Math.abs(ci(e).x-ci(n[n.length-1]).x),o=Math.abs(ci(e).y-ci(n[n.length-1]).y),l=Math.abs(ci(e).x-ci(n[0]).x),u=Math.abs(ci(e).y-ci(n[0]).y),d=as[t.arrowTypeStart],h=as[t.arrowTypeEnd],f=1;if(s0&&o0&&u=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(as,t.arrowTypeEnd)){const{angle:p,deltaY:g}=uE(n[n.length-1],n[n.length-2]);i=as[t.arrowTypeEnd]*Math.abs(Math.sin(p))*(g>=0?1:-1)}const s=Math.abs(ci(e).y-ci(n[n.length-1]).y),o=Math.abs(ci(e).x-ci(n[n.length-1]).x),l=Math.abs(ci(e).y-ci(n[0]).y),u=Math.abs(ci(e).x-ci(n[0]).x),d=as[t.arrowTypeStart],h=as[t.arrowTypeEnd],f=1;if(s0&&o0&&u-1}function r(s){var o=s.replace(t.ctrlCharactersRegex,"");return o.replace(t.htmlEntitiesRegex,function(l,u){return String.fromCharCode(u)})}function n(s){return URL.canParse(s)}function i(s){try{return decodeURIComponent(s)}catch{return s}}function a(s){if(!s)return t.BLANK_URL;var o,l=i(s.trim());do l=r(l).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),l=i(l),o=l.match(t.ctrlCharactersRegex)||l.match(t.htmlEntitiesRegex)||l.match(t.htmlCtrlEntityRegex)||l.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var u=l;if(!u)return t.BLANK_URL;if(e(u))return u;var d=u.trimStart(),h=d.match(t.urlSchemeRegex);if(!h)return u;var f=h[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(f))return t.BLANK_URL;var p=d.replace(/\\/g,"/");if(f==="mailto:"||f.includes("://"))return p;if(f==="http:"||f==="https:"){if(!n(p))return t.BLANK_URL;var g=new URL(p);return g.protocol=g.protocol.toLowerCase(),g.hostname=g.hostname.toLowerCase(),g.toString()}return p}return Cx}var Kp=kHe();function AHe(t){return Number.isSafeInteger(t)&&t>=0}function Rfe(t){return t!=null&&typeof t!="function"&&AHe(t.length)}function RHe(t){return t==="__proto__"}function kk(t){return t==null||typeof t!="object"&&typeof t!="function"}function Nfe(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function aT(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const HU="[object RegExp]",VS="[object String]",Ak="[object Number]",Rk="[object Boolean]",Nk="[object Arguments]",VU="[object Symbol]",WU="[object Date]",KU="[object Map]",XU="[object Set]",Ife="[object Array]",jU="[object ArrayBuffer]",QU="[object Object]",ZU="[object DataView]",Ofe="[object Uint8Array]",Dfe="[object Uint8ClampedArray]",Lfe="[object Uint16Array]",Mfe="[object Uint32Array]",Pfe="[object Int8Array]",Bfe="[object Int16Array]",Ffe="[object Int32Array]",$fe="[object Float32Array]",zfe="[object Float64Array]",xj=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})()||Function("return this")();function JU(t){return typeof xj.Buffer<"u"&&xj.Buffer.isBuffer(t)}function eG(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function NHe(t,e){return Cm(t,void 0,t,new Map,e)}function Cm(t,e,r,n=new Map,i=void 0){const a=i?.(t,e,r,n);if(a!==void 0)return a;if(kk(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){const s=new Array(t.length);n.set(t,s);for(let o=0;o{if(typeof t=="object"){if(aT(t)===QU&&typeof t.constructor!="function"){const s={};return a.set(t,s),Ul(s,t,i,a),s}switch(Object.prototype.toString.call(t)){case Ak:case VS:case Rk:{const s=new t.constructor(t?.valueOf());return Ul(s,t),s}case Nk:{const s={};return Ul(s,t),s.length=t.length,s[Symbol.iterator]=t[Symbol.iterator],s}default:return}}})}function Cj(t){return OHe(t)}function yP(t){return t!==null&&typeof t=="object"&&aT(t)==="[object Arguments]"}function vP(t){return typeof t=="object"&&t!==null}function DHe(t){return vP(t)&&Rfe(t)}function LHe(t){return Array.isArray(t)}function sT(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");const r=function(...i){const a=e?e.apply(this,i):i[0],s=r.cache;if(s.has(a))return s.get(a);const o=t.apply(this,i);return r.cache=s.set(a,o)||s,o},n=sT.Cache||Map;return r.cache=new n,r}sT.Cache=Map;function MHe(){}function PHe(t){const e=t?.constructor,r=typeof e=="function"?e.prototype:Object.prototype;return t===r}function XE(t){return eG(t)}function BHe(t){if(kk(t))return t;const e=aT(t);if(!FHe(t))return{};if(LHe(t)){const n=Array.from(t);return t.length>0&&typeof t[0]=="string"&&Object.hasOwn(t,"index")&&(n.index=t.index,n.input=t.input),n}if(XE(t)){const n=t,i=n.constructor;return new i(n.buffer,n.byteOffset,n.length)}if(e===jU)return new ArrayBuffer(t.byteLength);if(e===ZU){const n=t,i=n.buffer,a=n.byteOffset,s=n.byteLength,o=new ArrayBuffer(s),l=new Uint8Array(i,a,s);return new Uint8Array(o).set(l),new DataView(o)}if(e===Rk||e===Ak||e===VS){const n=t.constructor,i=new n(t.valueOf());return e===VS?zHe(i,t):hR(i,t),i}if(e===WU)return new Date(Number(t));if(e===HU){const n=t,i=new RegExp(n.source,n.flags);return i.lastIndex=n.lastIndex,i}if(e===VU)return Object(Symbol.prototype.valueOf.call(t));if(e===KU){const n=t,i=new Map;return n.forEach((a,s)=>{i.set(s,a)}),i}if(e===XU){const n=t,i=new Set;return n.forEach(a=>{i.add(a)}),i}if(e===Nk){const n=t,i={};return hR(i,n),i.length=n.length,i[Symbol.iterator]=n[Symbol.iterator],i}const r={};return UHe(r,t),hR(r,t),$He(r,t),r}function FHe(t){switch(aT(t)){case Nk:case Ife:case jU:case ZU:case Rk:case WU:case $fe:case zfe:case Pfe:case Bfe:case Ffe:case KU:case Ak:case QU:case HU:case XU:case VS:case VU:case Ofe:case Dfe:case Lfe:case Mfe:return!0;default:return!1}}function hR(t,e){for(const r in e)Object.hasOwn(e,r)&&(t[r]=e[r])}function $He(t,e){const r=Object.getOwnPropertySymbols(e);for(let n=0;n=r)&&(t[n]=e[n])}function UHe(t,e){const r=Object.getPrototypeOf(e);r!==null&&typeof e.constructor=="function"&&Object.setPrototypeOf(t,r)}function fR(t){if(typeof t!="object"||t==null)return!1;if(Object.getPrototypeOf(t)===null)return!0;if(Object.prototype.toString.call(t)!=="[object Object]"){const r=t[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable?!1:t.toString()===`[object ${r}]`}let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function GHe(t){if(kk(t))return t;if(Array.isArray(t)||eG(t)||t instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer)return t.slice(0);const e=Object.getPrototypeOf(t);if(e==null)return Object.assign(Object.create(e),t);const r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){const n=new r(t);return n.lastIndex=t.lastIndex,n}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let n;return t instanceof AggregateError?n=new r(t.errors,t.message,{cause:t.cause}):n=new r(t.message,{cause:t.cause}),n.stack=t.stack,Object.assign(n,t),n}if(typeof File<"u"&&t instanceof File)return new r([t],t.name,{type:t.type,lastModified:t.lastModified});if(typeof t=="object"){const n=Object.create(e);return Object.assign(n,t)}return t}function qHe(t,...e){const r=e.slice(0,-1),n=e[e.length-1];let i=t;for(let a=0;ar!=="constructor").length===0:e.length===0}return!0}var Ufe="​",HHe={curveBasis:US,curveBasisClosed:fYe,curveBasisOpen:pYe,curveBumpX:kde,curveBumpY:Ade,curveBundle:gYe,curveCardinalClosed:mYe,curveCardinalOpen:yYe,curveCardinal:Ode,curveCatmullRomClosed:vYe,curveCatmullRomOpen:_Ye,curveCatmullRom:Lde,curveLinear:KE,curveLinearClosed:bYe,curveMonotoneX:zde,curveMonotoneY:Ude,curveNatural:qde,curveStep:Yde,curveStepAfter:Vde,curveStepBefore:Hde},VHe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,WHe=S(function(t,e){const r=Gfe(t,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const s=r.map(o=>o.args);vC(s),n=Vi(n,[...s])}else n=r.args;if(!n)return;let i=pU(t,e);const a="config";return n[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[a],delete n[a]),n},"detectInit"),Gfe=S(function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${VHe.source})(?=[}][%]{2}).* -`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),ge.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let n;const i=[];for(;(n=HE.exec(t))!==null;)if(n.index===HE.lastIndex&&HE.lastIndex++,n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e)){const a=n[1]?n[1]:n[2],s=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:a,args:s})}return i.length===0?{type:t,args:null}:i.length===1?i[0]:i}catch(r){return ge.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),KHe=S(function(t){return t.replace(HE,"")},"removeDirectives"),XHe=S(function(t,e){for(const[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray");function tG(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return HHe[r]??e}S(tG,"interpolateToCurve");function qfe(t,e){const r=t.trim();if(r)return e.securityLevel!=="loose"?Kp.sanitizeUrl(r):r}S(qfe,"formatUrl");var jHe=S((t,...e)=>{const r=t.split("."),n=r.length-1,i=r[n];let a=window;for(let s=0;s{r+=rG(i,e),e=i});const n=r/2;return nG(t,n)}S(Yfe,"traverseEdge");function Hfe(t){return t.length===1?t[0]:Yfe(t)}S(Hfe,"calcLabelPosition");var kj=S((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),nG=S((t,e)=>{let r,n=e;for(const i of t){if(r){const a=rG(i,r);if(a===0)return r;if(a=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:kj((1-s)*r.x+s*i.x,5),y:kj((1-s)*r.y+s*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),QHe=S((t,e,r)=>{ge.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const i=nG(e,25),a=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),o={x:0,y:0};return o.x=Math.sin(s)*a+(e[0].x+i.x)/2,o.y=-Math.cos(s)*a+(e[0].y+i.y)/2,o},"calcCardinalityPosition");function Vfe(t,e,r){const n=structuredClone(r);ge.info("our points",n),e!=="start_left"&&e!=="start_right"&&n.reverse();const i=25+t,a=nG(n,i),s=10+t*.5,o=Math.atan2(n[0].y-a.y,n[0].x-a.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(o+Math.PI)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o+Math.PI)*s+(n[0].y+a.y)/2):e==="end_right"?(l.x=Math.sin(o-Math.PI)*s+(n[0].x+a.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(n[0].y+a.y)/2-5):e==="end_left"?(l.x=Math.sin(o)*s+(n[0].x+a.x)/2-5,l.y=-Math.cos(o)*s+(n[0].y+a.y)/2-5):(l.x=Math.sin(o)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o)*s+(n[0].y+a.y)/2),l}S(Vfe,"calcTerminalLabelPosition");function iG(t){let e="",r="";for(const n of t)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}S(iG,"getStylesFromArray");var Aj=0,Wfe=S(()=>(Aj++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Aj),"generateId");function Kfe(t){let e="";const r="0123456789abcdef",n=r.length;for(let i=0;iKfe(t.length),"random"),ZHe=S(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),JHe=S(function(t,e){const r=e.text.replace(qt.lineBreakRegex," "),[,n]=Y0(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);const a=i.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.attr("fill",e.fill),a.text(r),i},"drawSimpleText"),jE=sT((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r),qt.lineBreakRegex.test(t)))return t;const n=t.split(" ").filter(Boolean),i=[];let a="";return n.forEach((s,o)=>{const l=$s(`${s} `,r),u=$s(a,r);if(l>e){const{hyphenatedStrings:f,remainingWord:p}=eVe(s,e,"-",r);i.push(a,...f),a=p}else u+l>=e?(i.push(a),a=s):a=[a,s].filter(Boolean).join(" ");o+1===n.length&&i.push(a)}),i.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),eVe=sT((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const i=[...t],a=[];let s="";return i.forEach((o,l)=>{const u=`${s}${o}`;if($s(u,n)>=e){const h=l+1,f=i.length===h,p=`${u}${r}`;a.push(f?u:p),s=""}else s=u}),{hyphenatedStrings:a,remainingWord:s}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function KC(t,e){return Ik(t,e).height}S(KC,"calculateTextHeight");function $s(t,e){return Ik(t,e).width}S($s,"calculateTextWidth");var Ik=sT((t,e)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};const[,a]=Y0(r),s=["sans-serif",n],o=t.split(qt.lineBreakRegex),l=[],u=At("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const d=u.append("svg");for(const f of s){let p=0;const g={width:0,height:0,lineHeight:0};for(const m of o){const y=ZHe();y.text=m||Ufe;const v=JHe(d,y).style("font-size",a).style("font-weight",i).style("font-family",f),b=(v._groups||v)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),p=Math.round(b.height),g.height+=p,g.lineHeight=Math.round(Math.max(g.lineHeight,p))}l.push(g)}d.remove();const h=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[h]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),T1,tVe=(T1=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},S(T1,"InitIDGenerator"),T1),wx,rVe=S(function(t){return wx=wx||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),wx.innerHTML=t,unescape(wx.textContent)},"entityDecode");function aG(t){return"str"in t}S(aG,"isDetailedError");var nVe=S((t,e,r,n)=>{if(!n)return;const i=t.node()?.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),Y0=S(t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function $i(t,e){return YHe({},t,e)}S($i,"cleanAndMerge");var Wr={assignWithDepth:Vi,wrapLabel:jE,calculateTextHeight:KC,calculateTextWidth:$s,calculateTextDimensions:Ik,cleanAndMerge:$i,detectInit:WHe,detectDirective:Gfe,isSubstringInArray:XHe,interpolateToCurve:tG,calcLabelPosition:Hfe,calcCardinalityPosition:QHe,calcTerminalLabelPosition:Vfe,formatUrl:qfe,getStylesFromArray:iG,generateId:Wfe,random:Xfe,runFunc:jHe,entityDecode:rVe,insertTitle:nVe,isLabelCoordinateInPath:jfe,parseFontSize:Y0,InitIDGenerator:tVe},iVe=S(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){const n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"fl°°"+n+"¶ß":"fl°"+n+"¶ß"}),e},"encodeEntities"),x0=S(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Vm=S((t,e,{counter:r=0,prefix:n,suffix:i},a)=>a||`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");function Ba(t){return t??null}S(Ba,"handleUndefinedAttr");function jfe(t,e){const r=Math.round(t.x),n=Math.round(t.y),i=e.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return i.includes(r.toString())||i.includes(n.toString())}S(jfe,"isLabelCoordinateInPath");var oT=S(({flowchart:t})=>{const e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0,n=e+r;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins");async function sG(t,e){const r=t.getElementsByTagName("img");if(!r||r.length===0)return;const n=e.replace(/]*>/g,"").trim()==="";await Promise.all([...r].map(i=>new Promise(a=>{function s(){if(i.style.display="flex",i.style.flexDirection="column",n){const o=Ke().fontSize?Ke().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[u=on.fontSize]=Y0(o),d=u*l+"px";i.style.minWidth=d,i.style.maxWidth=d}else i.style.width="100%";a(i)}S(s,"setupImage"),setTimeout(()=>{i.complete&&s()}),i.addEventListener("error",s),i.addEventListener("load",s)})))}S(sG,"configureLabelImages");var aVe=S(t=>{const{handDrawnSeed:e}=Ke();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),Ub=S(t=>{const e=sVe([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),sVe=S(t=>{const e=new Map;return t.forEach(r=>{const[n,i]=r.split(":");e.set(n.trim(),i?.trim())}),e},"styles2Map"),oG=S(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),hr=S(t=>{const{stylesArray:e}=Ub(t),r=[],n=[],i=[],a=[];return e.forEach(s=>{const o=s[0];oG(o)?r.push(s.join(":")+" !important"):(n.push(s.join(":")+" !important"),o.includes("stroke")&&i.push(s.join(":")+" !important"),o==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:a}},"styles2String"),mr=S((t,e)=>{const{themeVariables:r,handDrawnSeed:n}=Ke(),{nodeBorder:i,mainBkg:a}=r,{stylesMap:s}=Ub(t);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||i,seed:n,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:oVe(s.get("stroke-dasharray"))},e)},"userNodeOverrides"),oVe=S(t=>{if(!t)return[0,0];const e=t.trim().split(/\s+/).map(Number);if(e.length===1){const i=isNaN(e[0])?0:e[0];return[i,i]}const r=isNaN(e[0])?0:e[0],n=isNaN(e[1])?0:e[1];return[r,n]},"getStrokeDashArray");const lVe=Object.freeze({left:0,top:0,width:16,height:16}),XC=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Qfe=Object.freeze({...lVe,...XC}),cVe=Object.freeze({...Qfe,body:"",hidden:!1}),uVe=Object.freeze({width:null,height:null}),dVe=Object.freeze({...uVe,...XC}),hVe=(t,e,r,n="")=>{const i=t.split(":");if(t.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const o=i.pop(),l=i.pop(),u={provider:i.length>0?i[0]:n,prefix:l,name:o};return pR(u)?u:null}const a=i[0],s=a.split("-");if(s.length>1){const o={provider:n,prefix:s.shift(),name:s.join("-")};return pR(o)?o:null}if(r&&n===""){const o={provider:n,prefix:"",name:a};return pR(o,r)?o:null}return null},pR=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function fVe(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const n=((t.rotate||0)+(e.rotate||0))%4;return n&&(r.rotate=n),r}function Rj(t,e){const r=fVe(t,e);for(const n in cVe)n in XC?n in t&&!(n in r)&&(r[n]=XC[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function pVe(t,e){const r=t.icons,n=t.aliases||Object.create(null),i=Object.create(null);function a(s){if(r[s])return i[s]=[];if(!(s in i)){i[s]=null;const o=n[s]&&n[s].parent,l=o&&a(o);l&&(i[s]=[o].concat(l))}return i[s]}return(e||Object.keys(r).concat(Object.keys(n))).forEach(a),i}function Nj(t,e,r){const n=t.icons,i=t.aliases||Object.create(null);let a={};function s(o){a=Rj(n[o]||i[o],a)}return s(e),r.forEach(s),Rj(t,a)}function gVe(t,e){if(t.icons[e])return Nj(t,e,[]);const r=pVe(t,[e])[e];return r?Nj(t,e,r):null}const mVe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,yVe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ij(t,e,r){if(e===1)return t;if(r=r||100,typeof t=="number")return Math.ceil(t*e*r)/r;if(typeof t!="string")return t;const n=t.split(mVe);if(n===null||!n.length)return t;const i=[];let a=n.shift(),s=yVe.test(a);for(;;){if(s){const o=parseFloat(a);isNaN(o)?i.push(a):i.push(Math.ceil(o*e*r)/r)}else i.push(a);if(a=n.shift(),a===void 0)return i.join("");s=!s}}function vVe(t,e="defs"){let r="";const n=t.indexOf("<"+e);for(;n>=0;){const i=t.indexOf(">",n),a=t.indexOf("",a);if(s===-1)break;r+=t.slice(i+1,a).trim(),t=t.slice(0,n).trim()+t.slice(s+1)}return{defs:r,content:t}}function _Ve(t,e){return t?""+t+""+e:e}function bVe(t,e,r){const n=vVe(t);return _Ve(n.defs,e+n.content+r)}const EVe=t=>t==="unset"||t==="undefined"||t==="none";function SVe(t,e){const r={...Qfe,...t},n={...dVe,...e},i={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,n].forEach(m=>{const y=[],v=m.hFlip,b=m.vFlip;let _=m.rotate;v?b?_+=2:(y.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),y.push("scale(-1 1)"),i.top=i.left=0):b&&(y.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),y.push("scale(1 -1)"),i.top=i.left=0);let E;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:E=i.height/2+i.top,y.unshift("rotate(90 "+E.toString()+" "+E.toString()+")");break;case 2:y.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:E=i.width/2+i.left,y.unshift("rotate(-90 "+E.toString()+" "+E.toString()+")");break}_%2===1&&(i.left!==i.top&&(E=i.left,i.left=i.top,i.top=E),i.width!==i.height&&(E=i.width,i.width=i.height,i.height=E)),y.length&&(a=bVe(a,'',""))});const s=n.width,o=n.height,l=i.width,u=i.height;let d,h;s===null?(h=o===null?"1em":o==="auto"?u:o,d=Ij(h,l/u)):(d=s==="auto"?l:s,h=o===null?Ij(d,u/l):o==="auto"?u:o);const f={},p=(m,y)=>{EVe(y)||(f[m]=y.toString())};p("width",d),p("height",h);const g=[i.left,i.top,l,u];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:a}}const TVe=/\sid="(\S+)"/g,Oj=new Map;function xVe(t){t=t.replace(/[0-9]+$/,"")||"a";const e=Oj.get(t)||0;return Oj.set(t,e+1),e?`${t}${e}`:t}function CVe(t){const e=[];let r;for(;r=TVe.exec(t);)e.push(r[1]);if(!e.length)return t;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(i=>{const a=xVe(i),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+n+"$3")}),t=t.replace(new RegExp(n,"g"),""),t}function wVe(t,e){let r=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in e)r+=" "+n+'="'+e[n]+'"';return'"+t+""}function lG(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Xp=lG();function Zfe(t){Xp=t}var QE={exec:()=>null};function Tn(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(Ls.caret,"$1"),r=r.replace(i,s),n},getRegex:()=>new RegExp(r,e)};return n}var kVe=(()=>{try{return!!new RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},AVe=/^(?:[ \t]*(?:\n|$))+/,RVe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,NVe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,lT=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,IVe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,cG=/(?:[*+-]|\d{1,9}[.)])/,Jfe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,epe=Tn(Jfe).replace(/bull/g,cG).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),OVe=Tn(Jfe).replace(/bull/g,cG).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),uG=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,DVe=/^[^\n]+/,dG=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,LVe=Tn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",dG).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),MVe=Tn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,cG).getRegex(),Ok="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",hG=/|$))/,PVe=Tn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",hG).replace("tag",Ok).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tpe=Tn(uG).replace("hr",lT).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ok).getRegex(),BVe=Tn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",tpe).getRegex(),fG={blockquote:BVe,code:RVe,def:LVe,fences:NVe,heading:IVe,hr:lT,html:PVe,lheading:epe,list:MVe,newline:AVe,paragraph:tpe,table:QE,text:DVe},Dj=Tn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",lT).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ok).getRegex(),FVe={...fG,lheading:OVe,table:Dj,paragraph:Tn(uG).replace("hr",lT).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Dj).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ok).getRegex()},$Ve={...fG,html:Tn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",hG).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:QE,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Tn(uG).replace("hr",lT).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",epe).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zVe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,UVe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rpe=/^( {2,}|\\)\n(?!\s*$)/,GVe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",kVe?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ape=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,WVe=Tn(ape,"u").replace(/punct/g,Dk).getRegex(),KVe=Tn(ape,"u").replace(/punct/g,ipe).getRegex(),spe="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",XVe=Tn(spe,"gu").replace(/notPunctSpace/g,npe).replace(/punctSpace/g,pG).replace(/punct/g,Dk).getRegex(),jVe=Tn(spe,"gu").replace(/notPunctSpace/g,HVe).replace(/punctSpace/g,YVe).replace(/punct/g,ipe).getRegex(),QVe=Tn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,npe).replace(/punctSpace/g,pG).replace(/punct/g,Dk).getRegex(),ZVe=Tn(/\\(punct)/,"gu").replace(/punct/g,Dk).getRegex(),JVe=Tn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),eWe=Tn(hG).replace("(?:-->|$)","-->").getRegex(),tWe=Tn("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",eWe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),jC=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,rWe=Tn(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",jC).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ope=Tn(/^!?\[(label)\]\[(ref)\]/).replace("label",jC).replace("ref",dG).getRegex(),lpe=Tn(/^!?\[(ref)\](?:\[\])?/).replace("ref",dG).getRegex(),nWe=Tn("reflink|nolink(?!\\()","g").replace("reflink",ope).replace("nolink",lpe).getRegex(),Lj=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,gG={_backpedal:QE,anyPunctuation:ZVe,autolink:JVe,blockSkip:VVe,br:rpe,code:UVe,del:QE,emStrongLDelim:WVe,emStrongRDelimAst:XVe,emStrongRDelimUnd:QVe,escape:zVe,link:rWe,nolink:lpe,punctuation:qVe,reflink:ope,reflinkSearch:nWe,tag:tWe,text:GVe,url:QE},iWe={...gG,link:Tn(/^!?\[(label)\]\((.*?)\)/).replace("label",jC).getRegex(),reflink:Tn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",jC).getRegex()},_P={...gG,emStrongRDelimAst:jVe,emStrongLDelim:KVe,url:Tn(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Lj).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Tn(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},Mj=t=>sWe[t];function kc(t,e){if(e){if(Ls.escapeTest.test(t))return t.replace(Ls.escapeReplace,Mj)}else if(Ls.escapeTestNoEncode.test(t))return t.replace(Ls.escapeReplaceNoEncode,Mj);return t}function Pj(t){try{t=encodeURI(t).replace(Ls.percentDecode,"%")}catch{return null}return t}function Bj(t,e){let r=t.replace(Ls.findPipe,(a,s,o)=>{let l=!1,u=s;for(;--u>=0&&o[u]==="\\";)l=!l;return l?"|":" |"}),n=r.split(Ls.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length0?-2:-1}function Fj(t,e,r,n,i){let a=e.href,s=e.title||null,o=t[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}function lWe(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let i=n[1];return e.split(` +`+t.slice(s+1):l+=t.slice(i),l.slice(1)}S(pP,"foldLine");function Tfe(t){for(var e="",r=0,n,i=0;i=65536?i+=2:i++)r=xm(t,i),n=ps[r],!n&&J_(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||hfe(r);return e}S(Tfe,"escapeString");function xfe(t,e,r){var n="",i=t.tag,a,s,o;for(a=0,s=r.length;a"u"&&nu(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}S(xfe,"writeFlowSequence");function gP(t,e,r,n){var i="",a=t.tag,s,o,l;for(s=0,o=r.length;s"u"&&nu(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=VC(t,e)),t.dump&&qS===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=a,t.dump=i||"[]"}S(gP,"writeBlockSequence");function Cfe(t,e,r){var n="",i=t.tag,a=Object.keys(r),s,o,l,u,d;for(s=0,o=a.length;s1024&&(d+="? "),d+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),nu(t,e,u,!1,!1)&&(d+=t.dump,n+=d));t.tag=i,t.dump="{"+n+"}"}S(Cfe,"writeFlowMapping");function wfe(t,e,r,n){var i="",a=t.tag,s=Object.keys(r),o,l,u,d,h,f;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new po("sortKeys must be a boolean or a function");for(o=0,l=s.length;o1024,h&&(t.dump&&qS===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=VC(t,e)),nu(t,e+1,d,!0,h)&&(t.dump&&qS===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=a,t.dump=i||"{}"}S(wfe,"writeBlockMapping");function mP(t,e,r){var n,i,a,s,o,l;for(i=r?t.explicitTypes:t.implicitTypes,a=0,s=i.length;a tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}S(mP,"detectType");function nu(t,e,r,n,i,a,s){t.tag=null,t.dump=r,mP(t,r,!1)||mP(t,r,!0);var o=ife.call(t.dump),l=n,u;n&&(n=t.flowLevel<0||t.flowLevel>e);var d=o==="[object Object]"||o==="[object Array]",h,f;if(d&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(i=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(d&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),o==="[object Object]")n&&Object.keys(t.dump).length!==0?(wfe(t,e,t.dump,i),f&&(t.dump="&ref_"+h+t.dump)):(Cfe(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(o==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?gP(t,e-1,t.dump,i):gP(t,e,t.dump,i),f&&(t.dump="&ref_"+h+t.dump)):(xfe(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(o==="[object String]")t.tag!=="?"&&Efe(t,t.dump,e,a,l);else{if(o==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new po("unacceptable kind of an object to dump "+o)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}S(nu,"writeNode");function kfe(t,e){var r=[],n=[],i,a;for(WC(t,r,n),i=0,a=n.length;i{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";const r=t.x??0,n=t.y??0;return"translate("+-(r+t.width/2)+", "+-(n+t.height/2)+")"},"computeLabelTransform"),as={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Ej={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function uE(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=ci(t),e=ci(e);const[r,n]=[t.x,t.y],[i,a]=[e.x,e.y],s=i-r,o=a-n;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}S(uE,"calculateDeltaAndAngle");var ci=S(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),Afe=S(t=>({x:S(function(e,r,n){let i=0;const a=ci(n[0]).x=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(as,t.arrowTypeEnd)){const{angle:p,deltaX:g}=uE(n[n.length-1],n[n.length-2]);i=as[t.arrowTypeEnd]*Math.cos(p)*(g>=0?1:-1)}const s=Math.abs(ci(e).x-ci(n[n.length-1]).x),o=Math.abs(ci(e).y-ci(n[n.length-1]).y),l=Math.abs(ci(e).x-ci(n[0]).x),u=Math.abs(ci(e).y-ci(n[0]).y),d=as[t.arrowTypeStart],h=as[t.arrowTypeEnd],f=1;if(s0&&o0&&u=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(as,t.arrowTypeEnd)){const{angle:p,deltaY:g}=uE(n[n.length-1],n[n.length-2]);i=as[t.arrowTypeEnd]*Math.abs(Math.sin(p))*(g>=0?1:-1)}const s=Math.abs(ci(e).y-ci(n[n.length-1]).y),o=Math.abs(ci(e).x-ci(n[n.length-1]).x),l=Math.abs(ci(e).y-ci(n[0]).y),u=Math.abs(ci(e).x-ci(n[0]).x),d=as[t.arrowTypeStart],h=as[t.arrowTypeEnd],f=1;if(s0&&o0&&u-1}function r(s){var o=s.replace(t.ctrlCharactersRegex,"");return o.replace(t.htmlEntitiesRegex,function(l,u){return String.fromCharCode(u)})}function n(s){return URL.canParse(s)}function i(s){try{return decodeURIComponent(s)}catch{return s}}function a(s){if(!s)return t.BLANK_URL;var o,l=i(s.trim());do l=r(l).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),l=i(l),o=l.match(t.ctrlCharactersRegex)||l.match(t.htmlEntitiesRegex)||l.match(t.htmlCtrlEntityRegex)||l.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var u=l;if(!u)return t.BLANK_URL;if(e(u))return u;var d=u.trimStart(),h=d.match(t.urlSchemeRegex);if(!h)return u;var f=h[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(f))return t.BLANK_URL;var p=d.replace(/\\/g,"/");if(f==="mailto:"||f.includes("://"))return p;if(f==="http:"||f==="https:"){if(!n(p))return t.BLANK_URL;var g=new URL(p);return g.protocol=g.protocol.toLowerCase(),g.hostname=g.hostname.toLowerCase(),g.toString()}return p}return Cx}var Kp=AHe();function RHe(t){return Number.isSafeInteger(t)&&t>=0}function Rfe(t){return t!=null&&typeof t!="function"&&RHe(t.length)}function NHe(t){return t==="__proto__"}function kk(t){return t==null||typeof t!="object"&&typeof t!="function"}function Nfe(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function aT(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const HU="[object RegExp]",VS="[object String]",Ak="[object Number]",Rk="[object Boolean]",Nk="[object Arguments]",VU="[object Symbol]",WU="[object Date]",KU="[object Map]",XU="[object Set]",Ife="[object Array]",jU="[object ArrayBuffer]",QU="[object Object]",ZU="[object DataView]",Ofe="[object Uint8Array]",Dfe="[object Uint8ClampedArray]",Lfe="[object Uint16Array]",Mfe="[object Uint32Array]",Pfe="[object Int8Array]",Bfe="[object Int16Array]",Ffe="[object Int32Array]",$fe="[object Float32Array]",zfe="[object Float64Array]",xj=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})()||Function("return this")();function JU(t){return typeof xj.Buffer<"u"&&xj.Buffer.isBuffer(t)}function eG(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function IHe(t,e){return Cm(t,void 0,t,new Map,e)}function Cm(t,e,r,n=new Map,i=void 0){const a=i?.(t,e,r,n);if(a!==void 0)return a;if(kk(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){const s=new Array(t.length);n.set(t,s);for(let o=0;o{if(typeof t=="object"){if(aT(t)===QU&&typeof t.constructor!="function"){const s={};return a.set(t,s),Ul(s,t,i,a),s}switch(Object.prototype.toString.call(t)){case Ak:case VS:case Rk:{const s=new t.constructor(t?.valueOf());return Ul(s,t),s}case Nk:{const s={};return Ul(s,t),s.length=t.length,s[Symbol.iterator]=t[Symbol.iterator],s}default:return}}})}function Cj(t){return DHe(t)}function yP(t){return t!==null&&typeof t=="object"&&aT(t)==="[object Arguments]"}function vP(t){return typeof t=="object"&&t!==null}function LHe(t){return vP(t)&&Rfe(t)}function MHe(t){return Array.isArray(t)}function sT(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");const r=function(...i){const a=e?e.apply(this,i):i[0],s=r.cache;if(s.has(a))return s.get(a);const o=t.apply(this,i);return r.cache=s.set(a,o)||s,o},n=sT.Cache||Map;return r.cache=new n,r}sT.Cache=Map;function PHe(){}function BHe(t){const e=t?.constructor,r=typeof e=="function"?e.prototype:Object.prototype;return t===r}function XE(t){return eG(t)}function FHe(t){if(kk(t))return t;const e=aT(t);if(!$He(t))return{};if(MHe(t)){const n=Array.from(t);return t.length>0&&typeof t[0]=="string"&&Object.hasOwn(t,"index")&&(n.index=t.index,n.input=t.input),n}if(XE(t)){const n=t,i=n.constructor;return new i(n.buffer,n.byteOffset,n.length)}if(e===jU)return new ArrayBuffer(t.byteLength);if(e===ZU){const n=t,i=n.buffer,a=n.byteOffset,s=n.byteLength,o=new ArrayBuffer(s),l=new Uint8Array(i,a,s);return new Uint8Array(o).set(l),new DataView(o)}if(e===Rk||e===Ak||e===VS){const n=t.constructor,i=new n(t.valueOf());return e===VS?UHe(i,t):hR(i,t),i}if(e===WU)return new Date(Number(t));if(e===HU){const n=t,i=new RegExp(n.source,n.flags);return i.lastIndex=n.lastIndex,i}if(e===VU)return Object(Symbol.prototype.valueOf.call(t));if(e===KU){const n=t,i=new Map;return n.forEach((a,s)=>{i.set(s,a)}),i}if(e===XU){const n=t,i=new Set;return n.forEach(a=>{i.add(a)}),i}if(e===Nk){const n=t,i={};return hR(i,n),i.length=n.length,i[Symbol.iterator]=n[Symbol.iterator],i}const r={};return GHe(r,t),hR(r,t),zHe(r,t),r}function $He(t){switch(aT(t)){case Nk:case Ife:case jU:case ZU:case Rk:case WU:case $fe:case zfe:case Pfe:case Bfe:case Ffe:case KU:case Ak:case QU:case HU:case XU:case VS:case VU:case Ofe:case Dfe:case Lfe:case Mfe:return!0;default:return!1}}function hR(t,e){for(const r in e)Object.hasOwn(e,r)&&(t[r]=e[r])}function zHe(t,e){const r=Object.getOwnPropertySymbols(e);for(let n=0;n=r)&&(t[n]=e[n])}function GHe(t,e){const r=Object.getPrototypeOf(e);r!==null&&typeof e.constructor=="function"&&Object.setPrototypeOf(t,r)}function fR(t){if(typeof t!="object"||t==null)return!1;if(Object.getPrototypeOf(t)===null)return!0;if(Object.prototype.toString.call(t)!=="[object Object]"){const r=t[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable?!1:t.toString()===`[object ${r}]`}let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function qHe(t){if(kk(t))return t;if(Array.isArray(t)||eG(t)||t instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer)return t.slice(0);const e=Object.getPrototypeOf(t);if(e==null)return Object.assign(Object.create(e),t);const r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){const n=new r(t);return n.lastIndex=t.lastIndex,n}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let n;return t instanceof AggregateError?n=new r(t.errors,t.message,{cause:t.cause}):n=new r(t.message,{cause:t.cause}),n.stack=t.stack,Object.assign(n,t),n}if(typeof File<"u"&&t instanceof File)return new r([t],t.name,{type:t.type,lastModified:t.lastModified});if(typeof t=="object"){const n=Object.create(e);return Object.assign(n,t)}return t}function YHe(t,...e){const r=e.slice(0,-1),n=e[e.length-1];let i=t;for(let a=0;ar!=="constructor").length===0:e.length===0}return!0}var Ufe="​",VHe={curveBasis:US,curveBasisClosed:pYe,curveBasisOpen:gYe,curveBumpX:kde,curveBumpY:Ade,curveBundle:mYe,curveCardinalClosed:yYe,curveCardinalOpen:vYe,curveCardinal:Ode,curveCatmullRomClosed:_Ye,curveCatmullRomOpen:bYe,curveCatmullRom:Lde,curveLinear:KE,curveLinearClosed:EYe,curveMonotoneX:zde,curveMonotoneY:Ude,curveNatural:qde,curveStep:Yde,curveStepAfter:Vde,curveStepBefore:Hde},WHe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,KHe=S(function(t,e){const r=Gfe(t,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const s=r.map(o=>o.args);vC(s),n=Vi(n,[...s])}else n=r.args;if(!n)return;let i=pU(t,e);const a="config";return n[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[a],delete n[a]),n},"detectInit"),Gfe=S(function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${WHe.source})(?=[}][%]{2}).* +`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),ge.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let n;const i=[];for(;(n=HE.exec(t))!==null;)if(n.index===HE.lastIndex&&HE.lastIndex++,n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e)){const a=n[1]?n[1]:n[2],s=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:a,args:s})}return i.length===0?{type:t,args:null}:i.length===1?i[0]:i}catch(r){return ge.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),XHe=S(function(t){return t.replace(HE,"")},"removeDirectives"),jHe=S(function(t,e){for(const[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray");function tG(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return VHe[r]??e}S(tG,"interpolateToCurve");function qfe(t,e){const r=t.trim();if(r)return e.securityLevel!=="loose"?Kp.sanitizeUrl(r):r}S(qfe,"formatUrl");var QHe=S((t,...e)=>{const r=t.split("."),n=r.length-1,i=r[n];let a=window;for(let s=0;s{r+=rG(i,e),e=i});const n=r/2;return nG(t,n)}S(Yfe,"traverseEdge");function Hfe(t){return t.length===1?t[0]:Yfe(t)}S(Hfe,"calcLabelPosition");var kj=S((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),nG=S((t,e)=>{let r,n=e;for(const i of t){if(r){const a=rG(i,r);if(a===0)return r;if(a=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:kj((1-s)*r.x+s*i.x,5),y:kj((1-s)*r.y+s*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),ZHe=S((t,e,r)=>{ge.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const i=nG(e,25),a=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),o={x:0,y:0};return o.x=Math.sin(s)*a+(e[0].x+i.x)/2,o.y=-Math.cos(s)*a+(e[0].y+i.y)/2,o},"calcCardinalityPosition");function Vfe(t,e,r){const n=structuredClone(r);ge.info("our points",n),e!=="start_left"&&e!=="start_right"&&n.reverse();const i=25+t,a=nG(n,i),s=10+t*.5,o=Math.atan2(n[0].y-a.y,n[0].x-a.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(o+Math.PI)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o+Math.PI)*s+(n[0].y+a.y)/2):e==="end_right"?(l.x=Math.sin(o-Math.PI)*s+(n[0].x+a.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(n[0].y+a.y)/2-5):e==="end_left"?(l.x=Math.sin(o)*s+(n[0].x+a.x)/2-5,l.y=-Math.cos(o)*s+(n[0].y+a.y)/2-5):(l.x=Math.sin(o)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o)*s+(n[0].y+a.y)/2),l}S(Vfe,"calcTerminalLabelPosition");function iG(t){let e="",r="";for(const n of t)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}S(iG,"getStylesFromArray");var Aj=0,Wfe=S(()=>(Aj++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Aj),"generateId");function Kfe(t){let e="";const r="0123456789abcdef",n=r.length;for(let i=0;iKfe(t.length),"random"),JHe=S(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),eVe=S(function(t,e){const r=e.text.replace(qt.lineBreakRegex," "),[,n]=Y0(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);const a=i.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.attr("fill",e.fill),a.text(r),i},"drawSimpleText"),jE=sT((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r),qt.lineBreakRegex.test(t)))return t;const n=t.split(" ").filter(Boolean),i=[];let a="";return n.forEach((s,o)=>{const l=$s(`${s} `,r),u=$s(a,r);if(l>e){const{hyphenatedStrings:f,remainingWord:p}=tVe(s,e,"-",r);i.push(a,...f),a=p}else u+l>=e?(i.push(a),a=s):a=[a,s].filter(Boolean).join(" ");o+1===n.length&&i.push(a)}),i.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),tVe=sT((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const i=[...t],a=[];let s="";return i.forEach((o,l)=>{const u=`${s}${o}`;if($s(u,n)>=e){const h=l+1,f=i.length===h,p=`${u}${r}`;a.push(f?u:p),s=""}else s=u}),{hyphenatedStrings:a,remainingWord:s}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function KC(t,e){return Ik(t,e).height}S(KC,"calculateTextHeight");function $s(t,e){return Ik(t,e).width}S($s,"calculateTextWidth");var Ik=sT((t,e)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};const[,a]=Y0(r),s=["sans-serif",n],o=t.split(qt.lineBreakRegex),l=[],u=At("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const d=u.append("svg");for(const f of s){let p=0;const g={width:0,height:0,lineHeight:0};for(const m of o){const y=JHe();y.text=m||Ufe;const v=eVe(d,y).style("font-size",a).style("font-weight",i).style("font-family",f),b=(v._groups||v)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),p=Math.round(b.height),g.height+=p,g.lineHeight=Math.round(Math.max(g.lineHeight,p))}l.push(g)}d.remove();const h=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[h]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),T1,rVe=(T1=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},S(T1,"InitIDGenerator"),T1),wx,nVe=S(function(t){return wx=wx||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),wx.innerHTML=t,unescape(wx.textContent)},"entityDecode");function aG(t){return"str"in t}S(aG,"isDetailedError");var iVe=S((t,e,r,n)=>{if(!n)return;const i=t.node()?.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),Y0=S(t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function $i(t,e){return HHe({},t,e)}S($i,"cleanAndMerge");var Wr={assignWithDepth:Vi,wrapLabel:jE,calculateTextHeight:KC,calculateTextWidth:$s,calculateTextDimensions:Ik,cleanAndMerge:$i,detectInit:KHe,detectDirective:Gfe,isSubstringInArray:jHe,interpolateToCurve:tG,calcLabelPosition:Hfe,calcCardinalityPosition:ZHe,calcTerminalLabelPosition:Vfe,formatUrl:qfe,getStylesFromArray:iG,generateId:Wfe,random:Xfe,runFunc:QHe,entityDecode:nVe,insertTitle:iVe,isLabelCoordinateInPath:jfe,parseFontSize:Y0,InitIDGenerator:rVe},aVe=S(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){const n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"fl°°"+n+"¶ß":"fl°"+n+"¶ß"}),e},"encodeEntities"),x0=S(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Vm=S((t,e,{counter:r=0,prefix:n,suffix:i},a)=>a||`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");function Ba(t){return t??null}S(Ba,"handleUndefinedAttr");function jfe(t,e){const r=Math.round(t.x),n=Math.round(t.y),i=e.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return i.includes(r.toString())||i.includes(n.toString())}S(jfe,"isLabelCoordinateInPath");var oT=S(({flowchart:t})=>{const e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0,n=e+r;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins");async function sG(t,e){const r=t.getElementsByTagName("img");if(!r||r.length===0)return;const n=e.replace(/]*>/g,"").trim()==="";await Promise.all([...r].map(i=>new Promise(a=>{function s(){if(i.style.display="flex",i.style.flexDirection="column",n){const o=Ke().fontSize?Ke().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[u=on.fontSize]=Y0(o),d=u*l+"px";i.style.minWidth=d,i.style.maxWidth=d}else i.style.width="100%";a(i)}S(s,"setupImage"),setTimeout(()=>{i.complete&&s()}),i.addEventListener("error",s),i.addEventListener("load",s)})))}S(sG,"configureLabelImages");var sVe=S(t=>{const{handDrawnSeed:e}=Ke();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),Ub=S(t=>{const e=oVe([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),oVe=S(t=>{const e=new Map;return t.forEach(r=>{const[n,i]=r.split(":");e.set(n.trim(),i?.trim())}),e},"styles2Map"),oG=S(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),hr=S(t=>{const{stylesArray:e}=Ub(t),r=[],n=[],i=[],a=[];return e.forEach(s=>{const o=s[0];oG(o)?r.push(s.join(":")+" !important"):(n.push(s.join(":")+" !important"),o.includes("stroke")&&i.push(s.join(":")+" !important"),o==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:a}},"styles2String"),mr=S((t,e)=>{const{themeVariables:r,handDrawnSeed:n}=Ke(),{nodeBorder:i,mainBkg:a}=r,{stylesMap:s}=Ub(t);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||i,seed:n,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:lVe(s.get("stroke-dasharray"))},e)},"userNodeOverrides"),lVe=S(t=>{if(!t)return[0,0];const e=t.trim().split(/\s+/).map(Number);if(e.length===1){const i=isNaN(e[0])?0:e[0];return[i,i]}const r=isNaN(e[0])?0:e[0],n=isNaN(e[1])?0:e[1];return[r,n]},"getStrokeDashArray");const cVe=Object.freeze({left:0,top:0,width:16,height:16}),XC=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Qfe=Object.freeze({...cVe,...XC}),uVe=Object.freeze({...Qfe,body:"",hidden:!1}),dVe=Object.freeze({width:null,height:null}),hVe=Object.freeze({...dVe,...XC}),fVe=(t,e,r,n="")=>{const i=t.split(":");if(t.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const o=i.pop(),l=i.pop(),u={provider:i.length>0?i[0]:n,prefix:l,name:o};return pR(u)?u:null}const a=i[0],s=a.split("-");if(s.length>1){const o={provider:n,prefix:s.shift(),name:s.join("-")};return pR(o)?o:null}if(r&&n===""){const o={provider:n,prefix:"",name:a};return pR(o,r)?o:null}return null},pR=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function pVe(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const n=((t.rotate||0)+(e.rotate||0))%4;return n&&(r.rotate=n),r}function Rj(t,e){const r=pVe(t,e);for(const n in uVe)n in XC?n in t&&!(n in r)&&(r[n]=XC[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function gVe(t,e){const r=t.icons,n=t.aliases||Object.create(null),i=Object.create(null);function a(s){if(r[s])return i[s]=[];if(!(s in i)){i[s]=null;const o=n[s]&&n[s].parent,l=o&&a(o);l&&(i[s]=[o].concat(l))}return i[s]}return(e||Object.keys(r).concat(Object.keys(n))).forEach(a),i}function Nj(t,e,r){const n=t.icons,i=t.aliases||Object.create(null);let a={};function s(o){a=Rj(n[o]||i[o],a)}return s(e),r.forEach(s),Rj(t,a)}function mVe(t,e){if(t.icons[e])return Nj(t,e,[]);const r=gVe(t,[e])[e];return r?Nj(t,e,r):null}const yVe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,vVe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ij(t,e,r){if(e===1)return t;if(r=r||100,typeof t=="number")return Math.ceil(t*e*r)/r;if(typeof t!="string")return t;const n=t.split(yVe);if(n===null||!n.length)return t;const i=[];let a=n.shift(),s=vVe.test(a);for(;;){if(s){const o=parseFloat(a);isNaN(o)?i.push(a):i.push(Math.ceil(o*e*r)/r)}else i.push(a);if(a=n.shift(),a===void 0)return i.join("");s=!s}}function _Ve(t,e="defs"){let r="";const n=t.indexOf("<"+e);for(;n>=0;){const i=t.indexOf(">",n),a=t.indexOf("",a);if(s===-1)break;r+=t.slice(i+1,a).trim(),t=t.slice(0,n).trim()+t.slice(s+1)}return{defs:r,content:t}}function bVe(t,e){return t?""+t+""+e:e}function EVe(t,e,r){const n=_Ve(t);return bVe(n.defs,e+n.content+r)}const SVe=t=>t==="unset"||t==="undefined"||t==="none";function TVe(t,e){const r={...Qfe,...t},n={...hVe,...e},i={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,n].forEach(m=>{const y=[],v=m.hFlip,b=m.vFlip;let _=m.rotate;v?b?_+=2:(y.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),y.push("scale(-1 1)"),i.top=i.left=0):b&&(y.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),y.push("scale(1 -1)"),i.top=i.left=0);let E;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:E=i.height/2+i.top,y.unshift("rotate(90 "+E.toString()+" "+E.toString()+")");break;case 2:y.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:E=i.width/2+i.left,y.unshift("rotate(-90 "+E.toString()+" "+E.toString()+")");break}_%2===1&&(i.left!==i.top&&(E=i.left,i.left=i.top,i.top=E),i.width!==i.height&&(E=i.width,i.width=i.height,i.height=E)),y.length&&(a=EVe(a,'',""))});const s=n.width,o=n.height,l=i.width,u=i.height;let d,h;s===null?(h=o===null?"1em":o==="auto"?u:o,d=Ij(h,l/u)):(d=s==="auto"?l:s,h=o===null?Ij(d,u/l):o==="auto"?u:o);const f={},p=(m,y)=>{SVe(y)||(f[m]=y.toString())};p("width",d),p("height",h);const g=[i.left,i.top,l,u];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:a}}const xVe=/\sid="(\S+)"/g,Oj=new Map;function CVe(t){t=t.replace(/[0-9]+$/,"")||"a";const e=Oj.get(t)||0;return Oj.set(t,e+1),e?`${t}${e}`:t}function wVe(t){const e=[];let r;for(;r=xVe.exec(t);)e.push(r[1]);if(!e.length)return t;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(i=>{const a=CVe(i),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+n+"$3")}),t=t.replace(new RegExp(n,"g"),""),t}function kVe(t,e){let r=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in e)r+=" "+n+'="'+e[n]+'"';return'"+t+""}function lG(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Xp=lG();function Zfe(t){Xp=t}var QE={exec:()=>null};function Tn(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(Ls.caret,"$1"),r=r.replace(i,s),n},getRegex:()=>new RegExp(r,e)};return n}var AVe=(()=>{try{return!!new RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^
/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},RVe=/^(?:[ \t]*(?:\n|$))+/,NVe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,IVe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,lT=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,OVe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,cG=/(?:[*+-]|\d{1,9}[.)])/,Jfe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,epe=Tn(Jfe).replace(/bull/g,cG).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),DVe=Tn(Jfe).replace(/bull/g,cG).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),uG=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,LVe=/^[^\n]+/,dG=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,MVe=Tn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",dG).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),PVe=Tn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,cG).getRegex(),Ok="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",hG=/|$))/,BVe=Tn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",hG).replace("tag",Ok).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tpe=Tn(uG).replace("hr",lT).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ok).getRegex(),FVe=Tn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",tpe).getRegex(),fG={blockquote:FVe,code:NVe,def:MVe,fences:IVe,heading:OVe,hr:lT,html:BVe,lheading:epe,list:PVe,newline:RVe,paragraph:tpe,table:QE,text:LVe},Dj=Tn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",lT).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ok).getRegex(),$Ve={...fG,lheading:DVe,table:Dj,paragraph:Tn(uG).replace("hr",lT).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Dj).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ok).getRegex()},zVe={...fG,html:Tn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",hG).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:QE,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Tn(uG).replace("hr",lT).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",epe).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},UVe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,GVe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rpe=/^( {2,}|\\)\n(?!\s*$)/,qVe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",AVe?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ape=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,KVe=Tn(ape,"u").replace(/punct/g,Dk).getRegex(),XVe=Tn(ape,"u").replace(/punct/g,ipe).getRegex(),spe="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",jVe=Tn(spe,"gu").replace(/notPunctSpace/g,npe).replace(/punctSpace/g,pG).replace(/punct/g,Dk).getRegex(),QVe=Tn(spe,"gu").replace(/notPunctSpace/g,VVe).replace(/punctSpace/g,HVe).replace(/punct/g,ipe).getRegex(),ZVe=Tn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,npe).replace(/punctSpace/g,pG).replace(/punct/g,Dk).getRegex(),JVe=Tn(/\\(punct)/,"gu").replace(/punct/g,Dk).getRegex(),eWe=Tn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),tWe=Tn(hG).replace("(?:-->|$)","-->").getRegex(),rWe=Tn("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",tWe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),jC=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,nWe=Tn(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",jC).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ope=Tn(/^!?\[(label)\]\[(ref)\]/).replace("label",jC).replace("ref",dG).getRegex(),lpe=Tn(/^!?\[(ref)\](?:\[\])?/).replace("ref",dG).getRegex(),iWe=Tn("reflink|nolink(?!\\()","g").replace("reflink",ope).replace("nolink",lpe).getRegex(),Lj=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,gG={_backpedal:QE,anyPunctuation:JVe,autolink:eWe,blockSkip:WVe,br:rpe,code:GVe,del:QE,emStrongLDelim:KVe,emStrongRDelimAst:jVe,emStrongRDelimUnd:ZVe,escape:UVe,link:nWe,nolink:lpe,punctuation:YVe,reflink:ope,reflinkSearch:iWe,tag:rWe,text:qVe,url:QE},aWe={...gG,link:Tn(/^!?\[(label)\]\((.*?)\)/).replace("label",jC).getRegex(),reflink:Tn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",jC).getRegex()},_P={...gG,emStrongRDelimAst:QVe,emStrongLDelim:XVe,url:Tn(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Lj).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Tn(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},Mj=t=>oWe[t];function kc(t,e){if(e){if(Ls.escapeTest.test(t))return t.replace(Ls.escapeReplace,Mj)}else if(Ls.escapeTestNoEncode.test(t))return t.replace(Ls.escapeReplaceNoEncode,Mj);return t}function Pj(t){try{t=encodeURI(t).replace(Ls.percentDecode,"%")}catch{return null}return t}function Bj(t,e){let r=t.replace(Ls.findPipe,(a,s,o)=>{let l=!1,u=s;for(;--u>=0&&o[u]==="\\";)l=!l;return l?"|":" |"}),n=r.split(Ls.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length0?-2:-1}function Fj(t,e,r,n,i){let a=e.href,s=e.title||null,o=t[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}function cWe(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let i=n[1];return e.split(` `).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=i.length?a.slice(i.length):a}).join(` `)}var QC=class{options;rules;lexer;constructor(e){this.options=e||Xp}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:D2(n,` -`)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],i=lWe(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let i=D2(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:D2(r[0],` +`)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],i=cWe(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let i=D2(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:D2(r[0],` `)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let n=D2(r[0],` `).split(` `),i="",a="",s=[];for(;n.length>0;){let o=!1,l=[],u;for(u=0;uf.type==="space"),h=d.length>0&&d.some(f=>this.rules.other.anyLine.test(f.raw));a.loose=h}if(a.loose)for(let u=0;u({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[u]})));return s}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let n=r[1].charAt(r[1].length-1)===` -`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=D2(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=oWe(r[2],"()");if(s===-2)return;if(s>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(i);s&&(i=s[1],a=s[3])}else a=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),Fj(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[i.toLowerCase()];if(!a){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return Fj(n,a,n[0],this.lexer,this.rules)}}emStrong(e,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let a=[...i[0]].length-1,s,o,l=a,u=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*e.length+a);(i=d.exec(r))!=null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(o=[...s].length,i[3]||i[4]){l+=o;continue}else if((i[5]||i[6])&&a%3&&!((a+o)%3)){u+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+u);let h=[...i[0]][0].length,f=e.slice(0,a+i.index+h+o);if(Math.min(a,o)%2){let g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let n,i;return r[2]==="@"?(n=r[1],i="mailto:"+n):(n=r[1],i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let n,i;if(r[2]==="@")n=r[0],i="mailto:"+n;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(a!==r[0]);n=r[0],r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},Hl=class bP{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Xp,this.options.tokenizer=this.options.tokenizer||new QC,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Ls,block:kx.normal,inline:O2.normal};this.options.pedantic?(r.block=kx.pedantic,r.inline=O2.pedantic):this.options.gfm&&(r.block=kx.gfm,this.options.breaks?r.inline=O2.breaks:r.inline=O2.gfm),this.tokenizer.rules=r}static get rules(){return{block:kx,inline:O2}}static lex(e,r){return new bP(r).lex(e)}static lexInline(e,r){return new bP(r).inlineTokens(e)}lex(e){e=e.replace(Ls.carriageReturn,` +`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=D2(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=lWe(r[2],"()");if(s===-2)return;if(s>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(i);s&&(i=s[1],a=s[3])}else a=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),Fj(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[i.toLowerCase()];if(!a){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return Fj(n,a,n[0],this.lexer,this.rules)}}emStrong(e,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let a=[...i[0]].length-1,s,o,l=a,u=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*e.length+a);(i=d.exec(r))!=null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(o=[...s].length,i[3]||i[4]){l+=o;continue}else if((i[5]||i[6])&&a%3&&!((a+o)%3)){u+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+u);let h=[...i[0]][0].length,f=e.slice(0,a+i.index+h+o);if(Math.min(a,o)%2){let g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let n,i;return r[2]==="@"?(n=r[1],i="mailto:"+n):(n=r[1],i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let n,i;if(r[2]==="@")n=r[0],i="mailto:"+n;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(a!==r[0]);n=r[0],r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},Hl=class bP{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Xp,this.options.tokenizer=this.options.tokenizer||new QC,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Ls,block:kx.normal,inline:O2.normal};this.options.pedantic?(r.block=kx.pedantic,r.inline=O2.pedantic):this.options.gfm&&(r.block=kx.gfm,this.options.breaks?r.inline=O2.breaks:r.inline=O2.gfm),this.tokenizer.rules=r}static get rules(){return{block:kx,inline:O2}}static lex(e,r){return new bP(r).lex(e)}static lexInline(e,r){return new bP(r).inlineTokens(e)}lex(e){e=e.replace(Ls.carriageReturn,` `),this.blockTokens(e,this.tokens);for(let r=0;r(i=s.call({lexer:this},e,r))?(e=e.substring(i.raw.length),r.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let s=r.at(-1);i.raw.length===1&&s!==void 0?s.raw+=` `:r.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(` `)?"":` @@ -2784,27 +2784,27 @@ ${this.parser.parse(e)} ${e} `}tablecell(e){let r=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+r+` `}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${kc(e,!0)}`}br(e){return"
"}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:r,tokens:n}){let i=this.parser.parseInline(n),a=Pj(e);if(a===null)return i;e=a;let s='
",s}image({href:e,title:r,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let a=Pj(e);if(a===null)return kc(n);e=a;let s=`${n}{let o=a[s].flat(1/0);n=n.concat(this.walkTokens(o,r))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,r)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...o){let l=a.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){let a=this.defaults.renderer||new ZC(this.defaults);for(let s in n.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=n.renderer[o],u=a[o];a[o]=(...d)=>{let h=l.apply(a,d);return h===!1&&(h=u.apply(a,d)),h||""}}i.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new QC(this.defaults);for(let s in n.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=n.tokenizer[o],u=a[o];a[o]=(...d)=>{let h=l.apply(a,d);return h===!1&&(h=u.apply(a,d)),h}}i.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new dE;for(let s in n.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=n.hooks[o],u=a[o];dE.passThroughHooks.has(s)?a[o]=d=>{if(this.defaults.async&&dE.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await l.call(a,d);return u.call(a,f)})();let h=l.call(a,d);return u.call(a,h)}:a[o]=(...d)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(a,d);return f===!1&&(f=await u.apply(a,d)),f})();let h=l.apply(a,d);return h===!1&&(h=u.apply(a,d)),h}}i.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,s=n.walkTokens;i.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),a&&(l=l.concat(a.call(this,o))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return Hl.lex(e,r??this.defaults)}parser(e,r){return Vl.parse(e,r??this.defaults)}parseMarkdown(e){return(r,n)=>{let i={...n},a={...this.defaults,...i},s=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let o=a.hooks?await a.hooks.preprocess(r):r,l=await(a.hooks?await a.hooks.provideLexer():e?Hl.lex:Hl.lexInline)(o,a),u=a.hooks?await a.hooks.processAllTokens(l):l;a.walkTokens&&await Promise.all(this.walkTokens(u,a.walkTokens));let d=await(a.hooks?await a.hooks.provideParser():e?Vl.parse:Vl.parseInline)(u,a);return a.hooks?await a.hooks.postprocess(d):d})().catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));let o=(a.hooks?a.hooks.provideLexer():e?Hl.lex:Hl.lexInline)(r,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&this.walkTokens(o,a.walkTokens);let l=(a.hooks?a.hooks.provideParser():e?Vl.parse:Vl.parseInline)(o,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(o){return s(o)}}}onError(e,r){return n=>{if(n.message+=` -Please report this to https://github.com/markedjs/marked.`,e){let i="

An error occurred:

"+kc(n.message+"",!0)+"
";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},kp=new cWe;function Dn(t,e){return kp.parse(t,e)}Dn.options=Dn.setOptions=function(t){return kp.setOptions(t),Dn.defaults=kp.defaults,Zfe(Dn.defaults),Dn};Dn.getDefaults=lG;Dn.defaults=Xp;Dn.use=function(...t){return kp.use(...t),Dn.defaults=kp.defaults,Zfe(Dn.defaults),Dn};Dn.walkTokens=function(t,e){return kp.walkTokens(t,e)};Dn.parseInline=kp.parseInline;Dn.Parser=Vl;Dn.parser=Vl.parse;Dn.Renderer=ZC;Dn.TextRenderer=mG;Dn.Lexer=Hl;Dn.lexer=Hl.lex;Dn.Tokenizer=QC;Dn.Hooks=dE;Dn.parse=Dn;Dn.options;Dn.setOptions;Dn.use;Dn.walkTokens;Dn.parseInline;Vl.parse;Hl.lex;function cpe(t){for(var e=[],r=1;r{let o=a[s].flat(1/0);n=n.concat(this.walkTokens(o,r))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,r)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...o){let l=a.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){let a=this.defaults.renderer||new ZC(this.defaults);for(let s in n.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=n.renderer[o],u=a[o];a[o]=(...d)=>{let h=l.apply(a,d);return h===!1&&(h=u.apply(a,d)),h||""}}i.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new QC(this.defaults);for(let s in n.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=n.tokenizer[o],u=a[o];a[o]=(...d)=>{let h=l.apply(a,d);return h===!1&&(h=u.apply(a,d)),h}}i.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new dE;for(let s in n.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=n.hooks[o],u=a[o];dE.passThroughHooks.has(s)?a[o]=d=>{if(this.defaults.async&&dE.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await l.call(a,d);return u.call(a,f)})();let h=l.call(a,d);return u.call(a,h)}:a[o]=(...d)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(a,d);return f===!1&&(f=await u.apply(a,d)),f})();let h=l.apply(a,d);return h===!1&&(h=u.apply(a,d)),h}}i.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,s=n.walkTokens;i.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),a&&(l=l.concat(a.call(this,o))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return Hl.lex(e,r??this.defaults)}parser(e,r){return Vl.parse(e,r??this.defaults)}parseMarkdown(e){return(r,n)=>{let i={...n},a={...this.defaults,...i},s=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let o=a.hooks?await a.hooks.preprocess(r):r,l=await(a.hooks?await a.hooks.provideLexer():e?Hl.lex:Hl.lexInline)(o,a),u=a.hooks?await a.hooks.processAllTokens(l):l;a.walkTokens&&await Promise.all(this.walkTokens(u,a.walkTokens));let d=await(a.hooks?await a.hooks.provideParser():e?Vl.parse:Vl.parseInline)(u,a);return a.hooks?await a.hooks.postprocess(d):d})().catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));let o=(a.hooks?a.hooks.provideLexer():e?Hl.lex:Hl.lexInline)(r,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&this.walkTokens(o,a.walkTokens);let l=(a.hooks?a.hooks.provideParser():e?Vl.parse:Vl.parseInline)(o,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(o){return s(o)}}}onError(e,r){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,e){let i="

An error occurred:

"+kc(n.message+"",!0)+"
";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},kp=new uWe;function Dn(t,e){return kp.parse(t,e)}Dn.options=Dn.setOptions=function(t){return kp.setOptions(t),Dn.defaults=kp.defaults,Zfe(Dn.defaults),Dn};Dn.getDefaults=lG;Dn.defaults=Xp;Dn.use=function(...t){return kp.use(...t),Dn.defaults=kp.defaults,Zfe(Dn.defaults),Dn};Dn.walkTokens=function(t,e){return kp.walkTokens(t,e)};Dn.parseInline=kp.parseInline;Dn.Parser=Vl;Dn.parser=Vl.parse;Dn.Renderer=ZC;Dn.TextRenderer=mG;Dn.Lexer=Hl;Dn.lexer=Hl.lex;Dn.Tokenizer=QC;Dn.Hooks=dE;Dn.parse=Dn;Dn.options;Dn.setOptions;Dn.use;Dn.walkTokens;Dn.parseInline;Vl.parse;Hl.lex;function cpe(t){for(var e=[],r=1;r?',height:80,width:80},SP=new Map,dpe=new Map,hpe=S(t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(ge.debug("Registering icon pack:",e.name),"loader"in e)dpe.set(e.name,e.loader);else if("icons"in e)SP.set(e.name,e.icons);else throw ge.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),fpe=S(async(t,e)=>{const r=hVe(t,!0,e!==void 0);if(!r)throw new Error(`Invalid icon name: ${t}`);const n=r.prefix||e;if(!n)throw new Error(`Icon name must contain a prefix: ${t}`);let i=SP.get(n);if(!i){const s=dpe.get(n);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{i={...await s(),prefix:n},SP.set(n,i)}catch(o){throw ge.error(o),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=gVe(i,r.name);if(!a)throw new Error(`Icon not found: ${t}`);return a},"getRegisteredIconData"),uWe=S(async t=>{try{return await fpe(t),!0}catch{return!1}},"isIconAvailable"),sh=S(async(t,e,r)=>{let n;try{n=await fpe(t,e?.fallbackPrefix)}catch(s){ge.error(s),n=upe}const i=SVe(n,e),a=wVe(CVe(i.body),{...i.attributes,...r});return un(a,xr())},"getIconSVG");function ppe(t,{markdownAutoWrap:e}){const n=t.replace(//g,` +`)),s+=h+n[l+1]}),s}var upe={body:'?',height:80,width:80},SP=new Map,dpe=new Map,hpe=S(t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(ge.debug("Registering icon pack:",e.name),"loader"in e)dpe.set(e.name,e.loader);else if("icons"in e)SP.set(e.name,e.icons);else throw ge.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),fpe=S(async(t,e)=>{const r=fVe(t,!0,e!==void 0);if(!r)throw new Error(`Invalid icon name: ${t}`);const n=r.prefix||e;if(!n)throw new Error(`Icon name must contain a prefix: ${t}`);let i=SP.get(n);if(!i){const s=dpe.get(n);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{i={...await s(),prefix:n},SP.set(n,i)}catch(o){throw ge.error(o),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=mVe(i,r.name);if(!a)throw new Error(`Icon not found: ${t}`);return a},"getRegisteredIconData"),dWe=S(async t=>{try{return await fpe(t),!0}catch{return!1}},"isIconAvailable"),sh=S(async(t,e,r)=>{let n;try{n=await fpe(t,e?.fallbackPrefix)}catch(s){ge.error(s),n=upe}const i=TVe(n,e),a=kVe(wVe(i.body),{...i.attributes,...r});return un(a,xr())},"getIconSVG");function ppe(t,{markdownAutoWrap:e}){const n=t.replace(//g,` `).replace(/\n{2,}/g,` `);return cpe(n)}S(ppe,"preprocessMarkdown");function gpe(t){return t.split(/\\n|\n|/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(r=>({content:r,type:"normal"}))??[])}S(gpe,"nonMarkdownToLines");function mpe(t,e={}){const r=ppe(t,e),n=Dn.lexer(r),i=[[]];let a=0;function s(o,l="normal"){o.type==="text"?o.text.split(` `).forEach((d,h)=>{h!==0&&(a++,i.push([])),d.split(" ").forEach(f=>{f=f.replace(/'/g,"'"),f&&i[a].push({content:f,type:l})})}):o.type==="strong"||o.type==="em"?o.tokens.forEach(u=>{s(u,o.type)}):o.type==="html"&&i[a].push({content:o.text,type:"normal"})}return S(s,"processNode"),n.forEach(o=>{o.type==="paragraph"?o.tokens?.forEach(l=>{s(l)}):o.type==="html"?i[a].push({content:o.text,type:"normal"}):i[a].push({content:o.raw,type:"normal"})}),i}S(mpe,"markdownToLines");function ype(t){return t?`

${t.replace(/\\n|\n/g,"
")}

`:""}S(ype,"nonMarkdownToHTML");function vpe(t,{markdownAutoWrap:e}={}){const r=Dn.lexer(t);function n(i){return i.type==="text"?e===!1?i.text.replace(/\n */g,"
").replace(/ /g," "):i.text.replace(/\n */g,"
"):i.type==="strong"?`${i.tokens?.map(n).join("")}`:i.type==="em"?`${i.tokens?.map(n).join("")}`:i.type==="paragraph"?`

${i.tokens?.map(n).join("")}

`:i.type==="space"?"":i.type==="html"?`${i.text}`:i.type==="escape"?i.text:(ge.warn(`Unsupported markdown: ${i.type}`),i.raw)}return S(n,"output"),r.map(n).join("")}S(vpe,"markdownToHTML");function _pe(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}S(_pe,"splitTextToChars");function bpe(t,e){const r=_pe(e.content);return yG(t,[],r,e.type)}S(bpe,"splitWordToFitWidth");function yG(t,e,r,n){if(r.length===0)return[{content:e.join(""),type:n},{content:"",type:n}];const[i,...a]=r,s=[...e,i];return t([{content:s.join(""),type:n}])?yG(t,s,a,n):(e.length===0&&i&&(e.push(i),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}S(yG,"splitWordToFitWidthRecursion");function Epe(t,e){if(t.some(({content:r})=>r.includes(` `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return JC(t,e)}S(Epe,"splitLineToFitWidth");function JC(t,e,r=[],n=[]){if(t.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";t[0].content===" "&&(i=" ",t.shift());const a=t.shift()??{content:" ",type:"normal"},s=[...n];if(i!==""&&s.push({content:i,type:"normal"}),s.push(a),e(s))return JC(t,e,r,s);if(n.length>0)r.push(n),t.unshift(a);else if(a.content){const[o,l]=bpe(e,a);r.push([o]),l.content&&t.unshift(l)}return JC(t,e,r)}S(JC,"splitLineToFitWidthRecursion");function TP(t,e){e&&t.attr("style",e)}S(TP,"applyStyle");var $j=16384;async function Spe(t,e,r,n,i=!1,a=xr()){const s=t.append("foreignObject");s.attr("width",`${Math.min(10*r,$j)}px`),s.attr("height",`${Math.min(10*r,$j)}px`);const o=s.append("xhtml:div"),l=Xi(e.label)?await pk(e.label.replace(qt.lineBreakRegex,` -`),a):un(e.label,a),u=e.isNode?"nodeLabel":"edgeLabel",d=o.append("span");d.html(l),TP(d,e.labelStyle),d.attr("class",`${u} ${n}`),TP(o,e.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(o.style("max-width",r+"px"),o.style("text-align","center")),o.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&o.attr("class","labelBkg");let h=o.node().getBoundingClientRect();return h.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),h=o.node().getBoundingClientRect()),s.node()}S(Spe,"addHtmlSpan");function Lk(t,e,r,n=!1){const i=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return n&&i.attr("text-anchor","middle"),i}S(Lk,"createTspan");function Tpe(t,e,r){const n=t.append("text"),i=Lk(n,1,e);Mk(i,r);const a=i.node().getComputedTextLength();return n.remove(),a}S(Tpe,"computeWidthOfText");function xpe(t,e,r){const n=t.append("text"),i=Lk(n,1,e);Mk(i,[{content:r,type:"normal"}]);const a=i.node()?.getBoundingClientRect();return a&&n.remove(),a}S(xpe,"computeDimensionOfText");function Cpe(t,e,r,n=!1,i=!1){const s=e.append("g"),o=s.insert("rect").attr("class","background").attr("style","stroke: none"),l=s.append("text").attr("y","-10.1");i&&l.attr("text-anchor","middle");let u=0;for(const d of r){const h=S(p=>Tpe(s,1.1,p)<=t,"checkWidth"),f=h(d)?[d]:Epe(d,h);for(const p of f){const g=Lk(l,u,1.1,i);Mk(g,p),u++}}if(n){const d=l.node().getBBox(),h=2;return o.attr("x",d.x-h).attr("y",d.y-h).attr("width",d.width+2*h).attr("height",d.height+2*h),s.node()}else return l.node()}S(Cpe,"createFormattedText");function xP(t){const e=/&(amp|lt|gt);/g;return t.replace(e,(r,n)=>{switch(n){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}S(xP,"decodeHTMLEntities");function Mk(t,e){t.text(""),e.forEach((r,n)=>{const i=t.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(xP(r.content)):i.text(" "+xP(r.content))})}S(Mk,"updateTextContentAndStyles");async function wpe(t,e={}){const r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(i,a,s)=>(r.push((async()=>{const o=`${a}:${s}`;return await uWe(o)?await sh(o,void 0,{class:"label-icon"}):``})()),i));const n=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>n.shift()??"")}S(wpe,"replaceIconSubstring");var Zs=S(async(t,e="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,markdown:s=!0,isNode:o=!0,width:l=200,addSvgBackground:u=!1}={},d)=>{if(ge.debug("XYZ createText",e,r,n,i,a,o,"addSvgBackground: ",u),a){const h=s?vpe(e,d):ype(e),f=await wpe(x0(h),d),p=e.replace(/\\\\/g,"\\"),g={isNode:o,label:Xi(e)?p:f,labelStyle:r.replace("fill:","color:")};return await Spe(t,g,l,i,u,d)}else{const h=x0(e.replace(//g,"
")),f=s?mpe(h.replace("
","
"),d):gpe(h),p=Cpe(l,t,f,e?u:!1,!o);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");At(p).attr("style",g)}else{const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");At(p).select("rect").attr("style",g.replace(/background:/g,"fill:"));const m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");At(p).select("text").attr("style",m)}return n?At(p).selectAll("tspan.text-outer-tspan").classed("title-row",!0):At(p).selectAll("tspan.text-outer-tspan").classed("row",!0),p}},"createText");function gR(t,e,r){if(t&&t.length){const[n,i]=e,a=Math.PI/180*r,s=Math.cos(a),o=Math.sin(a);for(const l of t){const[u,d]=l;l[0]=(u-n)*s-(d-i)*o+n,l[1]=(u-n)*o+(d-i)*s+i}}}function dWe(t,e){return t[0]===e[0]&&t[1]===e[1]}function hWe(t,e,r,n=1){const i=r,a=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,o=[0,0];if(i)for(const u of s)gR(u,o,i);const l=(function(u,d,h){const f=[];for(const b of u){const _=[...b];dWe(_[0],_[_.length-1])||_.push([_[0][0],_[0][1]]),_.length>2&&f.push(_)}const p=[];d=Math.max(d,.1);const g=[];for(const b of f)for(let _=0;_b.ymin<_.ymin?-1:b.ymin>_.ymin?1:b.x<_.x?-1:b.x>_.x?1:b.ymax===_.ymax?0:(b.ymax-_.ymax)/Math.abs(b.ymax-_.ymax))),!g.length)return p;let m=[],y=g[0].ymin,v=0;for(;m.length||g.length;){if(g.length){let b=-1;for(let _=0;_y);_++)b=_;g.splice(0,b+1).forEach((_=>{m.push({s:y,edge:_})}))}if(m=m.filter((b=>!(b.edge.ymax<=y))),m.sort(((b,_)=>b.edge.x===_.edge.x?0:(b.edge.x-_.edge.x)/Math.abs(b.edge.x-_.edge.x))),(h!==1||v%d==0)&&m.length>1)for(let b=0;b=m.length)break;const E=m[b].edge,x=m[_].edge;p.push([[Math.round(E.x),y],[Math.round(x.x),y]])}y+=h,m.forEach((b=>{b.edge.x=b.edge.x+h*b.edge.islope})),v++}return p})(s,a,n);if(i){for(const u of s)gR(u,o,-i);(function(u,d,h){const f=[];u.forEach((p=>f.push(...p))),gR(f,d,h)})(l,o,-i)}return l}function cT(t,e){var r;const n=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let a=1;return e.roughness>=1&&(((r=e.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=i),hWe(t,i,n,a||1)}class vG{constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){const n=cT(e,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(e,r){const n=[];for(const i of e)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],r));return n}}function Pk(t){const e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class fWe extends vG{fillPolygons(e,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);const i=cT(e,Object.assign({},r,{hachureGap:n})),a=Math.PI/180*r.hachureAngle,s=[],o=.5*n*Math.cos(a),l=.5*n*Math.sin(a);for(const[u,d]of i)Pk([u,d])&&s.push([[u[0]-o,u[1]+l],[...d]],[[u[0]+o,u[1]-l],[...d]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}}class pWe extends vG{fillPolygons(e,r){const n=this._fillPolygons(e,r),i=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(e,i);return n.ops=n.ops.concat(a.ops),n}}let gWe=class{constructor(e){this.helper=e}fillPolygons(e,r){const n=cT(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(e,r){const n=[];let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const s=i/4;for(const o of e){const l=Pk(o),u=l/i,d=Math.ceil(u)-1,h=l-d*i,f=(o[0][0]+o[1][0])/2-i/4,p=Math.min(o[0][1],o[1][1]);for(let g=0;g{const o=Pk(s),l=Math.floor(o/(n+i)),u=(o+i-l*(n+i))/2;let d=s[0],h=s[1];d[0]>h[0]&&(d=s[1],h=s[0]);const f=Math.atan((h[1]-d[1])/(h[0]-d[0]));for(let p=0;p{const s=Pk(a),o=Math.round(s/(2*r));let l=a[0],u=a[1];l[0]>u[0]&&(l=a[1],u=a[0]);const d=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let h=0;hd%2?u+r:u+e));a.push({key:"C",data:l}),e=l[4],r=l[5];break}case"Q":a.push({key:"Q",data:[...o]}),e=o[2],r=o[3];break;case"q":{const l=o.map(((u,d)=>d%2?u+r:u+e));a.push({key:"Q",data:l}),e=l[2],r=l[3];break}case"A":a.push({key:"A",data:[...o]}),e=o[5],r=o[6];break;case"a":e+=o[5],r+=o[6],a.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],e,r]});break;case"H":a.push({key:"H",data:[...o]}),e=o[0];break;case"h":e+=o[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...o]}),e=o[2],r=o[3];break;case"s":{const l=o.map(((u,d)=>d%2?u+r:u+e));a.push({key:"S",data:l}),e=l[2],r=l[3];break}case"T":a.push({key:"T",data:[...o]}),e=o[0],r=o[1];break;case"t":e+=o[0],r+=o[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function Ape(t){const e=[];let r="",n=0,i=0,a=0,s=0,o=0,l=0;for(const{key:u,data:d}of t){switch(u){case"M":e.push({key:"M",data:[...d]}),[n,i]=d,[a,s]=d;break;case"C":e.push({key:"C",data:[...d]}),n=d[4],i=d[5],o=d[2],l=d[3];break;case"L":e.push({key:"L",data:[...d]}),[n,i]=d;break;case"H":n=d[0],e.push({key:"L",data:[n,i]});break;case"V":i=d[0],e.push({key:"L",data:[n,i]});break;case"S":{let h=0,f=0;r==="C"||r==="S"?(h=n+(n-o),f=i+(i-l)):(h=n,f=i),e.push({key:"C",data:[h,f,...d]}),o=d[0],l=d[1],n=d[2],i=d[3];break}case"T":{const[h,f]=d;let p=0,g=0;r==="Q"||r==="T"?(p=n+(n-o),g=i+(i-l)):(p=n,g=i);const m=n+2*(p-n)/3,y=i+2*(g-i)/3,v=h+2*(p-h)/3,b=f+2*(g-f)/3;e.push({key:"C",data:[m,y,v,b,h,f]}),o=p,l=g,n=h,i=f;break}case"Q":{const[h,f,p,g]=d,m=n+2*(h-n)/3,y=i+2*(f-i)/3,v=p+2*(h-p)/3,b=g+2*(f-g)/3;e.push({key:"C",data:[m,y,v,b,p,g]}),o=h,l=f,n=p,i=g;break}case"A":{const h=Math.abs(d[0]),f=Math.abs(d[1]),p=d[2],g=d[3],m=d[4],y=d[5],v=d[6];h===0||f===0?(e.push({key:"C",data:[n,i,y,v,y,v]}),n=y,i=v):(n!==y||i!==v)&&(Rpe(n,i,y,v,h,f,p,g,m).forEach((function(b){e.push({key:"C",data:b})})),n=y,i=v);break}case"Z":e.push({key:"Z",data:[]}),n=a,i=s}r=u}return e}function L2(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function Rpe(t,e,r,n,i,a,s,o,l,u){const d=(h=s,Math.PI*h/180);var h;let f=[],p=0,g=0,m=0,y=0;if(u)[p,g,m,y]=u;else{[t,e]=L2(t,e,-d),[r,n]=L2(r,n,-d);const F=(t-r)/2,A=(e-n)/2;let I=F*F/(i*i)+A*A/(a*a);I>1&&(I=Math.sqrt(I),i*=I,a*=I);const D=i*i,L=a*a,R=D*L-D*A*A-L*F*F,P=D*A*A+L*F*F,z=(o===l?-1:1)*Math.sqrt(Math.abs(R/P));m=z*i*A/a+(t+r)/2,y=z*-a*F/i+(e+n)/2,p=Math.asin(parseFloat(((e-y)/a).toFixed(9))),g=Math.asin(parseFloat(((n-y)/a).toFixed(9))),tg&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let v=g-p;if(Math.abs(v)>120*Math.PI/180){const F=g,A=r,I=n;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=Rpe(r=m+i*Math.cos(g),n=y+a*Math.sin(g),A,I,i,a,s,0,l,[g,F,m,y])}v=g-p;const b=Math.cos(p),_=Math.sin(p),E=Math.cos(g),x=Math.sin(g),C=Math.tan(v/4),T=4/3*i*C,w=4/3*a*C,N=[t,e],O=[t+T*_,e-w*b],M=[r+T*x,n-w*E],$=[r,n];if(O[0]=2*N[0]-O[0],O[1]=2*N[1]-O[1],u)return[O,M,$].concat(f);{f=[O,M,$].concat(f);const F=[];for(let A=0;A2){const i=[];for(let a=0;a2*Math.PI&&(p=0,g=2*Math.PI);const m=2*Math.PI/l.curveStepCount,y=Math.min(m/2,(g-p)/2),v=Vj(y,u,d,h,f,p,g,1,l);if(!l.disableMultiStroke){const b=Vj(y,u,d,h,f,p,g,1.5,l);v.push(...b)}return s&&(o?v.push(...oh(u,d,u+h*Math.cos(p),d+f*Math.sin(p),l),...oh(u,d,u+h*Math.cos(g),d+f*Math.sin(g),l)):v.push({op:"lineTo",data:[u,d]},{op:"lineTo",data:[u+h*Math.cos(p),d+f*Math.sin(p)]})),{type:"path",ops:v}}function qj(t,e){const r=Ape(kpe(_G(t))),n=[];let i=[0,0],a=[0,0];for(const{key:s,data:o}of r)switch(s){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":n.push(...oh(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{const[l,u,d,h,f,p]=o;n.push(...SWe(l,u,d,h,f,p,a,e)),a=[f,p];break}case"Z":n.push(...oh(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:n}}function vR(t,e){const r=[];for(const n of t)if(n.length){const i=e.maxRandomnessOffset||0,a=n.length;if(a>2){r.push({op:"move",data:[n[0][0]+Br(i,e),n[0][1]+Br(i,e)]});for(let s=1;s500?.4:-.0016668*l+1.233334;let d=i.maxRandomnessOffset||0;d*d*100>o&&(d=l/10);const h=d/2,f=.2+.2*Ope(i);let p=i.bowing*i.maxRandomnessOffset*(n-e)/200,g=i.bowing*i.maxRandomnessOffset*(t-r)/200;p=Br(p,i,u),g=Br(g,i,u);const m=[],y=()=>Br(h,i,u),v=()=>Br(d,i,u),b=i.preserveVertices;return s?m.push({op:"move",data:[t+(b?0:y()),e+(b?0:y())]}):m.push({op:"move",data:[t+(b?0:Br(d,i,u)),e+(b?0:Br(d,i,u))]}),s?m.push({op:"bcurveTo",data:[p+t+(r-t)*f+y(),g+e+(n-e)*f+y(),p+t+2*(r-t)*f+y(),g+e+2*(n-e)*f+y(),r+(b?0:y()),n+(b?0:y())]}):m.push({op:"bcurveTo",data:[p+t+(r-t)*f+v(),g+e+(n-e)*f+v(),p+t+2*(r-t)*f+v(),g+e+2*(n-e)*f+v(),r+(b?0:v()),n+(b?0:v())]}),m}function Rx(t,e,r){if(!t.length)return[];const n=[];n.push([t[0][0]+Br(e,r),t[0][1]+Br(e,r)]),n.push([t[0][0]+Br(e,r),t[0][1]+Br(e,r)]);for(let i=1;i3){const a=[],s=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let o=1;o+21&&i.push(o)):i.push(o),i.push(t[e+3])}else{const l=t[e+0],u=t[e+1],d=t[e+2],h=t[e+3],f=bf(l,u,.5),p=bf(u,d,.5),g=bf(d,h,.5),m=bf(f,p,.5),y=bf(p,g,.5),v=bf(m,y,.5);kP([l,f,m,v],0,r,i),kP([v,y,g,h],0,r,i)}var a,s;return i}function xWe(t,e){return r6(t,0,t.length,e)}function r6(t,e,r,n,i){const a=i||[],s=t[e],o=t[r-1];let l=0,u=1;for(let d=e+1;dl&&(l=h,u=d)}return Math.sqrt(l)>n?(r6(t,e,u+1,n,a),r6(t,u,r,n,a)):(a.length||a.push(s),a.push(o)),a}function _R(t,e=.15,r){const n=[],i=(t.length-1)/3;for(let a=0;a0?r6(n,0,n.length,r):n}const ko="none";class n6{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,r,n){return{shape:e,sets:r||[],options:n||this.defaultOptions}}line(e,r,n,i,a){const s=this._o(a);return this._d("line",[Npe(e,r,n,i,s)],s)}rectangle(e,r,n,i,a){const s=this._o(a),o=[],l=EWe(e,r,n,i,s);if(s.fill){const u=[[e,r],[e+n,r],[e+n,r+i],[e,r+i]];s.fillStyle==="solid"?o.push(vR([u],s)):o.push(Lg([u],s))}return s.stroke!==ko&&o.push(l),this._d("rectangle",o,s)}ellipse(e,r,n,i,a){const s=this._o(a),o=[],l=Ipe(n,i,s),u=CP(e,r,s,l);if(s.fill)if(s.fillStyle==="solid"){const d=CP(e,r,s,l).opset;d.type="fillPath",o.push(d)}else o.push(Lg([u.estimatedPoints],s));return s.stroke!==ko&&o.push(u.opset),this._d("ellipse",o,s)}circle(e,r,n,i){const a=this.ellipse(e,r,n,n,i);return a.shape="circle",a}linearPath(e,r){const n=this._o(r);return this._d("linearPath",[e5(e,!1,n)],n)}arc(e,r,n,i,a,s,o=!1,l){const u=this._o(l),d=[],h=Gj(e,r,n,i,a,s,o,!0,u);if(o&&u.fill)if(u.fillStyle==="solid"){const f=Object.assign({},u);f.disableMultiStroke=!0;const p=Gj(e,r,n,i,a,s,!0,!1,f);p.type="fillPath",d.push(p)}else d.push((function(f,p,g,m,y,v,b){const _=f,E=p;let x=Math.abs(g/2),C=Math.abs(m/2);x+=Br(.01*x,b),C+=Br(.01*C,b);let T=y,w=v;for(;T<0;)T+=2*Math.PI,w+=2*Math.PI;w-T>2*Math.PI&&(T=0,w=2*Math.PI);const N=(w-T)/b.curveStepCount,O=[];for(let M=T;M<=w;M+=N)O.push([_+x*Math.cos(M),E+C*Math.sin(M)]);return O.push([_+x*Math.cos(w),E+C*Math.sin(w)]),O.push([_,E]),Lg([O],b)})(e,r,n,i,a,s,u));return u.stroke!==ko&&d.push(h),this._d("arc",d,u)}curve(e,r){const n=this._o(r),i=[],a=Uj(e,n);if(n.fill&&n.fill!==ko)if(n.fillStyle==="solid"){const s=Uj(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],o=e;if(o.length){const l=typeof o[0][0]=="number"?[o]:o;for(const u of l)u.length<3?s.push(...u):u.length===3?s.push(..._R(Wj([u[0],u[0],u[1],u[2]]),10,(1+n.roughness)/2)):s.push(..._R(Wj(u),10,(1+n.roughness)/2))}s.length&&i.push(Lg([s],n))}return n.stroke!==ko&&i.push(a),this._d("curve",i,n)}polygon(e,r){const n=this._o(r),i=[],a=e5(e,!0,n);return n.fill&&(n.fillStyle==="solid"?i.push(vR([e],n)):i.push(Lg([e],n))),n.stroke!==ko&&i.push(a),this._d("polygon",i,n)}path(e,r){const n=this._o(r),i=[];if(!e)return this._d("path",i,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=n.fill&&n.fill!=="transparent"&&n.fill!==ko,s=n.stroke!==ko,o=!!(n.simplification&&n.simplification<1),l=(function(d,h,f){const p=Ape(kpe(_G(d))),g=[];let m=[],y=[0,0],v=[];const b=()=>{v.length>=4&&m.push(..._R(v,h)),v=[]},_=()=>{b(),m.length&&(g.push(m),m=[])};for(const{key:x,data:C}of p)switch(x){case"M":_(),y=[C[0],C[1]],m.push(y);break;case"L":b(),m.push([C[0],C[1]]);break;case"C":if(!v.length){const T=m.length?m[m.length-1]:y;v.push([T[0],T[1]])}v.push([C[0],C[1]]),v.push([C[2],C[3]]),v.push([C[4],C[5]]);break;case"Z":b(),m.push([y[0],y[1]])}if(_(),!f)return g;const E=[];for(const x of g){const C=xWe(x,f);C.length&&E.push(C)}return E})(e,1,o?4-4*(n.simplification||1):(1+n.roughness)/2),u=qj(e,n);if(a)if(n.fillStyle==="solid")if(l.length===1){const d=qj(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else i.push(vR(l,n));else i.push(Lg(l,n));return s&&(o?l.forEach((d=>{i.push(e5(d,!1,n))})):i.push(u)),this._d("path",i,n)}opsToPath(e,r){let n="";for(const i of e.ops){const a=typeof r=="number"&&r>=0?i.data.map((s=>+s.toFixed(r))):i.data;switch(i.op){case"move":n+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":n+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":n+=`L${a[0]} ${a[1]} `}}return n.trim()}toPaths(e){const r=e.sets||[],n=e.options||this.defaultOptions,i=[];for(const a of r){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:ko};break;case"fillPath":s={d:this.opsToPath(a),stroke:ko,strokeWidth:0,fill:n.fill||ko};break;case"fillSketch":s=this.fillSketch(a,n)}s&&i.push(s)}return i}fillSketch(e,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||ko,strokeWidth:n,fill:ko}}_mergedShape(e){return e.filter(((r,n)=>n===0||r.op!=="move"))}}class CWe{constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new n6(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.ctx,a=e.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":i.save(),i.strokeStyle=n.stroke==="none"?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,s,a),i.restore();break;case"fillPath":{i.save(),i.fillStyle=n.fill||"";const o=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,a,o),i.restore();break}case"fillSketch":this.fillSketch(i,s,n)}}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=i,this._drawToContext(e,r,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,n,i="nonzero"){e.beginPath();for(const a of r.ops){const s=typeof n=="number"&&n>=0?a.data.map((o=>+o.toFixed(n))):a.data;switch(a.op){case"move":e.moveTo(s[0],s[1]);break;case"bcurveTo":e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":e.lineTo(s[0],s[1])}}r.type==="fillPath"?e.fill(i):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,n,i,a){const s=this.gen.line(e,r,n,i,a);return this.draw(s),s}rectangle(e,r,n,i,a){const s=this.gen.rectangle(e,r,n,i,a);return this.draw(s),s}ellipse(e,r,n,i,a){const s=this.gen.ellipse(e,r,n,i,a);return this.draw(s),s}circle(e,r,n,i){const a=this.gen.circle(e,r,n,i);return this.draw(a),a}linearPath(e,r){const n=this.gen.linearPath(e,r);return this.draw(n),n}polygon(e,r){const n=this.gen.polygon(e,r);return this.draw(n),n}arc(e,r,n,i,a,s,o=!1,l){const u=this.gen.arc(e,r,n,i,a,s,o,l);return this.draw(u),u}curve(e,r){const n=this.gen.curve(e,r);return this.draw(n),n}path(e,r){const n=this.gen.path(e,r);return this.draw(n),n}}const Nx="http://www.w3.org/2000/svg";class wWe{constructor(e,r){this.svg=e,this.gen=new n6(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,a=i.createElementNS(Nx,"g"),s=e.options.fixedDecimalPlaceDigits;for(const o of r){let l=null;switch(o.type){case"path":l=i.createElementNS(Nx,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke",n.stroke),l.setAttribute("stroke-width",n.strokeWidth+""),l.setAttribute("fill","none"),n.strokeLineDash&&l.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":l=i.createElementNS(Nx,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",n.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(i,o,n)}l&&a.appendChild(l)}return a}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);const a=e.createElementNS(Nx,"path");return a.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),a.setAttribute("stroke",n.fill||""),a.setAttribute("stroke-width",i+""),a.setAttribute("fill","none"),n.fillLineDash&&a.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,n,i,a){const s=this.gen.line(e,r,n,i,a);return this.draw(s)}rectangle(e,r,n,i,a){const s=this.gen.rectangle(e,r,n,i,a);return this.draw(s)}ellipse(e,r,n,i,a){const s=this.gen.ellipse(e,r,n,i,a);return this.draw(s)}circle(e,r,n,i){const a=this.gen.circle(e,r,n,i);return this.draw(a)}linearPath(e,r){const n=this.gen.linearPath(e,r);return this.draw(n)}polygon(e,r){const n=this.gen.polygon(e,r);return this.draw(n)}arc(e,r,n,i,a,s,o=!1,l){const u=this.gen.arc(e,r,n,i,a,s,o,l);return this.draw(u)}curve(e,r){const n=this.gen.curve(e,r);return this.draw(n)}path(e,r){const n=this.gen.path(e,r);return this.draw(n)}}var gr={canvas:(t,e)=>new CWe(t,e),svg:(t,e)=>new wWe(t,e),generator:t=>new n6(t),newSeed:()=>n6.newSeed()},Mr=S(async(t,e,r)=>{let n;const i=e.useHtmlLabels||q0(Ke()?.htmlLabels);r?n=r:n="node default";const a=t.insert("g").attr("class",n).attr("id",e.domId||e.id),s=a.insert("g").attr("class","label").attr("style",Ba(e.labelStyle));let o;e.label===void 0?o="":o=typeof e.label=="string"?e.label:e.label[0];const l=!!e.icon||!!e.img,u=e.labelType==="markdown",d=await Zs(s,un(x0(o),Ke()),{useHtmlLabels:i,width:e.width||Ke().flowchart?.wrappingWidth,classes:u?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:l,markdown:u},Ke());let h=d.getBBox();const f=(e?.padding??0)/2;if(i){const p=d.children[0],g=At(d);await sG(p,o),h=p.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}return i?s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):s.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:h,halfPadding:f,label:s}},"labelHelper"),bR=S(async(t,e,r)=>{const n=r.useHtmlLabels??In(Ke()),i=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await Zs(i,un(x0(e),Ke()),{useHtmlLabels:n,width:r.width||Ke()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=a.getBBox();const o=r.padding/2;if(In(Ke())){const l=a.children[0],u=At(a);s=l.getBoundingClientRect(),u.attr("width",s.width),u.attr("height",s.height)}return n?i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):i.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:t,bbox:s,halfPadding:o,label:i}},"insertLabel"),yr=S((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),Or=S((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function hn(t){const e=t.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return e.push("Z"),e.join(" ")}S(hn,"createPathFromPoints");function lh(t,e,r,n,i,a){const s=[],l=r-t,u=n-e,d=l/a,h=2*Math.PI/d,f=e+u/2;for(let p=0;p<=50;p++){const g=p/50,m=t+g*l,y=f+i*Math.sin(h*(m-t));s.push({x:m,y})}return s}S(lh,"generateFullSineWavePoints");function WS(t,e,r,n,i,a){const s=[],o=i*Math.PI/180,d=(a*Math.PI/180-o)/(n-1);for(let h=0;hl.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),n=e.map(l=>l.getAttribute("d")).filter(l=>l!==null).join(" ");r.setAttribute("d",n);const i=e.find(l=>l.getAttribute("fill")!=="none"),a=e.find(l=>l.getAttribute("stroke")!=="none"),s=S((l,u)=>l?.getAttribute(u)??void 0,"getAttr");if(i){const l={fill:s(i,"fill"),"fill-opacity":s(i,"fill-opacity")??"1"};Object.entries(l).forEach(([u,d])=>{d&&r.setAttribute(u,d)})}if(a){const l={stroke:s(a,"stroke"),"stroke-width":s(a,"stroke-width")??"1","stroke-opacity":s(a,"stroke-opacity")??"1"};Object.entries(l).forEach(([u,d])=>{d&&r.setAttribute(u,d)})}const o=document.createElementNS("http://www.w3.org/2000/svg","g");return o.appendChild(r),o}S(AP,"mergePaths");var kWe=S((t,e)=>{var r=t.x,n=t.y,i=e.x-r,a=e.y-n,s=t.width/2,o=t.height/2,l,u;return Math.abs(a)*s>Math.abs(i)*o?(a<0&&(o=-o),l=a===0?0:o*i/a,u=o):(i<0&&(s=-s),l=s,u=i===0?0:s*a/i),{x:r+l,y:n+u}},"intersectRect"),Gb=kWe,AWe=S(async(t,e,r,n=!1,i=!1)=>{let a=e||"";typeof a=="object"&&(a=a[0]);const s=Ke(),o=In(s);return await Zs(t,a,{style:r,isTitle:n,useHtmlLabels:o,markdown:!1,isNode:i,width:Number.POSITIVE_INFINITY},s)},"createLabel"),Bd=AWe,Nh=S((t,e,r,n,i)=>["M",t+i,e,"H",t+r-i,"A",i,i,0,0,1,t+r,e+i,"V",e+n-i,"A",i,i,0,0,1,t+r-i,e+n,"H",t+i,"A",i,i,0,0,1,t,e+n-i,"V",e+i,"A",i,i,0,0,1,t+i,e,"Z"].join(" "),"createRoundedRectPathD"),Dpe=S(async(t,e)=>{ge.info("Creating subgraph rect for ",e.id,e);const r=Ke(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,{labelStyles:o,nodeStyles:l,borderStyles:u,backgroundStyles:d}=hr(e),h=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),f=In(r),p=h.insert("g").attr("class","cluster-label ");let g;e.labelType==="markdown"?g=await Zs(p,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width}):g=await Bd(p,e.label,e.labelStyle||"",!1,!0);let m=g.getBBox();if(In(r)){const T=g.children[0],w=At(g);m=T.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}const y=e.width<=m.width+e.padding?m.width+e.padding:e.width;e.width<=m.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;const v=e.height,b=e.x-y/2,_=e.y-v/2;ge.trace("Data ",e,JSON.stringify(e));let E;if(e.look==="handDrawn"){const T=gr.svg(h),w=mr(e,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:i}),N=T.path(Nh(b,_,y,v,0),w);E=h.insert(()=>(ge.debug("Rough node insert CXC",N),N),":first-child"),E.select("path:nth-child(2)").attr("style",u.join(";")),E.select("path").attr("style",d.join(";").replace("fill","stroke"))}else E=h.insert("rect",":first-child"),E.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",_).attr("width",y).attr("height",v);const{subGraphTitleTopMargin:x}=oT(r);if(p.attr("transform",`translate(${e.x-m.width/2}, ${e.y-e.height/2+x})`),o){const T=p.select("span");T&&T.attr("style",o)}const C=E.node().getBBox();return e.offsetX=0,e.width=C.width,e.height=C.height,e.offsetY=m.height-e.padding/2,e.intersect=function(T){return Gb(e,T)},{cluster:h,labelBBox:m}},"rect"),RWe=S((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),n=r.insert("rect",":first-child"),i=0*e.padding,a=i/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");const s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(o){return Gb(e,o)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),NWe=S(async(t,e)=>{const r=Ke(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:a,compositeBackground:s,compositeTitleBackground:o,nodeBorder:l}=n,u=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),d=u.insert("g",":first-child"),h=u.insert("g").attr("class","cluster-label");let f=u.append("rect");const p=await Bd(h,e.label,e.labelStyle,void 0,!0);let g=p.getBBox();if(In(r)){const N=p.children[0],O=At(p);g=N.getBoundingClientRect(),O.attr("width",g.width),O.attr("height",g.height)}const m=0*e.padding,y=m/2,v=(e.width<=g.width+e.padding?g.width+e.padding:e.width)+m;e.width<=g.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;const b=e.height+m,_=e.height+m-g.height-6,E=e.x-v/2,x=e.y-b/2;e.width=v;const C=e.y-e.height/2-y+g.height+2;let T;if(e.look==="handDrawn"){const N=e.cssClasses.includes("statediagram-cluster-alt"),O=gr.svg(u),M=e.rx||e.ry?O.path(Nh(E,x,v,b,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:l,seed:i}):O.rectangle(E,x,v,b,{seed:i});T=u.insert(()=>M,":first-child");const $=O.rectangle(E,C,v,_,{fill:N?a:s,fillStyle:N?"hachure":"solid",stroke:l,seed:i});T=u.insert(()=>M,":first-child"),f=u.insert(()=>$)}else T=d.insert("rect",":first-child"),T.attr("class","outer").attr("x",E).attr("y",x).attr("width",v).attr("height",b).attr("data-look",e.look),f.attr("class","inner").attr("x",E).attr("y",C).attr("width",v).attr("height",_);h.attr("transform",`translate(${e.x-g.width/2}, ${x+1-(In(r)?0:3)})`);const w=T.node().getBBox();return e.height=w.height,e.offsetX=0,e.offsetY=g.height-e.padding/2,e.labelBBox=g,e.intersect=function(N){return Gb(e,N)},{cluster:u,labelBBox:g}},"roundedWithTitle"),IWe=S(async(t,e)=>{ge.info("Creating subgraph rect for ",e.id,e);const r=Ke(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,{labelStyles:o,nodeStyles:l,borderStyles:u,backgroundStyles:d}=hr(e),h=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),f=In(r),p=h.insert("g").attr("class","cluster-label "),g=await Zs(p,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width});let m=g.getBBox();if(In(r)){const T=g.children[0],w=At(g);m=T.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}const y=e.width<=m.width+e.padding?m.width+e.padding:e.width;e.width<=m.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;const v=e.height,b=e.x-y/2,_=e.y-v/2;ge.trace("Data ",e,JSON.stringify(e));let E;if(e.look==="handDrawn"){const T=gr.svg(h),w=mr(e,{roughness:.7,fill:a,stroke:s,fillWeight:4,seed:i}),N=T.path(Nh(b,_,y,v,e.rx),w);E=h.insert(()=>(ge.debug("Rough node insert CXC",N),N),":first-child"),E.select("path:nth-child(2)").attr("style",u.join(";")),E.select("path").attr("style",d.join(";").replace("fill","stroke"))}else E=h.insert("rect",":first-child"),E.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",_).attr("width",y).attr("height",v);const{subGraphTitleTopMargin:x}=oT(r);if(p.attr("transform",`translate(${e.x-m.width/2}, ${e.y-e.height/2+x})`),o){const T=p.select("span");T&&T.attr("style",o)}const C=E.node().getBBox();return e.offsetX=0,e.width=C.width,e.height=C.height,e.offsetY=m.height-e.padding/2,e.intersect=function(T){return Gb(e,T)},{cluster:h,labelBBox:m}},"kanbanSection"),OWe=S((t,e)=>{const r=Ke(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:a}=n,s=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),o=s.insert("g",":first-child"),l=0*e.padding,u=e.width+l;e.diff=-e.padding;const d=e.height+l,h=e.x-u/2,f=e.y-d/2;e.width=u;let p;if(e.look==="handDrawn"){const y=gr.svg(s).rectangle(h,f,u,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:i});p=s.insert(()=>y,":first-child")}else{p=o.insert("rect",":first-child");let m="outer";e.look,m="divider",p.attr("class",m).attr("x",h).attr("y",f).attr("width",u).attr("height",d).attr("data-look",e.look)}const g=p.node().getBBox();return e.height=g.height,e.offsetX=0,e.offsetY=0,e.intersect=function(m){return Gb(e,m)},{cluster:s,labelBBox:{}}},"divider"),DWe=Dpe,LWe={rect:Dpe,squareRect:DWe,roundedWithTitle:NWe,noteGroup:RWe,divider:OWe,kanbanSection:IWe},Lpe=new Map,bG=S(async(t,e)=>{const r=e.shape||"rect",n=await LWe[r](t,e);return Lpe.set(e.id,n),n},"insertCluster"),MWe=S(()=>{Lpe=new Map},"clear");function Mpe(t,e){return t.intersect(e)}S(Mpe,"intersectNode");var PWe=Mpe;function Ppe(t,e,r,n){var i=t.x,a=t.y,s=i-n.x,o=a-n.y,l=Math.sqrt(e*e*o*o+r*r*s*s),u=Math.abs(e*r*s/l);n.x0}S(RP,"sameSign");var FWe=$pe;function zpe(t,e,r){let n=t.x,i=t.y,a=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(d){s=Math.min(s,d.x),o=Math.min(o,d.y)}):(s=Math.min(s,e.x),o=Math.min(o,e.y));let l=n-t.width/2-s,u=i-t.height/2-o;for(let d=0;d1&&a.sort(function(d,h){let f=d.x-r.x,p=d.y-r.y,g=Math.sqrt(f*f+p*p),m=h.x-r.x,y=h.y-r.y,v=Math.sqrt(m*m+y*y);return gd,":first-child");return h.attr("class","anchor").attr("style",Ba(o)),yr(e,h),e.intersect=function(f){return ge.info("Circle intersect",e,s,f),lr.circle(e,s,f)},a}S(Upe,"anchor");function NP(t,e,r,n,i,a,s){const l=(t+r)/2,u=(e+n)/2,d=Math.atan2(n-e,r-t),h=(r-t)/2,f=(n-e)/2,p=h/i,g=f/a,m=Math.sqrt(p**2+g**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-m**2),v=l+y*a*Math.sin(d)*(s?-1:1),b=u-y*i*Math.cos(d)*(s?-1:1),_=Math.atan2((e-b)/a,(t-v)/i);let x=Math.atan2((n-b)/a,(r-v)/i)-_;s&&x<0&&(x+=2*Math.PI),!s&&x>0&&(x-=2*Math.PI);const C=[];for(let T=0;T<20;T++){const w=T/19,N=_+w*x,O=v+i*Math.cos(N),M=b+a*Math.sin(N);C.push({x:O,y:M})}return C}S(NP,"generateArcPoints");function Gpe(t,e,r){const[n,i]=[e,r].sort((a,s)=>s-a);return i*(1-Math.sqrt(1-(t/n/2)**2))}S(Gpe,"calculateArcSagitta");async function qpe(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i,o=S(N=>N+s,"calcTotalHeight"),l=S(N=>{const O=N/2;return[O/(2.5+N/50),O]},"calcEllipseRadius"),{shapeSvg:u,bbox:d}=await Mr(t,e,Or(e)),h=o(e?.height?e?.height:d.height),[f,p]=l(h),g=Gpe(h,f,p),y=(e?.width?e?.width:d.width)+a*2+g-g,v=h,{cssStyles:b}=e,_=[{x:y/2,y:-v/2},{x:-y/2,y:-v/2},...NP(-y/2,-v/2,-y/2,v/2,f,p,!1),{x:y/2,y:v/2},...NP(y/2,v/2,y/2,-v/2,f,p,!0)],E=gr.svg(u),x=mr(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=hn(_),T=E.path(C,x),w=u.insert(()=>T,":first-child");return w.attr("class","basic label-container outer-path"),b&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",b),n&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",n),w.attr("transform",`translate(${f/2}, 0)`),yr(e,w),e.intersect=function(N){return lr.polygon(e,_,N)},u}S(qpe,"bowTieRect");function H0(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}S(H0,"insertPolygonShape");var Ix=12;async function Ype(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?28:i,s=e.look==="neo"?24:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.width??l.width)+(e.look==="neo"?a*2:a+Ix),d=(e?.height??l.height)+(e.look==="neo"?s*2:s),h=0,f=u,p=-d,g=0,m=[{x:h+Ix,y:p},{x:f,y:p},{x:f,y:g},{x:h,y:g},{x:h,y:p+Ix},{x:h+Ix,y:p}];let y;const{cssStyles:v}=e;if(e.look==="handDrawn"){const b=gr.svg(o),_=mr(e,{}),E=hn(m),x=b.path(E,_);y=o.insert(()=>x,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),v&&y.attr("style",v)}else y=H0(o,u,d,m);return n&&y.attr("style",n),yr(e,y),e.intersect=function(b){return lr.polygon(e,m,b)},o}S(Ype,"card");function Hpe(t,e){const{nodeStyles:r}=hr(e);e.label="";const n=t.insert("g").attr("class",Or(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,a=Math.max(28,e.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],o=gr.svg(n),l=mr(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const u=hn(s),d=o.path(u,l),h=n.insert(()=>d,":first-child");return i&&e.look!=="handDrawn"&&h.selectAll("path").attr("style",i),r&&e.look!=="handDrawn"&&h.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(f){return lr.polygon(e,s,f)},n}S(Hpe,"choice");async function EG(t,e,r){const{labelStyles:n,nodeStyles:i}=hr(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,halfPadding:o}=await Mr(t,e,Or(e)),l=16,u=r?.padding??o,d=e.look==="neo"?s.width/2+l*2:s.width/2+u;let h;const{cssStyles:f}=e;if(e.look==="handDrawn"){const p=gr.svg(a),g=mr(e,{}),m=p.circle(0,0,d*2,g);h=a.insert(()=>m,":first-child"),h.attr("class","basic label-container").attr("style",Ba(f))}else h=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",d).attr("cx",0).attr("cy",0);return yr(e,h),e.calcIntersect=function(p,g){const m=p.width/2;return lr.circle(p,m,g)},e.intersect=function(p){return ge.info("Circle intersect",e,d,p),lr.circle(e,d,p)},a}S(EG,"circle");function Vpe(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=t*2,i={x:n/2*e,y:n/2*r},a={x:-(n/2)*e,y:n/2*r},s={x:-(n/2)*e,y:-(n/2)*r},o={x:n/2*e,y:-(n/2)*r};return`M ${a.x},${a.y} L ${o.x},${o.y} - M ${i.x},${i.y} L ${s.x},${s.y}`}S(Vpe,"createLine");function Wpe(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r,e.label="";const i=t.insert("g").attr("class",Or(e)).attr("id",e.domId??e.id),a=Math.max(30,e?.width??0),{cssStyles:s}=e,o=gr.svg(i),l=mr(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const u=o.circle(0,0,a*2,l),d=Vpe(a),h=o.path(d,l),f=i.insert(()=>u,":first-child");return f.insert(()=>h),f.attr("class","outer-path"),s&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",s),n&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",n),yr(e,f),e.intersect=function(p){return ge.info("crossedCircle intersect",e,{radius:a,point:p}),lr.circle(e,a,p)},i}S(Wpe,"crossedCircle");function Yu(t,e,r,n=100,i=0,a=180){const s=[],o=i*Math.PI/180,d=(a*Math.PI/180-o)/(n-1);for(let h=0;hx,":first-child").attr("stroke-opacity",0),C.insert(()=>_,":first-child"),C.attr("class","text"),f&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",n),C.attr("transform",`translate(${h}, 0)`),s.attr("transform",`translate(${-u/2+h-(a.x-(a.left??0))},${-d/2+(e.padding??0)/2-(a.y-(a.top??0))})`),yr(e,C),e.intersect=function(T){return lr.polygon(e,g,T)},i}S(Kpe,"curlyBraceLeft");function Hu(t,e,r,n=100,i=0,a=180){const s=[],o=i*Math.PI/180,d=(a*Math.PI/180-o)/(n-1);for(let h=0;hx,":first-child").attr("stroke-opacity",0),C.insert(()=>_,":first-child"),C.attr("class","text"),f&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",n),C.attr("transform",`translate(${-h}, 0)`),s.attr("transform",`translate(${-u/2+(e.padding??0)/2-(a.x-(a.left??0))},${-d/2+(e.padding??0)/2-(a.y-(a.top??0))})`),yr(e,C),e.intersect=function(T){return lr.polygon(e,g,T)},i}S(Xpe,"curlyBraceRight");function qa(t,e,r,n=100,i=0,a=180){const s=[],o=i*Math.PI/180,d=(a*Math.PI/180-o)/(n-1);for(let h=0;hN,":first-child").attr("stroke-opacity",0),O.insert(()=>E,":first-child"),O.insert(()=>T,":first-child"),O.attr("class","text"),f&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",n),O.attr("transform",`translate(${h-h/4}, 0)`),s.attr("transform",`translate(${-u/2+(e.padding??0)/2-(a.x-(a.left??0))},${-d/2+(e.padding??0)/2-(a.y-(a.top??0))})`),yr(e,O),e.intersect=function(M){return lr.polygon(e,m,M)},i}S(jpe,"curlyBraces");async function Qpe(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i,o=20,l=5,{shapeSvg:u,bbox:d}=await Mr(t,e,Or(e)),h=Math.max(o,(d.width+a*2)*1.25,e?.width??0),f=Math.max(l,d.height+s*2,e?.height??0),p=f/2,{cssStyles:g}=e,m=gr.svg(u),y=mr(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const v=h,b=f,_=v-p,E=b/4,x=[{x:_,y:0},{x:E,y:0},{x:0,y:b/2},{x:E,y:b},{x:_,y:b},...WS(-_,-b/2,p,50,270,90)],C=hn(x),T=m.path(C,y),w=u.insert(()=>T,":first-child");return w.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",g),n&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",n),w.attr("transform",`translate(${-h/2}, ${-f/2})`),yr(e,w),e.intersect=function(N){return lr.polygon(e,x,N)},u}S(Qpe,"curvedTrapezoid");var zWe=S((t,e,r,n,i,a)=>[`M${t},${e+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),UWe=S((t,e,r,n,i,a)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),GWe=S((t,e,r,n,i,a)=>[`M${t-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Kj=8,Xj=8;async function Zpe(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?24:i,s=e.look==="neo"?24:i;if(e.width||e.height){const y=e.width??0;e.width=(e.width??0)-s,e.widthx,":first-child"),g=o.insert(()=>E,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{const y=zWe(0,0,d,p,h,f);g=o.insert("path",":first-child").attr("d",y).attr("class","basic label-container outer-path").attr("style",Ba(m)).attr("style",n)}return g.attr("label-offset-y",f),g.attr("transform",`translate(${-d/2}, ${-(p/2+f)})`),yr(e,g),u.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+(e.padding??0)/1.5-(l.y-(l.top??0))})`),e.intersect=function(y){const v=lr.rect(e,y),b=v.x-(e.x??0);if(h!=0&&(Math.abs(b)<(e.width??0)/2||Math.abs(b)==(e.width??0)/2&&Math.abs(v.y-(e.y??0))>(e.height??0)/2-f)){let _=f*f*(1-b*b/(h*h));_>0&&(_=Math.sqrt(_)),_=f-_,y.y-(e.y??0)>0&&(_=-_),v.y+=_}return v},o}S(Zpe,"cylinder");async function qb(t,e,r){const{labelStyles:n,nodeStyles:i}=hr(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Mr(t,e,Or(e)),o=Math.max(s.width+r.labelPaddingX*2,e?.width||0),l=Math.max(s.height+r.labelPaddingY*2,e?.height||0),u=-o/2,d=-l/2;let h,{rx:f,ry:p}=e;const{cssStyles:g}=e;if(r?.rx&&r.ry&&(f=r.rx,p=r.ry),e.look==="handDrawn"){const m=gr.svg(a),y=mr(e,{}),v=f||p?m.path(Nh(u,d,o,l,f||0),y):m.rectangle(u,d,o,l,y);h=a.insert(()=>v,":first-child"),h.attr("class","basic label-container").attr("style",Ba(g))}else h=a.insert("rect",":first-child"),h.attr("class","basic label-container").attr("style",i).attr("rx",Ba(f)).attr("ry",Ba(p)).attr("x",u).attr("y",d).attr("width",o).attr("height",l);return yr(e,h),e.calcIntersect=function(m,y){return lr.rect(m,y)},e.intersect=function(m){return lr.rect(e,m)},a}S(qb,"drawRect");async function Jpe(t,e){const{cssClasses:r,labelPaddingX:n,labelPaddingY:i,padding:a,width:s,height:o}=e,l={rx:0,ry:0,labelPaddingX:n??(a??0)*2,labelPaddingY:i??a??0},u=await qb(t,e,l);if(e.look==="handDrawn"){const p=gr.svg(u),g=mr(e,{}),m=u.select(".basic.label-container > path:nth-child(2)"),y=m.node();if(!y)return u;let v=null;if(y instanceof SVGGraphicsElement)v=y.getBBox();else return u;return u.insert(()=>p.line(v.x,v.y,v.x+v.width,v.y,g),".basic.label-container g.label"),u.insert(()=>p.line(v.x,v.y+v.height,v.x+v.width,v.y+v.height,g),".basic.label-container g.label"),m.remove(),u}const d=u.select(".basic.label-container"),h=(Number(d.attr("width"))||s)??0,f=(Number(d.attr("height"))||o)??0;return h>0&&f>0&&d.attr("stroke-dasharray",`${h} ${f}`),u}S(Jpe,"datastore");async function ege(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.look==="neo"?16:e.padding??0,a=e.look==="neo"?16:e.padding??0,{shapeSvg:s,bbox:o,label:l}=await Mr(t,e,Or(e)),u=o.width+i,d=o.height+a,h=d*.2,f=-u/2,p=-d/2-h/2,{cssStyles:g}=e,m=gr.svg(s),y=mr(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const v=[{x:f,y:p+h},{x:-f,y:p+h},{x:-f,y:-p},{x:f,y:-p},{x:f,y:p},{x:-f,y:p},{x:-f,y:p+h}],b=m.polygon(v.map(E=>[E.x,E.y]),y),_=s.insert(()=>b,":first-child");return _.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",g),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),l.attr("transform",`translate(${f+(e.padding??0)/2-(o.x-(o.left??0))}, ${p+h+(e.padding??0)/2-(o.y-(o.top??0))})`),yr(e,_),e.intersect=function(E){return lr.rect(e,E)},s}S(ege,"dividedRectangle");async function tge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e),i=e.look==="neo"?12:5;e.labelStyle=r;const a=e.padding??0,s=e.look==="neo"?16:a,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.width?e?.width/2:l.width/2)+(s??0),d=u-i;let h;const{cssStyles:f}=e;if(e.look==="handDrawn"){const p=gr.svg(o),g=mr(e,{roughness:.2,strokeWidth:2.5}),m=mr(e,{roughness:.2,strokeWidth:1.5}),y=p.circle(0,0,u*2,g),v=p.circle(0,0,d*2,m);h=o.insert("g",":first-child"),h.attr("class",Ba(e.cssClasses)).attr("style",Ba(f)),h.node()?.appendChild(y),h.node()?.appendChild(v)}else{h=o.insert("g",":first-child");const p=h.insert("circle",":first-child"),g=h.insert("circle");h.attr("class","basic label-container").attr("style",n),p.attr("class","outer-circle").attr("style",n).attr("r",u).attr("cx",0).attr("cy",0),g.attr("class","inner-circle").attr("style",n).attr("r",d).attr("cx",0).attr("cy",0)}return yr(e,h),e.intersect=function(p){return ge.info("DoubleCircle intersect",e,u,p),lr.circle(e,u,p)},o}S(tge,"doublecircle");function rge(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=hr(e);e.label="",e.labelStyle=n;const a=t.insert("g").attr("class",Or(e)).attr("id",e.domId??e.id),s=7,{cssStyles:o}=e,l=gr.svg(a),{nodeBorder:u}=r,d=mr(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(d.roughness=0);const h=l.circle(0,0,s*2,d),f=a.insert(()=>h,":first-child");return f.selectAll("path").attr("style",`fill: ${u} !important;`),o&&o.length>0&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",o),i&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",i),yr(e,f),e.intersect=function(p){return ge.info("filledCircle intersect",e,{radius:s,point:p}),lr.circle(e,s,p)},a}S(rge,"filledCircle");var jj=10,Qj=10;async function nge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?i*2:i;(e.width||e.height)&&(e.height=e?.height??0,e.heightv,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return p&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),e.width=u,e.height=d,yr(e,b),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-d/2+(e.padding??0)/2+(o.y-(o.top??0))})`),e.intersect=function(_){return ge.info("Triangle intersect",e,f,_),lr.polygon(e,f,_)},s}S(nge,"flippedTriangle");function ige(t,e,{dir:r,config:{state:n,themeVariables:i}}){const{nodeStyles:a}=hr(e);e.label="";const s=t.insert("g").attr("class",Or(e)).attr("id",e.domId??e.id),{cssStyles:o}=e;let l=Math.max(70,e?.width??0),u=Math.max(10,e?.height??0);r==="LR"&&(l=Math.max(10,e?.width??0),u=Math.max(70,e?.height??0));const d=-1*l/2,h=-1*u/2,f=gr.svg(s),p=mr(e,{stroke:i.lineColor,fill:i.lineColor});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=f.rectangle(d,h,l,u,p),m=s.insert(()=>g,":first-child");o&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",o),a&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",a),yr(e,m);const y=n?.padding??0;return e.width&&e.height&&(e.width+=y/2||0,e.height+=y/2||0),e.intersect=function(v){return lr.rect(e,v)},s}S(ige,"forkJoin");async function age(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=15,a=10,s=e.look==="neo"?16:e.padding??0,o=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-o*2,e.heightb,":first-child");return _.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",n),yr(e,_),e.intersect=function(E){return ge.info("Pill intersect",e,{radius:f,point:E}),lr.polygon(e,y,E)},l}S(age,"halfRoundedRectangle");var qWe=S((t,e,r,n,i)=>[`M${t+i},${e}`,`L${t+r-i},${e}`,`L${t+r},${e-n/2}`,`L${t+r-i},${e-n}`,`L${t+i},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" "),"createHexagonPathD");async function sge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e),i=e.look==="neo"?3.5:4;e.labelStyle=r;const a=e.padding??0,s=70,o=32,l=e.look==="neo"?s:a,u=e.look==="neo"?o:a;if(e.width||e.height){const _=(e.height??0)/i;e.width=(e?.width??0)-2*_-u,e.height=(e.height??0)-l}const{shapeSvg:d,bbox:h}=await Mr(t,e,Or(e)),f=(e?.height?e?.height:h.height)+l,p=f/i,g=(e?.width?e?.width:h.width)+2*p+u,m=[{x:p,y:0},{x:g-p,y:0},{x:g,y:-f/2},{x:g-p,y:-f},{x:p,y:-f},{x:0,y:-f/2}];let y;const{cssStyles:v}=e;if(e.look==="handDrawn"){const b=gr.svg(d),_=mr(e,{}),E=qWe(0,0,g,f,p),x=b.path(E,_);y=d.insert(()=>x,":first-child").attr("transform",`translate(${-g/2}, ${f/2})`),v&&y.attr("style",v)}else y=H0(d,g,f,m);return n&&y.attr("style",n),e.width=g,e.height=f,yr(e,y),e.intersect=function(b){return lr.polygon(e,m,b)},d}S(sge,"hexagon");async function oge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.label="",e.labelStyle=r;const{shapeSvg:i}=await Mr(t,e,Or(e)),a=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:o}=e,l=gr.svg(i),u=mr(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],h=hn(d),f=l.path(h,u),p=i.insert(()=>f,":first-child");return p.attr("class","basic label-container outer-path"),o&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",o),n&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",n),p.attr("transform",`translate(${-a/2}, ${-s/2})`),yr(e,p),e.intersect=function(g){return ge.info("Pill intersect",e,{points:d}),lr.polygon(e,d,g)},i}S(oge,"hourglass");async function lge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=hr(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,label:h}=await Mr(t,e,"icon-shape default"),f=e.pos==="t",p=o,g=o,{nodeBorder:m}=r,{stylesMap:y}=Ub(e),v=-g/2,b=-p/2,_=e.label?8:0,E=gr.svg(u),x=mr(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=E.rectangle(v,b,g,p,x),T=Math.max(g,d.width),w=p+d.height+_,N=E.rectangle(-T/2,-w/2,T,w,{...x,fill:"transparent",stroke:"none"}),O=u.insert(()=>C,":first-child"),M=u.insert(()=>N);if(e.icon){const $=u.append("g");$.html(`${await sh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const F=$.node().getBBox(),A=F.width,I=F.height,D=F.x,L=F.y;$.attr("transform",`translate(${-A/2-D},${f?d.height/2+_/2-I/2-L:-d.height/2-_/2-I/2-L})`),$.attr("style",`color: ${y.get("stroke")??m};`)}return h.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${f?-w/2:w/2-d.height})`),O.attr("transform",`translate(0,${f?d.height/2+_/2:-d.height/2-_/2})`),yr(e,M),e.intersect=function($){if(ge.info("iconSquare intersect",e,$),!e.label)return lr.rect(e,$);const F=e.x??0,A=e.y??0,I=e.height??0;let D=[];return f?D=[{x:F-d.width/2,y:A-I/2},{x:F+d.width/2,y:A-I/2},{x:F+d.width/2,y:A-I/2+d.height+_},{x:F+g/2,y:A-I/2+d.height+_},{x:F+g/2,y:A+I/2},{x:F-g/2,y:A+I/2},{x:F-g/2,y:A-I/2+d.height+_},{x:F-d.width/2,y:A-I/2+d.height+_}]:D=[{x:F-g/2,y:A-I/2},{x:F+g/2,y:A-I/2},{x:F+g/2,y:A-I/2+p},{x:F+d.width/2,y:A-I/2+p},{x:F+d.width/2/2,y:A+I/2},{x:F-d.width/2,y:A+I/2},{x:F-d.width/2,y:A-I/2+p},{x:F-g/2,y:A-I/2+p}],lr.polygon(e,D,$)},u}S(lge,"icon");async function cge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=hr(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,label:h}=await Mr(t,e,"icon-shape default"),f=20,p=e.label?8:0,g=e.pos==="t",{nodeBorder:m,mainBkg:y}=r,{stylesMap:v}=Ub(e),b=gr.svg(u),_=mr(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const E=v.get("fill");_.stroke=E??y;const x=u.append("g");e.icon&&x.html(`${await sh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const C=x.node().getBBox(),T=C.width,w=C.height,N=C.x,O=C.y,M=Math.max(T,w)*Math.SQRT2+f*2,$=b.circle(0,0,M,_),F=Math.max(M,d.width),A=M+d.height+p,I=b.rectangle(-F/2,-A/2,F,A,{..._,fill:"transparent",stroke:"none"}),D=u.insert(()=>$,":first-child"),L=u.insert(()=>I);return x.attr("transform",`translate(${-T/2-N},${g?d.height/2+p/2-w/2-O:-d.height/2-p/2-w/2-O})`),x.attr("style",`color: ${v.get("stroke")??m};`),h.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-A/2:A/2-d.height})`),D.attr("transform",`translate(0,${g?d.height/2+p/2:-d.height/2-p/2})`),yr(e,L),e.intersect=function(R){return ge.info("iconSquare intersect",e,R),lr.rect(e,R)},u}S(cge,"iconCircle");async function uge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=hr(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,halfPadding:h,label:f}=await Mr(t,e,"icon-shape default"),p=e.pos==="t",g=o+h*2,m=o+h*2,{nodeBorder:y,mainBkg:v}=r,{stylesMap:b}=Ub(e),_=-m/2,E=-g/2,x=e.label?8:0,C=gr.svg(u),T=mr(e,{});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const w=b.get("fill");T.stroke=w??v;const N=C.path(Nh(_,E,m,g,5),T),O=Math.max(m,d.width),M=g+d.height+x,$=C.rectangle(-O/2,-M/2,O,M,{...T,fill:"transparent",stroke:"none"}),F=u.insert(()=>N,":first-child").attr("class","icon-shape2"),A=u.insert(()=>$);if(e.icon){const I=u.append("g");I.html(`${await sh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const D=I.node().getBBox(),L=D.width,R=D.height,P=D.x,z=D.y;I.attr("transform",`translate(${-L/2-P},${p?d.height/2+x/2-R/2-z:-d.height/2-x/2-R/2-z})`),I.attr("style",`color: ${b.get("stroke")??y};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-M/2:M/2-d.height})`),F.attr("transform",`translate(0,${p?d.height/2+x/2:-d.height/2-x/2})`),yr(e,A),e.intersect=function(I){if(ge.info("iconSquare intersect",e,I),!e.label)return lr.rect(e,I);const D=e.x??0,L=e.y??0,R=e.height??0;let P=[];return p?P=[{x:D-d.width/2,y:L-R/2},{x:D+d.width/2,y:L-R/2},{x:D+d.width/2,y:L-R/2+d.height+x},{x:D+m/2,y:L-R/2+d.height+x},{x:D+m/2,y:L+R/2},{x:D-m/2,y:L+R/2},{x:D-m/2,y:L-R/2+d.height+x},{x:D-d.width/2,y:L-R/2+d.height+x}]:P=[{x:D-m/2,y:L-R/2},{x:D+m/2,y:L-R/2},{x:D+m/2,y:L-R/2+g},{x:D+d.width/2,y:L-R/2+g},{x:D+d.width/2/2,y:L+R/2},{x:D-d.width/2,y:L+R/2},{x:D-d.width/2,y:L-R/2+g},{x:D-m/2,y:L-R/2+g}],lr.polygon(e,P,I)},u}S(uge,"iconRounded");async function dge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=hr(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,halfPadding:h,label:f}=await Mr(t,e,"icon-shape default"),p=e.pos==="t",g=o+h*2,m=o+h*2,{nodeBorder:y,mainBkg:v}=r,{stylesMap:b}=Ub(e),_=-m/2,E=-g/2,x=e.label?8:0,C=gr.svg(u),T=mr(e,{});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const w=b.get("fill");T.stroke=w??v;const N=C.path(Nh(_,E,m,g,.1),T),O=Math.max(m,d.width),M=g+d.height+x,$=C.rectangle(-O/2,-M/2,O,M,{...T,fill:"transparent",stroke:"none"}),F=u.insert(()=>N,":first-child"),A=u.insert(()=>$);if(e.icon){const I=u.append("g");I.html(`${await sh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const D=I.node().getBBox(),L=D.width,R=D.height,P=D.x,z=D.y;I.attr("transform",`translate(${-L/2-P},${p?d.height/2+x/2-R/2-z:-d.height/2-x/2-R/2-z})`),I.attr("style",`color: ${b.get("stroke")??y};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-M/2:M/2-d.height})`),F.attr("transform",`translate(0,${p?d.height/2+x/2:-d.height/2-x/2})`),yr(e,A),e.intersect=function(I){if(ge.info("iconSquare intersect",e,I),!e.label)return lr.rect(e,I);const D=e.x??0,L=e.y??0,R=e.height??0;let P=[];return p?P=[{x:D-d.width/2,y:L-R/2},{x:D+d.width/2,y:L-R/2},{x:D+d.width/2,y:L-R/2+d.height+x},{x:D+m/2,y:L-R/2+d.height+x},{x:D+m/2,y:L+R/2},{x:D-m/2,y:L+R/2},{x:D-m/2,y:L-R/2+d.height+x},{x:D-d.width/2,y:L-R/2+d.height+x}]:P=[{x:D-m/2,y:L-R/2},{x:D+m/2,y:L-R/2},{x:D+m/2,y:L-R/2+g},{x:D+d.width/2,y:L-R/2+g},{x:D+d.width/2/2,y:L+R/2},{x:D-d.width/2,y:L+R/2},{x:D-d.width/2,y:L-R/2+g},{x:D-m/2,y:L-R/2+g}],lr.polygon(e,P,I)},u}S(dge,"iconSquare");async function hge(t,e,{config:{flowchart:r}}){const n=new Image;n.src=e?.img??"",await n.decode();const i=Number(n.naturalWidth.toString().replace("px","")),a=Number(n.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/a;const{labelStyles:s}=hr(e);e.labelStyle=s;const o=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;const l=Math.max(e.label?o??0:0,e?.assetWidth??i),u=e.constraint==="on"&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:l,d=e.constraint==="on"?u/e.imageAspectRatio:e?.assetHeight??a;e.width=Math.max(u,o??0);const{shapeSvg:h,bbox:f,label:p}=await Mr(t,e,"image-shape default"),g=e.pos==="t",m=-u/2,y=-d/2,v=e.label?8:0,b=gr.svg(h),_=mr(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const E=b.rectangle(m,y,u,d,_),x=Math.max(u,f.width),C=d+f.height+v,T=b.rectangle(-x/2,-C/2,x,C,{..._,fill:"none",stroke:"none"}),w=h.insert(()=>E,":first-child"),N=h.insert(()=>T);if(e.img){const O=h.append("image");O.attr("href",e.img),O.attr("width",u),O.attr("height",d),O.attr("preserveAspectRatio","none"),O.attr("transform",`translate(${-u/2},${g?C/2-d:-C/2})`)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-d/2-f.height/2-v/2:d/2-f.height/2+v/2})`),w.attr("transform",`translate(0,${g?f.height/2+v/2:-f.height/2-v/2})`),yr(e,N),e.intersect=function(O){if(ge.info("iconSquare intersect",e,O),!e.label)return lr.rect(e,O);const M=e.x??0,$=e.y??0,F=e.height??0;let A=[];return g?A=[{x:M-f.width/2,y:$-F/2},{x:M+f.width/2,y:$-F/2},{x:M+f.width/2,y:$-F/2+f.height+v},{x:M+u/2,y:$-F/2+f.height+v},{x:M+u/2,y:$+F/2},{x:M-u/2,y:$+F/2},{x:M-u/2,y:$-F/2+f.height+v},{x:M-f.width/2,y:$-F/2+f.height+v}]:A=[{x:M-u/2,y:$-F/2},{x:M+u/2,y:$-F/2},{x:M+u/2,y:$-F/2+d},{x:M+f.width/2,y:$-F/2+d},{x:M+f.width/2/2,y:$+F/2},{x:M-f.width/2,y:$+F/2},{x:M-f.width/2,y:$-F/2+d},{x:M-u/2,y:$-F/2+d}],lr.polygon(e,A,O)},h}S(hge,"imageSquare");async function fge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=i,s=e.look==="neo"?i*2:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=Math.max(l.width+(s??0)*2,e?.width??0),d=Math.max(l.height+(a??0)*2,e?.height??0),h=[{x:0,y:0},{x:u,y:0},{x:u+3*d/6,y:-d},{x:-3*d/6,y:-d}];let f;const{cssStyles:p}=e;if(e.look==="handDrawn"){const g=gr.svg(o),m=mr(e,{}),y=hn(h),v=g.path(y,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),p&&f.attr("style",p)}else f=H0(o,u,d,h);return n&&f.attr("style",n),e.width=u,e.height=d,yr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}S(fge,"inv_trapezoid");async function pge(t,e){const{shapeSvg:r,bbox:n,label:i}=await Mr(t,e,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),yr(e,a),e.intersect=function(l){return lr.rect(e,l)},r}S(pge,"labelRect");async function gge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=i,s=e.look==="neo"?i*2:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.height??l.height)+a,d=(e?.width??l.width)+s,h=[{x:0,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:-(3*u)/6,y:-u}];let f;const{cssStyles:p}=e;if(e.look==="handDrawn"){const g=gr.svg(o),m=mr(e,{}),y=hn(h),v=g.path(y,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=H0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,yr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}S(gge,"lean_left");async function mge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=i,s=e.look==="neo"?i*2:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.height??l.height)+a,d=(e?.width??l.width)+s,h=[{x:-3*u/6,y:0},{x:d,y:0},{x:d+3*u/6,y:-u},{x:0,y:-u}];let f;const{cssStyles:p}=e;if(e.look==="handDrawn"){const g=gr.svg(o),m=mr(e,{}),y=hn(h),v=g.path(y,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=H0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,yr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}S(mge,"lean_right");function yge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.label="",e.labelStyle=r;const i=t.insert("g").attr("class",Or(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,s=Math.max(35,e?.width??0),o=Math.max(35,e?.height??0),l=7,u=[{x:s,y:0},{x:0,y:o+l/2},{x:s-2*l,y:o+l/2},{x:0,y:2*o},{x:s,y:o-l/2},{x:2*l,y:o-l/2}],d=gr.svg(i),h=mr(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const f=hn(u),p=d.path(f,h),g=i.insert(()=>p,":first-child");return g.attr("class","outer-path"),a&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",a),n&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",n),g.attr("transform",`translate(-${s/2},${-o})`),yr(e,g),e.intersect=function(m){return ge.info("lightningBolt intersect",e,m),lr.polygon(e,u,m)},i}S(yge,"lightningBolt");var YWe=S((t,e,r,n,i,a,s)=>[`M${t},${e+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),HWe=S((t,e,r,n,i,a,s)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),VWe=S((t,e,r,n,i,a)=>[`M${t-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Zj=10,Jj=10;async function vge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?24:i;if(e.width||e.height){const v=e.width??0;e.width=(e.width??0)-a,e.widthC,":first-child").attr("class","line"),m=o.insert(()=>x,":first-child"),m.attr("class","basic label-container"),y&&m.attr("style",y)}else{const v=YWe(0,0,d,p,h,f,g);m=o.insert("path",":first-child").attr("d",v).attr("class","basic label-container outer-path").attr("style",Ba(y)).attr("style",n)}return m.attr("label-offset-y",f),m.attr("transform",`translate(${-d/2}, ${-(p/2+f)})`),yr(e,m),u.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+f-(l.y-(l.top??0))})`),e.intersect=function(v){const b=lr.rect(e,v),_=b.x-(e.x??0);if(h!=0&&(Math.abs(_)<(e.width??0)/2||Math.abs(_)==(e.width??0)/2&&Math.abs(b.y-(e.y??0))>(e.height??0)/2-f)){let E=f*f*(1-_*_/(h*h));E>0&&(E=Math.sqrt(E)),E=f-E,v.y-(e.y??0)>0&&(E=-E),b.y+=E}return b},o}S(vge,"linedCylinder");async function _ge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i;if(e.width||e.height){const E=e.width;e.width=(E??0)*10/11-a*2,e.width<10&&(e.width=10),e.height=(e?.height??0)-s*2,e.height<10&&(e.height=10)}const{shapeSvg:o,bbox:l,label:u}=await Mr(t,e,Or(e)),d=(e?.width?e?.width:l.width)+(a??0)*2,h=(e?.height?e?.height:l.height)+(s??0)*2,f=e.look==="neo"?h/4:h/8,p=h+f,{cssStyles:g}=e,m=gr.svg(o),y=mr(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const v=[{x:-d/2-d/2*.1,y:-p/2},{x:-d/2-d/2*.1,y:p/2},...lh(-d/2-d/2*.1,p/2,d/2+d/2*.1,p/2,f,.8),{x:d/2+d/2*.1,y:-p/2},{x:-d/2-d/2*.1,y:-p/2},{x:-d/2,y:-p/2},{x:-d/2,y:p/2*1.1},{x:-d/2,y:-p/2}],b=m.polygon(v.map(E=>[E.x,E.y]),y),_=o.insert(()=>b,":first-child");return _.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",g),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),_.attr("transform",`translate(0,${-f/2})`),u.attr("transform",`translate(${-d/2+(e.padding??0)+d/2*.1/2-(l.x-(l.left??0))},${-h/2+(e.padding??0)-f/2-(l.y-(l.top??0))})`),yr(e,_),e.intersect=function(E){return lr.polygon(e,v,E)},o}S(_ge,"linedWaveEdgedRect");async function bge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i,o=e.look==="neo"?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-a*2-2*o,10),e.height=Math.max((e?.height??0)-s*2-2*o,10));const{shapeSvg:l,bbox:u,label:d}=await Mr(t,e,Or(e)),h=(e?.width?e?.width:u.width)+a*2+2*o,f=(e?.height?e?.height:u.height)+s*2+2*o,p=h-2*o,g=f-2*o,m=-p/2,y=-g/2,{cssStyles:v}=e,b=gr.svg(l),_=mr(e,{}),E=[{x:m-o,y:y+o},{x:m-o,y:y+g+o},{x:m+p-o,y:y+g+o},{x:m+p-o,y:y+g},{x:m+p,y:y+g},{x:m+p,y:y+g-o},{x:m+p+o,y:y+g-o},{x:m+p+o,y:y-o},{x:m+o,y:y-o},{x:m+o,y},{x:m,y},{x:m,y:y+o}],x=[{x:m,y:y+o},{x:m+p-o,y:y+o},{x:m+p-o,y:y+g},{x:m+p,y:y+g},{x:m+p,y},{x:m,y}];e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const C=hn(E);let T=b.path(C,_);const w=hn(x);let N=b.path(w,_);e.look!=="handDrawn"&&(T=AP(T),N=AP(N));const O=l.insert("g",":first-child");return O.insert(()=>T),O.insert(()=>N),O.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",v),n&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",n),d.attr("transform",`translate(${-(u.width/2)-o-(u.x-(u.left??0))}, ${-(u.height/2)+o-(u.y-(u.top??0))})`),yr(e,O),e.intersect=function(M){return lr.polygon(e,E,M)},l}S(bge,"multiRect");async function Ege(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await Mr(t,e,Or(e)),o=e.padding??0,l=e.look==="neo"?16:o,u=e.look==="neo"?12:o;let d=!0;(e.width||e.height)&&(d=!1,e.width=(e?.width??0)-l*2,e.height=(e?.height??0)-u*3);const h=Math.max(a.width,e?.width??0)+l*2,f=Math.max(a.height,e?.height??0)+u*3,p=e.look==="neo"?f/4:f/8,g=f+(d?p/2:-p/2),m=-h/2,y=-g/2,v=10,{cssStyles:b}=e,_=lh(m-v,y+g+v,m+h-v,y+g+v,p,.8),E=_?.[_.length-1],x=[{x:m-v,y:y+v},{x:m-v,y:y+g+v},..._,{x:m+h-v,y:E.y-v},{x:m+h,y:E.y-v},{x:m+h,y:E.y-2*v},{x:m+h+v,y:E.y-2*v},{x:m+h+v,y:y-v},{x:m+v,y:y-v},{x:m+v,y},{x:m,y},{x:m,y:y+v}],C=[{x:m,y:y+v},{x:m+h-v,y:y+v},{x:m+h-v,y:E.y-v},{x:m+h,y:E.y-v},{x:m+h,y},{x:m,y}],T=gr.svg(i),w=mr(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const N=hn(x),O=T.path(N,w),M=hn(C),$=T.path(M,w),F=i.insert(()=>O,":first-child");return F.insert(()=>$),F.attr("class","basic label-container outer-path"),b&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",b),n&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",n),F.attr("transform",`translate(0,${-p/2})`),s.attr("transform",`translate(${-(a.width/2)-v-(a.x-(a.left??0))}, ${-(a.height/2)+v-p/2-(a.y-(a.top??0))})`),yr(e,F),e.intersect=function(A){return lr.polygon(e,x,A)},i}S(Ege,"multiWaveEdgedRectangle");async function Sge(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=hr(e);e.labelStyle=n,e.useHtmlLabels||In(xr())||(e.centerLabel=!0);const{shapeSvg:s,bbox:o,label:l}=await Mr(t,e,Or(e)),u=Math.max(o.width+(e.padding??0)*2,e?.width??0),d=Math.max(o.height+(e.padding??0)*2,e?.height??0),h=-u/2,f=-d/2,{cssStyles:p}=e,g=gr.svg(s),m=mr(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=g.rectangle(h,f,u,d,m),v=s.insert(()=>y,":first-child");return v.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),p&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",i),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),yr(e,v),e.intersect=function(b){return lr.rect(e,b)},s}S(Sge,"note");var WWe=S((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Tge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await Mr(t,e,Or(e)),s=a.width+(e.padding??0),o=a.height+(e.padding??0),l=s+o,u=.5,d=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let h;const{cssStyles:f}=e;if(e.look==="handDrawn"){const p=gr.svg(i),g=mr(e,{}),m=WWe(0,0,l),y=p.path(m,g);h=i.insert(()=>y,":first-child").attr("transform",`translate(${-l/2+u}, ${l/2})`),f&&h.attr("style",f)}else h=H0(i,l,l,d),h.attr("transform",`translate(${-l/2+u}, ${l/2})`);return n&&h.attr("style",n),yr(e,h),e.calcIntersect=function(p,g){const m=p.width,y=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],v=lr.polygon(p,y,g);return{x:v.x-.5,y:v.y-.5}},e.intersect=function(p){return this.calcIntersect(e,p)},i}S(Tge,"question");async function xge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?21:i??0,s=e.look==="neo"?12:i??0,{shapeSvg:o,bbox:l,label:u}=await Mr(t,e,Or(e)),d=(e?.width??l.width)+(e.look==="neo"?a*2:a),h=(e?.height??l.height)+(e.look==="neo"?s*2:s),f=-d/2,p=-h/2,g=p/2,m=[{x:f+g,y:p},{x:f,y:0},{x:f+g,y:-p},{x:-f,y:-p},{x:-f,y:p}],{cssStyles:y}=e,v=gr.svg(o),b=mr(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=hn(m),E=v.path(_,b),x=o.insert(()=>E,":first-child");return x.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",y),n&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(${-g/2},0)`),u.attr("transform",`translate(${-g/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),yr(e,x),e.intersect=function(C){return lr.polygon(e,m,C)},o}S(xge,"rect_left_inv_arrow");async function Cge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;let i;e.cssClasses?i="node "+e.cssClasses:i="node default";const a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=a.insert("g"),o=a.insert("g").attr("class","label").attr("style",n),l=e.description,u=e.label,d=await Bd(o,u,e.labelStyle,!0,!0);let h={width:0,height:0};if(In(Ke())){const w=d.children[0],N=At(d);h=w.getBoundingClientRect(),N.attr("width",h.width),N.attr("height",h.height)}ge.info("Text 2",l);const f=l||[],p=d.getBBox(),g=await Bd(o,Array.isArray(f)?f.join("
"):f,e.labelStyle,!0,!0),m=g.children[0],y=At(g);h=m.getBoundingClientRect(),y.attr("width",h.width),y.attr("height",h.height);const v=(e.padding||0)/2;At(g).attr("transform","translate( "+(h.width>p.width?0:(p.width-h.width)/2)+", "+(p.height+v+5)+")"),At(d).attr("transform","translate( "+(h.width(ge.debug("Rough node insert CXC",O),M),":first-child"),C=a.insert(()=>(ge.debug("Rough node insert CXC",O),O),":first-child")}else C=s.insert("rect",":first-child"),T=s.insert("line"),C.attr("class","outer title-state").attr("style",n).attr("x",-h.width/2-v).attr("y",-h.height/2-v).attr("width",h.width+(e.padding||0)).attr("height",h.height+(e.padding||0)),T.attr("class","divider").attr("x1",-h.width/2-v).attr("x2",h.width/2+v).attr("y1",-h.height/2-v+p.height+v).attr("y2",-h.height/2-v+p.height+v);return yr(e,C),e.intersect=function(w){return lr.rect(e,w)},a}S(Cge,"rectWithTitle");async function wge(t,e,{config:{themeVariables:r}}){const n=r?.radius??5,i={rx:n,ry:n,labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return qb(t,e,i)}S(wge,"roundedRect");var rf=8;async function kge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.look==="neo"?16:e.padding??0,a=e.look==="neo"?12:e.padding??0,{shapeSvg:s,bbox:o,label:l}=await Mr(t,e,Or(e)),u=(e?.width??o.width)+i*2+(e.look==="neo"?rf:rf*2),d=(e?.height??o.height)+a*2,h=u-rf,f=d,p=rf-u/2,g=-d/2,{cssStyles:m}=e,y=gr.svg(s),v=mr(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const b=[{x:p,y:g},{x:p+h,y:g},{x:p+h,y:g+f},{x:p-rf,y:g+f},{x:p-rf,y:g},{x:p,y:g},{x:p,y:g+f}],_=y.polygon(b.map(x=>[x.x,x.y]),v),E=s.insert(()=>_,":first-child");return E.attr("class","basic label-container outer-path").attr("style",Ba(m)),n&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",n),m&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",n),l.attr("transform",`translate(${rf/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),yr(e,E),e.intersect=function(x){return lr.rect(e,x)},s}S(kge,"shadedProcess");async function Age(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-a*2,10),e.height=Math.max((e?.height??0)/1.5-s*2,10));const{shapeSvg:o,bbox:l,label:u}=await Mr(t,e,Or(e)),d=(e?.width?e?.width:l.width)+a*2,h=((e?.height?e?.height:l.height)+s*2)*1.5,f=d,p=h/1.5,g=-f/2,m=-p/2,{cssStyles:y}=e,v=gr.svg(o),b=mr(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=[{x:g,y:m},{x:g,y:m+p},{x:g+f,y:m+p},{x:g+f,y:m-p/2}],E=hn(_),x=v.path(E,b),C=o.insert(()=>x,":first-child");return C.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&C.selectChildren("path").attr("style",y),n&&e.look!=="handDrawn"&&C.selectChildren("path").attr("style",n),C.attr("transform",`translate(0, ${p/4})`),u.attr("transform",`translate(${-f/2+(e.padding??0)-(l.x-(l.left??0))}, ${-p/4+(e.padding??0)-(l.y-(l.top??0))})`),yr(e,C),e.intersect=function(T){return lr.polygon(e,_,T)},o}S(Age,"slopedRect");async function Rge(t,e){const r=e.padding??0,n=e.look==="neo"?16:r*2,i=e.look==="neo"?12:r,a={rx:0,ry:0,labelPaddingX:e.labelPaddingX??n,labelPaddingY:i};return qb(t,e,a)}S(Rge,"squareRect");async function Nge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?20:i,s=e.look==="neo"?12:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=l.height+(e.look==="neo"?s*2:s),d=l.width+u/4+(e.look==="neo"?a*2:a),h=u/2,{cssStyles:f}=e,p=gr.svg(o),g=mr(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:-d/2+h,y:-u/2},{x:d/2-h,y:-u/2},...WS(-d/2+h,0,h,50,90,270),{x:d/2-h,y:u/2},...WS(d/2-h,0,h,50,270,450)],y=hn(m),v=p.path(y,g),b=o.insert(()=>v,":first-child");return b.attr("class","basic label-container outer-path"),f&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",f),n&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),yr(e,b),e.intersect=function(_){return lr.polygon(e,m,_)},o}S(Nge,"stadium");async function Ige(t,e){const r={rx:e.look==="neo"?3:5,ry:e.look==="neo"?3:5};return qb(t,e,r)}S(Ige,"state");function Oge(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=hr(e);e.labelStyle=n;const{cssStyles:a}=e,{lineColor:s,stateBorder:o,nodeBorder:l,nodeShadow:u}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);const d=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),h=gr.svg(d),f=mr(e,{});e.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=h.circle(0,0,e.width,{...f,stroke:s,strokeWidth:2}),g=o??l,m=(e.width??0)*5/14,y=h.circle(0,0,m,{...f,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),v=d.insert(()=>p,":first-child");if(v.insert(()=>y),e.look!=="handDrawn"&&v.attr("class","outer-path"),a&&v.selectAll("path").attr("style",a),i&&v.selectAll("path").attr("style",i),e.width<25&&u&&e.look!=="handDrawn"){const b=t.node()?.ownerSVGElement?.id??"",_=b?`${b}-drop-shadow-small`:"drop-shadow-small";v.attr("style",`filter:url(#${_})`)}return yr(e,v),e.intersect=function(b){return lr.circle(e,(e.width??0)/2,b)},d}S(Oge,"stateEnd");function Dge(t,e,{config:{themeVariables:r}}){const{lineColor:n,nodeShadow:i}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let s;if(e.look==="handDrawn"){const l=gr.svg(a).circle(0,0,e.width,aVe(n));s=a.insert(()=>l),s.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else s=a.insert("circle",":first-child"),s.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&i&&e.look!=="handDrawn"){const o=t.node()?.ownerSVGElement?.id??"",l=o?`${o}-drop-shadow-small`:"drop-shadow-small";s.attr("style",`filter:url(#${l})`)}return yr(e,s),e.intersect=function(o){return lr.circle(e,(e.width??7)/2,o)},a}S(Dge,"stateStart");var Mg=8;async function Lge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e?.padding??8,a=e.look==="neo"?28:i,s=e.look==="neo"?12:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.width??l.width)+2*Mg+a,d=(e?.height??l.height)+s,h=u-2*Mg,f=d,p=-u/2,g=-d/2,m=[{x:0,y:0},{x:h,y:0},{x:h,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:h+8,y:0},{x:h+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if(e.look==="handDrawn"){const y=gr.svg(o),v=mr(e,{}),b=y.rectangle(p,g,h+16,f,v),_=y.line(p+Mg,g,p+Mg,g+f,v),E=y.line(p+Mg+h,g,p+Mg+h,g+f,v);o.insert(()=>_,":first-child"),o.insert(()=>E,":first-child");const x=o.insert(()=>b,":first-child"),{cssStyles:C}=e;x.attr("class","basic label-container").attr("style",Ba(C)),yr(e,x)}else{const y=H0(o,h,f,m);n&&y.attr("style",n),yr(e,y)}return e.intersect=function(y){return lr.polygon(e,m,y)},o}S(Lge,"subroutine");var ER=.2;async function Mge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-s*2,10),e.width=Math.max((e?.width??0)-a*2-ER*(e.height+s*2),10));const{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.height?e?.height:l.height)+s*2,d=ER*u,h=ER*u,p=(e?.width?e?.width:l.width)+a*2+d-d,g=u,m=-p/2,y=-g/2,{cssStyles:v}=e,b=gr.svg(o),_=mr(e,{}),E=[{x:m-d/2,y},{x:m+p+d/2,y},{x:m+p+d/2,y:y+g},{x:m-d/2,y:y+g}],x=[{x:m+p-d/2,y:y+g},{x:m+p+d/2,y:y+g},{x:m+p+d/2,y:y+g-h}];e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const C=hn(E),T=b.path(C,_),w=hn(x),N=b.path(w,{..._,fillStyle:"solid"}),O=o.insert(()=>N,":first-child");return O.insert(()=>T,":first-child"),O.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",v),n&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",n),yr(e,O),e.intersect=function(M){return lr.polygon(e,E,M)},o}S(Mge,"taggedRect");async function Pge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await Mr(t,e,Or(e)),o=Math.max(a.width+(e.padding??0)*2,e?.width??0),l=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=l/8,d=.2*o,h=.2*l,f=l+u,{cssStyles:p}=e,g=gr.svg(i),m=mr(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-o/2-o/2*.1,y:f/2},...lh(-o/2-o/2*.1,f/2,o/2+o/2*.1,f/2,u,.8),{x:o/2+o/2*.1,y:-f/2},{x:-o/2-o/2*.1,y:-f/2}],v=-o/2+o/2*.1,b=-f/2-h*.4,_=[{x:v+o-d,y:(b+l)*1.3},{x:v+o,y:b+l-h},{x:v+o,y:(b+l)*.9},...lh(v+o,(b+l)*1.25,v+o-d,(b+l)*1.3,-l*.02,.5)],E=hn(y),x=g.path(E,m),C=hn(_),T=g.path(C,{...m,fillStyle:"solid"}),w=i.insert(()=>T,":first-child");return w.insert(()=>x,":first-child"),w.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",n),w.attr("transform",`translate(0,${-u/2})`),s.attr("transform",`translate(${-o/2+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-u/2-(a.y-(a.top??0))})`),yr(e,w),e.intersect=function(N){return lr.polygon(e,y,N)},i}S(Pge,"taggedWaveEdgedRectangle");async function Bge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await Mr(t,e,Or(e)),s=Math.max(a.width+(e.padding??0),e?.width||0),o=Math.max(a.height+(e.padding??0),e?.height||0),l=-s/2,u=-o/2,d=i.insert("rect",":first-child");return d.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",l).attr("y",u).attr("width",s).attr("height",o),yr(e,d),e.intersect=function(h){return lr.rect(e,h)},i}S(Bge,"text");var KWe=S((t,e,r,n,i,a)=>`M${t},${e} +`),a):un(e.label,a),u=e.isNode?"nodeLabel":"edgeLabel",d=o.append("span");d.html(l),TP(d,e.labelStyle),d.attr("class",`${u} ${n}`),TP(o,e.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(o.style("max-width",r+"px"),o.style("text-align","center")),o.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&o.attr("class","labelBkg");let h=o.node().getBoundingClientRect();return h.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),h=o.node().getBoundingClientRect()),s.node()}S(Spe,"addHtmlSpan");function Lk(t,e,r,n=!1){const i=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return n&&i.attr("text-anchor","middle"),i}S(Lk,"createTspan");function Tpe(t,e,r){const n=t.append("text"),i=Lk(n,1,e);Mk(i,r);const a=i.node().getComputedTextLength();return n.remove(),a}S(Tpe,"computeWidthOfText");function xpe(t,e,r){const n=t.append("text"),i=Lk(n,1,e);Mk(i,[{content:r,type:"normal"}]);const a=i.node()?.getBoundingClientRect();return a&&n.remove(),a}S(xpe,"computeDimensionOfText");function Cpe(t,e,r,n=!1,i=!1){const s=e.append("g"),o=s.insert("rect").attr("class","background").attr("style","stroke: none"),l=s.append("text").attr("y","-10.1");i&&l.attr("text-anchor","middle");let u=0;for(const d of r){const h=S(p=>Tpe(s,1.1,p)<=t,"checkWidth"),f=h(d)?[d]:Epe(d,h);for(const p of f){const g=Lk(l,u,1.1,i);Mk(g,p),u++}}if(n){const d=l.node().getBBox(),h=2;return o.attr("x",d.x-h).attr("y",d.y-h).attr("width",d.width+2*h).attr("height",d.height+2*h),s.node()}else return l.node()}S(Cpe,"createFormattedText");function xP(t){const e=/&(amp|lt|gt);/g;return t.replace(e,(r,n)=>{switch(n){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}S(xP,"decodeHTMLEntities");function Mk(t,e){t.text(""),e.forEach((r,n)=>{const i=t.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(xP(r.content)):i.text(" "+xP(r.content))})}S(Mk,"updateTextContentAndStyles");async function wpe(t,e={}){const r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(i,a,s)=>(r.push((async()=>{const o=`${a}:${s}`;return await dWe(o)?await sh(o,void 0,{class:"label-icon"}):``})()),i));const n=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>n.shift()??"")}S(wpe,"replaceIconSubstring");var Zs=S(async(t,e="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,markdown:s=!0,isNode:o=!0,width:l=200,addSvgBackground:u=!1}={},d)=>{if(ge.debug("XYZ createText",e,r,n,i,a,o,"addSvgBackground: ",u),a){const h=s?vpe(e,d):ype(e),f=await wpe(x0(h),d),p=e.replace(/\\\\/g,"\\"),g={isNode:o,label:Xi(e)?p:f,labelStyle:r.replace("fill:","color:")};return await Spe(t,g,l,i,u,d)}else{const h=x0(e.replace(//g,"
")),f=s?mpe(h.replace("
","
"),d):gpe(h),p=Cpe(l,t,f,e?u:!1,!o);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");At(p).attr("style",g)}else{const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");At(p).select("rect").attr("style",g.replace(/background:/g,"fill:"));const m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");At(p).select("text").attr("style",m)}return n?At(p).selectAll("tspan.text-outer-tspan").classed("title-row",!0):At(p).selectAll("tspan.text-outer-tspan").classed("row",!0),p}},"createText");function gR(t,e,r){if(t&&t.length){const[n,i]=e,a=Math.PI/180*r,s=Math.cos(a),o=Math.sin(a);for(const l of t){const[u,d]=l;l[0]=(u-n)*s-(d-i)*o+n,l[1]=(u-n)*o+(d-i)*s+i}}}function hWe(t,e){return t[0]===e[0]&&t[1]===e[1]}function fWe(t,e,r,n=1){const i=r,a=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,o=[0,0];if(i)for(const u of s)gR(u,o,i);const l=(function(u,d,h){const f=[];for(const b of u){const _=[...b];hWe(_[0],_[_.length-1])||_.push([_[0][0],_[0][1]]),_.length>2&&f.push(_)}const p=[];d=Math.max(d,.1);const g=[];for(const b of f)for(let _=0;_b.ymin<_.ymin?-1:b.ymin>_.ymin?1:b.x<_.x?-1:b.x>_.x?1:b.ymax===_.ymax?0:(b.ymax-_.ymax)/Math.abs(b.ymax-_.ymax))),!g.length)return p;let m=[],y=g[0].ymin,v=0;for(;m.length||g.length;){if(g.length){let b=-1;for(let _=0;_y);_++)b=_;g.splice(0,b+1).forEach((_=>{m.push({s:y,edge:_})}))}if(m=m.filter((b=>!(b.edge.ymax<=y))),m.sort(((b,_)=>b.edge.x===_.edge.x?0:(b.edge.x-_.edge.x)/Math.abs(b.edge.x-_.edge.x))),(h!==1||v%d==0)&&m.length>1)for(let b=0;b=m.length)break;const E=m[b].edge,x=m[_].edge;p.push([[Math.round(E.x),y],[Math.round(x.x),y]])}y+=h,m.forEach((b=>{b.edge.x=b.edge.x+h*b.edge.islope})),v++}return p})(s,a,n);if(i){for(const u of s)gR(u,o,-i);(function(u,d,h){const f=[];u.forEach((p=>f.push(...p))),gR(f,d,h)})(l,o,-i)}return l}function cT(t,e){var r;const n=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let a=1;return e.roughness>=1&&(((r=e.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=i),fWe(t,i,n,a||1)}class vG{constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){const n=cT(e,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(e,r){const n=[];for(const i of e)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],r));return n}}function Pk(t){const e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class pWe extends vG{fillPolygons(e,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);const i=cT(e,Object.assign({},r,{hachureGap:n})),a=Math.PI/180*r.hachureAngle,s=[],o=.5*n*Math.cos(a),l=.5*n*Math.sin(a);for(const[u,d]of i)Pk([u,d])&&s.push([[u[0]-o,u[1]+l],[...d]],[[u[0]+o,u[1]-l],[...d]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}}class gWe extends vG{fillPolygons(e,r){const n=this._fillPolygons(e,r),i=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(e,i);return n.ops=n.ops.concat(a.ops),n}}let mWe=class{constructor(e){this.helper=e}fillPolygons(e,r){const n=cT(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(e,r){const n=[];let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const s=i/4;for(const o of e){const l=Pk(o),u=l/i,d=Math.ceil(u)-1,h=l-d*i,f=(o[0][0]+o[1][0])/2-i/4,p=Math.min(o[0][1],o[1][1]);for(let g=0;g{const o=Pk(s),l=Math.floor(o/(n+i)),u=(o+i-l*(n+i))/2;let d=s[0],h=s[1];d[0]>h[0]&&(d=s[1],h=s[0]);const f=Math.atan((h[1]-d[1])/(h[0]-d[0]));for(let p=0;p{const s=Pk(a),o=Math.round(s/(2*r));let l=a[0],u=a[1];l[0]>u[0]&&(l=a[1],u=a[0]);const d=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let h=0;hd%2?u+r:u+e));a.push({key:"C",data:l}),e=l[4],r=l[5];break}case"Q":a.push({key:"Q",data:[...o]}),e=o[2],r=o[3];break;case"q":{const l=o.map(((u,d)=>d%2?u+r:u+e));a.push({key:"Q",data:l}),e=l[2],r=l[3];break}case"A":a.push({key:"A",data:[...o]}),e=o[5],r=o[6];break;case"a":e+=o[5],r+=o[6],a.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],e,r]});break;case"H":a.push({key:"H",data:[...o]}),e=o[0];break;case"h":e+=o[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...o]}),e=o[2],r=o[3];break;case"s":{const l=o.map(((u,d)=>d%2?u+r:u+e));a.push({key:"S",data:l}),e=l[2],r=l[3];break}case"T":a.push({key:"T",data:[...o]}),e=o[0],r=o[1];break;case"t":e+=o[0],r+=o[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function Ape(t){const e=[];let r="",n=0,i=0,a=0,s=0,o=0,l=0;for(const{key:u,data:d}of t){switch(u){case"M":e.push({key:"M",data:[...d]}),[n,i]=d,[a,s]=d;break;case"C":e.push({key:"C",data:[...d]}),n=d[4],i=d[5],o=d[2],l=d[3];break;case"L":e.push({key:"L",data:[...d]}),[n,i]=d;break;case"H":n=d[0],e.push({key:"L",data:[n,i]});break;case"V":i=d[0],e.push({key:"L",data:[n,i]});break;case"S":{let h=0,f=0;r==="C"||r==="S"?(h=n+(n-o),f=i+(i-l)):(h=n,f=i),e.push({key:"C",data:[h,f,...d]}),o=d[0],l=d[1],n=d[2],i=d[3];break}case"T":{const[h,f]=d;let p=0,g=0;r==="Q"||r==="T"?(p=n+(n-o),g=i+(i-l)):(p=n,g=i);const m=n+2*(p-n)/3,y=i+2*(g-i)/3,v=h+2*(p-h)/3,b=f+2*(g-f)/3;e.push({key:"C",data:[m,y,v,b,h,f]}),o=p,l=g,n=h,i=f;break}case"Q":{const[h,f,p,g]=d,m=n+2*(h-n)/3,y=i+2*(f-i)/3,v=p+2*(h-p)/3,b=g+2*(f-g)/3;e.push({key:"C",data:[m,y,v,b,p,g]}),o=h,l=f,n=p,i=g;break}case"A":{const h=Math.abs(d[0]),f=Math.abs(d[1]),p=d[2],g=d[3],m=d[4],y=d[5],v=d[6];h===0||f===0?(e.push({key:"C",data:[n,i,y,v,y,v]}),n=y,i=v):(n!==y||i!==v)&&(Rpe(n,i,y,v,h,f,p,g,m).forEach((function(b){e.push({key:"C",data:b})})),n=y,i=v);break}case"Z":e.push({key:"Z",data:[]}),n=a,i=s}r=u}return e}function L2(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function Rpe(t,e,r,n,i,a,s,o,l,u){const d=(h=s,Math.PI*h/180);var h;let f=[],p=0,g=0,m=0,y=0;if(u)[p,g,m,y]=u;else{[t,e]=L2(t,e,-d),[r,n]=L2(r,n,-d);const F=(t-r)/2,A=(e-n)/2;let I=F*F/(i*i)+A*A/(a*a);I>1&&(I=Math.sqrt(I),i*=I,a*=I);const D=i*i,L=a*a,R=D*L-D*A*A-L*F*F,P=D*A*A+L*F*F,z=(o===l?-1:1)*Math.sqrt(Math.abs(R/P));m=z*i*A/a+(t+r)/2,y=z*-a*F/i+(e+n)/2,p=Math.asin(parseFloat(((e-y)/a).toFixed(9))),g=Math.asin(parseFloat(((n-y)/a).toFixed(9))),tg&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let v=g-p;if(Math.abs(v)>120*Math.PI/180){const F=g,A=r,I=n;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=Rpe(r=m+i*Math.cos(g),n=y+a*Math.sin(g),A,I,i,a,s,0,l,[g,F,m,y])}v=g-p;const b=Math.cos(p),_=Math.sin(p),E=Math.cos(g),x=Math.sin(g),C=Math.tan(v/4),T=4/3*i*C,w=4/3*a*C,N=[t,e],O=[t+T*_,e-w*b],M=[r+T*x,n-w*E],$=[r,n];if(O[0]=2*N[0]-O[0],O[1]=2*N[1]-O[1],u)return[O,M,$].concat(f);{f=[O,M,$].concat(f);const F=[];for(let A=0;A2){const i=[];for(let a=0;a2*Math.PI&&(p=0,g=2*Math.PI);const m=2*Math.PI/l.curveStepCount,y=Math.min(m/2,(g-p)/2),v=Vj(y,u,d,h,f,p,g,1,l);if(!l.disableMultiStroke){const b=Vj(y,u,d,h,f,p,g,1.5,l);v.push(...b)}return s&&(o?v.push(...oh(u,d,u+h*Math.cos(p),d+f*Math.sin(p),l),...oh(u,d,u+h*Math.cos(g),d+f*Math.sin(g),l)):v.push({op:"lineTo",data:[u,d]},{op:"lineTo",data:[u+h*Math.cos(p),d+f*Math.sin(p)]})),{type:"path",ops:v}}function qj(t,e){const r=Ape(kpe(_G(t))),n=[];let i=[0,0],a=[0,0];for(const{key:s,data:o}of r)switch(s){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":n.push(...oh(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{const[l,u,d,h,f,p]=o;n.push(...TWe(l,u,d,h,f,p,a,e)),a=[f,p];break}case"Z":n.push(...oh(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:n}}function vR(t,e){const r=[];for(const n of t)if(n.length){const i=e.maxRandomnessOffset||0,a=n.length;if(a>2){r.push({op:"move",data:[n[0][0]+Br(i,e),n[0][1]+Br(i,e)]});for(let s=1;s500?.4:-.0016668*l+1.233334;let d=i.maxRandomnessOffset||0;d*d*100>o&&(d=l/10);const h=d/2,f=.2+.2*Ope(i);let p=i.bowing*i.maxRandomnessOffset*(n-e)/200,g=i.bowing*i.maxRandomnessOffset*(t-r)/200;p=Br(p,i,u),g=Br(g,i,u);const m=[],y=()=>Br(h,i,u),v=()=>Br(d,i,u),b=i.preserveVertices;return s?m.push({op:"move",data:[t+(b?0:y()),e+(b?0:y())]}):m.push({op:"move",data:[t+(b?0:Br(d,i,u)),e+(b?0:Br(d,i,u))]}),s?m.push({op:"bcurveTo",data:[p+t+(r-t)*f+y(),g+e+(n-e)*f+y(),p+t+2*(r-t)*f+y(),g+e+2*(n-e)*f+y(),r+(b?0:y()),n+(b?0:y())]}):m.push({op:"bcurveTo",data:[p+t+(r-t)*f+v(),g+e+(n-e)*f+v(),p+t+2*(r-t)*f+v(),g+e+2*(n-e)*f+v(),r+(b?0:v()),n+(b?0:v())]}),m}function Rx(t,e,r){if(!t.length)return[];const n=[];n.push([t[0][0]+Br(e,r),t[0][1]+Br(e,r)]),n.push([t[0][0]+Br(e,r),t[0][1]+Br(e,r)]);for(let i=1;i3){const a=[],s=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let o=1;o+21&&i.push(o)):i.push(o),i.push(t[e+3])}else{const l=t[e+0],u=t[e+1],d=t[e+2],h=t[e+3],f=bf(l,u,.5),p=bf(u,d,.5),g=bf(d,h,.5),m=bf(f,p,.5),y=bf(p,g,.5),v=bf(m,y,.5);kP([l,f,m,v],0,r,i),kP([v,y,g,h],0,r,i)}var a,s;return i}function CWe(t,e){return r6(t,0,t.length,e)}function r6(t,e,r,n,i){const a=i||[],s=t[e],o=t[r-1];let l=0,u=1;for(let d=e+1;dl&&(l=h,u=d)}return Math.sqrt(l)>n?(r6(t,e,u+1,n,a),r6(t,u,r,n,a)):(a.length||a.push(s),a.push(o)),a}function _R(t,e=.15,r){const n=[],i=(t.length-1)/3;for(let a=0;a0?r6(n,0,n.length,r):n}const ko="none";class n6{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,r,n){return{shape:e,sets:r||[],options:n||this.defaultOptions}}line(e,r,n,i,a){const s=this._o(a);return this._d("line",[Npe(e,r,n,i,s)],s)}rectangle(e,r,n,i,a){const s=this._o(a),o=[],l=SWe(e,r,n,i,s);if(s.fill){const u=[[e,r],[e+n,r],[e+n,r+i],[e,r+i]];s.fillStyle==="solid"?o.push(vR([u],s)):o.push(Lg([u],s))}return s.stroke!==ko&&o.push(l),this._d("rectangle",o,s)}ellipse(e,r,n,i,a){const s=this._o(a),o=[],l=Ipe(n,i,s),u=CP(e,r,s,l);if(s.fill)if(s.fillStyle==="solid"){const d=CP(e,r,s,l).opset;d.type="fillPath",o.push(d)}else o.push(Lg([u.estimatedPoints],s));return s.stroke!==ko&&o.push(u.opset),this._d("ellipse",o,s)}circle(e,r,n,i){const a=this.ellipse(e,r,n,n,i);return a.shape="circle",a}linearPath(e,r){const n=this._o(r);return this._d("linearPath",[e5(e,!1,n)],n)}arc(e,r,n,i,a,s,o=!1,l){const u=this._o(l),d=[],h=Gj(e,r,n,i,a,s,o,!0,u);if(o&&u.fill)if(u.fillStyle==="solid"){const f=Object.assign({},u);f.disableMultiStroke=!0;const p=Gj(e,r,n,i,a,s,!0,!1,f);p.type="fillPath",d.push(p)}else d.push((function(f,p,g,m,y,v,b){const _=f,E=p;let x=Math.abs(g/2),C=Math.abs(m/2);x+=Br(.01*x,b),C+=Br(.01*C,b);let T=y,w=v;for(;T<0;)T+=2*Math.PI,w+=2*Math.PI;w-T>2*Math.PI&&(T=0,w=2*Math.PI);const N=(w-T)/b.curveStepCount,O=[];for(let M=T;M<=w;M+=N)O.push([_+x*Math.cos(M),E+C*Math.sin(M)]);return O.push([_+x*Math.cos(w),E+C*Math.sin(w)]),O.push([_,E]),Lg([O],b)})(e,r,n,i,a,s,u));return u.stroke!==ko&&d.push(h),this._d("arc",d,u)}curve(e,r){const n=this._o(r),i=[],a=Uj(e,n);if(n.fill&&n.fill!==ko)if(n.fillStyle==="solid"){const s=Uj(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],o=e;if(o.length){const l=typeof o[0][0]=="number"?[o]:o;for(const u of l)u.length<3?s.push(...u):u.length===3?s.push(..._R(Wj([u[0],u[0],u[1],u[2]]),10,(1+n.roughness)/2)):s.push(..._R(Wj(u),10,(1+n.roughness)/2))}s.length&&i.push(Lg([s],n))}return n.stroke!==ko&&i.push(a),this._d("curve",i,n)}polygon(e,r){const n=this._o(r),i=[],a=e5(e,!0,n);return n.fill&&(n.fillStyle==="solid"?i.push(vR([e],n)):i.push(Lg([e],n))),n.stroke!==ko&&i.push(a),this._d("polygon",i,n)}path(e,r){const n=this._o(r),i=[];if(!e)return this._d("path",i,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=n.fill&&n.fill!=="transparent"&&n.fill!==ko,s=n.stroke!==ko,o=!!(n.simplification&&n.simplification<1),l=(function(d,h,f){const p=Ape(kpe(_G(d))),g=[];let m=[],y=[0,0],v=[];const b=()=>{v.length>=4&&m.push(..._R(v,h)),v=[]},_=()=>{b(),m.length&&(g.push(m),m=[])};for(const{key:x,data:C}of p)switch(x){case"M":_(),y=[C[0],C[1]],m.push(y);break;case"L":b(),m.push([C[0],C[1]]);break;case"C":if(!v.length){const T=m.length?m[m.length-1]:y;v.push([T[0],T[1]])}v.push([C[0],C[1]]),v.push([C[2],C[3]]),v.push([C[4],C[5]]);break;case"Z":b(),m.push([y[0],y[1]])}if(_(),!f)return g;const E=[];for(const x of g){const C=CWe(x,f);C.length&&E.push(C)}return E})(e,1,o?4-4*(n.simplification||1):(1+n.roughness)/2),u=qj(e,n);if(a)if(n.fillStyle==="solid")if(l.length===1){const d=qj(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else i.push(vR(l,n));else i.push(Lg(l,n));return s&&(o?l.forEach((d=>{i.push(e5(d,!1,n))})):i.push(u)),this._d("path",i,n)}opsToPath(e,r){let n="";for(const i of e.ops){const a=typeof r=="number"&&r>=0?i.data.map((s=>+s.toFixed(r))):i.data;switch(i.op){case"move":n+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":n+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":n+=`L${a[0]} ${a[1]} `}}return n.trim()}toPaths(e){const r=e.sets||[],n=e.options||this.defaultOptions,i=[];for(const a of r){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:ko};break;case"fillPath":s={d:this.opsToPath(a),stroke:ko,strokeWidth:0,fill:n.fill||ko};break;case"fillSketch":s=this.fillSketch(a,n)}s&&i.push(s)}return i}fillSketch(e,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||ko,strokeWidth:n,fill:ko}}_mergedShape(e){return e.filter(((r,n)=>n===0||r.op!=="move"))}}class wWe{constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new n6(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.ctx,a=e.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":i.save(),i.strokeStyle=n.stroke==="none"?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,s,a),i.restore();break;case"fillPath":{i.save(),i.fillStyle=n.fill||"";const o=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,a,o),i.restore();break}case"fillSketch":this.fillSketch(i,s,n)}}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=i,this._drawToContext(e,r,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,n,i="nonzero"){e.beginPath();for(const a of r.ops){const s=typeof n=="number"&&n>=0?a.data.map((o=>+o.toFixed(n))):a.data;switch(a.op){case"move":e.moveTo(s[0],s[1]);break;case"bcurveTo":e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":e.lineTo(s[0],s[1])}}r.type==="fillPath"?e.fill(i):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,n,i,a){const s=this.gen.line(e,r,n,i,a);return this.draw(s),s}rectangle(e,r,n,i,a){const s=this.gen.rectangle(e,r,n,i,a);return this.draw(s),s}ellipse(e,r,n,i,a){const s=this.gen.ellipse(e,r,n,i,a);return this.draw(s),s}circle(e,r,n,i){const a=this.gen.circle(e,r,n,i);return this.draw(a),a}linearPath(e,r){const n=this.gen.linearPath(e,r);return this.draw(n),n}polygon(e,r){const n=this.gen.polygon(e,r);return this.draw(n),n}arc(e,r,n,i,a,s,o=!1,l){const u=this.gen.arc(e,r,n,i,a,s,o,l);return this.draw(u),u}curve(e,r){const n=this.gen.curve(e,r);return this.draw(n),n}path(e,r){const n=this.gen.path(e,r);return this.draw(n),n}}const Nx="http://www.w3.org/2000/svg";class kWe{constructor(e,r){this.svg=e,this.gen=new n6(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,a=i.createElementNS(Nx,"g"),s=e.options.fixedDecimalPlaceDigits;for(const o of r){let l=null;switch(o.type){case"path":l=i.createElementNS(Nx,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke",n.stroke),l.setAttribute("stroke-width",n.strokeWidth+""),l.setAttribute("fill","none"),n.strokeLineDash&&l.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":l=i.createElementNS(Nx,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",n.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(i,o,n)}l&&a.appendChild(l)}return a}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);const a=e.createElementNS(Nx,"path");return a.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),a.setAttribute("stroke",n.fill||""),a.setAttribute("stroke-width",i+""),a.setAttribute("fill","none"),n.fillLineDash&&a.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,n,i,a){const s=this.gen.line(e,r,n,i,a);return this.draw(s)}rectangle(e,r,n,i,a){const s=this.gen.rectangle(e,r,n,i,a);return this.draw(s)}ellipse(e,r,n,i,a){const s=this.gen.ellipse(e,r,n,i,a);return this.draw(s)}circle(e,r,n,i){const a=this.gen.circle(e,r,n,i);return this.draw(a)}linearPath(e,r){const n=this.gen.linearPath(e,r);return this.draw(n)}polygon(e,r){const n=this.gen.polygon(e,r);return this.draw(n)}arc(e,r,n,i,a,s,o=!1,l){const u=this.gen.arc(e,r,n,i,a,s,o,l);return this.draw(u)}curve(e,r){const n=this.gen.curve(e,r);return this.draw(n)}path(e,r){const n=this.gen.path(e,r);return this.draw(n)}}var gr={canvas:(t,e)=>new wWe(t,e),svg:(t,e)=>new kWe(t,e),generator:t=>new n6(t),newSeed:()=>n6.newSeed()},Mr=S(async(t,e,r)=>{let n;const i=e.useHtmlLabels||q0(Ke()?.htmlLabels);r?n=r:n="node default";const a=t.insert("g").attr("class",n).attr("id",e.domId||e.id),s=a.insert("g").attr("class","label").attr("style",Ba(e.labelStyle));let o;e.label===void 0?o="":o=typeof e.label=="string"?e.label:e.label[0];const l=!!e.icon||!!e.img,u=e.labelType==="markdown",d=await Zs(s,un(x0(o),Ke()),{useHtmlLabels:i,width:e.width||Ke().flowchart?.wrappingWidth,classes:u?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:l,markdown:u},Ke());let h=d.getBBox();const f=(e?.padding??0)/2;if(i){const p=d.children[0],g=At(d);await sG(p,o),h=p.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}return i?s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):s.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:h,halfPadding:f,label:s}},"labelHelper"),bR=S(async(t,e,r)=>{const n=r.useHtmlLabels??In(Ke()),i=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await Zs(i,un(x0(e),Ke()),{useHtmlLabels:n,width:r.width||Ke()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=a.getBBox();const o=r.padding/2;if(In(Ke())){const l=a.children[0],u=At(a);s=l.getBoundingClientRect(),u.attr("width",s.width),u.attr("height",s.height)}return n?i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):i.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:t,bbox:s,halfPadding:o,label:i}},"insertLabel"),yr=S((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),Or=S((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function hn(t){const e=t.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return e.push("Z"),e.join(" ")}S(hn,"createPathFromPoints");function lh(t,e,r,n,i,a){const s=[],l=r-t,u=n-e,d=l/a,h=2*Math.PI/d,f=e+u/2;for(let p=0;p<=50;p++){const g=p/50,m=t+g*l,y=f+i*Math.sin(h*(m-t));s.push({x:m,y})}return s}S(lh,"generateFullSineWavePoints");function WS(t,e,r,n,i,a){const s=[],o=i*Math.PI/180,d=(a*Math.PI/180-o)/(n-1);for(let h=0;hl.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),n=e.map(l=>l.getAttribute("d")).filter(l=>l!==null).join(" ");r.setAttribute("d",n);const i=e.find(l=>l.getAttribute("fill")!=="none"),a=e.find(l=>l.getAttribute("stroke")!=="none"),s=S((l,u)=>l?.getAttribute(u)??void 0,"getAttr");if(i){const l={fill:s(i,"fill"),"fill-opacity":s(i,"fill-opacity")??"1"};Object.entries(l).forEach(([u,d])=>{d&&r.setAttribute(u,d)})}if(a){const l={stroke:s(a,"stroke"),"stroke-width":s(a,"stroke-width")??"1","stroke-opacity":s(a,"stroke-opacity")??"1"};Object.entries(l).forEach(([u,d])=>{d&&r.setAttribute(u,d)})}const o=document.createElementNS("http://www.w3.org/2000/svg","g");return o.appendChild(r),o}S(AP,"mergePaths");var AWe=S((t,e)=>{var r=t.x,n=t.y,i=e.x-r,a=e.y-n,s=t.width/2,o=t.height/2,l,u;return Math.abs(a)*s>Math.abs(i)*o?(a<0&&(o=-o),l=a===0?0:o*i/a,u=o):(i<0&&(s=-s),l=s,u=i===0?0:s*a/i),{x:r+l,y:n+u}},"intersectRect"),Gb=AWe,RWe=S(async(t,e,r,n=!1,i=!1)=>{let a=e||"";typeof a=="object"&&(a=a[0]);const s=Ke(),o=In(s);return await Zs(t,a,{style:r,isTitle:n,useHtmlLabels:o,markdown:!1,isNode:i,width:Number.POSITIVE_INFINITY},s)},"createLabel"),Bd=RWe,Nh=S((t,e,r,n,i)=>["M",t+i,e,"H",t+r-i,"A",i,i,0,0,1,t+r,e+i,"V",e+n-i,"A",i,i,0,0,1,t+r-i,e+n,"H",t+i,"A",i,i,0,0,1,t,e+n-i,"V",e+i,"A",i,i,0,0,1,t+i,e,"Z"].join(" "),"createRoundedRectPathD"),Dpe=S(async(t,e)=>{ge.info("Creating subgraph rect for ",e.id,e);const r=Ke(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,{labelStyles:o,nodeStyles:l,borderStyles:u,backgroundStyles:d}=hr(e),h=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),f=In(r),p=h.insert("g").attr("class","cluster-label ");let g;e.labelType==="markdown"?g=await Zs(p,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width}):g=await Bd(p,e.label,e.labelStyle||"",!1,!0);let m=g.getBBox();if(In(r)){const T=g.children[0],w=At(g);m=T.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}const y=e.width<=m.width+e.padding?m.width+e.padding:e.width;e.width<=m.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;const v=e.height,b=e.x-y/2,_=e.y-v/2;ge.trace("Data ",e,JSON.stringify(e));let E;if(e.look==="handDrawn"){const T=gr.svg(h),w=mr(e,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:i}),N=T.path(Nh(b,_,y,v,0),w);E=h.insert(()=>(ge.debug("Rough node insert CXC",N),N),":first-child"),E.select("path:nth-child(2)").attr("style",u.join(";")),E.select("path").attr("style",d.join(";").replace("fill","stroke"))}else E=h.insert("rect",":first-child"),E.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",_).attr("width",y).attr("height",v);const{subGraphTitleTopMargin:x}=oT(r);if(p.attr("transform",`translate(${e.x-m.width/2}, ${e.y-e.height/2+x})`),o){const T=p.select("span");T&&T.attr("style",o)}const C=E.node().getBBox();return e.offsetX=0,e.width=C.width,e.height=C.height,e.offsetY=m.height-e.padding/2,e.intersect=function(T){return Gb(e,T)},{cluster:h,labelBBox:m}},"rect"),NWe=S((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),n=r.insert("rect",":first-child"),i=0*e.padding,a=i/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");const s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(o){return Gb(e,o)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),IWe=S(async(t,e)=>{const r=Ke(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:a,compositeBackground:s,compositeTitleBackground:o,nodeBorder:l}=n,u=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),d=u.insert("g",":first-child"),h=u.insert("g").attr("class","cluster-label");let f=u.append("rect");const p=await Bd(h,e.label,e.labelStyle,void 0,!0);let g=p.getBBox();if(In(r)){const N=p.children[0],O=At(p);g=N.getBoundingClientRect(),O.attr("width",g.width),O.attr("height",g.height)}const m=0*e.padding,y=m/2,v=(e.width<=g.width+e.padding?g.width+e.padding:e.width)+m;e.width<=g.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;const b=e.height+m,_=e.height+m-g.height-6,E=e.x-v/2,x=e.y-b/2;e.width=v;const C=e.y-e.height/2-y+g.height+2;let T;if(e.look==="handDrawn"){const N=e.cssClasses.includes("statediagram-cluster-alt"),O=gr.svg(u),M=e.rx||e.ry?O.path(Nh(E,x,v,b,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:l,seed:i}):O.rectangle(E,x,v,b,{seed:i});T=u.insert(()=>M,":first-child");const $=O.rectangle(E,C,v,_,{fill:N?a:s,fillStyle:N?"hachure":"solid",stroke:l,seed:i});T=u.insert(()=>M,":first-child"),f=u.insert(()=>$)}else T=d.insert("rect",":first-child"),T.attr("class","outer").attr("x",E).attr("y",x).attr("width",v).attr("height",b).attr("data-look",e.look),f.attr("class","inner").attr("x",E).attr("y",C).attr("width",v).attr("height",_);h.attr("transform",`translate(${e.x-g.width/2}, ${x+1-(In(r)?0:3)})`);const w=T.node().getBBox();return e.height=w.height,e.offsetX=0,e.offsetY=g.height-e.padding/2,e.labelBBox=g,e.intersect=function(N){return Gb(e,N)},{cluster:u,labelBBox:g}},"roundedWithTitle"),OWe=S(async(t,e)=>{ge.info("Creating subgraph rect for ",e.id,e);const r=Ke(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,{labelStyles:o,nodeStyles:l,borderStyles:u,backgroundStyles:d}=hr(e),h=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),f=In(r),p=h.insert("g").attr("class","cluster-label "),g=await Zs(p,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width});let m=g.getBBox();if(In(r)){const T=g.children[0],w=At(g);m=T.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}const y=e.width<=m.width+e.padding?m.width+e.padding:e.width;e.width<=m.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;const v=e.height,b=e.x-y/2,_=e.y-v/2;ge.trace("Data ",e,JSON.stringify(e));let E;if(e.look==="handDrawn"){const T=gr.svg(h),w=mr(e,{roughness:.7,fill:a,stroke:s,fillWeight:4,seed:i}),N=T.path(Nh(b,_,y,v,e.rx),w);E=h.insert(()=>(ge.debug("Rough node insert CXC",N),N),":first-child"),E.select("path:nth-child(2)").attr("style",u.join(";")),E.select("path").attr("style",d.join(";").replace("fill","stroke"))}else E=h.insert("rect",":first-child"),E.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",_).attr("width",y).attr("height",v);const{subGraphTitleTopMargin:x}=oT(r);if(p.attr("transform",`translate(${e.x-m.width/2}, ${e.y-e.height/2+x})`),o){const T=p.select("span");T&&T.attr("style",o)}const C=E.node().getBBox();return e.offsetX=0,e.width=C.width,e.height=C.height,e.offsetY=m.height-e.padding/2,e.intersect=function(T){return Gb(e,T)},{cluster:h,labelBBox:m}},"kanbanSection"),DWe=S((t,e)=>{const r=Ke(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:a}=n,s=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),o=s.insert("g",":first-child"),l=0*e.padding,u=e.width+l;e.diff=-e.padding;const d=e.height+l,h=e.x-u/2,f=e.y-d/2;e.width=u;let p;if(e.look==="handDrawn"){const y=gr.svg(s).rectangle(h,f,u,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:i});p=s.insert(()=>y,":first-child")}else{p=o.insert("rect",":first-child");let m="outer";e.look,m="divider",p.attr("class",m).attr("x",h).attr("y",f).attr("width",u).attr("height",d).attr("data-look",e.look)}const g=p.node().getBBox();return e.height=g.height,e.offsetX=0,e.offsetY=0,e.intersect=function(m){return Gb(e,m)},{cluster:s,labelBBox:{}}},"divider"),LWe=Dpe,MWe={rect:Dpe,squareRect:LWe,roundedWithTitle:IWe,noteGroup:NWe,divider:DWe,kanbanSection:OWe},Lpe=new Map,bG=S(async(t,e)=>{const r=e.shape||"rect",n=await MWe[r](t,e);return Lpe.set(e.id,n),n},"insertCluster"),PWe=S(()=>{Lpe=new Map},"clear");function Mpe(t,e){return t.intersect(e)}S(Mpe,"intersectNode");var BWe=Mpe;function Ppe(t,e,r,n){var i=t.x,a=t.y,s=i-n.x,o=a-n.y,l=Math.sqrt(e*e*o*o+r*r*s*s),u=Math.abs(e*r*s/l);n.x0}S(RP,"sameSign");var $We=$pe;function zpe(t,e,r){let n=t.x,i=t.y,a=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(d){s=Math.min(s,d.x),o=Math.min(o,d.y)}):(s=Math.min(s,e.x),o=Math.min(o,e.y));let l=n-t.width/2-s,u=i-t.height/2-o;for(let d=0;d1&&a.sort(function(d,h){let f=d.x-r.x,p=d.y-r.y,g=Math.sqrt(f*f+p*p),m=h.x-r.x,y=h.y-r.y,v=Math.sqrt(m*m+y*y);return gd,":first-child");return h.attr("class","anchor").attr("style",Ba(o)),yr(e,h),e.intersect=function(f){return ge.info("Circle intersect",e,s,f),lr.circle(e,s,f)},a}S(Upe,"anchor");function NP(t,e,r,n,i,a,s){const l=(t+r)/2,u=(e+n)/2,d=Math.atan2(n-e,r-t),h=(r-t)/2,f=(n-e)/2,p=h/i,g=f/a,m=Math.sqrt(p**2+g**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-m**2),v=l+y*a*Math.sin(d)*(s?-1:1),b=u-y*i*Math.cos(d)*(s?-1:1),_=Math.atan2((e-b)/a,(t-v)/i);let x=Math.atan2((n-b)/a,(r-v)/i)-_;s&&x<0&&(x+=2*Math.PI),!s&&x>0&&(x-=2*Math.PI);const C=[];for(let T=0;T<20;T++){const w=T/19,N=_+w*x,O=v+i*Math.cos(N),M=b+a*Math.sin(N);C.push({x:O,y:M})}return C}S(NP,"generateArcPoints");function Gpe(t,e,r){const[n,i]=[e,r].sort((a,s)=>s-a);return i*(1-Math.sqrt(1-(t/n/2)**2))}S(Gpe,"calculateArcSagitta");async function qpe(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i,o=S(N=>N+s,"calcTotalHeight"),l=S(N=>{const O=N/2;return[O/(2.5+N/50),O]},"calcEllipseRadius"),{shapeSvg:u,bbox:d}=await Mr(t,e,Or(e)),h=o(e?.height?e?.height:d.height),[f,p]=l(h),g=Gpe(h,f,p),y=(e?.width?e?.width:d.width)+a*2+g-g,v=h,{cssStyles:b}=e,_=[{x:y/2,y:-v/2},{x:-y/2,y:-v/2},...NP(-y/2,-v/2,-y/2,v/2,f,p,!1),{x:y/2,y:v/2},...NP(y/2,v/2,y/2,-v/2,f,p,!0)],E=gr.svg(u),x=mr(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=hn(_),T=E.path(C,x),w=u.insert(()=>T,":first-child");return w.attr("class","basic label-container outer-path"),b&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",b),n&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",n),w.attr("transform",`translate(${f/2}, 0)`),yr(e,w),e.intersect=function(N){return lr.polygon(e,_,N)},u}S(qpe,"bowTieRect");function H0(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}S(H0,"insertPolygonShape");var Ix=12;async function Ype(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?28:i,s=e.look==="neo"?24:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.width??l.width)+(e.look==="neo"?a*2:a+Ix),d=(e?.height??l.height)+(e.look==="neo"?s*2:s),h=0,f=u,p=-d,g=0,m=[{x:h+Ix,y:p},{x:f,y:p},{x:f,y:g},{x:h,y:g},{x:h,y:p+Ix},{x:h+Ix,y:p}];let y;const{cssStyles:v}=e;if(e.look==="handDrawn"){const b=gr.svg(o),_=mr(e,{}),E=hn(m),x=b.path(E,_);y=o.insert(()=>x,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),v&&y.attr("style",v)}else y=H0(o,u,d,m);return n&&y.attr("style",n),yr(e,y),e.intersect=function(b){return lr.polygon(e,m,b)},o}S(Ype,"card");function Hpe(t,e){const{nodeStyles:r}=hr(e);e.label="";const n=t.insert("g").attr("class",Or(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,a=Math.max(28,e.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],o=gr.svg(n),l=mr(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const u=hn(s),d=o.path(u,l),h=n.insert(()=>d,":first-child");return i&&e.look!=="handDrawn"&&h.selectAll("path").attr("style",i),r&&e.look!=="handDrawn"&&h.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(f){return lr.polygon(e,s,f)},n}S(Hpe,"choice");async function EG(t,e,r){const{labelStyles:n,nodeStyles:i}=hr(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,halfPadding:o}=await Mr(t,e,Or(e)),l=16,u=r?.padding??o,d=e.look==="neo"?s.width/2+l*2:s.width/2+u;let h;const{cssStyles:f}=e;if(e.look==="handDrawn"){const p=gr.svg(a),g=mr(e,{}),m=p.circle(0,0,d*2,g);h=a.insert(()=>m,":first-child"),h.attr("class","basic label-container").attr("style",Ba(f))}else h=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",d).attr("cx",0).attr("cy",0);return yr(e,h),e.calcIntersect=function(p,g){const m=p.width/2;return lr.circle(p,m,g)},e.intersect=function(p){return ge.info("Circle intersect",e,d,p),lr.circle(e,d,p)},a}S(EG,"circle");function Vpe(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=t*2,i={x:n/2*e,y:n/2*r},a={x:-(n/2)*e,y:n/2*r},s={x:-(n/2)*e,y:-(n/2)*r},o={x:n/2*e,y:-(n/2)*r};return`M ${a.x},${a.y} L ${o.x},${o.y} + M ${i.x},${i.y} L ${s.x},${s.y}`}S(Vpe,"createLine");function Wpe(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r,e.label="";const i=t.insert("g").attr("class",Or(e)).attr("id",e.domId??e.id),a=Math.max(30,e?.width??0),{cssStyles:s}=e,o=gr.svg(i),l=mr(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const u=o.circle(0,0,a*2,l),d=Vpe(a),h=o.path(d,l),f=i.insert(()=>u,":first-child");return f.insert(()=>h),f.attr("class","outer-path"),s&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",s),n&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",n),yr(e,f),e.intersect=function(p){return ge.info("crossedCircle intersect",e,{radius:a,point:p}),lr.circle(e,a,p)},i}S(Wpe,"crossedCircle");function Yu(t,e,r,n=100,i=0,a=180){const s=[],o=i*Math.PI/180,d=(a*Math.PI/180-o)/(n-1);for(let h=0;hx,":first-child").attr("stroke-opacity",0),C.insert(()=>_,":first-child"),C.attr("class","text"),f&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",n),C.attr("transform",`translate(${h}, 0)`),s.attr("transform",`translate(${-u/2+h-(a.x-(a.left??0))},${-d/2+(e.padding??0)/2-(a.y-(a.top??0))})`),yr(e,C),e.intersect=function(T){return lr.polygon(e,g,T)},i}S(Kpe,"curlyBraceLeft");function Hu(t,e,r,n=100,i=0,a=180){const s=[],o=i*Math.PI/180,d=(a*Math.PI/180-o)/(n-1);for(let h=0;hx,":first-child").attr("stroke-opacity",0),C.insert(()=>_,":first-child"),C.attr("class","text"),f&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",n),C.attr("transform",`translate(${-h}, 0)`),s.attr("transform",`translate(${-u/2+(e.padding??0)/2-(a.x-(a.left??0))},${-d/2+(e.padding??0)/2-(a.y-(a.top??0))})`),yr(e,C),e.intersect=function(T){return lr.polygon(e,g,T)},i}S(Xpe,"curlyBraceRight");function qa(t,e,r,n=100,i=0,a=180){const s=[],o=i*Math.PI/180,d=(a*Math.PI/180-o)/(n-1);for(let h=0;hN,":first-child").attr("stroke-opacity",0),O.insert(()=>E,":first-child"),O.insert(()=>T,":first-child"),O.attr("class","text"),f&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",n),O.attr("transform",`translate(${h-h/4}, 0)`),s.attr("transform",`translate(${-u/2+(e.padding??0)/2-(a.x-(a.left??0))},${-d/2+(e.padding??0)/2-(a.y-(a.top??0))})`),yr(e,O),e.intersect=function(M){return lr.polygon(e,m,M)},i}S(jpe,"curlyBraces");async function Qpe(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i,o=20,l=5,{shapeSvg:u,bbox:d}=await Mr(t,e,Or(e)),h=Math.max(o,(d.width+a*2)*1.25,e?.width??0),f=Math.max(l,d.height+s*2,e?.height??0),p=f/2,{cssStyles:g}=e,m=gr.svg(u),y=mr(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const v=h,b=f,_=v-p,E=b/4,x=[{x:_,y:0},{x:E,y:0},{x:0,y:b/2},{x:E,y:b},{x:_,y:b},...WS(-_,-b/2,p,50,270,90)],C=hn(x),T=m.path(C,y),w=u.insert(()=>T,":first-child");return w.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",g),n&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",n),w.attr("transform",`translate(${-h/2}, ${-f/2})`),yr(e,w),e.intersect=function(N){return lr.polygon(e,x,N)},u}S(Qpe,"curvedTrapezoid");var UWe=S((t,e,r,n,i,a)=>[`M${t},${e+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),GWe=S((t,e,r,n,i,a)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),qWe=S((t,e,r,n,i,a)=>[`M${t-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Kj=8,Xj=8;async function Zpe(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?24:i,s=e.look==="neo"?24:i;if(e.width||e.height){const y=e.width??0;e.width=(e.width??0)-s,e.widthx,":first-child"),g=o.insert(()=>E,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{const y=UWe(0,0,d,p,h,f);g=o.insert("path",":first-child").attr("d",y).attr("class","basic label-container outer-path").attr("style",Ba(m)).attr("style",n)}return g.attr("label-offset-y",f),g.attr("transform",`translate(${-d/2}, ${-(p/2+f)})`),yr(e,g),u.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+(e.padding??0)/1.5-(l.y-(l.top??0))})`),e.intersect=function(y){const v=lr.rect(e,y),b=v.x-(e.x??0);if(h!=0&&(Math.abs(b)<(e.width??0)/2||Math.abs(b)==(e.width??0)/2&&Math.abs(v.y-(e.y??0))>(e.height??0)/2-f)){let _=f*f*(1-b*b/(h*h));_>0&&(_=Math.sqrt(_)),_=f-_,y.y-(e.y??0)>0&&(_=-_),v.y+=_}return v},o}S(Zpe,"cylinder");async function qb(t,e,r){const{labelStyles:n,nodeStyles:i}=hr(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Mr(t,e,Or(e)),o=Math.max(s.width+r.labelPaddingX*2,e?.width||0),l=Math.max(s.height+r.labelPaddingY*2,e?.height||0),u=-o/2,d=-l/2;let h,{rx:f,ry:p}=e;const{cssStyles:g}=e;if(r?.rx&&r.ry&&(f=r.rx,p=r.ry),e.look==="handDrawn"){const m=gr.svg(a),y=mr(e,{}),v=f||p?m.path(Nh(u,d,o,l,f||0),y):m.rectangle(u,d,o,l,y);h=a.insert(()=>v,":first-child"),h.attr("class","basic label-container").attr("style",Ba(g))}else h=a.insert("rect",":first-child"),h.attr("class","basic label-container").attr("style",i).attr("rx",Ba(f)).attr("ry",Ba(p)).attr("x",u).attr("y",d).attr("width",o).attr("height",l);return yr(e,h),e.calcIntersect=function(m,y){return lr.rect(m,y)},e.intersect=function(m){return lr.rect(e,m)},a}S(qb,"drawRect");async function Jpe(t,e){const{cssClasses:r,labelPaddingX:n,labelPaddingY:i,padding:a,width:s,height:o}=e,l={rx:0,ry:0,labelPaddingX:n??(a??0)*2,labelPaddingY:i??a??0},u=await qb(t,e,l);if(e.look==="handDrawn"){const p=gr.svg(u),g=mr(e,{}),m=u.select(".basic.label-container > path:nth-child(2)"),y=m.node();if(!y)return u;let v=null;if(y instanceof SVGGraphicsElement)v=y.getBBox();else return u;return u.insert(()=>p.line(v.x,v.y,v.x+v.width,v.y,g),".basic.label-container g.label"),u.insert(()=>p.line(v.x,v.y+v.height,v.x+v.width,v.y+v.height,g),".basic.label-container g.label"),m.remove(),u}const d=u.select(".basic.label-container"),h=(Number(d.attr("width"))||s)??0,f=(Number(d.attr("height"))||o)??0;return h>0&&f>0&&d.attr("stroke-dasharray",`${h} ${f}`),u}S(Jpe,"datastore");async function ege(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.look==="neo"?16:e.padding??0,a=e.look==="neo"?16:e.padding??0,{shapeSvg:s,bbox:o,label:l}=await Mr(t,e,Or(e)),u=o.width+i,d=o.height+a,h=d*.2,f=-u/2,p=-d/2-h/2,{cssStyles:g}=e,m=gr.svg(s),y=mr(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const v=[{x:f,y:p+h},{x:-f,y:p+h},{x:-f,y:-p},{x:f,y:-p},{x:f,y:p},{x:-f,y:p},{x:-f,y:p+h}],b=m.polygon(v.map(E=>[E.x,E.y]),y),_=s.insert(()=>b,":first-child");return _.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",g),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),l.attr("transform",`translate(${f+(e.padding??0)/2-(o.x-(o.left??0))}, ${p+h+(e.padding??0)/2-(o.y-(o.top??0))})`),yr(e,_),e.intersect=function(E){return lr.rect(e,E)},s}S(ege,"dividedRectangle");async function tge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e),i=e.look==="neo"?12:5;e.labelStyle=r;const a=e.padding??0,s=e.look==="neo"?16:a,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.width?e?.width/2:l.width/2)+(s??0),d=u-i;let h;const{cssStyles:f}=e;if(e.look==="handDrawn"){const p=gr.svg(o),g=mr(e,{roughness:.2,strokeWidth:2.5}),m=mr(e,{roughness:.2,strokeWidth:1.5}),y=p.circle(0,0,u*2,g),v=p.circle(0,0,d*2,m);h=o.insert("g",":first-child"),h.attr("class",Ba(e.cssClasses)).attr("style",Ba(f)),h.node()?.appendChild(y),h.node()?.appendChild(v)}else{h=o.insert("g",":first-child");const p=h.insert("circle",":first-child"),g=h.insert("circle");h.attr("class","basic label-container").attr("style",n),p.attr("class","outer-circle").attr("style",n).attr("r",u).attr("cx",0).attr("cy",0),g.attr("class","inner-circle").attr("style",n).attr("r",d).attr("cx",0).attr("cy",0)}return yr(e,h),e.intersect=function(p){return ge.info("DoubleCircle intersect",e,u,p),lr.circle(e,u,p)},o}S(tge,"doublecircle");function rge(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=hr(e);e.label="",e.labelStyle=n;const a=t.insert("g").attr("class",Or(e)).attr("id",e.domId??e.id),s=7,{cssStyles:o}=e,l=gr.svg(a),{nodeBorder:u}=r,d=mr(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(d.roughness=0);const h=l.circle(0,0,s*2,d),f=a.insert(()=>h,":first-child");return f.selectAll("path").attr("style",`fill: ${u} !important;`),o&&o.length>0&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",o),i&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",i),yr(e,f),e.intersect=function(p){return ge.info("filledCircle intersect",e,{radius:s,point:p}),lr.circle(e,s,p)},a}S(rge,"filledCircle");var jj=10,Qj=10;async function nge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?i*2:i;(e.width||e.height)&&(e.height=e?.height??0,e.heightv,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return p&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),e.width=u,e.height=d,yr(e,b),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-d/2+(e.padding??0)/2+(o.y-(o.top??0))})`),e.intersect=function(_){return ge.info("Triangle intersect",e,f,_),lr.polygon(e,f,_)},s}S(nge,"flippedTriangle");function ige(t,e,{dir:r,config:{state:n,themeVariables:i}}){const{nodeStyles:a}=hr(e);e.label="";const s=t.insert("g").attr("class",Or(e)).attr("id",e.domId??e.id),{cssStyles:o}=e;let l=Math.max(70,e?.width??0),u=Math.max(10,e?.height??0);r==="LR"&&(l=Math.max(10,e?.width??0),u=Math.max(70,e?.height??0));const d=-1*l/2,h=-1*u/2,f=gr.svg(s),p=mr(e,{stroke:i.lineColor,fill:i.lineColor});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=f.rectangle(d,h,l,u,p),m=s.insert(()=>g,":first-child");o&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",o),a&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",a),yr(e,m);const y=n?.padding??0;return e.width&&e.height&&(e.width+=y/2||0,e.height+=y/2||0),e.intersect=function(v){return lr.rect(e,v)},s}S(ige,"forkJoin");async function age(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=15,a=10,s=e.look==="neo"?16:e.padding??0,o=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-o*2,e.heightb,":first-child");return _.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",n),yr(e,_),e.intersect=function(E){return ge.info("Pill intersect",e,{radius:f,point:E}),lr.polygon(e,y,E)},l}S(age,"halfRoundedRectangle");var YWe=S((t,e,r,n,i)=>[`M${t+i},${e}`,`L${t+r-i},${e}`,`L${t+r},${e-n/2}`,`L${t+r-i},${e-n}`,`L${t+i},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" "),"createHexagonPathD");async function sge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e),i=e.look==="neo"?3.5:4;e.labelStyle=r;const a=e.padding??0,s=70,o=32,l=e.look==="neo"?s:a,u=e.look==="neo"?o:a;if(e.width||e.height){const _=(e.height??0)/i;e.width=(e?.width??0)-2*_-u,e.height=(e.height??0)-l}const{shapeSvg:d,bbox:h}=await Mr(t,e,Or(e)),f=(e?.height?e?.height:h.height)+l,p=f/i,g=(e?.width?e?.width:h.width)+2*p+u,m=[{x:p,y:0},{x:g-p,y:0},{x:g,y:-f/2},{x:g-p,y:-f},{x:p,y:-f},{x:0,y:-f/2}];let y;const{cssStyles:v}=e;if(e.look==="handDrawn"){const b=gr.svg(d),_=mr(e,{}),E=YWe(0,0,g,f,p),x=b.path(E,_);y=d.insert(()=>x,":first-child").attr("transform",`translate(${-g/2}, ${f/2})`),v&&y.attr("style",v)}else y=H0(d,g,f,m);return n&&y.attr("style",n),e.width=g,e.height=f,yr(e,y),e.intersect=function(b){return lr.polygon(e,m,b)},d}S(sge,"hexagon");async function oge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.label="",e.labelStyle=r;const{shapeSvg:i}=await Mr(t,e,Or(e)),a=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:o}=e,l=gr.svg(i),u=mr(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],h=hn(d),f=l.path(h,u),p=i.insert(()=>f,":first-child");return p.attr("class","basic label-container outer-path"),o&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",o),n&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",n),p.attr("transform",`translate(${-a/2}, ${-s/2})`),yr(e,p),e.intersect=function(g){return ge.info("Pill intersect",e,{points:d}),lr.polygon(e,d,g)},i}S(oge,"hourglass");async function lge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=hr(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,label:h}=await Mr(t,e,"icon-shape default"),f=e.pos==="t",p=o,g=o,{nodeBorder:m}=r,{stylesMap:y}=Ub(e),v=-g/2,b=-p/2,_=e.label?8:0,E=gr.svg(u),x=mr(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=E.rectangle(v,b,g,p,x),T=Math.max(g,d.width),w=p+d.height+_,N=E.rectangle(-T/2,-w/2,T,w,{...x,fill:"transparent",stroke:"none"}),O=u.insert(()=>C,":first-child"),M=u.insert(()=>N);if(e.icon){const $=u.append("g");$.html(`${await sh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const F=$.node().getBBox(),A=F.width,I=F.height,D=F.x,L=F.y;$.attr("transform",`translate(${-A/2-D},${f?d.height/2+_/2-I/2-L:-d.height/2-_/2-I/2-L})`),$.attr("style",`color: ${y.get("stroke")??m};`)}return h.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${f?-w/2:w/2-d.height})`),O.attr("transform",`translate(0,${f?d.height/2+_/2:-d.height/2-_/2})`),yr(e,M),e.intersect=function($){if(ge.info("iconSquare intersect",e,$),!e.label)return lr.rect(e,$);const F=e.x??0,A=e.y??0,I=e.height??0;let D=[];return f?D=[{x:F-d.width/2,y:A-I/2},{x:F+d.width/2,y:A-I/2},{x:F+d.width/2,y:A-I/2+d.height+_},{x:F+g/2,y:A-I/2+d.height+_},{x:F+g/2,y:A+I/2},{x:F-g/2,y:A+I/2},{x:F-g/2,y:A-I/2+d.height+_},{x:F-d.width/2,y:A-I/2+d.height+_}]:D=[{x:F-g/2,y:A-I/2},{x:F+g/2,y:A-I/2},{x:F+g/2,y:A-I/2+p},{x:F+d.width/2,y:A-I/2+p},{x:F+d.width/2/2,y:A+I/2},{x:F-d.width/2,y:A+I/2},{x:F-d.width/2,y:A-I/2+p},{x:F-g/2,y:A-I/2+p}],lr.polygon(e,D,$)},u}S(lge,"icon");async function cge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=hr(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,label:h}=await Mr(t,e,"icon-shape default"),f=20,p=e.label?8:0,g=e.pos==="t",{nodeBorder:m,mainBkg:y}=r,{stylesMap:v}=Ub(e),b=gr.svg(u),_=mr(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const E=v.get("fill");_.stroke=E??y;const x=u.append("g");e.icon&&x.html(`${await sh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const C=x.node().getBBox(),T=C.width,w=C.height,N=C.x,O=C.y,M=Math.max(T,w)*Math.SQRT2+f*2,$=b.circle(0,0,M,_),F=Math.max(M,d.width),A=M+d.height+p,I=b.rectangle(-F/2,-A/2,F,A,{..._,fill:"transparent",stroke:"none"}),D=u.insert(()=>$,":first-child"),L=u.insert(()=>I);return x.attr("transform",`translate(${-T/2-N},${g?d.height/2+p/2-w/2-O:-d.height/2-p/2-w/2-O})`),x.attr("style",`color: ${v.get("stroke")??m};`),h.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-A/2:A/2-d.height})`),D.attr("transform",`translate(0,${g?d.height/2+p/2:-d.height/2-p/2})`),yr(e,L),e.intersect=function(R){return ge.info("iconSquare intersect",e,R),lr.rect(e,R)},u}S(cge,"iconCircle");async function uge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=hr(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,halfPadding:h,label:f}=await Mr(t,e,"icon-shape default"),p=e.pos==="t",g=o+h*2,m=o+h*2,{nodeBorder:y,mainBkg:v}=r,{stylesMap:b}=Ub(e),_=-m/2,E=-g/2,x=e.label?8:0,C=gr.svg(u),T=mr(e,{});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const w=b.get("fill");T.stroke=w??v;const N=C.path(Nh(_,E,m,g,5),T),O=Math.max(m,d.width),M=g+d.height+x,$=C.rectangle(-O/2,-M/2,O,M,{...T,fill:"transparent",stroke:"none"}),F=u.insert(()=>N,":first-child").attr("class","icon-shape2"),A=u.insert(()=>$);if(e.icon){const I=u.append("g");I.html(`${await sh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const D=I.node().getBBox(),L=D.width,R=D.height,P=D.x,z=D.y;I.attr("transform",`translate(${-L/2-P},${p?d.height/2+x/2-R/2-z:-d.height/2-x/2-R/2-z})`),I.attr("style",`color: ${b.get("stroke")??y};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-M/2:M/2-d.height})`),F.attr("transform",`translate(0,${p?d.height/2+x/2:-d.height/2-x/2})`),yr(e,A),e.intersect=function(I){if(ge.info("iconSquare intersect",e,I),!e.label)return lr.rect(e,I);const D=e.x??0,L=e.y??0,R=e.height??0;let P=[];return p?P=[{x:D-d.width/2,y:L-R/2},{x:D+d.width/2,y:L-R/2},{x:D+d.width/2,y:L-R/2+d.height+x},{x:D+m/2,y:L-R/2+d.height+x},{x:D+m/2,y:L+R/2},{x:D-m/2,y:L+R/2},{x:D-m/2,y:L-R/2+d.height+x},{x:D-d.width/2,y:L-R/2+d.height+x}]:P=[{x:D-m/2,y:L-R/2},{x:D+m/2,y:L-R/2},{x:D+m/2,y:L-R/2+g},{x:D+d.width/2,y:L-R/2+g},{x:D+d.width/2/2,y:L+R/2},{x:D-d.width/2,y:L+R/2},{x:D-d.width/2,y:L-R/2+g},{x:D-m/2,y:L-R/2+g}],lr.polygon(e,P,I)},u}S(uge,"iconRounded");async function dge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=hr(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,halfPadding:h,label:f}=await Mr(t,e,"icon-shape default"),p=e.pos==="t",g=o+h*2,m=o+h*2,{nodeBorder:y,mainBkg:v}=r,{stylesMap:b}=Ub(e),_=-m/2,E=-g/2,x=e.label?8:0,C=gr.svg(u),T=mr(e,{});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const w=b.get("fill");T.stroke=w??v;const N=C.path(Nh(_,E,m,g,.1),T),O=Math.max(m,d.width),M=g+d.height+x,$=C.rectangle(-O/2,-M/2,O,M,{...T,fill:"transparent",stroke:"none"}),F=u.insert(()=>N,":first-child"),A=u.insert(()=>$);if(e.icon){const I=u.append("g");I.html(`${await sh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const D=I.node().getBBox(),L=D.width,R=D.height,P=D.x,z=D.y;I.attr("transform",`translate(${-L/2-P},${p?d.height/2+x/2-R/2-z:-d.height/2-x/2-R/2-z})`),I.attr("style",`color: ${b.get("stroke")??y};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-M/2:M/2-d.height})`),F.attr("transform",`translate(0,${p?d.height/2+x/2:-d.height/2-x/2})`),yr(e,A),e.intersect=function(I){if(ge.info("iconSquare intersect",e,I),!e.label)return lr.rect(e,I);const D=e.x??0,L=e.y??0,R=e.height??0;let P=[];return p?P=[{x:D-d.width/2,y:L-R/2},{x:D+d.width/2,y:L-R/2},{x:D+d.width/2,y:L-R/2+d.height+x},{x:D+m/2,y:L-R/2+d.height+x},{x:D+m/2,y:L+R/2},{x:D-m/2,y:L+R/2},{x:D-m/2,y:L-R/2+d.height+x},{x:D-d.width/2,y:L-R/2+d.height+x}]:P=[{x:D-m/2,y:L-R/2},{x:D+m/2,y:L-R/2},{x:D+m/2,y:L-R/2+g},{x:D+d.width/2,y:L-R/2+g},{x:D+d.width/2/2,y:L+R/2},{x:D-d.width/2,y:L+R/2},{x:D-d.width/2,y:L-R/2+g},{x:D-m/2,y:L-R/2+g}],lr.polygon(e,P,I)},u}S(dge,"iconSquare");async function hge(t,e,{config:{flowchart:r}}){const n=new Image;n.src=e?.img??"",await n.decode();const i=Number(n.naturalWidth.toString().replace("px","")),a=Number(n.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/a;const{labelStyles:s}=hr(e);e.labelStyle=s;const o=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;const l=Math.max(e.label?o??0:0,e?.assetWidth??i),u=e.constraint==="on"&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:l,d=e.constraint==="on"?u/e.imageAspectRatio:e?.assetHeight??a;e.width=Math.max(u,o??0);const{shapeSvg:h,bbox:f,label:p}=await Mr(t,e,"image-shape default"),g=e.pos==="t",m=-u/2,y=-d/2,v=e.label?8:0,b=gr.svg(h),_=mr(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const E=b.rectangle(m,y,u,d,_),x=Math.max(u,f.width),C=d+f.height+v,T=b.rectangle(-x/2,-C/2,x,C,{..._,fill:"none",stroke:"none"}),w=h.insert(()=>E,":first-child"),N=h.insert(()=>T);if(e.img){const O=h.append("image");O.attr("href",e.img),O.attr("width",u),O.attr("height",d),O.attr("preserveAspectRatio","none"),O.attr("transform",`translate(${-u/2},${g?C/2-d:-C/2})`)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-d/2-f.height/2-v/2:d/2-f.height/2+v/2})`),w.attr("transform",`translate(0,${g?f.height/2+v/2:-f.height/2-v/2})`),yr(e,N),e.intersect=function(O){if(ge.info("iconSquare intersect",e,O),!e.label)return lr.rect(e,O);const M=e.x??0,$=e.y??0,F=e.height??0;let A=[];return g?A=[{x:M-f.width/2,y:$-F/2},{x:M+f.width/2,y:$-F/2},{x:M+f.width/2,y:$-F/2+f.height+v},{x:M+u/2,y:$-F/2+f.height+v},{x:M+u/2,y:$+F/2},{x:M-u/2,y:$+F/2},{x:M-u/2,y:$-F/2+f.height+v},{x:M-f.width/2,y:$-F/2+f.height+v}]:A=[{x:M-u/2,y:$-F/2},{x:M+u/2,y:$-F/2},{x:M+u/2,y:$-F/2+d},{x:M+f.width/2,y:$-F/2+d},{x:M+f.width/2/2,y:$+F/2},{x:M-f.width/2,y:$+F/2},{x:M-f.width/2,y:$-F/2+d},{x:M-u/2,y:$-F/2+d}],lr.polygon(e,A,O)},h}S(hge,"imageSquare");async function fge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=i,s=e.look==="neo"?i*2:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=Math.max(l.width+(s??0)*2,e?.width??0),d=Math.max(l.height+(a??0)*2,e?.height??0),h=[{x:0,y:0},{x:u,y:0},{x:u+3*d/6,y:-d},{x:-3*d/6,y:-d}];let f;const{cssStyles:p}=e;if(e.look==="handDrawn"){const g=gr.svg(o),m=mr(e,{}),y=hn(h),v=g.path(y,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),p&&f.attr("style",p)}else f=H0(o,u,d,h);return n&&f.attr("style",n),e.width=u,e.height=d,yr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}S(fge,"inv_trapezoid");async function pge(t,e){const{shapeSvg:r,bbox:n,label:i}=await Mr(t,e,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),yr(e,a),e.intersect=function(l){return lr.rect(e,l)},r}S(pge,"labelRect");async function gge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=i,s=e.look==="neo"?i*2:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.height??l.height)+a,d=(e?.width??l.width)+s,h=[{x:0,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:-(3*u)/6,y:-u}];let f;const{cssStyles:p}=e;if(e.look==="handDrawn"){const g=gr.svg(o),m=mr(e,{}),y=hn(h),v=g.path(y,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=H0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,yr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}S(gge,"lean_left");async function mge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=i,s=e.look==="neo"?i*2:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.height??l.height)+a,d=(e?.width??l.width)+s,h=[{x:-3*u/6,y:0},{x:d,y:0},{x:d+3*u/6,y:-u},{x:0,y:-u}];let f;const{cssStyles:p}=e;if(e.look==="handDrawn"){const g=gr.svg(o),m=mr(e,{}),y=hn(h),v=g.path(y,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=H0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,yr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}S(mge,"lean_right");function yge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.label="",e.labelStyle=r;const i=t.insert("g").attr("class",Or(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,s=Math.max(35,e?.width??0),o=Math.max(35,e?.height??0),l=7,u=[{x:s,y:0},{x:0,y:o+l/2},{x:s-2*l,y:o+l/2},{x:0,y:2*o},{x:s,y:o-l/2},{x:2*l,y:o-l/2}],d=gr.svg(i),h=mr(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const f=hn(u),p=d.path(f,h),g=i.insert(()=>p,":first-child");return g.attr("class","outer-path"),a&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",a),n&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",n),g.attr("transform",`translate(-${s/2},${-o})`),yr(e,g),e.intersect=function(m){return ge.info("lightningBolt intersect",e,m),lr.polygon(e,u,m)},i}S(yge,"lightningBolt");var HWe=S((t,e,r,n,i,a,s)=>[`M${t},${e+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),VWe=S((t,e,r,n,i,a,s)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),WWe=S((t,e,r,n,i,a)=>[`M${t-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Zj=10,Jj=10;async function vge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?24:i;if(e.width||e.height){const v=e.width??0;e.width=(e.width??0)-a,e.widthC,":first-child").attr("class","line"),m=o.insert(()=>x,":first-child"),m.attr("class","basic label-container"),y&&m.attr("style",y)}else{const v=HWe(0,0,d,p,h,f,g);m=o.insert("path",":first-child").attr("d",v).attr("class","basic label-container outer-path").attr("style",Ba(y)).attr("style",n)}return m.attr("label-offset-y",f),m.attr("transform",`translate(${-d/2}, ${-(p/2+f)})`),yr(e,m),u.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+f-(l.y-(l.top??0))})`),e.intersect=function(v){const b=lr.rect(e,v),_=b.x-(e.x??0);if(h!=0&&(Math.abs(_)<(e.width??0)/2||Math.abs(_)==(e.width??0)/2&&Math.abs(b.y-(e.y??0))>(e.height??0)/2-f)){let E=f*f*(1-_*_/(h*h));E>0&&(E=Math.sqrt(E)),E=f-E,v.y-(e.y??0)>0&&(E=-E),b.y+=E}return b},o}S(vge,"linedCylinder");async function _ge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i;if(e.width||e.height){const E=e.width;e.width=(E??0)*10/11-a*2,e.width<10&&(e.width=10),e.height=(e?.height??0)-s*2,e.height<10&&(e.height=10)}const{shapeSvg:o,bbox:l,label:u}=await Mr(t,e,Or(e)),d=(e?.width?e?.width:l.width)+(a??0)*2,h=(e?.height?e?.height:l.height)+(s??0)*2,f=e.look==="neo"?h/4:h/8,p=h+f,{cssStyles:g}=e,m=gr.svg(o),y=mr(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const v=[{x:-d/2-d/2*.1,y:-p/2},{x:-d/2-d/2*.1,y:p/2},...lh(-d/2-d/2*.1,p/2,d/2+d/2*.1,p/2,f,.8),{x:d/2+d/2*.1,y:-p/2},{x:-d/2-d/2*.1,y:-p/2},{x:-d/2,y:-p/2},{x:-d/2,y:p/2*1.1},{x:-d/2,y:-p/2}],b=m.polygon(v.map(E=>[E.x,E.y]),y),_=o.insert(()=>b,":first-child");return _.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",g),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),_.attr("transform",`translate(0,${-f/2})`),u.attr("transform",`translate(${-d/2+(e.padding??0)+d/2*.1/2-(l.x-(l.left??0))},${-h/2+(e.padding??0)-f/2-(l.y-(l.top??0))})`),yr(e,_),e.intersect=function(E){return lr.polygon(e,v,E)},o}S(_ge,"linedWaveEdgedRect");async function bge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i,o=e.look==="neo"?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-a*2-2*o,10),e.height=Math.max((e?.height??0)-s*2-2*o,10));const{shapeSvg:l,bbox:u,label:d}=await Mr(t,e,Or(e)),h=(e?.width?e?.width:u.width)+a*2+2*o,f=(e?.height?e?.height:u.height)+s*2+2*o,p=h-2*o,g=f-2*o,m=-p/2,y=-g/2,{cssStyles:v}=e,b=gr.svg(l),_=mr(e,{}),E=[{x:m-o,y:y+o},{x:m-o,y:y+g+o},{x:m+p-o,y:y+g+o},{x:m+p-o,y:y+g},{x:m+p,y:y+g},{x:m+p,y:y+g-o},{x:m+p+o,y:y+g-o},{x:m+p+o,y:y-o},{x:m+o,y:y-o},{x:m+o,y},{x:m,y},{x:m,y:y+o}],x=[{x:m,y:y+o},{x:m+p-o,y:y+o},{x:m+p-o,y:y+g},{x:m+p,y:y+g},{x:m+p,y},{x:m,y}];e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const C=hn(E);let T=b.path(C,_);const w=hn(x);let N=b.path(w,_);e.look!=="handDrawn"&&(T=AP(T),N=AP(N));const O=l.insert("g",":first-child");return O.insert(()=>T),O.insert(()=>N),O.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",v),n&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",n),d.attr("transform",`translate(${-(u.width/2)-o-(u.x-(u.left??0))}, ${-(u.height/2)+o-(u.y-(u.top??0))})`),yr(e,O),e.intersect=function(M){return lr.polygon(e,E,M)},l}S(bge,"multiRect");async function Ege(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await Mr(t,e,Or(e)),o=e.padding??0,l=e.look==="neo"?16:o,u=e.look==="neo"?12:o;let d=!0;(e.width||e.height)&&(d=!1,e.width=(e?.width??0)-l*2,e.height=(e?.height??0)-u*3);const h=Math.max(a.width,e?.width??0)+l*2,f=Math.max(a.height,e?.height??0)+u*3,p=e.look==="neo"?f/4:f/8,g=f+(d?p/2:-p/2),m=-h/2,y=-g/2,v=10,{cssStyles:b}=e,_=lh(m-v,y+g+v,m+h-v,y+g+v,p,.8),E=_?.[_.length-1],x=[{x:m-v,y:y+v},{x:m-v,y:y+g+v},..._,{x:m+h-v,y:E.y-v},{x:m+h,y:E.y-v},{x:m+h,y:E.y-2*v},{x:m+h+v,y:E.y-2*v},{x:m+h+v,y:y-v},{x:m+v,y:y-v},{x:m+v,y},{x:m,y},{x:m,y:y+v}],C=[{x:m,y:y+v},{x:m+h-v,y:y+v},{x:m+h-v,y:E.y-v},{x:m+h,y:E.y-v},{x:m+h,y},{x:m,y}],T=gr.svg(i),w=mr(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const N=hn(x),O=T.path(N,w),M=hn(C),$=T.path(M,w),F=i.insert(()=>O,":first-child");return F.insert(()=>$),F.attr("class","basic label-container outer-path"),b&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",b),n&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",n),F.attr("transform",`translate(0,${-p/2})`),s.attr("transform",`translate(${-(a.width/2)-v-(a.x-(a.left??0))}, ${-(a.height/2)+v-p/2-(a.y-(a.top??0))})`),yr(e,F),e.intersect=function(A){return lr.polygon(e,x,A)},i}S(Ege,"multiWaveEdgedRectangle");async function Sge(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=hr(e);e.labelStyle=n,e.useHtmlLabels||In(xr())||(e.centerLabel=!0);const{shapeSvg:s,bbox:o,label:l}=await Mr(t,e,Or(e)),u=Math.max(o.width+(e.padding??0)*2,e?.width??0),d=Math.max(o.height+(e.padding??0)*2,e?.height??0),h=-u/2,f=-d/2,{cssStyles:p}=e,g=gr.svg(s),m=mr(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=g.rectangle(h,f,u,d,m),v=s.insert(()=>y,":first-child");return v.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),p&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",i),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),yr(e,v),e.intersect=function(b){return lr.rect(e,b)},s}S(Sge,"note");var KWe=S((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Tge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await Mr(t,e,Or(e)),s=a.width+(e.padding??0),o=a.height+(e.padding??0),l=s+o,u=.5,d=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let h;const{cssStyles:f}=e;if(e.look==="handDrawn"){const p=gr.svg(i),g=mr(e,{}),m=KWe(0,0,l),y=p.path(m,g);h=i.insert(()=>y,":first-child").attr("transform",`translate(${-l/2+u}, ${l/2})`),f&&h.attr("style",f)}else h=H0(i,l,l,d),h.attr("transform",`translate(${-l/2+u}, ${l/2})`);return n&&h.attr("style",n),yr(e,h),e.calcIntersect=function(p,g){const m=p.width,y=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],v=lr.polygon(p,y,g);return{x:v.x-.5,y:v.y-.5}},e.intersect=function(p){return this.calcIntersect(e,p)},i}S(Tge,"question");async function xge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?21:i??0,s=e.look==="neo"?12:i??0,{shapeSvg:o,bbox:l,label:u}=await Mr(t,e,Or(e)),d=(e?.width??l.width)+(e.look==="neo"?a*2:a),h=(e?.height??l.height)+(e.look==="neo"?s*2:s),f=-d/2,p=-h/2,g=p/2,m=[{x:f+g,y:p},{x:f,y:0},{x:f+g,y:-p},{x:-f,y:-p},{x:-f,y:p}],{cssStyles:y}=e,v=gr.svg(o),b=mr(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=hn(m),E=v.path(_,b),x=o.insert(()=>E,":first-child");return x.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",y),n&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(${-g/2},0)`),u.attr("transform",`translate(${-g/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),yr(e,x),e.intersect=function(C){return lr.polygon(e,m,C)},o}S(xge,"rect_left_inv_arrow");async function Cge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;let i;e.cssClasses?i="node "+e.cssClasses:i="node default";const a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=a.insert("g"),o=a.insert("g").attr("class","label").attr("style",n),l=e.description,u=e.label,d=await Bd(o,u,e.labelStyle,!0,!0);let h={width:0,height:0};if(In(Ke())){const w=d.children[0],N=At(d);h=w.getBoundingClientRect(),N.attr("width",h.width),N.attr("height",h.height)}ge.info("Text 2",l);const f=l||[],p=d.getBBox(),g=await Bd(o,Array.isArray(f)?f.join("
"):f,e.labelStyle,!0,!0),m=g.children[0],y=At(g);h=m.getBoundingClientRect(),y.attr("width",h.width),y.attr("height",h.height);const v=(e.padding||0)/2;At(g).attr("transform","translate( "+(h.width>p.width?0:(p.width-h.width)/2)+", "+(p.height+v+5)+")"),At(d).attr("transform","translate( "+(h.width(ge.debug("Rough node insert CXC",O),M),":first-child"),C=a.insert(()=>(ge.debug("Rough node insert CXC",O),O),":first-child")}else C=s.insert("rect",":first-child"),T=s.insert("line"),C.attr("class","outer title-state").attr("style",n).attr("x",-h.width/2-v).attr("y",-h.height/2-v).attr("width",h.width+(e.padding||0)).attr("height",h.height+(e.padding||0)),T.attr("class","divider").attr("x1",-h.width/2-v).attr("x2",h.width/2+v).attr("y1",-h.height/2-v+p.height+v).attr("y2",-h.height/2-v+p.height+v);return yr(e,C),e.intersect=function(w){return lr.rect(e,w)},a}S(Cge,"rectWithTitle");async function wge(t,e,{config:{themeVariables:r}}){const n=r?.radius??5,i={rx:n,ry:n,labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return qb(t,e,i)}S(wge,"roundedRect");var rf=8;async function kge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.look==="neo"?16:e.padding??0,a=e.look==="neo"?12:e.padding??0,{shapeSvg:s,bbox:o,label:l}=await Mr(t,e,Or(e)),u=(e?.width??o.width)+i*2+(e.look==="neo"?rf:rf*2),d=(e?.height??o.height)+a*2,h=u-rf,f=d,p=rf-u/2,g=-d/2,{cssStyles:m}=e,y=gr.svg(s),v=mr(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const b=[{x:p,y:g},{x:p+h,y:g},{x:p+h,y:g+f},{x:p-rf,y:g+f},{x:p-rf,y:g},{x:p,y:g},{x:p,y:g+f}],_=y.polygon(b.map(x=>[x.x,x.y]),v),E=s.insert(()=>_,":first-child");return E.attr("class","basic label-container outer-path").attr("style",Ba(m)),n&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",n),m&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",n),l.attr("transform",`translate(${rf/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),yr(e,E),e.intersect=function(x){return lr.rect(e,x)},s}S(kge,"shadedProcess");async function Age(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-a*2,10),e.height=Math.max((e?.height??0)/1.5-s*2,10));const{shapeSvg:o,bbox:l,label:u}=await Mr(t,e,Or(e)),d=(e?.width?e?.width:l.width)+a*2,h=((e?.height?e?.height:l.height)+s*2)*1.5,f=d,p=h/1.5,g=-f/2,m=-p/2,{cssStyles:y}=e,v=gr.svg(o),b=mr(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=[{x:g,y:m},{x:g,y:m+p},{x:g+f,y:m+p},{x:g+f,y:m-p/2}],E=hn(_),x=v.path(E,b),C=o.insert(()=>x,":first-child");return C.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&C.selectChildren("path").attr("style",y),n&&e.look!=="handDrawn"&&C.selectChildren("path").attr("style",n),C.attr("transform",`translate(0, ${p/4})`),u.attr("transform",`translate(${-f/2+(e.padding??0)-(l.x-(l.left??0))}, ${-p/4+(e.padding??0)-(l.y-(l.top??0))})`),yr(e,C),e.intersect=function(T){return lr.polygon(e,_,T)},o}S(Age,"slopedRect");async function Rge(t,e){const r=e.padding??0,n=e.look==="neo"?16:r*2,i=e.look==="neo"?12:r,a={rx:0,ry:0,labelPaddingX:e.labelPaddingX??n,labelPaddingY:i};return qb(t,e,a)}S(Rge,"squareRect");async function Nge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?20:i,s=e.look==="neo"?12:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=l.height+(e.look==="neo"?s*2:s),d=l.width+u/4+(e.look==="neo"?a*2:a),h=u/2,{cssStyles:f}=e,p=gr.svg(o),g=mr(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:-d/2+h,y:-u/2},{x:d/2-h,y:-u/2},...WS(-d/2+h,0,h,50,90,270),{x:d/2-h,y:u/2},...WS(d/2-h,0,h,50,270,450)],y=hn(m),v=p.path(y,g),b=o.insert(()=>v,":first-child");return b.attr("class","basic label-container outer-path"),f&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",f),n&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),yr(e,b),e.intersect=function(_){return lr.polygon(e,m,_)},o}S(Nge,"stadium");async function Ige(t,e){const r={rx:e.look==="neo"?3:5,ry:e.look==="neo"?3:5};return qb(t,e,r)}S(Ige,"state");function Oge(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=hr(e);e.labelStyle=n;const{cssStyles:a}=e,{lineColor:s,stateBorder:o,nodeBorder:l,nodeShadow:u}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);const d=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),h=gr.svg(d),f=mr(e,{});e.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=h.circle(0,0,e.width,{...f,stroke:s,strokeWidth:2}),g=o??l,m=(e.width??0)*5/14,y=h.circle(0,0,m,{...f,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),v=d.insert(()=>p,":first-child");if(v.insert(()=>y),e.look!=="handDrawn"&&v.attr("class","outer-path"),a&&v.selectAll("path").attr("style",a),i&&v.selectAll("path").attr("style",i),e.width<25&&u&&e.look!=="handDrawn"){const b=t.node()?.ownerSVGElement?.id??"",_=b?`${b}-drop-shadow-small`:"drop-shadow-small";v.attr("style",`filter:url(#${_})`)}return yr(e,v),e.intersect=function(b){return lr.circle(e,(e.width??0)/2,b)},d}S(Oge,"stateEnd");function Dge(t,e,{config:{themeVariables:r}}){const{lineColor:n,nodeShadow:i}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let s;if(e.look==="handDrawn"){const l=gr.svg(a).circle(0,0,e.width,sVe(n));s=a.insert(()=>l),s.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else s=a.insert("circle",":first-child"),s.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&i&&e.look!=="handDrawn"){const o=t.node()?.ownerSVGElement?.id??"",l=o?`${o}-drop-shadow-small`:"drop-shadow-small";s.attr("style",`filter:url(#${l})`)}return yr(e,s),e.intersect=function(o){return lr.circle(e,(e.width??7)/2,o)},a}S(Dge,"stateStart");var Mg=8;async function Lge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e?.padding??8,a=e.look==="neo"?28:i,s=e.look==="neo"?12:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.width??l.width)+2*Mg+a,d=(e?.height??l.height)+s,h=u-2*Mg,f=d,p=-u/2,g=-d/2,m=[{x:0,y:0},{x:h,y:0},{x:h,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:h+8,y:0},{x:h+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if(e.look==="handDrawn"){const y=gr.svg(o),v=mr(e,{}),b=y.rectangle(p,g,h+16,f,v),_=y.line(p+Mg,g,p+Mg,g+f,v),E=y.line(p+Mg+h,g,p+Mg+h,g+f,v);o.insert(()=>_,":first-child"),o.insert(()=>E,":first-child");const x=o.insert(()=>b,":first-child"),{cssStyles:C}=e;x.attr("class","basic label-container").attr("style",Ba(C)),yr(e,x)}else{const y=H0(o,h,f,m);n&&y.attr("style",n),yr(e,y)}return e.intersect=function(y){return lr.polygon(e,m,y)},o}S(Lge,"subroutine");var ER=.2;async function Mge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-s*2,10),e.width=Math.max((e?.width??0)-a*2-ER*(e.height+s*2),10));const{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.height?e?.height:l.height)+s*2,d=ER*u,h=ER*u,p=(e?.width?e?.width:l.width)+a*2+d-d,g=u,m=-p/2,y=-g/2,{cssStyles:v}=e,b=gr.svg(o),_=mr(e,{}),E=[{x:m-d/2,y},{x:m+p+d/2,y},{x:m+p+d/2,y:y+g},{x:m-d/2,y:y+g}],x=[{x:m+p-d/2,y:y+g},{x:m+p+d/2,y:y+g},{x:m+p+d/2,y:y+g-h}];e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const C=hn(E),T=b.path(C,_),w=hn(x),N=b.path(w,{..._,fillStyle:"solid"}),O=o.insert(()=>N,":first-child");return O.insert(()=>T,":first-child"),O.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",v),n&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",n),yr(e,O),e.intersect=function(M){return lr.polygon(e,E,M)},o}S(Mge,"taggedRect");async function Pge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await Mr(t,e,Or(e)),o=Math.max(a.width+(e.padding??0)*2,e?.width??0),l=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=l/8,d=.2*o,h=.2*l,f=l+u,{cssStyles:p}=e,g=gr.svg(i),m=mr(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-o/2-o/2*.1,y:f/2},...lh(-o/2-o/2*.1,f/2,o/2+o/2*.1,f/2,u,.8),{x:o/2+o/2*.1,y:-f/2},{x:-o/2-o/2*.1,y:-f/2}],v=-o/2+o/2*.1,b=-f/2-h*.4,_=[{x:v+o-d,y:(b+l)*1.3},{x:v+o,y:b+l-h},{x:v+o,y:(b+l)*.9},...lh(v+o,(b+l)*1.25,v+o-d,(b+l)*1.3,-l*.02,.5)],E=hn(y),x=g.path(E,m),C=hn(_),T=g.path(C,{...m,fillStyle:"solid"}),w=i.insert(()=>T,":first-child");return w.insert(()=>x,":first-child"),w.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",n),w.attr("transform",`translate(0,${-u/2})`),s.attr("transform",`translate(${-o/2+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-u/2-(a.y-(a.top??0))})`),yr(e,w),e.intersect=function(N){return lr.polygon(e,y,N)},i}S(Pge,"taggedWaveEdgedRectangle");async function Bge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await Mr(t,e,Or(e)),s=Math.max(a.width+(e.padding??0),e?.width||0),o=Math.max(a.height+(e.padding??0),e?.height||0),l=-s/2,u=-o/2,d=i.insert("rect",":first-child");return d.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",l).attr("y",u).attr("width",s).attr("height",o),yr(e,d),e.intersect=function(h){return lr.rect(e,h)},i}S(Bge,"text");var XWe=S((t,e,r,n,i,a)=>`M${t},${e} a${i},${a} 0,0,1 0,${-n} l${r},0 a${i},${a} 0,0,1 0,${n} M${r},${-n} a${i},${a} 0,0,0 0,${n} - l${-r},0`,"createCylinderPathD"),XWe=S((t,e,r,n,i,a)=>[`M${t},${e}`,`M${t+r},${e}`,`a${i},${a} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${a} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),jWe=S((t,e,r,n,i,a)=>[`M${t+r/2},${-n/2}`,`a${i},${a} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD"),eQ=5,tQ=10;async function Fge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?12:i/2;if(e.width||e.height){const m=e.height??0;e.height=(e.height??0)-a,e.height_,":first-child"),g=s.insert(()=>b,":first-child"),g.attr("class","basic label-container"),p&&g.attr("style",p)}else{const m=KWe(0,0,f,u,h,d);g=s.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Ba(p)).attr("style",n),g.attr("class","basic label-container outer-path"),p&&g.selectAll("path").attr("style",p),n&&g.selectAll("path").attr("style",n)}return g.attr("label-offset-x",h),g.attr("transform",`translate(${-f/2}, ${u/2} )`),l.attr("transform",`translate(${-(o.width/2)-h-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),yr(e,g),e.intersect=function(m){const y=lr.rect(e,m),v=y.y-(e.y??0);if(d!=0&&(Math.abs(v)<(e.height??0)/2||Math.abs(v)==(e.height??0)/2&&Math.abs(y.x-(e.x??0))>(e.width??0)/2-h)){let b=h*h*(1-v*v/(d*d));b!=0&&(b=Math.sqrt(Math.abs(b))),b=h-b,m.x-(e.x??0)>0&&(b=-b),y.x+=b}return y},s}S(Fge,"tiltedCylinder");async function $ge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=(e.look==="neo",i),s=e.look==="neo"?i*2:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.height??l.height)+a,d=(e?.width??l.width)+s,h=[{x:-3*u/6,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:0,y:-u}];let f;const{cssStyles:p}=e;if(e.look==="handDrawn"){const g=gr.svg(o),m=mr(e,{}),y=hn(h),v=g.path(y,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=H0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,yr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}S($ge,"trapezoid");async function zge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i,o=15,l=5;(e.width||e.height)&&(e.height=(e.height??0)-s*2,e.heightb,":first-child");return _.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",n),yr(e,_),e.intersect=function(E){return lr.polygon(e,y,E)},u}S(zge,"trapezoidalPentagon");var rQ=10,nQ=10;async function Uge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?i*2:i;(e.width||e.height)&&(e.width=((e?.width??0)-a)/2,e.widthb,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`).attr("class","outer-path");return g&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",g),n&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",n),e.width=d,e.height=h,yr(e,_),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${h/2-(o.height+(e.padding??0)/(u?2:1)-(o.y-(o.top??0)))})`),e.intersect=function(E){return ge.info("Triangle intersect",e,p,E),lr.polygon(e,p,E)},s}S(Uge,"triangle");async function Gge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i;let o=!0;(e.width||e.height)&&(o=!1,e.width=(e?.width??0)-a*2,e.width<10&&(e.width=10),e.height=(e?.height??0)-s*2,e.height<10&&(e.height=10));const{shapeSvg:l,bbox:u,label:d}=await Mr(t,e,Or(e)),h=(e?.width?e?.width:u.width)+(a??0)*2,f=(e?.height?e?.height:u.height)+(s??0)*2,p=e.look==="neo"?f/4:f/8,g=f+(o?p:-p),{cssStyles:m}=e,v=14-h,b=v>0?v/2:0,_=gr.svg(l),E=mr(e,{});e.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const x=[{x:-h/2-b,y:g/2},...lh(-h/2-b,g/2,h/2+b,g/2,p,.8),{x:h/2+b,y:-g/2},{x:-h/2-b,y:-g/2}],C=hn(x),T=_.path(C,E),w=l.insert(()=>T,":first-child");return w.attr("class","basic label-container outer-path"),m&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",m),n&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",n),w.attr("transform",`translate(0,${-p/2})`),d.attr("transform",`translate(${-h/2+(e.padding??0)-(u.x-(u.left??0))},${-f/2+(e.padding??0)-p-(u.y-(u.top??0))})`),yr(e,w),e.intersect=function(N){return lr.polygon(e,x,N)},l}S(Gge,"waveEdgedRectangle");async function qge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?20:i;if(e.width||e.height){e.width=e?.width??0,e.width<20&&(e.width=20),e.height=e?.height??0,e.height<10&&(e.height=10);const E=Math.min(e.height*.2,e.height/4);e.height=Math.ceil(e.height-s-E*(20/9)),e.width=e.width-a*2}const{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.width?e?.width:l.width)+a*2,d=(e?.height?e?.height:l.height)+s,h=d/8,f=d+h*2,{cssStyles:p}=e,g=gr.svg(o),m=mr(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-u/2,y:f/2},...lh(-u/2,f/2,u/2,f/2,h,1),{x:u/2,y:-f/2},...lh(u/2,-f/2,-u/2,-f/2,h,-1)],v=hn(y),b=g.path(v,m),_=o.insert(()=>b,":first-child");return _.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),yr(e,_),e.intersect=function(E){return lr.polygon(e,y,E)},o}S(qge,"waveRectangle");var Di=10;async function Yge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.look==="neo"?16:e.padding??0,a=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-i*2-Di,10),e.height=Math.max((e?.height??0)-a*2-Di,10));const{shapeSvg:s,bbox:o,label:l}=await Mr(t,e,Or(e)),u=(e?.width?e?.width:o.width)+i*2+Di,d=(e?.height?e?.height:o.height)+a*2+Di,h=u-Di,f=d-Di,p=-h/2,g=-f/2,{cssStyles:m}=e,y=gr.svg(s),v=mr(e,{}),b=[{x:p-Di,y:g-Di},{x:p-Di,y:g+f},{x:p+h,y:g+f},{x:p+h,y:g-Di}],_=`M${p-Di},${g-Di} L${p+h},${g-Di} L${p+h},${g+f} L${p-Di},${g+f} L${p-Di},${g-Di} + l${-r},0`,"createCylinderPathD"),jWe=S((t,e,r,n,i,a)=>[`M${t},${e}`,`M${t+r},${e}`,`a${i},${a} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${a} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),QWe=S((t,e,r,n,i,a)=>[`M${t+r/2},${-n/2}`,`a${i},${a} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD"),eQ=5,tQ=10;async function Fge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?12:i/2;if(e.width||e.height){const m=e.height??0;e.height=(e.height??0)-a,e.height_,":first-child"),g=s.insert(()=>b,":first-child"),g.attr("class","basic label-container"),p&&g.attr("style",p)}else{const m=XWe(0,0,f,u,h,d);g=s.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Ba(p)).attr("style",n),g.attr("class","basic label-container outer-path"),p&&g.selectAll("path").attr("style",p),n&&g.selectAll("path").attr("style",n)}return g.attr("label-offset-x",h),g.attr("transform",`translate(${-f/2}, ${u/2} )`),l.attr("transform",`translate(${-(o.width/2)-h-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),yr(e,g),e.intersect=function(m){const y=lr.rect(e,m),v=y.y-(e.y??0);if(d!=0&&(Math.abs(v)<(e.height??0)/2||Math.abs(v)==(e.height??0)/2&&Math.abs(y.x-(e.x??0))>(e.width??0)/2-h)){let b=h*h*(1-v*v/(d*d));b!=0&&(b=Math.sqrt(Math.abs(b))),b=h-b,m.x-(e.x??0)>0&&(b=-b),y.x+=b}return y},s}S(Fge,"tiltedCylinder");async function $ge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=(e.look==="neo",i),s=e.look==="neo"?i*2:i,{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.height??l.height)+a,d=(e?.width??l.width)+s,h=[{x:-3*u/6,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:0,y:-u}];let f;const{cssStyles:p}=e;if(e.look==="handDrawn"){const g=gr.svg(o),m=mr(e,{}),y=hn(h),v=g.path(y,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=H0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,yr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}S($ge,"trapezoid");async function zge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i,o=15,l=5;(e.width||e.height)&&(e.height=(e.height??0)-s*2,e.heightb,":first-child");return _.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",n),yr(e,_),e.intersect=function(E){return lr.polygon(e,y,E)},u}S(zge,"trapezoidalPentagon");var rQ=10,nQ=10;async function Uge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?i*2:i;(e.width||e.height)&&(e.width=((e?.width??0)-a)/2,e.widthb,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`).attr("class","outer-path");return g&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",g),n&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",n),e.width=d,e.height=h,yr(e,_),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${h/2-(o.height+(e.padding??0)/(u?2:1)-(o.y-(o.top??0)))})`),e.intersect=function(E){return ge.info("Triangle intersect",e,p,E),lr.polygon(e,p,E)},s}S(Uge,"triangle");async function Gge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i;let o=!0;(e.width||e.height)&&(o=!1,e.width=(e?.width??0)-a*2,e.width<10&&(e.width=10),e.height=(e?.height??0)-s*2,e.height<10&&(e.height=10));const{shapeSvg:l,bbox:u,label:d}=await Mr(t,e,Or(e)),h=(e?.width?e?.width:u.width)+(a??0)*2,f=(e?.height?e?.height:u.height)+(s??0)*2,p=e.look==="neo"?f/4:f/8,g=f+(o?p:-p),{cssStyles:m}=e,v=14-h,b=v>0?v/2:0,_=gr.svg(l),E=mr(e,{});e.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const x=[{x:-h/2-b,y:g/2},...lh(-h/2-b,g/2,h/2+b,g/2,p,.8),{x:h/2+b,y:-g/2},{x:-h/2-b,y:-g/2}],C=hn(x),T=_.path(C,E),w=l.insert(()=>T,":first-child");return w.attr("class","basic label-container outer-path"),m&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",m),n&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",n),w.attr("transform",`translate(0,${-p/2})`),d.attr("transform",`translate(${-h/2+(e.padding??0)-(u.x-(u.left??0))},${-f/2+(e.padding??0)-p-(u.y-(u.top??0))})`),yr(e,w),e.intersect=function(N){return lr.polygon(e,x,N)},l}S(Gge,"waveEdgedRectangle");async function qge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?20:i;if(e.width||e.height){e.width=e?.width??0,e.width<20&&(e.width=20),e.height=e?.height??0,e.height<10&&(e.height=10);const E=Math.min(e.height*.2,e.height/4);e.height=Math.ceil(e.height-s-E*(20/9)),e.width=e.width-a*2}const{shapeSvg:o,bbox:l}=await Mr(t,e,Or(e)),u=(e?.width?e?.width:l.width)+a*2,d=(e?.height?e?.height:l.height)+s,h=d/8,f=d+h*2,{cssStyles:p}=e,g=gr.svg(o),m=mr(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-u/2,y:f/2},...lh(-u/2,f/2,u/2,f/2,h,1),{x:u/2,y:-f/2},...lh(u/2,-f/2,-u/2,-f/2,h,-1)],v=hn(y),b=g.path(v,m),_=o.insert(()=>b,":first-child");return _.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),yr(e,_),e.intersect=function(E){return lr.polygon(e,y,E)},o}S(qge,"waveRectangle");var Di=10;async function Yge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e.look==="neo"?16:e.padding??0,a=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-i*2-Di,10),e.height=Math.max((e?.height??0)-a*2-Di,10));const{shapeSvg:s,bbox:o,label:l}=await Mr(t,e,Or(e)),u=(e?.width?e?.width:o.width)+i*2+Di,d=(e?.height?e?.height:o.height)+a*2+Di,h=u-Di,f=d-Di,p=-h/2,g=-f/2,{cssStyles:m}=e,y=gr.svg(s),v=mr(e,{}),b=[{x:p-Di,y:g-Di},{x:p-Di,y:g+f},{x:p+h,y:g+f},{x:p+h,y:g-Di}],_=`M${p-Di},${g-Di} L${p+h},${g-Di} L${p+h},${g+f} L${p-Di},${g+f} L${p-Di},${g-Di} M${p-Di},${g} L${p+h},${g} - M${p},${g-Di} L${p},${g+f}`;e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const E=y.path(_,v),x=s.insert(()=>E,":first-child");return x.attr("transform",`translate(${Di/2}, ${Di/2})`),x.attr("class","basic label-container outer-path"),m&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",m),n&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",n),l.attr("transform",`translate(${-(o.width/2)+Di/2-(o.x-(o.left??0))}, ${-(o.height/2)+Di/2-(o.y-(o.top??0))})`),yr(e,x),e.intersect=function(C){return lr.polygon(e,b,C)},s}S(Yge,"windowPane");var iQ=new Set(["redux-color","redux-dark-color"]),QWe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function SG(t,e){const r=e;r.alias&&(e.label=r.alias);const{theme:n,themeVariables:i}=xr(),{rowEven:a,rowOdd:s,nodeBorder:o,borderColorArray:l}=i;if(e.look==="handDrawn"){const{themeVariables:J}=xr(),{background:Z}=J,pe={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${Z}`]};await SG(t,pe)}const u=xr();e.useHtmlLabels=u.htmlLabels;let d=u.er?.diagramPadding??10,h=u.er?.entityPadding??6;const{cssStyles:f}=e,{labelStyles:p,nodeStyles:g}=hr(e);if(r.attributes.length===0&&e.label){const J={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5};$s(e.label,u)+J.labelPaddingX*20){const J=v.width+d*2-(x+C+T+w);x+=J/M,C+=J/M,T>0&&(T+=J/M),w>0&&(w+=J/M)}const F=x+C+T+w,A=gr.svg(y),I=mr(e,{});e.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let D=0;E.length>0&&(D=E.reduce((J,Z)=>J+(Z?.rowHeight??0),0));const L=Math.max($.width+d*2,e?.width||0,F),R=Math.max((D??0)+v.height,e?.height||0),P=-L/2,z=-R/2;if(y.selectAll("g:not(:first-child)").each((J,Z,pe)=>{const re=At(pe[Z]),ce=re.attr("transform");let ae=0,se=0;if(ce){const Te=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ce);Te&&(ae=parseFloat(Te[1]),se=parseFloat(Te[2]),re.attr("class").includes("attribute-name")?ae+=x:re.attr("class").includes("attribute-keys")?ae+=x+C:re.attr("class").includes("attribute-comment")&&(ae+=x+C+T))}re.attr("transform",`translate(${P+d/2+ae}, ${se+z+v.height+h/2})`)}),y.select(".name").attr("transform","translate("+-v.width/2+", "+(z+h/2)+")"),n!=null&&iQ.has(n)){const J=r.colorIndex??0;y.attr("data-color-id",`color-${J%l.length}`)}const B=A.rectangle(P,z,L,R,I),q=y.insert(()=>B,":first-child").attr("class","outer-path").attr("style",f.join(""));_.push(0);for(const[J,Z]of E.entries()){const re=(J+1)%2===0&&Z.yOffset!==0,ce=A.rectangle(P,v.height+z+Z?.yOffset,L,Z?.rowHeight,{...I,fill:re?a:s,stroke:o});y.insert(()=>ce,"g.label").attr("style",f.join("")).attr("class",`row-rect-${re?"even":"odd"}`)}const Y=1e-4;let Q=im(P,v.height+z,L+P,v.height+z,Y),H=A.polygon(Q.map(J=>[J.x,J.y]),I);if(y.insert(()=>H).attr("class","divider"),Q=im(x+P,v.height+z,x+P,R+z,Y),H=A.polygon(Q.map(J=>[J.x,J.y]),I),y.insert(()=>H).attr("class","divider"),N){const J=x+C+P;Q=im(J,v.height+z,J,R+z,Y),H=A.polygon(Q.map(Z=>[Z.x,Z.y]),I),y.insert(()=>H).attr("class","divider")}if(O){const J=x+C+T+P;Q=im(J,v.height+z,J,R+z,Y),H=A.polygon(Q.map(Z=>[Z.x,Z.y]),I),y.insert(()=>H).attr("class","divider")}for(const J of _){const Z=v.height+z+J;Q=im(P,Z,L+P,Z,Y),H=A.polygon(Q.map(pe=>[pe.x,pe.y]),I),y.insert(()=>H).attr("class","divider")}if(yr(e,q),g&&e.look!=="handDrawn")if(n!=null&&QWe.has(n))y.selectAll("path").attr("style",g);else{const Z=g.split(";")?.filter(pe=>pe.includes("stroke"))?.map(pe=>`${pe}`).join("; ");y.selectAll("path").attr("style",Z??""),y.selectAll(".row-rect-even path").attr("style",g)}return e.intersect=function(J){return lr.rect(e,J)},y}S(SG,"erBox");async function nm(t,e,r,n=0,i=0,a=[],s=""){const o=t.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${n}, ${i})`).attr("style",s);e!==Td(e)&&(e=Td(e),e=e.replaceAll("<","<").replaceAll(">",">"));const l=o.node().appendChild(await Zs(o,e,{width:$s(e,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(e.includes("<")||e.includes(">")){let d=l.children[0];for(d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">");d.childNodes[0];)d=d.childNodes[0],d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">")}let u=l.getBBox();if(q0(r.htmlLabels)){const d=l.children[0];d.style.textAlign="start";const h=At(l);u=d.getBoundingClientRect(),h.attr("width",u.width),h.attr("height",u.height)}return u}S(nm,"addText");function im(t,e,r,n,i){return t===r?[{x:t-i/2,y:e},{x:t+i/2,y:e},{x:r+i/2,y:n},{x:r-i/2,y:n}]:[{x:t,y:e-i/2},{x:t,y:e+i/2},{x:r,y:n+i/2},{x:r,y:n-i/2}]}S(im,"lineToPolygon");async function Hge(t,e,r,n,i=r.class.padding??12){const a=n?0:3,s=t.insert("g").attr("class",Or(e)).attr("id",e.domId||e.id);let o=null,l=null,u=null,d=null,h=0,f=0,p=0;if(o=s.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const b=e.annotations[0];await hE(o,{text:`«${b}»`},0),h=o.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await hE(l,e,0,["font-weight: bolder"]);const g=l.node().getBBox();f=g.height,u=s.insert("g").attr("class","members-group text");let m=0;for(const b of e.members){const _=await hE(u,b,m,[b.parseClassifier()]);m+=_+a}p=u.node().getBBox().height,p<=0&&(p=i/2),d=s.insert("g").attr("class","methods-group text");let y=0;for(const b of e.methods){const _=await hE(d,b,y,[b.parseClassifier()]);y+=_+a}let v=s.node().getBBox();if(o!==null){const b=o.node().getBBox();o.attr("transform",`translate(${-b.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${h})`),v=s.node().getBBox(),u.attr("transform",`translate(0, ${h+f+i*2})`),v=s.node().getBBox(),d.attr("transform",`translate(0, ${h+f+(p?p+i*4:i*2)})`),v=s.node().getBBox(),{shapeSvg:s,bbox:v}}S(Hge,"textHelper");async function hE(t,e,r,n=[]){const i=t.insert("g").attr("class","label").attr("style",n.join("; ")),a=xr();let s="useHtmlLabels"in e?e.useHtmlLabels:q0(a.htmlLabels)??!0,o="";"text"in e?o=e.text:o=e.label,!s&&o.startsWith("\\")&&(o=o.substring(1)),Xi(o)&&(s=!0);const l=await Zs(i,bU(x0(o)),{width:$s(o,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a);let u,d=1;if(s){const h=l.children[0],f=At(l);d=h.innerHTML.split("
").length,h.innerHTML.includes("")&&(d+=h.innerHTML.split("").length-1);const p=h.getElementsByTagName("img");if(p){const g=o.replace(/]*>/g,"").trim()==="";await Promise.all([...p].map(m=>new Promise(y=>{function v(){if(m.style.display="flex",m.style.flexDirection="column",g){const b=a.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,E=parseInt(b,10)*5+"px";m.style.minWidth=E,m.style.maxWidth=E}else m.style.width="100%";y(m)}S(v,"setupImage"),setTimeout(()=>{m.complete&&v()}),m.addEventListener("error",v),m.addEventListener("load",v)})))}u=h.getBoundingClientRect(),f.attr("width",u.width),f.attr("height",u.height)}else{n.includes("font-weight: bolder")&&At(l).selectAll("tspan").attr("font-weight",""),d=l.children.length;const h=l.children[0];(l.textContent===""||l.textContent.includes(">"))&&(h.textContent=o[0]+o.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),o[1]===" "&&(h.textContent=h.textContent[0]+" "+h.textContent.substring(1))),h.textContent==="undefined"&&(h.textContent=""),u=l.getBBox()}return i.attr("transform","translate(0,"+(-u.height/(2*d)+r)+")"),u.height}S(hE,"addText");async function Vge(t,e){const r=Ke(),{themeVariables:n}=r,{useGradient:i}=n,a=r.class.padding??12,s=a,o=e.useHtmlLabels??q0(r.htmlLabels)??!0,l=e;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:u,bbox:d}=await Hge(t,e,r,o,s),{labelStyles:h,nodeStyles:f}=hr(e);e.labelStyle=h,e.cssStyles=l.styles||"";const p=l.styles?.join(";")||f||"";e.cssStyles||(e.cssStyles=p.replaceAll("!important","").split(";"));const g=l.members.length===0&&l.methods.length===0&&!r.class?.hideEmptyMembersBox,m=gr.svg(u),y=mr(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const v=Math.max(e.width??0,d.width);let b=Math.max(e.height??0,d.height);const _=(e.height??0)>d.height;l.members.length===0&&l.methods.length===0?b+=s:l.members.length>0&&l.methods.length===0&&(b+=s*2);const E=-v/2,x=-b/2;let C=g?a*2:l.members.length===0&&l.methods.length===0?-a:0;_&&(C=a*2);const T=m.rectangle(E-a,x-a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0),v+2*a,b+2*a+C,y),w=u.insert(()=>T,":first-child");w.attr("class","basic label-container outer-path");const N=w.node().getBBox(),O=u.select(".annotation-group").node().getBBox().height-(g?a/2:0)||0,M=u.select(".label-group").node().getBBox().height-(g?a/2:0)||0,$=u.select(".members-group").node().getBBox().height-(g?a/2:0)||0,F=(O+M+x+a-(x-a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0)))/2;if(u.selectAll(".text").each((A,I,D)=>{const L=At(D[I]),R=L.attr("transform");let P=0;if(R){const Y=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(R);Y&&(P=parseFloat(Y[2]))}let z=P+x+a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0);if(L.attr("class").includes("methods-group")){const q=Math.max($,s/2);_?z=Math.max(F,O+M+q+x+s*2+a)+s*2:z=O+M+q+x+s*4+a}l.members.length===0&&l.methods.length===0&&r.class?.hideEmptyMembersBox&&(l.annotations.length>0?z=P-s:z=P),o||(z-=4);let B=E;(L.attr("class").includes("label-group")||L.attr("class").includes("annotation-group"))&&(B=-L.node()?.getBBox().width/2||0,u.selectAll("text").each(function(q,Y,Q){window.getComputedStyle(Q[Y]).textAnchor==="middle"&&(B=0)})),L.attr("transform",`translate(${B}, ${z})`)}),l.members.length>0||l.methods.length>0||g){const A=O+M+x+a,I=m.line(N.x,A,N.x+N.width,A+.001,y);u.insert(()=>I).attr("class",`divider${e.look==="neo"&&!i?" neo-line":""}`).attr("style",p)}if(g||l.members.length>0||l.methods.length>0){const A=O+M+$+x+s*2+a,I=m.line(N.x,_?Math.max(F,A):A,N.x+N.width,(_?Math.max(F,A):A)+.001,y);u.insert(()=>I).attr("class",`divider${e.look==="neo"&&!i?" neo-line":""}`).attr("style",p)}if(l.look!=="handDrawn"&&u.selectAll("path").attr("style",p),w.select(":nth-child(2)").attr("style",p),u.selectAll(".divider").select("path").attr("style",p),e.labelStyle?u.selectAll("span").attr("style",e.labelStyle):u.selectAll("span").attr("style",p),!o){const A=RegExp(/color\s*:\s*([^;]*)/),I=A.exec(p);if(I){const D=I[0].replace("color","fill");u.selectAll("tspan").attr("style",D)}else if(h){const D=A.exec(h);if(D){const L=D[0].replace("color","fill");u.selectAll("tspan").attr("style",L)}}}return yr(e,w),e.intersect=function(A){return lr.rect(e,A)},u}S(Vge,"classBox");async function Wge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e,a=e,s=20,o=20,l="verifyMethod"in e,u=Or(e),{themeVariables:d}=Ke(),{borderColorArray:h,requirementEdgeLabelBackground:f}=d,p=t.insert("g").attr("class",u).attr("id",e.domId??e.id);let g;l?g=await Ac(p,`<<${i.type}>>`,0,e.labelStyle):g=await Ac(p,"<<Element>>",0,e.labelStyle);let m=g;const y=await Ac(p,i.name,m,e.labelStyle+"; font-weight: bold;");if(m+=y+o,l){const N=await Ac(p,`${i.requirementId?`ID: ${i.requirementId}`:""}`,m,e.labelStyle);m+=N;const O=await Ac(p,`${i.text?`Text: ${i.text}`:""}`,m,e.labelStyle);m+=O;const M=await Ac(p,`${i.risk?`Risk: ${i.risk}`:""}`,m,e.labelStyle);m+=M,await Ac(p,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:""}`,m,e.labelStyle)}else{const N=await Ac(p,`${a.type?`Type: ${a.type}`:""}`,m,e.labelStyle);m+=N,await Ac(p,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,m,e.labelStyle)}const v=(p.node()?.getBBox().width??200)+s,b=(p.node()?.getBBox().height??200)+s,_=-v/2,E=-b/2,x=gr.svg(p),C=mr(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const T=x.rectangle(_,E,v,b,C),w=p.insert(()=>T,":first-child");if(w.attr("class","basic label-container outer-path").attr("style",n),h?.length){const N=e.colorIndex??0;p.attr("data-color-id",`color-${N%h.length}`)}if(p.selectAll(".label").each((N,O,M)=>{const $=At(M[O]),F=$.attr("transform");let A=0,I=0;if(F){const P=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(F);P&&(A=parseFloat(P[1]),I=parseFloat(P[2]))}const D=I-b/2;let L=_+s/2;(O===0||O===1)&&(L=A),$.attr("transform",`translate(${L}, ${D+s})`)}),m>g+y+o){const N=E+g+y+o;let O;if(e.look==="neo"){const F=[[_,N],[_+v,N],[_+v,N+.001],[_,N+.001]];O=x.polygon(F,C)}else O=x.line(_,N,_+v,N,C);p.insert(()=>O).attr("class","divider")}return yr(e,w),e.intersect=function(N){return lr.rect(e,N)},n&&e.look!=="handDrawn"&&(f||h?.length)&&p.selectAll("path").attr("style",n),p}S(Wge,"requirementBox");async function Ac(t,e,r,n=""){if(e==="")return 0;const i=t.insert("g").attr("class","label").attr("style",n),a=Ke(),s=a.htmlLabels??!0,o=await Zs(i,bU(x0(e)),{width:$s(e,a)+50,classes:"markdown-node-label",useHtmlLabels:s,style:n},a);let l;if(s){const u=o.children[0],d=At(o);l=u.getBoundingClientRect(),d.attr("width",l.width),d.attr("height",l.height)}else{const u=o.children[0];for(const d of u.children)n&&d.setAttribute("style",n);l=o.getBBox(),l.height+=6}return i.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}S(Ac,"addText");var ZWe=S(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function Kge(t,e,{config:r}){const{labelStyles:n,nodeStyles:i}=hr(e);e.labelStyle=n||"";const a=10,s=e.width;e.width=(e.width??200)-10;const{shapeSvg:o,bbox:l,label:u}=await Mr(t,e,Or(e)),d=e.padding||10;let h="",f;"ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl&&(h=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),f=o.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",h).attr("target","_blank"));const p={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let g,m;f?{label:g,bbox:m}=await bR(f,"ticket"in e&&e.ticket||"",p):{label:g,bbox:m}=await bR(o,"ticket"in e&&e.ticket||"",p);const{label:y,bbox:v}=await bR(o,"assigned"in e&&e.assigned||"",p);e.width=s;const b=10,_=e?.width||0,E=Math.max(m.height,v.height)/2,x=Math.max(l.height+b*2,e?.height||0)+E,C=-_/2,T=-x/2;u.attr("transform","translate("+(d-_/2)+", "+(-E-l.height/2)+")"),g.attr("transform","translate("+(d-_/2)+", "+(-E+l.height/2)+")"),y.attr("transform","translate("+(d+_/2-v.width-2*a)+", "+(-E+l.height/2)+")");let w;const{rx:N,ry:O}=e,{cssStyles:M}=e;if(e.look==="handDrawn"){const $=gr.svg(o),F=mr(e,{}),A=N||O?$.path(Nh(C,T,_,x,N||0),F):$.rectangle(C,T,_,x,F);w=o.insert(()=>A,":first-child"),w.attr("class","basic label-container").attr("style",M||null)}else{w=o.insert("rect",":first-child"),w.attr("class","basic label-container __APA__").attr("style",i).attr("rx",N??5).attr("ry",O??5).attr("x",C).attr("y",T).attr("width",_).attr("height",x);const $="priority"in e&&e.priority;if($){const F=o.append("line"),A=C+2,I=T+Math.floor((N??0)/2),D=T+x-Math.floor((N??0)/2);F.attr("x1",A).attr("y1",I).attr("x2",A).attr("y2",D).attr("stroke-width","4").attr("stroke",ZWe($))}}return yr(e,w),e.height=x,e.intersect=function($){return lr.rect(e,$)},o}S(Kge,"kanbanItem");async function Xge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,halfPadding:s,label:o}=await Mr(t,e,Or(e)),l=a.width+10*s,u=a.height+8*s,d=.15*l,{cssStyles:h}=e,f=a.width+20,p=a.height+20,g=Math.max(l,f),m=Math.max(u,p);o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let y;const v=`M0 0 + M${p},${g-Di} L${p},${g+f}`;e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const E=y.path(_,v),x=s.insert(()=>E,":first-child");return x.attr("transform",`translate(${Di/2}, ${Di/2})`),x.attr("class","basic label-container outer-path"),m&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",m),n&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",n),l.attr("transform",`translate(${-(o.width/2)+Di/2-(o.x-(o.left??0))}, ${-(o.height/2)+Di/2-(o.y-(o.top??0))})`),yr(e,x),e.intersect=function(C){return lr.polygon(e,b,C)},s}S(Yge,"windowPane");var iQ=new Set(["redux-color","redux-dark-color"]),ZWe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function SG(t,e){const r=e;r.alias&&(e.label=r.alias);const{theme:n,themeVariables:i}=xr(),{rowEven:a,rowOdd:s,nodeBorder:o,borderColorArray:l}=i;if(e.look==="handDrawn"){const{themeVariables:J}=xr(),{background:Z}=J,pe={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${Z}`]};await SG(t,pe)}const u=xr();e.useHtmlLabels=u.htmlLabels;let d=u.er?.diagramPadding??10,h=u.er?.entityPadding??6;const{cssStyles:f}=e,{labelStyles:p,nodeStyles:g}=hr(e);if(r.attributes.length===0&&e.label){const J={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5};$s(e.label,u)+J.labelPaddingX*20){const J=v.width+d*2-(x+C+T+w);x+=J/M,C+=J/M,T>0&&(T+=J/M),w>0&&(w+=J/M)}const F=x+C+T+w,A=gr.svg(y),I=mr(e,{});e.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let D=0;E.length>0&&(D=E.reduce((J,Z)=>J+(Z?.rowHeight??0),0));const L=Math.max($.width+d*2,e?.width||0,F),R=Math.max((D??0)+v.height,e?.height||0),P=-L/2,z=-R/2;if(y.selectAll("g:not(:first-child)").each((J,Z,pe)=>{const re=At(pe[Z]),ce=re.attr("transform");let ae=0,se=0;if(ce){const Te=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ce);Te&&(ae=parseFloat(Te[1]),se=parseFloat(Te[2]),re.attr("class").includes("attribute-name")?ae+=x:re.attr("class").includes("attribute-keys")?ae+=x+C:re.attr("class").includes("attribute-comment")&&(ae+=x+C+T))}re.attr("transform",`translate(${P+d/2+ae}, ${se+z+v.height+h/2})`)}),y.select(".name").attr("transform","translate("+-v.width/2+", "+(z+h/2)+")"),n!=null&&iQ.has(n)){const J=r.colorIndex??0;y.attr("data-color-id",`color-${J%l.length}`)}const B=A.rectangle(P,z,L,R,I),q=y.insert(()=>B,":first-child").attr("class","outer-path").attr("style",f.join(""));_.push(0);for(const[J,Z]of E.entries()){const re=(J+1)%2===0&&Z.yOffset!==0,ce=A.rectangle(P,v.height+z+Z?.yOffset,L,Z?.rowHeight,{...I,fill:re?a:s,stroke:o});y.insert(()=>ce,"g.label").attr("style",f.join("")).attr("class",`row-rect-${re?"even":"odd"}`)}const Y=1e-4;let Q=im(P,v.height+z,L+P,v.height+z,Y),H=A.polygon(Q.map(J=>[J.x,J.y]),I);if(y.insert(()=>H).attr("class","divider"),Q=im(x+P,v.height+z,x+P,R+z,Y),H=A.polygon(Q.map(J=>[J.x,J.y]),I),y.insert(()=>H).attr("class","divider"),N){const J=x+C+P;Q=im(J,v.height+z,J,R+z,Y),H=A.polygon(Q.map(Z=>[Z.x,Z.y]),I),y.insert(()=>H).attr("class","divider")}if(O){const J=x+C+T+P;Q=im(J,v.height+z,J,R+z,Y),H=A.polygon(Q.map(Z=>[Z.x,Z.y]),I),y.insert(()=>H).attr("class","divider")}for(const J of _){const Z=v.height+z+J;Q=im(P,Z,L+P,Z,Y),H=A.polygon(Q.map(pe=>[pe.x,pe.y]),I),y.insert(()=>H).attr("class","divider")}if(yr(e,q),g&&e.look!=="handDrawn")if(n!=null&&ZWe.has(n))y.selectAll("path").attr("style",g);else{const Z=g.split(";")?.filter(pe=>pe.includes("stroke"))?.map(pe=>`${pe}`).join("; ");y.selectAll("path").attr("style",Z??""),y.selectAll(".row-rect-even path").attr("style",g)}return e.intersect=function(J){return lr.rect(e,J)},y}S(SG,"erBox");async function nm(t,e,r,n=0,i=0,a=[],s=""){const o=t.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${n}, ${i})`).attr("style",s);e!==Td(e)&&(e=Td(e),e=e.replaceAll("<","<").replaceAll(">",">"));const l=o.node().appendChild(await Zs(o,e,{width:$s(e,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(e.includes("<")||e.includes(">")){let d=l.children[0];for(d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">");d.childNodes[0];)d=d.childNodes[0],d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">")}let u=l.getBBox();if(q0(r.htmlLabels)){const d=l.children[0];d.style.textAlign="start";const h=At(l);u=d.getBoundingClientRect(),h.attr("width",u.width),h.attr("height",u.height)}return u}S(nm,"addText");function im(t,e,r,n,i){return t===r?[{x:t-i/2,y:e},{x:t+i/2,y:e},{x:r+i/2,y:n},{x:r-i/2,y:n}]:[{x:t,y:e-i/2},{x:t,y:e+i/2},{x:r,y:n+i/2},{x:r,y:n-i/2}]}S(im,"lineToPolygon");async function Hge(t,e,r,n,i=r.class.padding??12){const a=n?0:3,s=t.insert("g").attr("class",Or(e)).attr("id",e.domId||e.id);let o=null,l=null,u=null,d=null,h=0,f=0,p=0;if(o=s.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const b=e.annotations[0];await hE(o,{text:`«${b}»`},0),h=o.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await hE(l,e,0,["font-weight: bolder"]);const g=l.node().getBBox();f=g.height,u=s.insert("g").attr("class","members-group text");let m=0;for(const b of e.members){const _=await hE(u,b,m,[b.parseClassifier()]);m+=_+a}p=u.node().getBBox().height,p<=0&&(p=i/2),d=s.insert("g").attr("class","methods-group text");let y=0;for(const b of e.methods){const _=await hE(d,b,y,[b.parseClassifier()]);y+=_+a}let v=s.node().getBBox();if(o!==null){const b=o.node().getBBox();o.attr("transform",`translate(${-b.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${h})`),v=s.node().getBBox(),u.attr("transform",`translate(0, ${h+f+i*2})`),v=s.node().getBBox(),d.attr("transform",`translate(0, ${h+f+(p?p+i*4:i*2)})`),v=s.node().getBBox(),{shapeSvg:s,bbox:v}}S(Hge,"textHelper");async function hE(t,e,r,n=[]){const i=t.insert("g").attr("class","label").attr("style",n.join("; ")),a=xr();let s="useHtmlLabels"in e?e.useHtmlLabels:q0(a.htmlLabels)??!0,o="";"text"in e?o=e.text:o=e.label,!s&&o.startsWith("\\")&&(o=o.substring(1)),Xi(o)&&(s=!0);const l=await Zs(i,bU(x0(o)),{width:$s(o,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a);let u,d=1;if(s){const h=l.children[0],f=At(l);d=h.innerHTML.split("
").length,h.innerHTML.includes("")&&(d+=h.innerHTML.split("").length-1);const p=h.getElementsByTagName("img");if(p){const g=o.replace(/]*>/g,"").trim()==="";await Promise.all([...p].map(m=>new Promise(y=>{function v(){if(m.style.display="flex",m.style.flexDirection="column",g){const b=a.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,E=parseInt(b,10)*5+"px";m.style.minWidth=E,m.style.maxWidth=E}else m.style.width="100%";y(m)}S(v,"setupImage"),setTimeout(()=>{m.complete&&v()}),m.addEventListener("error",v),m.addEventListener("load",v)})))}u=h.getBoundingClientRect(),f.attr("width",u.width),f.attr("height",u.height)}else{n.includes("font-weight: bolder")&&At(l).selectAll("tspan").attr("font-weight",""),d=l.children.length;const h=l.children[0];(l.textContent===""||l.textContent.includes(">"))&&(h.textContent=o[0]+o.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),o[1]===" "&&(h.textContent=h.textContent[0]+" "+h.textContent.substring(1))),h.textContent==="undefined"&&(h.textContent=""),u=l.getBBox()}return i.attr("transform","translate(0,"+(-u.height/(2*d)+r)+")"),u.height}S(hE,"addText");async function Vge(t,e){const r=Ke(),{themeVariables:n}=r,{useGradient:i}=n,a=r.class.padding??12,s=a,o=e.useHtmlLabels??q0(r.htmlLabels)??!0,l=e;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:u,bbox:d}=await Hge(t,e,r,o,s),{labelStyles:h,nodeStyles:f}=hr(e);e.labelStyle=h,e.cssStyles=l.styles||"";const p=l.styles?.join(";")||f||"";e.cssStyles||(e.cssStyles=p.replaceAll("!important","").split(";"));const g=l.members.length===0&&l.methods.length===0&&!r.class?.hideEmptyMembersBox,m=gr.svg(u),y=mr(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const v=Math.max(e.width??0,d.width);let b=Math.max(e.height??0,d.height);const _=(e.height??0)>d.height;l.members.length===0&&l.methods.length===0?b+=s:l.members.length>0&&l.methods.length===0&&(b+=s*2);const E=-v/2,x=-b/2;let C=g?a*2:l.members.length===0&&l.methods.length===0?-a:0;_&&(C=a*2);const T=m.rectangle(E-a,x-a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0),v+2*a,b+2*a+C,y),w=u.insert(()=>T,":first-child");w.attr("class","basic label-container outer-path");const N=w.node().getBBox(),O=u.select(".annotation-group").node().getBBox().height-(g?a/2:0)||0,M=u.select(".label-group").node().getBBox().height-(g?a/2:0)||0,$=u.select(".members-group").node().getBBox().height-(g?a/2:0)||0,F=(O+M+x+a-(x-a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0)))/2;if(u.selectAll(".text").each((A,I,D)=>{const L=At(D[I]),R=L.attr("transform");let P=0;if(R){const Y=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(R);Y&&(P=parseFloat(Y[2]))}let z=P+x+a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0);if(L.attr("class").includes("methods-group")){const q=Math.max($,s/2);_?z=Math.max(F,O+M+q+x+s*2+a)+s*2:z=O+M+q+x+s*4+a}l.members.length===0&&l.methods.length===0&&r.class?.hideEmptyMembersBox&&(l.annotations.length>0?z=P-s:z=P),o||(z-=4);let B=E;(L.attr("class").includes("label-group")||L.attr("class").includes("annotation-group"))&&(B=-L.node()?.getBBox().width/2||0,u.selectAll("text").each(function(q,Y,Q){window.getComputedStyle(Q[Y]).textAnchor==="middle"&&(B=0)})),L.attr("transform",`translate(${B}, ${z})`)}),l.members.length>0||l.methods.length>0||g){const A=O+M+x+a,I=m.line(N.x,A,N.x+N.width,A+.001,y);u.insert(()=>I).attr("class",`divider${e.look==="neo"&&!i?" neo-line":""}`).attr("style",p)}if(g||l.members.length>0||l.methods.length>0){const A=O+M+$+x+s*2+a,I=m.line(N.x,_?Math.max(F,A):A,N.x+N.width,(_?Math.max(F,A):A)+.001,y);u.insert(()=>I).attr("class",`divider${e.look==="neo"&&!i?" neo-line":""}`).attr("style",p)}if(l.look!=="handDrawn"&&u.selectAll("path").attr("style",p),w.select(":nth-child(2)").attr("style",p),u.selectAll(".divider").select("path").attr("style",p),e.labelStyle?u.selectAll("span").attr("style",e.labelStyle):u.selectAll("span").attr("style",p),!o){const A=RegExp(/color\s*:\s*([^;]*)/),I=A.exec(p);if(I){const D=I[0].replace("color","fill");u.selectAll("tspan").attr("style",D)}else if(h){const D=A.exec(h);if(D){const L=D[0].replace("color","fill");u.selectAll("tspan").attr("style",L)}}}return yr(e,w),e.intersect=function(A){return lr.rect(e,A)},u}S(Vge,"classBox");async function Wge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const i=e,a=e,s=20,o=20,l="verifyMethod"in e,u=Or(e),{themeVariables:d}=Ke(),{borderColorArray:h,requirementEdgeLabelBackground:f}=d,p=t.insert("g").attr("class",u).attr("id",e.domId??e.id);let g;l?g=await Ac(p,`<<${i.type}>>`,0,e.labelStyle):g=await Ac(p,"<<Element>>",0,e.labelStyle);let m=g;const y=await Ac(p,i.name,m,e.labelStyle+"; font-weight: bold;");if(m+=y+o,l){const N=await Ac(p,`${i.requirementId?`ID: ${i.requirementId}`:""}`,m,e.labelStyle);m+=N;const O=await Ac(p,`${i.text?`Text: ${i.text}`:""}`,m,e.labelStyle);m+=O;const M=await Ac(p,`${i.risk?`Risk: ${i.risk}`:""}`,m,e.labelStyle);m+=M,await Ac(p,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:""}`,m,e.labelStyle)}else{const N=await Ac(p,`${a.type?`Type: ${a.type}`:""}`,m,e.labelStyle);m+=N,await Ac(p,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,m,e.labelStyle)}const v=(p.node()?.getBBox().width??200)+s,b=(p.node()?.getBBox().height??200)+s,_=-v/2,E=-b/2,x=gr.svg(p),C=mr(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const T=x.rectangle(_,E,v,b,C),w=p.insert(()=>T,":first-child");if(w.attr("class","basic label-container outer-path").attr("style",n),h?.length){const N=e.colorIndex??0;p.attr("data-color-id",`color-${N%h.length}`)}if(p.selectAll(".label").each((N,O,M)=>{const $=At(M[O]),F=$.attr("transform");let A=0,I=0;if(F){const P=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(F);P&&(A=parseFloat(P[1]),I=parseFloat(P[2]))}const D=I-b/2;let L=_+s/2;(O===0||O===1)&&(L=A),$.attr("transform",`translate(${L}, ${D+s})`)}),m>g+y+o){const N=E+g+y+o;let O;if(e.look==="neo"){const F=[[_,N],[_+v,N],[_+v,N+.001],[_,N+.001]];O=x.polygon(F,C)}else O=x.line(_,N,_+v,N,C);p.insert(()=>O).attr("class","divider")}return yr(e,w),e.intersect=function(N){return lr.rect(e,N)},n&&e.look!=="handDrawn"&&(f||h?.length)&&p.selectAll("path").attr("style",n),p}S(Wge,"requirementBox");async function Ac(t,e,r,n=""){if(e==="")return 0;const i=t.insert("g").attr("class","label").attr("style",n),a=Ke(),s=a.htmlLabels??!0,o=await Zs(i,bU(x0(e)),{width:$s(e,a)+50,classes:"markdown-node-label",useHtmlLabels:s,style:n},a);let l;if(s){const u=o.children[0],d=At(o);l=u.getBoundingClientRect(),d.attr("width",l.width),d.attr("height",l.height)}else{const u=o.children[0];for(const d of u.children)n&&d.setAttribute("style",n);l=o.getBBox(),l.height+=6}return i.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}S(Ac,"addText");var JWe=S(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function Kge(t,e,{config:r}){const{labelStyles:n,nodeStyles:i}=hr(e);e.labelStyle=n||"";const a=10,s=e.width;e.width=(e.width??200)-10;const{shapeSvg:o,bbox:l,label:u}=await Mr(t,e,Or(e)),d=e.padding||10;let h="",f;"ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl&&(h=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),f=o.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",h).attr("target","_blank"));const p={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let g,m;f?{label:g,bbox:m}=await bR(f,"ticket"in e&&e.ticket||"",p):{label:g,bbox:m}=await bR(o,"ticket"in e&&e.ticket||"",p);const{label:y,bbox:v}=await bR(o,"assigned"in e&&e.assigned||"",p);e.width=s;const b=10,_=e?.width||0,E=Math.max(m.height,v.height)/2,x=Math.max(l.height+b*2,e?.height||0)+E,C=-_/2,T=-x/2;u.attr("transform","translate("+(d-_/2)+", "+(-E-l.height/2)+")"),g.attr("transform","translate("+(d-_/2)+", "+(-E+l.height/2)+")"),y.attr("transform","translate("+(d+_/2-v.width-2*a)+", "+(-E+l.height/2)+")");let w;const{rx:N,ry:O}=e,{cssStyles:M}=e;if(e.look==="handDrawn"){const $=gr.svg(o),F=mr(e,{}),A=N||O?$.path(Nh(C,T,_,x,N||0),F):$.rectangle(C,T,_,x,F);w=o.insert(()=>A,":first-child"),w.attr("class","basic label-container").attr("style",M||null)}else{w=o.insert("rect",":first-child"),w.attr("class","basic label-container __APA__").attr("style",i).attr("rx",N??5).attr("ry",O??5).attr("x",C).attr("y",T).attr("width",_).attr("height",x);const $="priority"in e&&e.priority;if($){const F=o.append("line"),A=C+2,I=T+Math.floor((N??0)/2),D=T+x-Math.floor((N??0)/2);F.attr("x1",A).attr("y1",I).attr("x2",A).attr("y2",D).attr("stroke-width","4").attr("stroke",JWe($))}}return yr(e,w),e.height=x,e.intersect=function($){return lr.rect(e,$)},o}S(Kge,"kanbanItem");async function Xge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,halfPadding:s,label:o}=await Mr(t,e,Or(e)),l=a.width+10*s,u=a.height+8*s,d=.15*l,{cssStyles:h}=e,f=a.width+20,p=a.height+20,g=Math.max(l,f),m=Math.max(u,p);o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let y;const v=`M0 0 a${d},${d} 1 0,0 ${g*.25},${-1*m*.1} a${d},${d} 1 0,0 ${g*.25},0 a${d},${d} 1 0,0 ${g*.25},0 @@ -2856,23 +2856,23 @@ Please report this to https://github.com/markedjs/marked.`,e){let i="

An error h${-(l-2*d)} q${-d},0 ${-d},${-d} Z - `;if(!e.domId)throw new Error(`defaultMindmapNode: node "${e.id}" is missing a domId — was render.ts domId prefixing skipped?`);const f=i.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",n).attr("d",h);return i.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",u/2).attr("x2",l/2).attr("y2",u/2),o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>o.node()),yr(e,f),e.calcIntersect=function(p,g){return lr.rect(p,g)},e.intersect=function(p){return lr.rect(e,p)},i}S(Qge,"defaultMindmapNode");async function Zge(t,e){const r={padding:e.padding??0};return EG(t,e,r)}S(Zge,"mindmapCircle");var JWe=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Rge},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:wge},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Nge},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Lge},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Zpe},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Jpe},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:EG},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Xge},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:jge},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Tge},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:sge},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:mge},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:gge},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:$ge},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:fge},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tge},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Bge},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Ype},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:kge},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Dge},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Oge},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:ige},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:oge},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Kpe},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Xpe},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:jpe},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:yge},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Gge},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:age},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Fge},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:vge},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Qpe},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ege},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Uge},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Yge},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:rge},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:zge},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:nge},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Age},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Ege},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:bge},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:qpe},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Wpe},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Pge},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Mge},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:qge},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:xge},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:_ge}],eKe=S(()=>{const e=[...Object.entries({state:Ige,choice:Hpe,note:Sge,rectWithTitle:Cge,labelRect:pge,iconSquare:dge,iconCircle:cge,icon:lge,iconRounded:uge,imageSquare:hge,anchor:Upe,kanbanItem:Kge,mindmapCircle:Zge,defaultMindmapNode:Qge,classBox:Vge,erBox:SG,requirementBox:Wge}),...JWe.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(i=>[i,r.handler]))];return Object.fromEntries(e)},"generateShapeMap"),Jge=eKe();function eme(t){return t in Jge}S(eme,"isValidShape");var Bk=new Map;async function Fk(t,e,r){let n,i;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const a=e.shape?Jge[e.shape]:void 0;if(!a)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;r.config.securityLevel==="sandbox"?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),i=await a(n,e,r)}else i=await a(t,e,r),n=i;return n.attr("data-look",Ba(e.look)),e.tooltip&&i.attr("title",e.tooltip),Bk.set(e.id,n),e.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}S(Fk,"insertNode");var tKe=S((t,e)=>{Bk.set(e.id,t)},"setNodeElem"),rKe=S(()=>{Bk.clear()},"clear"),IP=S(t=>{const e=Bk.get(t.id);ge.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8,n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},"positionNode"),nKe=S((t,e,r,n,i,a=!1,s)=>{e.arrowTypeStart&&aQ(t,"start",e.arrowTypeStart,r,n,i,a,s),e.arrowTypeEnd&&aQ(t,"end",e.arrowTypeEnd,r,n,i,a,s)},"addEdgeMarkers"),iKe={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},aKe=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],aQ=S((t,e,r,n,i,a,s=!1,o)=>{const l=iKe[r],u=l&&aKe.includes(l.type);if(!l){ge.warn(`Unknown arrow type: ${r}`);return}const d=l.type,p=`${i}_${a}-${d}${e==="start"?"Start":"End"}${s&&u?"-margin":""}`;if(o&&o.trim()!==""){const g=o.replace(/[^\dA-Za-z]/g,"_"),m=`${p}_${g}`;if(!document.getElementById(m)){const y=document.getElementById(p);if(y){const v=y.cloneNode(!0);v.id=m,v.querySelectorAll("path, circle, line").forEach(_=>{_.setAttribute("stroke",o),l.fill&&_.setAttribute("fill",o)}),y.parentNode?.appendChild(v)}}t.attr(`marker-${e}`,`url(${n}#${m})`)}else t.attr(`marker-${e}`,`url(${n}#${p})`)},"addEdgeMarker"),sKe=S(t=>typeof t=="string"?t:Ke()?.flowchart?.curve,"resolveEdgeCurveType"),i6=new Map,Ka=new Map,oKe=S(()=>{i6.clear(),Ka.clear()},"clear"),P2=S(t=>t?typeof t=="string"?t:t.reduce((e,r)=>e+";"+r,""):"","getLabelStyles"),tme=S(async(t,e)=>{const r=Ke();let n=In(r);const{labelStyles:i}=hr(e);e.labelStyle=i;const a=t.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label").attr("data-id",e.id),o=e.labelType==="markdown",u=await Zs(t,e.label,{style:P2(e.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1,markdown:o,width:o?void 0:void 0},r);s.node().appendChild(u),ge.info("abc82",e,e.labelType);let d=u.getBBox(),h=d;if(n){const p=u.children[0],g=At(u);d=p.getBoundingClientRect(),h=d,g.attr("width",d.width),g.attr("height",d.height)}else{const p=At(u).select("text").node();p&&typeof p.getBBox=="function"&&(h=p.getBBox())}s.attr("transform",Gc(h,n)),i6.set(e.id,a),e.width=d.width,e.height=d.height;let f;if(e.startLabelLeft){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Bd(g,e.startLabelLeft,P2(e.labelStyle)||"",!1,!1);f=m;let y=m.getBBox();if(n){const v=m.children[0],b=At(m);y=v.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}g.attr("transform",Gc(y,n)),Ka.get(e.id)||Ka.set(e.id,{}),Ka.get(e.id).startLeft=p,fE(f,e.startLabelLeft)}if(e.startLabelRight){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Bd(g,e.startLabelRight,P2(e.labelStyle)||"",!1,!1);f=m;let y=m.getBBox();if(n){const v=m.children[0],b=At(m);y=v.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}g.attr("transform",Gc(y,n)),Ka.get(e.id)||Ka.set(e.id,{}),Ka.get(e.id).startRight=p,fE(f,e.startLabelRight)}if(e.endLabelLeft){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Bd(p,e.endLabelLeft,P2(e.labelStyle)||"",!1,!1);f=m;let y=m.getBBox();if(n){const v=m.children[0],b=At(m);y=v.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}g.attr("transform",Gc(y,n)),Ka.get(e.id)||Ka.set(e.id,{}),Ka.get(e.id).endLeft=p,fE(f,e.endLabelLeft)}if(e.endLabelRight){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Bd(p,e.endLabelRight,P2(e.labelStyle)||"",!1,!1);f=m;let y=m.getBBox();if(n){const v=m.children[0],b=At(m);y=v.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}g.attr("transform",Gc(y,n)),Ka.get(e.id)||Ka.set(e.id,{}),Ka.get(e.id).endRight=p,fE(f,e.endLabelRight)}return u},"insertEdgeLabel");function fE(t,e){In(Ke())&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}S(fE,"setTerminalWidth");var rme=S((t,e)=>{ge.debug("Moving label abc88 ",t.id,t.label,i6.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const n=Ke(),{subGraphTitleTotalMargin:i}=oT(n);if(t.label){const a=i6.get(t.id);let s=t.x,o=t.y;if(r){const l=Wr.calcLabelPosition(r);ge.debug("Moving label "+t.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(s=l.x,o=l.y)}a.attr("transform",`translate(${s}, ${o+i/2})`)}if(t.startLabelLeft){const a=Ka.get(t.id).startLeft;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.startLabelRight){const a=Ka.get(t.id).startRight;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelLeft){const a=Ka.get(t.id).endLeft;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelRight){const a=Ka.get(t.id).endRight;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),lKe=S((t,e)=>{const r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),s=t.width/2,o=t.height/2;return i>=s||a>=o},"outsideNode"),cKe=S((t,e,r)=>{ge.debug(`intersection calc abc89: + `;if(!e.domId)throw new Error(`defaultMindmapNode: node "${e.id}" is missing a domId — was render.ts domId prefixing skipped?`);const f=i.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",n).attr("d",h);return i.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",u/2).attr("x2",l/2).attr("y2",u/2),o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>o.node()),yr(e,f),e.calcIntersect=function(p,g){return lr.rect(p,g)},e.intersect=function(p){return lr.rect(e,p)},i}S(Qge,"defaultMindmapNode");async function Zge(t,e){const r={padding:e.padding??0};return EG(t,e,r)}S(Zge,"mindmapCircle");var eKe=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Rge},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:wge},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Nge},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Lge},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Zpe},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Jpe},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:EG},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Xge},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:jge},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Tge},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:sge},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:mge},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:gge},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:$ge},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:fge},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tge},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Bge},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Ype},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:kge},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Dge},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Oge},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:ige},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:oge},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Kpe},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Xpe},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:jpe},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:yge},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Gge},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:age},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Fge},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:vge},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Qpe},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ege},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Uge},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Yge},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:rge},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:zge},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:nge},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Age},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Ege},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:bge},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:qpe},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Wpe},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Pge},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Mge},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:qge},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:xge},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:_ge}],tKe=S(()=>{const e=[...Object.entries({state:Ige,choice:Hpe,note:Sge,rectWithTitle:Cge,labelRect:pge,iconSquare:dge,iconCircle:cge,icon:lge,iconRounded:uge,imageSquare:hge,anchor:Upe,kanbanItem:Kge,mindmapCircle:Zge,defaultMindmapNode:Qge,classBox:Vge,erBox:SG,requirementBox:Wge}),...eKe.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(i=>[i,r.handler]))];return Object.fromEntries(e)},"generateShapeMap"),Jge=tKe();function eme(t){return t in Jge}S(eme,"isValidShape");var Bk=new Map;async function Fk(t,e,r){let n,i;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const a=e.shape?Jge[e.shape]:void 0;if(!a)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;r.config.securityLevel==="sandbox"?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),i=await a(n,e,r)}else i=await a(t,e,r),n=i;return n.attr("data-look",Ba(e.look)),e.tooltip&&i.attr("title",e.tooltip),Bk.set(e.id,n),e.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}S(Fk,"insertNode");var rKe=S((t,e)=>{Bk.set(e.id,t)},"setNodeElem"),nKe=S(()=>{Bk.clear()},"clear"),IP=S(t=>{const e=Bk.get(t.id);ge.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8,n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},"positionNode"),iKe=S((t,e,r,n,i,a=!1,s)=>{e.arrowTypeStart&&aQ(t,"start",e.arrowTypeStart,r,n,i,a,s),e.arrowTypeEnd&&aQ(t,"end",e.arrowTypeEnd,r,n,i,a,s)},"addEdgeMarkers"),aKe={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},sKe=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],aQ=S((t,e,r,n,i,a,s=!1,o)=>{const l=aKe[r],u=l&&sKe.includes(l.type);if(!l){ge.warn(`Unknown arrow type: ${r}`);return}const d=l.type,p=`${i}_${a}-${d}${e==="start"?"Start":"End"}${s&&u?"-margin":""}`;if(o&&o.trim()!==""){const g=o.replace(/[^\dA-Za-z]/g,"_"),m=`${p}_${g}`;if(!document.getElementById(m)){const y=document.getElementById(p);if(y){const v=y.cloneNode(!0);v.id=m,v.querySelectorAll("path, circle, line").forEach(_=>{_.setAttribute("stroke",o),l.fill&&_.setAttribute("fill",o)}),y.parentNode?.appendChild(v)}}t.attr(`marker-${e}`,`url(${n}#${m})`)}else t.attr(`marker-${e}`,`url(${n}#${p})`)},"addEdgeMarker"),oKe=S(t=>typeof t=="string"?t:Ke()?.flowchart?.curve,"resolveEdgeCurveType"),i6=new Map,Ka=new Map,lKe=S(()=>{i6.clear(),Ka.clear()},"clear"),P2=S(t=>t?typeof t=="string"?t:t.reduce((e,r)=>e+";"+r,""):"","getLabelStyles"),tme=S(async(t,e)=>{const r=Ke();let n=In(r);const{labelStyles:i}=hr(e);e.labelStyle=i;const a=t.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label").attr("data-id",e.id),o=e.labelType==="markdown",u=await Zs(t,e.label,{style:P2(e.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1,markdown:o,width:o?void 0:void 0},r);s.node().appendChild(u),ge.info("abc82",e,e.labelType);let d=u.getBBox(),h=d;if(n){const p=u.children[0],g=At(u);d=p.getBoundingClientRect(),h=d,g.attr("width",d.width),g.attr("height",d.height)}else{const p=At(u).select("text").node();p&&typeof p.getBBox=="function"&&(h=p.getBBox())}s.attr("transform",Gc(h,n)),i6.set(e.id,a),e.width=d.width,e.height=d.height;let f;if(e.startLabelLeft){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Bd(g,e.startLabelLeft,P2(e.labelStyle)||"",!1,!1);f=m;let y=m.getBBox();if(n){const v=m.children[0],b=At(m);y=v.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}g.attr("transform",Gc(y,n)),Ka.get(e.id)||Ka.set(e.id,{}),Ka.get(e.id).startLeft=p,fE(f,e.startLabelLeft)}if(e.startLabelRight){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Bd(g,e.startLabelRight,P2(e.labelStyle)||"",!1,!1);f=m;let y=m.getBBox();if(n){const v=m.children[0],b=At(m);y=v.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}g.attr("transform",Gc(y,n)),Ka.get(e.id)||Ka.set(e.id,{}),Ka.get(e.id).startRight=p,fE(f,e.startLabelRight)}if(e.endLabelLeft){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Bd(p,e.endLabelLeft,P2(e.labelStyle)||"",!1,!1);f=m;let y=m.getBBox();if(n){const v=m.children[0],b=At(m);y=v.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}g.attr("transform",Gc(y,n)),Ka.get(e.id)||Ka.set(e.id,{}),Ka.get(e.id).endLeft=p,fE(f,e.endLabelLeft)}if(e.endLabelRight){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Bd(p,e.endLabelRight,P2(e.labelStyle)||"",!1,!1);f=m;let y=m.getBBox();if(n){const v=m.children[0],b=At(m);y=v.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}g.attr("transform",Gc(y,n)),Ka.get(e.id)||Ka.set(e.id,{}),Ka.get(e.id).endRight=p,fE(f,e.endLabelRight)}return u},"insertEdgeLabel");function fE(t,e){In(Ke())&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}S(fE,"setTerminalWidth");var rme=S((t,e)=>{ge.debug("Moving label abc88 ",t.id,t.label,i6.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const n=Ke(),{subGraphTitleTotalMargin:i}=oT(n);if(t.label){const a=i6.get(t.id);let s=t.x,o=t.y;if(r){const l=Wr.calcLabelPosition(r);ge.debug("Moving label "+t.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(s=l.x,o=l.y)}a.attr("transform",`translate(${s}, ${o+i/2})`)}if(t.startLabelLeft){const a=Ka.get(t.id).startLeft;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.startLabelRight){const a=Ka.get(t.id).startRight;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelLeft){const a=Ka.get(t.id).endLeft;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelRight){const a=Ka.get(t.id).endRight;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),cKe=S((t,e)=>{const r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),s=t.width/2,o=t.height/2;return i>=s||a>=o},"outsideNode"),uKe=S((t,e,r)=>{ge.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} - node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const n=t.x,i=t.y,a=Math.abs(n-r.x),s=t.width/2;let o=r.xMath.abs(n-e.x)*l){let h=r.y{ge.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(ge.info("abc88 checking point",a,e),!lKe(e,a)&&!i){const s=cKe(e,n,a);ge.debug("abc88 inside",a,n,s),ge.debug("abc88 intersection",s,e);let o=!1;r.forEach(l=>{o=o||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)?ge.warn("abc88 no intersect",s,r):r.push(s),i=!0}else ge.warn("abc88 outside",a,n),n=a,i||r.push(a)}),ge.debug("returning points",r),r},"cutPathAtIntersect");function nme(t){const e=[],r=[];for(let n=1;n5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===s.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-s.y)>5)&&(e.push(a),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}S(nme,"extractCornerPoints");var oQ=S(function(t,e,r){const n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),s=r/a;return{x:e.x-s*n,y:e.y-s*i}},"findAdjacentPoint"),uKe=S(function(t){const{cornerPointPositions:e}=nme(t),r=[];for(let n=0;n10&&Math.abs(a.y-i.y)>=10){ge.debug("Corner point fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));const p=5;s.x===o.x?f={x:u<0?o.x-p+h:o.x+p-h,y:d<0?o.y-h:o.y+h}:f={x:u<0?o.x-h:o.x+h,y:d<0?o.y-p+h:o.y+p-h}}else ge.debug("Corner point skipping fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));r.push(f,l)}else r.push(t[n]);return r},"fixCorners"),dKe=S((t,e,r)=>{const n=t-e-r,i=2,a=2,s=i+a,o=Math.floor(n/s),l=Array(o).fill(`${i} ${a}`).join(" ");return`0 ${e} ${l} ${r}`},"generateDashArray"),ime=S(function(t,e,r,n,i,a,s,o=!1){if(!s)throw new Error(`insertEdge: missing diagramId for edge "${e.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:l}=Ke();let u=e.points,d=!1;const h=i;var f=a;const p=[];for(const L in e.cssCompiledStyles)oG(L)||p.push(e.cssCompiledStyles[L]);ge.debug("UIO intersect check",e.points,f.x,h.x),f.intersect&&h.intersect&&!o&&(u=u.slice(1,e.points.length-1),u.unshift(h.intersect(u[0])),ge.debug("Last point UIO",e.start,"-->",e.end,u[u.length-1],f,f.intersect(u[u.length-1])),u.push(f.intersect(u[u.length-1])));const g=btoa(JSON.stringify(u));e.toCluster&&(ge.info("to cluster abc88",r.get(e.toCluster)),u=sQ(e.points,r.get(e.toCluster).node),d=!0),e.fromCluster&&(ge.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(u,null,2)),u=sQ(u.reverse(),r.get(e.fromCluster).node).reverse(),d=!0);let m=u.filter(L=>!Number.isNaN(L.y));const y=sKe(e.curve);y!=="rounded"&&(m=uKe(m));let v=KE;switch(y){case"linear":v=KE;break;case"basis":v=US;break;case"cardinal":v=Ode;break;case"bumpX":v=kde;break;case"bumpY":v=Ade;break;case"catmullRom":v=Lde;break;case"monotoneX":v=zde;break;case"monotoneY":v=Ude;break;case"natural":v=qde;break;case"step":v=Yde;break;case"stepAfter":v=Vde;break;case"stepBefore":v=Hde;break;case"rounded":v=KE;break;default:v=US}const{x:b,y:_}=Afe(e),E=zS().x(b).y(_).curve(v);let x;switch(e.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;case"invisible":x="edge-thickness-invisible";break;default:x="edge-thickness-normal"}switch(e.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed";break;default:x+=" edge-pattern-solid"}let C,T=y==="rounded"?ame(sme(m,e),5):E(m);const w=Array.isArray(e.style)?e.style:[e.style];let N=w.find(L=>L?.startsWith("stroke:")),O="";e.animate&&(O="edge-animation-fast"),e.animation&&(O="edge-animation-"+e.animation);let M=!1;if(e.look==="handDrawn"){const L=gr.svg(t);Object.assign([],m);const R=L.path(T,{roughness:.3,seed:l});x+=" transition",C=At(R).select("path").attr("id",`${s}-${e.id}`).attr("class"," "+x+(e.classes?" "+e.classes:"")+(O?" "+O:"")).attr("style",w?w.reduce((z,B)=>z+";"+B,""):"");let P=C.attr("d");C.attr("d",P),t.node().appendChild(C.node())}else{const L=p.join(";"),R=w?w.reduce((Q,H)=>Q+H+";",""):"",P=(L?L+";"+R+";":R)+";"+(w?w.reduce((Q,H)=>Q+";"+H,""):"");C=t.append("path").attr("d",T).attr("id",`${s}-${e.id}`).attr("class"," "+x+(e.classes?" "+e.classes:"")+(O?" "+O:"")).attr("style",P),N=P.match(/stroke:([^;]+)/)?.[1],M=e.animate===!0||!!e.animation||L.includes("animation");const z=C.node(),B=typeof z.getTotalLength=="function"?z.getTotalLength():0,q=Ej[e.arrowTypeStart]||0,Y=Ej[e.arrowTypeEnd]||0;if(e.look==="neo"&&!M){const H=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?dKe(B,q,Y):`0 ${q} ${B-q-Y} ${Y}`}; stroke-dashoffset: 0;`;C.attr("style",H+C.attr("style"))}}C.attr("data-edge",!0),C.attr("data-et","edge"),C.attr("data-id",e.id),C.attr("data-points",g),C.attr("data-look",Ba(e.look)),e.showPoints&&m.forEach(L=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",L.x).attr("cy",L.y)});let $="";(Ke().flowchart.arrowMarkerAbsolute||Ke().state.arrowMarkerAbsolute)&&($=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,$=$.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),ge.info("arrowTypeStart",e.arrowTypeStart),ge.info("arrowTypeEnd",e.arrowTypeEnd);const F=!M&&e?.look==="neo";nKe(C,e,$,s,n,F,N);const A=Math.floor(u.length/2),I=u[A];Wr.isLabelCoordinateInPath(I,C.attr("d"))||(d=!0);let D={};return d&&(D.updatedPath=u),D.originalPath=e.points,D},"insertEdge");function ame(t,e){if(t.length<2)return"";let r="";const n=t.length,i=1e-5;for(let a=0;a({...i}));if(t.length>=2&&as[e.arrowTypeStart]){const i=as[e.arrowTypeStart],a=t[0],s=t[1],{angle:o}=OP(a,s),l=i*Math.cos(o),u=i*Math.sin(o);r[0].x=a.x+l,r[0].y=a.y+u}const n=t.length;if(n>=2&&as[e.arrowTypeEnd]){const i=as[e.arrowTypeEnd],a=t[n-1],s=t[n-2],{angle:o}=OP(s,a),l=i*Math.cos(o),u=i*Math.sin(o);r[n-1].x=a.x-l,r[n-1].y=a.y-u}return r}S(sme,"applyMarkerOffsetsToPoints");var hKe=S((t,e,r,n)=>{e.forEach(i=>{MKe[i](t,r,n)})},"insertMarkers"),fKe=S((t,e,r)=>{ge.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),pKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),gKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),mKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),yKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),vKe=S((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),_Ke=S((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),bKe=S((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),EKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),SKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{transitionColor:a}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${a}`)},"barbNeo"),TKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),xKe=S((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),CKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),wKe=S((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),kKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{strokeWidth:a}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${a}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),AKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{strokeWidth:a,mainBkg:s}=i,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);const l=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),RKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{strokeWidth:a}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${a}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${a}`)},"one_or_more_neo"),NKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{strokeWidth:a,mainBkg:s}=i,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);const l=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),IKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 + node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const n=t.x,i=t.y,a=Math.abs(n-r.x),s=t.width/2;let o=r.xMath.abs(n-e.x)*l){let h=r.y{ge.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(ge.info("abc88 checking point",a,e),!cKe(e,a)&&!i){const s=uKe(e,n,a);ge.debug("abc88 inside",a,n,s),ge.debug("abc88 intersection",s,e);let o=!1;r.forEach(l=>{o=o||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)?ge.warn("abc88 no intersect",s,r):r.push(s),i=!0}else ge.warn("abc88 outside",a,n),n=a,i||r.push(a)}),ge.debug("returning points",r),r},"cutPathAtIntersect");function nme(t){const e=[],r=[];for(let n=1;n5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===s.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-s.y)>5)&&(e.push(a),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}S(nme,"extractCornerPoints");var oQ=S(function(t,e,r){const n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),s=r/a;return{x:e.x-s*n,y:e.y-s*i}},"findAdjacentPoint"),dKe=S(function(t){const{cornerPointPositions:e}=nme(t),r=[];for(let n=0;n10&&Math.abs(a.y-i.y)>=10){ge.debug("Corner point fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));const p=5;s.x===o.x?f={x:u<0?o.x-p+h:o.x+p-h,y:d<0?o.y-h:o.y+h}:f={x:u<0?o.x-h:o.x+h,y:d<0?o.y-p+h:o.y+p-h}}else ge.debug("Corner point skipping fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));r.push(f,l)}else r.push(t[n]);return r},"fixCorners"),hKe=S((t,e,r)=>{const n=t-e-r,i=2,a=2,s=i+a,o=Math.floor(n/s),l=Array(o).fill(`${i} ${a}`).join(" ");return`0 ${e} ${l} ${r}`},"generateDashArray"),ime=S(function(t,e,r,n,i,a,s,o=!1){if(!s)throw new Error(`insertEdge: missing diagramId for edge "${e.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:l}=Ke();let u=e.points,d=!1;const h=i;var f=a;const p=[];for(const L in e.cssCompiledStyles)oG(L)||p.push(e.cssCompiledStyles[L]);ge.debug("UIO intersect check",e.points,f.x,h.x),f.intersect&&h.intersect&&!o&&(u=u.slice(1,e.points.length-1),u.unshift(h.intersect(u[0])),ge.debug("Last point UIO",e.start,"-->",e.end,u[u.length-1],f,f.intersect(u[u.length-1])),u.push(f.intersect(u[u.length-1])));const g=btoa(JSON.stringify(u));e.toCluster&&(ge.info("to cluster abc88",r.get(e.toCluster)),u=sQ(e.points,r.get(e.toCluster).node),d=!0),e.fromCluster&&(ge.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(u,null,2)),u=sQ(u.reverse(),r.get(e.fromCluster).node).reverse(),d=!0);let m=u.filter(L=>!Number.isNaN(L.y));const y=oKe(e.curve);y!=="rounded"&&(m=dKe(m));let v=KE;switch(y){case"linear":v=KE;break;case"basis":v=US;break;case"cardinal":v=Ode;break;case"bumpX":v=kde;break;case"bumpY":v=Ade;break;case"catmullRom":v=Lde;break;case"monotoneX":v=zde;break;case"monotoneY":v=Ude;break;case"natural":v=qde;break;case"step":v=Yde;break;case"stepAfter":v=Vde;break;case"stepBefore":v=Hde;break;case"rounded":v=KE;break;default:v=US}const{x:b,y:_}=Afe(e),E=zS().x(b).y(_).curve(v);let x;switch(e.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;case"invisible":x="edge-thickness-invisible";break;default:x="edge-thickness-normal"}switch(e.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed";break;default:x+=" edge-pattern-solid"}let C,T=y==="rounded"?ame(sme(m,e),5):E(m);const w=Array.isArray(e.style)?e.style:[e.style];let N=w.find(L=>L?.startsWith("stroke:")),O="";e.animate&&(O="edge-animation-fast"),e.animation&&(O="edge-animation-"+e.animation);let M=!1;if(e.look==="handDrawn"){const L=gr.svg(t);Object.assign([],m);const R=L.path(T,{roughness:.3,seed:l});x+=" transition",C=At(R).select("path").attr("id",`${s}-${e.id}`).attr("class"," "+x+(e.classes?" "+e.classes:"")+(O?" "+O:"")).attr("style",w?w.reduce((z,B)=>z+";"+B,""):"");let P=C.attr("d");C.attr("d",P),t.node().appendChild(C.node())}else{const L=p.join(";"),R=w?w.reduce((Q,H)=>Q+H+";",""):"",P=(L?L+";"+R+";":R)+";"+(w?w.reduce((Q,H)=>Q+";"+H,""):"");C=t.append("path").attr("d",T).attr("id",`${s}-${e.id}`).attr("class"," "+x+(e.classes?" "+e.classes:"")+(O?" "+O:"")).attr("style",P),N=P.match(/stroke:([^;]+)/)?.[1],M=e.animate===!0||!!e.animation||L.includes("animation");const z=C.node(),B=typeof z.getTotalLength=="function"?z.getTotalLength():0,q=Ej[e.arrowTypeStart]||0,Y=Ej[e.arrowTypeEnd]||0;if(e.look==="neo"&&!M){const H=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?hKe(B,q,Y):`0 ${q} ${B-q-Y} ${Y}`}; stroke-dashoffset: 0;`;C.attr("style",H+C.attr("style"))}}C.attr("data-edge",!0),C.attr("data-et","edge"),C.attr("data-id",e.id),C.attr("data-points",g),C.attr("data-look",Ba(e.look)),e.showPoints&&m.forEach(L=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",L.x).attr("cy",L.y)});let $="";(Ke().flowchart.arrowMarkerAbsolute||Ke().state.arrowMarkerAbsolute)&&($=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,$=$.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),ge.info("arrowTypeStart",e.arrowTypeStart),ge.info("arrowTypeEnd",e.arrowTypeEnd);const F=!M&&e?.look==="neo";iKe(C,e,$,s,n,F,N);const A=Math.floor(u.length/2),I=u[A];Wr.isLabelCoordinateInPath(I,C.attr("d"))||(d=!0);let D={};return d&&(D.updatedPath=u),D.originalPath=e.points,D},"insertEdge");function ame(t,e){if(t.length<2)return"";let r="";const n=t.length,i=1e-5;for(let a=0;a({...i}));if(t.length>=2&&as[e.arrowTypeStart]){const i=as[e.arrowTypeStart],a=t[0],s=t[1],{angle:o}=OP(a,s),l=i*Math.cos(o),u=i*Math.sin(o);r[0].x=a.x+l,r[0].y=a.y+u}const n=t.length;if(n>=2&&as[e.arrowTypeEnd]){const i=as[e.arrowTypeEnd],a=t[n-1],s=t[n-2],{angle:o}=OP(s,a),l=i*Math.cos(o),u=i*Math.sin(o);r[n-1].x=a.x-l,r[n-1].y=a.y-u}return r}S(sme,"applyMarkerOffsetsToPoints");var fKe=S((t,e,r,n)=>{e.forEach(i=>{PKe[i](t,r,n)})},"insertMarkers"),pKe=S((t,e,r)=>{ge.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),gKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),mKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),yKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),vKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),_Ke=S((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),bKe=S((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),EKe=S((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),SKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),TKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{transitionColor:a}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${a}`)},"barbNeo"),xKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),CKe=S((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),wKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),kKe=S((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),AKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{strokeWidth:a}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${a}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),RKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{strokeWidth:a,mainBkg:s}=i,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);const l=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),NKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{strokeWidth:a}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${a}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${a}`)},"one_or_more_neo"),IKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{strokeWidth:a,mainBkg:s}=i,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);const l=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),OKe=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 L20,10 M20,10 - L0,20`)},"requirement_arrow"),OKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{strokeWidth:a}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0 + L0,20`)},"requirement_arrow"),DKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{strokeWidth:a}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0 L20,10 M20,10 - L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),DKe=S((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),LKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{strokeWidth:a}=i,s=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),MKe={extension:fKe,composition:pKe,aggregation:gKe,dependency:mKe,lollipop:yKe,point:vKe,circle:_Ke,cross:bKe,barb:EKe,barbNeo:SKe,only_one:TKe,zero_or_one:xKe,one_or_more:CKe,zero_or_more:wKe,only_one_neo:kKe,zero_or_one_neo:AKe,one_or_more_neo:RKe,zero_or_more_neo:NKe,requirement_arrow:IKe,requirement_contains:DKe,requirement_arrow_neo:OKe,requirement_contains_neo:LKe},ome=hKe,PKe={common:qt,getConfig:xr,insertCluster:bG,insertEdge:ime,insertEdgeLabel:tme,insertMarkers:ome,insertNode:Fk,interpolateToCurve:tG,labelHelper:Mr,log:ge,positionEdgeLabel:rme},KS={},lme=S(t=>{for(const e of t)KS[e.name]=e},"registerLayoutLoaders"),BKe=S(()=>{lme([{name:"dagre",loader:S(async()=>await Promise.resolve().then(()=>aht),"loader")},{name:"cose-bilkent",loader:S(async()=>await Promise.resolve().then(()=>Vyt),"loader")}])},"registerDefaultLayoutLoaders");BKe();var Yb=S(async(t,e)=>{if(!(t.layoutAlgorithm in KS))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(const d of t.nodes){const h=d.domId||d.id;d.domId=`${t.diagramId}-${h}`}const r=KS[t.layoutAlgorithm],n=await r.loader(),{theme:i,themeVariables:a}=t.config,{useGradient:s,gradientStart:o,gradientStop:l}=a,u=e.attr("id");if(e.append("defs").append("filter").attr("id",`${u}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${u}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),s){const d=e.append("linearGradient").attr("id",e.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return n.render(t,e,PKe,{algorithm:r.algorithm})},"render"),uT=S((t="",{fallback:e="dagre"}={})=>{if(t in KS)return t;if(e in KS)return ge.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm"),TG="comm",cme="rule",ume="decl",FKe="@media",$Ke="@import",zKe="@supports",UKe="@namespace",DP="@keyframes",dme="@layer",GKe="@scope",hme=Math.abs,xG=String.fromCharCode;function fme(t){return t.trim()}function r5(t,e,r){return t.replace(e,r)}function qKe(t,e,r){return t.indexOf(e,r)}function Wm(t,e){return t.charCodeAt(e)|0}function eb(t,e,r){return t.slice(e,r)}function Dc(t){return t.length}function pme(t){return t.length}function Ox(t,e){return e.push(t),t}var $k=1,tb=1,gme=0,Al=0,Ji=0,Hb="";function CG(t,e,r,n,i,a,s,o){return{value:t,root:e,parent:r,type:n,props:i,children:a,line:$k,column:tb,length:s,return:"",siblings:o}}function YKe(){return Ji}function HKe(){return Ji=Al>0?Wm(Hb,--Al):0,tb--,Ji===10&&(tb=1,$k--),Ji}function tc(){return Ji=Al2||XS(Ji)>3?"":" "}function XKe(t,e){for(;--e&&tc()&&!(Ji<48||Ji>102||Ji>57&&Ji<65||Ji>70&&Ji<97););return zk(t,n5()+(e<6&&Fd()==32&&tc()==32))}function LP(t){for(;tc();)switch(Ji){case t:return Al;case 34:case 39:t!==34&&t!==39&&LP(Ji);break;case 40:t===41&&LP(t);break;case 92:tc();break}return Al}function jKe(t,e){for(;tc()&&t+Ji!==57;)if(t+Ji===84&&Fd()===47)break;return"/*"+zk(e,Al-1)+"*"+xG(t===47?t:tc())}function QKe(t){for(;!XS(Fd());)tc();return zk(t,Al)}function ZKe(t){return WKe(i5("",null,null,null,[""],t=VKe(t),0,[0],t))}function i5(t,e,r,n,i,a,s,o,l){for(var u=0,d=0,h=s,f=0,p=0,g=0,m=1,y=1,v=1,b=0,_="",E=i,x=a,C=n,T=_;y;)switch(g=b,b=tc()){case 40:if(g!=108&&Wm(T,h-1)==58){qKe(T+=r5(SR(b),"&","&\f"),"&\f",hme(u?o[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:T+=SR(b);break;case 9:case 10:case 13:case 32:T+=KKe(g);break;case 92:T+=XKe(n5()-1,7);continue;case 47:switch(Fd()){case 42:case 47:Ox(JKe(jKe(tc(),n5()),e,r,l),l),(XS(g||1)==5||XS(Fd()||1)==5)&&Dc(T)&&eb(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*m:o[u++]=Dc(T)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:v==-1&&(T=r5(T,/\f/g,"")),p>0&&(Dc(T)-h||m===0&&g===47)&&Ox(p>32?cQ(T+";",n,r,h-1,l):cQ(r5(T," ","")+";",n,r,h-2,l),l);break;case 59:T+=";";default:if(Ox(C=lQ(T,e,r,u,d,i,o,_,E=[],x=[],h,a),a),b===123)if(d===0)i5(T,e,C,C,E,a,h,o,x);else{switch(f){case 99:if(Wm(T,3)===110)break;case 108:if(Wm(T,2)===97)break;default:d=0;case 100:case 109:case 115:}d?i5(t,C,C,n&&Ox(lQ(t,C,C,0,0,i,o,_,i,E=[],h,x),x),i,x,h,o,n?E:x):i5(T,C,C,C,[""],x,0,o,x)}}u=d=p=0,m=v=1,_=T="",h=s;break;case 58:h=1+Dc(T),p=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&HKe()==125)continue}switch(T+=xG(b),b*m){case 38:v=d>0?1:(T+="\f",-1);break;case 44:o[u++]=(Dc(T)-1)*v,v=1;break;case 64:Fd()===45&&(T+=SR(tc())),f=Fd(),d=h=Dc(_=T+=QKe(n5())),b++;break;case 45:g===45&&Dc(T)==2&&(m=0)}}return a}function lQ(t,e,r,n,i,a,s,o,l,u,d,h){for(var f=i-1,p=i===0?a:[""],g=pme(p),m=0,y=0,v=0;m0?p[b]+" "+_:r5(_,/&\f/g,p[b])))&&(l[v++]=E);return CG(t,e,r,i===0?cme:o,l,u,d,h)}function JKe(t,e,r,n){return CG(t,e,r,TG,xG(YKe()),eb(t,2,-2),0,n)}function cQ(t,e,r,n,i){return CG(t,e,r,ume,eb(t,0,n),eb(t,n+1,-1),n,i)}function MP(t,e){for(var r="",n=0;n/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),nXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Uvt);return{id:mme,diagram:t}},"loader"),iXe={id:mme,detector:rXe,loader:nXe},aXe=iXe,yme="flowchart",sXe=S((t,e)=>e?.flowchart?.defaultRenderer==="dagre-wrapper"||e?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(t),"detector"),oXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>cY);return{id:yme,diagram:t}},"loader"),lXe={id:yme,detector:sXe,loader:oXe},cXe=lXe,vme="flowchart-v2",uXe=S((t,e)=>e?.flowchart?.defaultRenderer==="dagre-d3"?!1:(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)),"detector"),dXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>cY);return{id:vme,diagram:t}},"loader"),hXe={id:vme,detector:uXe,loader:dXe},fXe=hXe,_me="er",pXe=S(t=>/^\s*erDiagram/.test(t),"detector"),gXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>o_t);return{id:_me,diagram:t}},"loader"),mXe={id:_me,detector:pXe,loader:gXe},yXe=mXe,bme="gitGraph",vXe=S(t=>/^\s*gitGraph/.test(t),"detector"),_Xe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>D7t);return{id:bme,diagram:t}},"loader"),bXe={id:bme,detector:vXe,loader:_Xe},EXe=bXe,Eme="gantt",SXe=S(t=>/^\s*gantt/.test(t),"detector"),TXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>UAt);return{id:Eme,diagram:t}},"loader"),xXe={id:Eme,detector:SXe,loader:TXe},CXe=xXe,Sme="info",wXe=S(t=>/^\s*info/.test(t),"detector"),kXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>XAt);return{id:Sme,diagram:t}},"loader"),AXe={id:Sme,detector:wXe,loader:kXe},Tme="pie",RXe=S(t=>/^\s*pie/.test(t),"detector"),NXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>h8t);return{id:Tme,diagram:t}},"loader"),IXe={id:Tme,detector:RXe,loader:NXe},xme="quadrantChart",OXe=S(t=>/^\s*quadrantChart/.test(t),"detector"),DXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>E8t);return{id:xme,diagram:t}},"loader"),LXe={id:xme,detector:OXe,loader:DXe},MXe=LXe,Cme="xychart",PXe=S(t=>/^\s*xychart(-beta)?/.test(t),"detector"),BXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>P8t);return{id:Cme,diagram:t}},"loader"),FXe={id:Cme,detector:PXe,loader:BXe},$Xe=FXe,wme="requirement",zXe=S(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),UXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Y8t);return{id:wme,diagram:t}},"loader"),GXe={id:wme,detector:zXe,loader:UXe},qXe=GXe,kme="sequence",YXe=S(t=>/^\s*sequenceDiagram/.test(t),"detector"),HXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>$Rt);return{id:kme,diagram:t}},"loader"),VXe={id:kme,detector:YXe,loader:HXe},WXe=VXe,Ame="class",KXe=S((t,e)=>e?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t),"detector"),XXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>HRt);return{id:Ame,diagram:t}},"loader"),jXe={id:Ame,detector:KXe,loader:XXe},QXe=jXe,Rme="classDiagram",ZXe=S((t,e)=>/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t),"detector"),JXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>WRt);return{id:Rme,diagram:t}},"loader"),eje={id:Rme,detector:ZXe,loader:JXe},tje=eje,Nme="state",rje=S((t,e)=>e?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t),"detector"),nje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>PNt);return{id:Nme,diagram:t}},"loader"),ije={id:Nme,detector:rje,loader:nje},aje=ije,Ime="stateDiagram",sje=S((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),oje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>FNt);return{id:Ime,diagram:t}},"loader"),lje={id:Ime,detector:sje,loader:oje},cje=lje,Ome="journey",uje=S(t=>/^\s*journey/.test(t),"detector"),dje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>sIt);return{id:Ome,diagram:t}},"loader"),hje={id:Ome,detector:uje,loader:dje},fje=hje,pje=S((t,e,r)=>{ge.debug(`rendering svg for syntax error -`);const n=To(e),i=n.append("g");n.attr("viewBox","0 0 2412 512"),ua(n,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),Dme={draw:pje},gje=Dme,mje={db:{},renderer:Dme,parser:{parse:S(()=>{},"parse")}},yje=mje,Lme="flowchart-elk",vje=S((t,e={})=>/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk"?(e.layout="elk",!0):!1,"detector"),_je=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>cY);return{id:Lme,diagram:t}},"loader"),bje={id:Lme,detector:vje,loader:_je},Eje=bje,Mme="timeline",Sje=S(t=>/^\s*timeline/.test(t),"detector"),Tje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>MIt);return{id:Mme,diagram:t}},"loader"),xje={id:Mme,detector:Sje,loader:Tje},Cje=xje,Pme="mindmap",wje=S(t=>/^\s*mindmap/.test(t),"detector"),kje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>QIt);return{id:Pme,diagram:t}},"loader"),Aje={id:Pme,detector:wje,loader:kje},Rje=Aje,Bme="kanban",Nje=S(t=>/^\s*kanban/.test(t),"detector"),Ije=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>yOt);return{id:Bme,diagram:t}},"loader"),Oje={id:Bme,detector:Nje,loader:Ije},Dje=Oje,Fme="sankey",Lje=S(t=>/^\s*sankey(-beta)?/.test(t),"detector"),Mje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>r9t);return{id:Fme,diagram:t}},"loader"),Pje={id:Fme,detector:Lje,loader:Mje},Bje=Pje,$me="packet",Fje=S(t=>/^\s*packet(-beta)?/.test(t),"detector"),$je=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>f9t);return{id:$me,diagram:t}},"loader"),zje={id:$me,detector:Fje,loader:$je},zme="radar",Uje=S(t=>/^\s*radar-beta/.test(t),"detector"),Gje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>L9t);return{id:zme,diagram:t}},"loader"),qje={id:zme,detector:Uje,loader:Gje},Ume="block",Yje=S(t=>/^\s*block(-beta)?/.test(t),"detector"),Hje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>lLt);return{id:Ume,diagram:t}},"loader"),Vje={id:Ume,detector:Yje,loader:Hje},Wje=Vje,Gme="treeView",Kje=S(t=>/^\s*treeView-beta/.test(t),"detector"),Xje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>kLt);return{id:Gme,diagram:t}},"loader"),jje={id:Gme,detector:Kje,loader:Xje},Qje=jje,qme="architecture",Zje=S(t=>/^\s*architecture/.test(t),"detector"),Jje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>tMt);return{id:qme,diagram:t}},"loader"),eQe={id:qme,detector:Zje,loader:Jje},tQe=eQe,Yme="eventmodeling",rQe=S(t=>/^\s*eventmodeling/.test(t),"detector"),nQe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>vMt);return{id:Yme,diagram:t}},"loader"),iQe={id:Yme,detector:rQe,loader:nQe},aQe=iQe,Hme="ishikawa",sQe=S(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),oQe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>MMt);return{id:Hme,diagram:t}},"loader"),lQe={id:Hme,detector:sQe,loader:oQe},Vme="venn",cQe=S(t=>/^\s*venn-beta/.test(t),"detector"),uQe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>bPt);return{id:Vme,diagram:t}},"loader"),dQe={id:Vme,detector:cQe,loader:uQe},hQe=dQe,Wme="treemap",fQe=S(t=>/^\s*treemap/.test(t),"detector"),pQe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>IPt);return{id:Wme,diagram:t}},"loader"),gQe={id:Wme,detector:fQe,loader:pQe},Kme="wardley-beta",mQe=S(t=>/^\s*wardley-beta/i.test(t),"detector"),yQe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>qPt);return{id:Kme,diagram:t}},"loader"),vQe={id:Kme,detector:mQe,loader:yQe},_Qe=vQe,uQ=!1,Uk=S(()=>{uQ||(uQ=!0,SC("error",yje,t=>t.toLowerCase().trim()==="error"),SC("---",{db:{clear:S(()=>{},"clear")},styles:{},renderer:{draw:S(()=>{},"draw")},parser:{parse:S(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:S(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),LM(Eje,Rje,tQe),LM(aXe,Dje,tje,QXe,yXe,CXe,AXe,IXe,qXe,WXe,fXe,cXe,Cje,EXe,cje,aje,fje,MXe,Bje,zje,$Xe,Wje,aQe,Qje,qje,lQe,gQe,hQe,_Qe))},"addDiagrams"),bQe=S(async()=>{ge.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(_p).map(async([r,{detector:n,loader:i}])=>{if(i)try{zM(r)}catch{try{const{diagram:a,id:s}=await i();SC(s,a,n)}catch(a){throw ge.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete _p[r],a}}}))).filter(r=>r.status==="rejected");if(e.length>0){ge.error(`Failed to load ${e.length} external diagrams`);for(const r of e)ge.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),EQe="graphics-document document";function Xme(t,e){t.attr("role",EQe),e!==""&&t.attr("aria-roledescription",e)}S(Xme,"setA11yDiagramInfo");function jme(t,e,r,n){if(t.insert!==void 0){if(r){const i=`chart-desc-${n}`;t.attr("aria-describedby",i),t.insert("desc",":first-child").attr("id",i).text(r)}if(e){const i=`chart-title-${n}`;t.attr("aria-labelledby",i),t.insert("title",":first-child").attr("id",i).text(e)}}}S(jme,"addSVGa11yTitleDescription");var gp,PP=(gp=class{constructor(e,r,n,i,a){this.type=e,this.text=r,this.db=n,this.parser=i,this.renderer=a}static async fromText(e,r={}){const n=xr(),i=pU(e,n);e=iVe(e)+` -`;try{zM(i)}catch{const u=QPe(i);if(!u)throw new g0e(`Diagram ${i} not found.`);const{id:d,diagram:h}=await u();SC(d,h)}const{db:a,parser:s,renderer:o,init:l}=zM(i);return s.parser&&(s.parser.yy=a),a.clear?.(),l?.(n),r.title&&a.setDiagramTitle?.(r.title),await s.parse(e),new gp(i,e,a,s,o)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}},S(gp,"Diagram"),gp),dQ=[],SQe=S(()=>{dQ.forEach(t=>{t()}),dQ=[]},"attachFunctions"),TQe=S(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Qme(t){const e=t.match(p0e);if(!e)return{text:t,metadata:{}};let r=wk(e[1],{schema:Ck})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:t.slice(e[0].length),metadata:n}}S(Qme,"extractFrontMatter");var xQe=S(t=>t.replace(/\r\n?/g,` -`).replace(/<(\w+)([^>]*)>/g,(e,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),CQe=S(t=>{const{text:e,metadata:r}=Qme(t),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:e}},"processFrontmatter"),wQe=S(t=>{const e=Wr.detectInit(t)??{},r=Wr.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:n})=>n==="wrap"):r?.type==="wrap"&&(e.wrap=!0),{text:KHe(t),directive:e}},"processDirectives");function wG(t){const e=xQe(t),r=CQe(e),n=wQe(r.text),i=$i(r.config,n.directive);return t=TQe(n.text),{code:t,title:r.title,config:i}}S(wG,"preprocessDiagram");function Zme(t){const e=new TextEncoder().encode(t),r=Array.from(e,n=>String.fromCodePoint(n)).join("");return btoa(r)}S(Zme,"toBase64");var kQe=5e4,AQe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",RQe="sandbox",NQe="loose",IQe="http://www.w3.org/2000/svg",OQe="http://www.w3.org/1999/xlink",DQe="http://www.w3.org/1999/xhtml",LQe="100%",MQe="100%",PQe="border:0;margin:0;",BQe="margin:0",FQe="allow-top-navigation-by-user-activation allow-popups",$Qe='The "iframe" tag is not supported by your browser.',zQe=["foreignobject"],UQe=["dominant-baseline"];function kG(t){const e=wG(t);return bC(),TBe(e.config??{}),e}S(kG,"processAndSetConfigs");async function Jme(t,e){Uk();try{const{code:r,config:n}=kG(t);return{diagramType:(await t1e(r)).type,config:n}}catch(r){if(e?.suppressErrors)return!1;throw r}}S(Jme,"parse");var hQ=S((t,e,r=[])=>{const n=_0e(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${n}`},"cssImportantStyles"),GQe=S((t,e=new Map)=>{const r=new CSSStyleSheet;if(t.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),t.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){const o=In(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(l=>{wj(l.styles)||o.forEach(u=>{r.insertRule(hQ(l.id,u,l.styles),r.cssRules.length)}),wj(l.textStyles)||r.insertRule(hQ(l.id,"tspan",(l?.textStyles||[]).map(u=>u.replace("color","fill"))),r.cssRules.length)})}let n="";if(t.themeCSS!==void 0)if(typeof r.replaceSync=="function"){const i=new CSSStyleSheet;i.replaceSync(t.themeCSS),n=FM(i)+` + L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),LKe=S((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),MKe=S((t,e,r)=>{const n=xr(),{themeVariables:i}=n,{strokeWidth:a}=i,s=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),PKe={extension:pKe,composition:gKe,aggregation:mKe,dependency:yKe,lollipop:vKe,point:_Ke,circle:bKe,cross:EKe,barb:SKe,barbNeo:TKe,only_one:xKe,zero_or_one:CKe,one_or_more:wKe,zero_or_more:kKe,only_one_neo:AKe,zero_or_one_neo:RKe,one_or_more_neo:NKe,zero_or_more_neo:IKe,requirement_arrow:OKe,requirement_contains:LKe,requirement_arrow_neo:DKe,requirement_contains_neo:MKe},ome=fKe,BKe={common:qt,getConfig:xr,insertCluster:bG,insertEdge:ime,insertEdgeLabel:tme,insertMarkers:ome,insertNode:Fk,interpolateToCurve:tG,labelHelper:Mr,log:ge,positionEdgeLabel:rme},KS={},lme=S(t=>{for(const e of t)KS[e.name]=e},"registerLayoutLoaders"),FKe=S(()=>{lme([{name:"dagre",loader:S(async()=>await Promise.resolve().then(()=>sht),"loader")},{name:"cose-bilkent",loader:S(async()=>await Promise.resolve().then(()=>Wyt),"loader")}])},"registerDefaultLayoutLoaders");FKe();var Yb=S(async(t,e)=>{if(!(t.layoutAlgorithm in KS))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(const d of t.nodes){const h=d.domId||d.id;d.domId=`${t.diagramId}-${h}`}const r=KS[t.layoutAlgorithm],n=await r.loader(),{theme:i,themeVariables:a}=t.config,{useGradient:s,gradientStart:o,gradientStop:l}=a,u=e.attr("id");if(e.append("defs").append("filter").attr("id",`${u}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${u}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),s){const d=e.append("linearGradient").attr("id",e.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return n.render(t,e,BKe,{algorithm:r.algorithm})},"render"),uT=S((t="",{fallback:e="dagre"}={})=>{if(t in KS)return t;if(e in KS)return ge.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm"),TG="comm",cme="rule",ume="decl",$Ke="@media",zKe="@import",UKe="@supports",GKe="@namespace",DP="@keyframes",dme="@layer",qKe="@scope",hme=Math.abs,xG=String.fromCharCode;function fme(t){return t.trim()}function r5(t,e,r){return t.replace(e,r)}function YKe(t,e,r){return t.indexOf(e,r)}function Wm(t,e){return t.charCodeAt(e)|0}function eb(t,e,r){return t.slice(e,r)}function Dc(t){return t.length}function pme(t){return t.length}function Ox(t,e){return e.push(t),t}var $k=1,tb=1,gme=0,Al=0,Ji=0,Hb="";function CG(t,e,r,n,i,a,s,o){return{value:t,root:e,parent:r,type:n,props:i,children:a,line:$k,column:tb,length:s,return:"",siblings:o}}function HKe(){return Ji}function VKe(){return Ji=Al>0?Wm(Hb,--Al):0,tb--,Ji===10&&(tb=1,$k--),Ji}function tc(){return Ji=Al2||XS(Ji)>3?"":" "}function jKe(t,e){for(;--e&&tc()&&!(Ji<48||Ji>102||Ji>57&&Ji<65||Ji>70&&Ji<97););return zk(t,n5()+(e<6&&Fd()==32&&tc()==32))}function LP(t){for(;tc();)switch(Ji){case t:return Al;case 34:case 39:t!==34&&t!==39&&LP(Ji);break;case 40:t===41&&LP(t);break;case 92:tc();break}return Al}function QKe(t,e){for(;tc()&&t+Ji!==57;)if(t+Ji===84&&Fd()===47)break;return"/*"+zk(e,Al-1)+"*"+xG(t===47?t:tc())}function ZKe(t){for(;!XS(Fd());)tc();return zk(t,Al)}function JKe(t){return KKe(i5("",null,null,null,[""],t=WKe(t),0,[0],t))}function i5(t,e,r,n,i,a,s,o,l){for(var u=0,d=0,h=s,f=0,p=0,g=0,m=1,y=1,v=1,b=0,_="",E=i,x=a,C=n,T=_;y;)switch(g=b,b=tc()){case 40:if(g!=108&&Wm(T,h-1)==58){YKe(T+=r5(SR(b),"&","&\f"),"&\f",hme(u?o[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:T+=SR(b);break;case 9:case 10:case 13:case 32:T+=XKe(g);break;case 92:T+=jKe(n5()-1,7);continue;case 47:switch(Fd()){case 42:case 47:Ox(eXe(QKe(tc(),n5()),e,r,l),l),(XS(g||1)==5||XS(Fd()||1)==5)&&Dc(T)&&eb(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*m:o[u++]=Dc(T)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:v==-1&&(T=r5(T,/\f/g,"")),p>0&&(Dc(T)-h||m===0&&g===47)&&Ox(p>32?cQ(T+";",n,r,h-1,l):cQ(r5(T," ","")+";",n,r,h-2,l),l);break;case 59:T+=";";default:if(Ox(C=lQ(T,e,r,u,d,i,o,_,E=[],x=[],h,a),a),b===123)if(d===0)i5(T,e,C,C,E,a,h,o,x);else{switch(f){case 99:if(Wm(T,3)===110)break;case 108:if(Wm(T,2)===97)break;default:d=0;case 100:case 109:case 115:}d?i5(t,C,C,n&&Ox(lQ(t,C,C,0,0,i,o,_,i,E=[],h,x),x),i,x,h,o,n?E:x):i5(T,C,C,C,[""],x,0,o,x)}}u=d=p=0,m=v=1,_=T="",h=s;break;case 58:h=1+Dc(T),p=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&VKe()==125)continue}switch(T+=xG(b),b*m){case 38:v=d>0?1:(T+="\f",-1);break;case 44:o[u++]=(Dc(T)-1)*v,v=1;break;case 64:Fd()===45&&(T+=SR(tc())),f=Fd(),d=h=Dc(_=T+=ZKe(n5())),b++;break;case 45:g===45&&Dc(T)==2&&(m=0)}}return a}function lQ(t,e,r,n,i,a,s,o,l,u,d,h){for(var f=i-1,p=i===0?a:[""],g=pme(p),m=0,y=0,v=0;m0?p[b]+" "+_:r5(_,/&\f/g,p[b])))&&(l[v++]=E);return CG(t,e,r,i===0?cme:o,l,u,d,h)}function eXe(t,e,r,n){return CG(t,e,r,TG,xG(HKe()),eb(t,2,-2),0,n)}function cQ(t,e,r,n,i){return CG(t,e,r,ume,eb(t,0,n),eb(t,n+1,-1),n,i)}function MP(t,e){for(var r="",n=0;n/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),iXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Gvt);return{id:mme,diagram:t}},"loader"),aXe={id:mme,detector:nXe,loader:iXe},sXe=aXe,yme="flowchart",oXe=S((t,e)=>e?.flowchart?.defaultRenderer==="dagre-wrapper"||e?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(t),"detector"),lXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>cY);return{id:yme,diagram:t}},"loader"),cXe={id:yme,detector:oXe,loader:lXe},uXe=cXe,vme="flowchart-v2",dXe=S((t,e)=>e?.flowchart?.defaultRenderer==="dagre-d3"?!1:(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)),"detector"),hXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>cY);return{id:vme,diagram:t}},"loader"),fXe={id:vme,detector:dXe,loader:hXe},pXe=fXe,_me="er",gXe=S(t=>/^\s*erDiagram/.test(t),"detector"),mXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>l_t);return{id:_me,diagram:t}},"loader"),yXe={id:_me,detector:gXe,loader:mXe},vXe=yXe,bme="gitGraph",_Xe=S(t=>/^\s*gitGraph/.test(t),"detector"),bXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>L7t);return{id:bme,diagram:t}},"loader"),EXe={id:bme,detector:_Xe,loader:bXe},SXe=EXe,Eme="gantt",TXe=S(t=>/^\s*gantt/.test(t),"detector"),xXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>GAt);return{id:Eme,diagram:t}},"loader"),CXe={id:Eme,detector:TXe,loader:xXe},wXe=CXe,Sme="info",kXe=S(t=>/^\s*info/.test(t),"detector"),AXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>jAt);return{id:Sme,diagram:t}},"loader"),RXe={id:Sme,detector:kXe,loader:AXe},Tme="pie",NXe=S(t=>/^\s*pie/.test(t),"detector"),IXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>f8t);return{id:Tme,diagram:t}},"loader"),OXe={id:Tme,detector:NXe,loader:IXe},xme="quadrantChart",DXe=S(t=>/^\s*quadrantChart/.test(t),"detector"),LXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>S8t);return{id:xme,diagram:t}},"loader"),MXe={id:xme,detector:DXe,loader:LXe},PXe=MXe,Cme="xychart",BXe=S(t=>/^\s*xychart(-beta)?/.test(t),"detector"),FXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>B8t);return{id:Cme,diagram:t}},"loader"),$Xe={id:Cme,detector:BXe,loader:FXe},zXe=$Xe,wme="requirement",UXe=S(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),GXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>H8t);return{id:wme,diagram:t}},"loader"),qXe={id:wme,detector:UXe,loader:GXe},YXe=qXe,kme="sequence",HXe=S(t=>/^\s*sequenceDiagram/.test(t),"detector"),VXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>zRt);return{id:kme,diagram:t}},"loader"),WXe={id:kme,detector:HXe,loader:VXe},KXe=WXe,Ame="class",XXe=S((t,e)=>e?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t),"detector"),jXe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>VRt);return{id:Ame,diagram:t}},"loader"),QXe={id:Ame,detector:XXe,loader:jXe},ZXe=QXe,Rme="classDiagram",JXe=S((t,e)=>/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t),"detector"),eje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>KRt);return{id:Rme,diagram:t}},"loader"),tje={id:Rme,detector:JXe,loader:eje},rje=tje,Nme="state",nje=S((t,e)=>e?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t),"detector"),ije=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>BNt);return{id:Nme,diagram:t}},"loader"),aje={id:Nme,detector:nje,loader:ije},sje=aje,Ime="stateDiagram",oje=S((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),lje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>$Nt);return{id:Ime,diagram:t}},"loader"),cje={id:Ime,detector:oje,loader:lje},uje=cje,Ome="journey",dje=S(t=>/^\s*journey/.test(t),"detector"),hje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>oIt);return{id:Ome,diagram:t}},"loader"),fje={id:Ome,detector:dje,loader:hje},pje=fje,gje=S((t,e,r)=>{ge.debug(`rendering svg for syntax error +`);const n=To(e),i=n.append("g");n.attr("viewBox","0 0 2412 512"),ua(n,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),Dme={draw:gje},mje=Dme,yje={db:{},renderer:Dme,parser:{parse:S(()=>{},"parse")}},vje=yje,Lme="flowchart-elk",_je=S((t,e={})=>/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk"?(e.layout="elk",!0):!1,"detector"),bje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>cY);return{id:Lme,diagram:t}},"loader"),Eje={id:Lme,detector:_je,loader:bje},Sje=Eje,Mme="timeline",Tje=S(t=>/^\s*timeline/.test(t),"detector"),xje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>PIt);return{id:Mme,diagram:t}},"loader"),Cje={id:Mme,detector:Tje,loader:xje},wje=Cje,Pme="mindmap",kje=S(t=>/^\s*mindmap/.test(t),"detector"),Aje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>ZIt);return{id:Pme,diagram:t}},"loader"),Rje={id:Pme,detector:kje,loader:Aje},Nje=Rje,Bme="kanban",Ije=S(t=>/^\s*kanban/.test(t),"detector"),Oje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>vOt);return{id:Bme,diagram:t}},"loader"),Dje={id:Bme,detector:Ije,loader:Oje},Lje=Dje,Fme="sankey",Mje=S(t=>/^\s*sankey(-beta)?/.test(t),"detector"),Pje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>n9t);return{id:Fme,diagram:t}},"loader"),Bje={id:Fme,detector:Mje,loader:Pje},Fje=Bje,$me="packet",$je=S(t=>/^\s*packet(-beta)?/.test(t),"detector"),zje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>p9t);return{id:$me,diagram:t}},"loader"),Uje={id:$me,detector:$je,loader:zje},zme="radar",Gje=S(t=>/^\s*radar-beta/.test(t),"detector"),qje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>M9t);return{id:zme,diagram:t}},"loader"),Yje={id:zme,detector:Gje,loader:qje},Ume="block",Hje=S(t=>/^\s*block(-beta)?/.test(t),"detector"),Vje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>cLt);return{id:Ume,diagram:t}},"loader"),Wje={id:Ume,detector:Hje,loader:Vje},Kje=Wje,Gme="treeView",Xje=S(t=>/^\s*treeView-beta/.test(t),"detector"),jje=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>ALt);return{id:Gme,diagram:t}},"loader"),Qje={id:Gme,detector:Xje,loader:jje},Zje=Qje,qme="architecture",Jje=S(t=>/^\s*architecture/.test(t),"detector"),eQe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>rMt);return{id:qme,diagram:t}},"loader"),tQe={id:qme,detector:Jje,loader:eQe},rQe=tQe,Yme="eventmodeling",nQe=S(t=>/^\s*eventmodeling/.test(t),"detector"),iQe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>_Mt);return{id:Yme,diagram:t}},"loader"),aQe={id:Yme,detector:nQe,loader:iQe},sQe=aQe,Hme="ishikawa",oQe=S(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),lQe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>PMt);return{id:Hme,diagram:t}},"loader"),cQe={id:Hme,detector:oQe,loader:lQe},Vme="venn",uQe=S(t=>/^\s*venn-beta/.test(t),"detector"),dQe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>EPt);return{id:Vme,diagram:t}},"loader"),hQe={id:Vme,detector:uQe,loader:dQe},fQe=hQe,Wme="treemap",pQe=S(t=>/^\s*treemap/.test(t),"detector"),gQe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>OPt);return{id:Wme,diagram:t}},"loader"),mQe={id:Wme,detector:pQe,loader:gQe},Kme="wardley-beta",yQe=S(t=>/^\s*wardley-beta/i.test(t),"detector"),vQe=S(async()=>{const{diagram:t}=await Promise.resolve().then(()=>YPt);return{id:Kme,diagram:t}},"loader"),_Qe={id:Kme,detector:yQe,loader:vQe},bQe=_Qe,uQ=!1,Uk=S(()=>{uQ||(uQ=!0,SC("error",vje,t=>t.toLowerCase().trim()==="error"),SC("---",{db:{clear:S(()=>{},"clear")},styles:{},renderer:{draw:S(()=>{},"draw")},parser:{parse:S(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:S(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),LM(Sje,Nje,rQe),LM(sXe,Lje,rje,ZXe,vXe,wXe,RXe,OXe,YXe,KXe,pXe,uXe,wje,SXe,uje,sje,pje,PXe,Fje,Uje,zXe,Kje,sQe,Zje,Yje,cQe,mQe,fQe,bQe))},"addDiagrams"),EQe=S(async()=>{ge.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(_p).map(async([r,{detector:n,loader:i}])=>{if(i)try{zM(r)}catch{try{const{diagram:a,id:s}=await i();SC(s,a,n)}catch(a){throw ge.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete _p[r],a}}}))).filter(r=>r.status==="rejected");if(e.length>0){ge.error(`Failed to load ${e.length} external diagrams`);for(const r of e)ge.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),SQe="graphics-document document";function Xme(t,e){t.attr("role",SQe),e!==""&&t.attr("aria-roledescription",e)}S(Xme,"setA11yDiagramInfo");function jme(t,e,r,n){if(t.insert!==void 0){if(r){const i=`chart-desc-${n}`;t.attr("aria-describedby",i),t.insert("desc",":first-child").attr("id",i).text(r)}if(e){const i=`chart-title-${n}`;t.attr("aria-labelledby",i),t.insert("title",":first-child").attr("id",i).text(e)}}}S(jme,"addSVGa11yTitleDescription");var gp,PP=(gp=class{constructor(e,r,n,i,a){this.type=e,this.text=r,this.db=n,this.parser=i,this.renderer=a}static async fromText(e,r={}){const n=xr(),i=pU(e,n);e=aVe(e)+` +`;try{zM(i)}catch{const u=ZPe(i);if(!u)throw new g0e(`Diagram ${i} not found.`);const{id:d,diagram:h}=await u();SC(d,h)}const{db:a,parser:s,renderer:o,init:l}=zM(i);return s.parser&&(s.parser.yy=a),a.clear?.(),l?.(n),r.title&&a.setDiagramTitle?.(r.title),await s.parse(e),new gp(i,e,a,s,o)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}},S(gp,"Diagram"),gp),dQ=[],TQe=S(()=>{dQ.forEach(t=>{t()}),dQ=[]},"attachFunctions"),xQe=S(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Qme(t){const e=t.match(p0e);if(!e)return{text:t,metadata:{}};let r=wk(e[1],{schema:Ck})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:t.slice(e[0].length),metadata:n}}S(Qme,"extractFrontMatter");var CQe=S(t=>t.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(e,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),wQe=S(t=>{const{text:e,metadata:r}=Qme(t),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:e}},"processFrontmatter"),kQe=S(t=>{const e=Wr.detectInit(t)??{},r=Wr.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:n})=>n==="wrap"):r?.type==="wrap"&&(e.wrap=!0),{text:XHe(t),directive:e}},"processDirectives");function wG(t){const e=CQe(t),r=wQe(e),n=kQe(r.text),i=$i(r.config,n.directive);return t=xQe(n.text),{code:t,title:r.title,config:i}}S(wG,"preprocessDiagram");function Zme(t){const e=new TextEncoder().encode(t),r=Array.from(e,n=>String.fromCodePoint(n)).join("");return btoa(r)}S(Zme,"toBase64");var AQe=5e4,RQe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",NQe="sandbox",IQe="loose",OQe="http://www.w3.org/2000/svg",DQe="http://www.w3.org/1999/xlink",LQe="http://www.w3.org/1999/xhtml",MQe="100%",PQe="100%",BQe="border:0;margin:0;",FQe="margin:0",$Qe="allow-top-navigation-by-user-activation allow-popups",zQe='The "iframe" tag is not supported by your browser.',UQe=["foreignobject"],GQe=["dominant-baseline"];function kG(t){const e=wG(t);return bC(),xBe(e.config??{}),e}S(kG,"processAndSetConfigs");async function Jme(t,e){Uk();try{const{code:r,config:n}=kG(t);return{diagramType:(await t1e(r)).type,config:n}}catch(r){if(e?.suppressErrors)return!1;throw r}}S(Jme,"parse");var hQ=S((t,e,r=[])=>{const n=_0e(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${n}`},"cssImportantStyles"),qQe=S((t,e=new Map)=>{const r=new CSSStyleSheet;if(t.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),t.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){const o=In(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(l=>{wj(l.styles)||o.forEach(u=>{r.insertRule(hQ(l.id,u,l.styles),r.cssRules.length)}),wj(l.textStyles)||r.insertRule(hQ(l.id,"tspan",(l?.textStyles||[]).map(u=>u.replace("color","fill"))),r.cssRules.length)})}let n="";if(t.themeCSS!==void 0)if(typeof r.replaceSync=="function"){const i=new CSSStyleSheet;i.replaceSync(t.themeCSS),n=FM(i)+` `}else n+=`${t.themeCSS} -`;return n+FM(r)},"createCssStyles"),qQe=S((t,e)=>MP(ZKe(`${t}{${e}}`),tXe([S(function(n,i,a,s){if(n.type==="rule"&&Array.isArray(n.props)){if(n.parent&&n.parent.type===DP)return;n.props=n.props.map(o=>o.startsWith(t)?o:`${t} ${o}`)}else n.type.startsWith("@")&&([...[FKe,zKe,dme,GKe,"@container","@starting-style"],DP].includes(n.type)||(ge.warn(`Removing unsupported at-rule ${n.type} from CSS`),n.type=TG))},"addNamespace"),eXe])),"compileCSS"),YQe=S((t,e,r,n)=>{const i=GQe(t,r),a=UBe(e,i,{...t.themeVariables,theme:t.theme,look:t.look},n);return qQe(n,a)},"createUserStyles"),HQe=S((t="",e,r)=>{let n=t;return!r&&!e&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=x0(n),n=n.replace(/
/g,"
"),n},"cleanUpSvgCode"),VQe=S((t="",e)=>{const r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":MQe,n=Zme(`${t}`);return``},"putIntoIFrame"),fQ=S((t,e,r,n,i)=>{const a=t.append("div");a.attr("id",r),n&&a.attr("style",n);const s=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns",IQe);return i&&s.attr("xmlns:xlink",i),s.append("g"),t},"appendDivSvgG");function BP(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}S(BP,"sandboxedIframe");var WQe=S((t,e,r,n)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(n)?.remove()},"removeExistingElements"),KQe=S(async function(t,e,r){Uk();const n=kG(e);e=n.code;const i=xr();ge.debug(i),e.length>(i?.maxTextSize??kQe)&&(e=AQe);const a=`#${t}`,s="i"+t,o="#"+s,l="d"+t,u="#"+l,d=S(()=>{const F=At(f?o:u).node();F&&"remove"in F&&F.remove()},"removeTempElements");let h=At(document.body);const f=i.securityLevel===RQe,p=i.securityLevel===NQe,g=i.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const $=BP(At(r),s);h=At($.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=At(r);fQ(h,t,l,`font-family: ${g}`,OQe)}else{if(WQe(document,t,l,s),f){const $=BP(At(document.body),s);h=At($.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=At("body");fQ(h,t,l)}let m,y;try{m=await PP.fromText(e,{title:n.title})}catch($){if(i.suppressErrorRendering)throw d(),$;m=await PP.fromText("error"),y=$}const v=h.select(u).node(),b=m.type,_=v.firstChild,E=_.firstChild,x=m.renderer.getClasses?.(e,m),C=YQe(i,b,x,a),T=document.createElement("style");T.innerHTML=C,_.insertBefore(T,E);try{await m.renderer.draw(e,t,"11.15.0",m)}catch($){throw i.suppressErrorRendering?d():gje.draw(e,t,"11.15.0"),$}const w=h.select(`${u} svg`),N=m.db.getAccTitle?.(),O=m.db.getAccDescription?.();r1e(b,w,N,O),h.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",DQe);let M=h.select(u).node().innerHTML;if(ge.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),M=HQe(M,f,q0(i.arrowMarkerAbsolute)),f){const $=h.select(u+" svg").node();M=VQe(M,$)}else p||(M=nh.sanitize(M,{ADD_TAGS:zQe,ADD_ATTR:UQe,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(SQe(),y)throw y;return d(),{diagramType:b,svg:M,bindFunctions:m.db.bindFunctions}},"render");function e1e(t={}){const e=Vi({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),EBe(e),e?.theme&&e.theme in g0?e.themeVariables=g0[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=g0.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?bBe(e):b0e();dU(r.logLevel),Uk()}S(e1e,"initialize");var t1e=S((t,e={})=>{const{code:r}=wG(t);return PP.fromText(r,e)},"getDiagramFromText");function r1e(t,e,r,n){Xme(e,t),jme(e,r,n,e.attr("id"))}S(r1e,"addA11yInfo");var Ap=Object.freeze({render:KQe,parse:Jme,getDiagramFromText:t1e,initialize:e1e,getConfig:xr,setConfig:E0e,getSiteConfig:b0e,updateSiteConfig:SBe,reset:S(()=>{bC()},"reset"),globalReset:S(()=>{bC(Y_)},"globalReset"),defaultConfig:Y_});dU(xr().logLevel);bC(xr());var XQe=S((t,e,r)=>{ge.warn(t),aG(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),n1e=S(async function(t={querySelector:".mermaid"}){try{await jQe(t)}catch(e){if(aG(e)&&ge.error(e.str),C0.parseError&&C0.parseError(e),!t.suppressErrors)throw ge.error("Use the suppressErrors option to suppress these errors"),e}},"run"),jQe=S(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const n=Ap.getConfig();ge.debug(`${t?"":"No "}Callback function found`);let i;if(r)i=r;else if(e)i=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");ge.debug(`Found ${i.length} diagrams`),n?.startOnLoad!==void 0&&(ge.debug("Start On Load: "+n?.startOnLoad),Ap.updateSiteConfig({startOnLoad:n?.startOnLoad}));const a=new Wr.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let s;const o=[];for(const l of Array.from(i)){if(ge.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const u=`mermaid-${a.next()}`;s=l.innerHTML,s=cpe(Wr.entityDecode(s)).trim().replace(//gi,"
");const d=Wr.detectInit(s);d&&ge.debug("Detected early reinit: ",d);try{const{svg:h,bindFunctions:f}=await o1e(u,s,l);l.innerHTML=h,t&&await t(u),f&&f(l)}catch(h){XQe(h,o,C0.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),i1e=S(function(t){Ap.initialize(t)},"initialize"),QQe=S(async function(t,e,r){ge.warn("mermaid.init is deprecated. Please use run instead."),t&&i1e(t);const n={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await n1e(n)},"init"),ZQe=S(async(t,{lazyLoad:e=!0}={})=>{Uk(),LM(...t),e===!1&&await bQe()},"registerExternalDiagrams"),a1e=S(function(){if(C0.startOnLoad){const{startOnLoad:t}=Ap.getConfig();t&&C0.run().catch(e=>ge.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",a1e,!1);var JQe=S(function(t){C0.parseError=t},"setParseErrorHandler"),a6=[],TR=!1,s1e=S(async()=>{if(!TR){for(TR=!0;a6.length>0;){const t=a6.shift();if(t)try{await t()}catch(e){ge.error("Error executing queue",e)}}TR=!1}},"executeQueue"),eZe=S(async(t,e)=>new Promise((r,n)=>{const i=S(()=>new Promise((a,s)=>{Ap.parse(t,e).then(o=>{a(o),r(o)},o=>{ge.error("Error parsing",o),C0.parseError?.(o),s(o),n(o)})}),"performCall");a6.push(i),s1e().catch(n)}),"parse"),o1e=S((t,e,r)=>new Promise((n,i)=>{const a=S(()=>new Promise((s,o)=>{Ap.render(t,e,r).then(l=>{s(l),n(l)},l=>{ge.error("Error parsing",l),C0.parseError?.(l),o(l),i(l)})}),"performCall");a6.push(a),s1e().catch(i)}),"render"),tZe=S(()=>Object.keys(_p).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),C0={startOnLoad:!0,mermaidAPI:Ap,parse:eZe,render:o1e,init:QQe,run:n1e,registerExternalDiagrams:ZQe,registerLayoutLoaders:lme,initialize:i1e,parseError:void 0,contentLoaded:a1e,setParseErrorHandler:JQe,detectType:pU,registerIconPacks:hpe,getRegisteredDiagramsMetadata:tZe},rZe=C0;const nZe=Object.freeze(Object.defineProperty({__proto__:null,default:rZe},Symbol.toStringTag,{value:"Module"})),iZe=`/* stylelint-disable font-family-no-missing-generic-family-keyword */ +`;return n+FM(r)},"createCssStyles"),YQe=S((t,e)=>MP(JKe(`${t}{${e}}`),rXe([S(function(n,i,a,s){if(n.type==="rule"&&Array.isArray(n.props)){if(n.parent&&n.parent.type===DP)return;n.props=n.props.map(o=>o.startsWith(t)?o:`${t} ${o}`)}else n.type.startsWith("@")&&([...[$Ke,UKe,dme,qKe,"@container","@starting-style"],DP].includes(n.type)||(ge.warn(`Removing unsupported at-rule ${n.type} from CSS`),n.type=TG))},"addNamespace"),tXe])),"compileCSS"),HQe=S((t,e,r,n)=>{const i=qQe(t,r),a=GBe(e,i,{...t.themeVariables,theme:t.theme,look:t.look},n);return YQe(n,a)},"createUserStyles"),VQe=S((t="",e,r)=>{let n=t;return!r&&!e&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=x0(n),n=n.replace(/
/g,"
"),n},"cleanUpSvgCode"),WQe=S((t="",e)=>{const r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":PQe,n=Zme(`${t}`);return``},"putIntoIFrame"),fQ=S((t,e,r,n,i)=>{const a=t.append("div");a.attr("id",r),n&&a.attr("style",n);const s=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns",OQe);return i&&s.attr("xmlns:xlink",i),s.append("g"),t},"appendDivSvgG");function BP(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}S(BP,"sandboxedIframe");var KQe=S((t,e,r,n)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(n)?.remove()},"removeExistingElements"),XQe=S(async function(t,e,r){Uk();const n=kG(e);e=n.code;const i=xr();ge.debug(i),e.length>(i?.maxTextSize??AQe)&&(e=RQe);const a=`#${t}`,s="i"+t,o="#"+s,l="d"+t,u="#"+l,d=S(()=>{const F=At(f?o:u).node();F&&"remove"in F&&F.remove()},"removeTempElements");let h=At(document.body);const f=i.securityLevel===NQe,p=i.securityLevel===IQe,g=i.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const $=BP(At(r),s);h=At($.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=At(r);fQ(h,t,l,`font-family: ${g}`,DQe)}else{if(KQe(document,t,l,s),f){const $=BP(At(document.body),s);h=At($.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=At("body");fQ(h,t,l)}let m,y;try{m=await PP.fromText(e,{title:n.title})}catch($){if(i.suppressErrorRendering)throw d(),$;m=await PP.fromText("error"),y=$}const v=h.select(u).node(),b=m.type,_=v.firstChild,E=_.firstChild,x=m.renderer.getClasses?.(e,m),C=HQe(i,b,x,a),T=document.createElement("style");T.innerHTML=C,_.insertBefore(T,E);try{await m.renderer.draw(e,t,"11.15.0",m)}catch($){throw i.suppressErrorRendering?d():mje.draw(e,t,"11.15.0"),$}const w=h.select(`${u} svg`),N=m.db.getAccTitle?.(),O=m.db.getAccDescription?.();r1e(b,w,N,O),h.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",LQe);let M=h.select(u).node().innerHTML;if(ge.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),M=VQe(M,f,q0(i.arrowMarkerAbsolute)),f){const $=h.select(u+" svg").node();M=WQe(M,$)}else p||(M=nh.sanitize(M,{ADD_TAGS:UQe,ADD_ATTR:GQe,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(TQe(),y)throw y;return d(),{diagramType:b,svg:M,bindFunctions:m.db.bindFunctions}},"render");function e1e(t={}){const e=Vi({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),SBe(e),e?.theme&&e.theme in g0?e.themeVariables=g0[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=g0.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?EBe(e):b0e();dU(r.logLevel),Uk()}S(e1e,"initialize");var t1e=S((t,e={})=>{const{code:r}=wG(t);return PP.fromText(r,e)},"getDiagramFromText");function r1e(t,e,r,n){Xme(e,t),jme(e,r,n,e.attr("id"))}S(r1e,"addA11yInfo");var Ap=Object.freeze({render:XQe,parse:Jme,getDiagramFromText:t1e,initialize:e1e,getConfig:xr,setConfig:E0e,getSiteConfig:b0e,updateSiteConfig:TBe,reset:S(()=>{bC()},"reset"),globalReset:S(()=>{bC(Y_)},"globalReset"),defaultConfig:Y_});dU(xr().logLevel);bC(xr());var jQe=S((t,e,r)=>{ge.warn(t),aG(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),n1e=S(async function(t={querySelector:".mermaid"}){try{await QQe(t)}catch(e){if(aG(e)&&ge.error(e.str),C0.parseError&&C0.parseError(e),!t.suppressErrors)throw ge.error("Use the suppressErrors option to suppress these errors"),e}},"run"),QQe=S(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const n=Ap.getConfig();ge.debug(`${t?"":"No "}Callback function found`);let i;if(r)i=r;else if(e)i=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");ge.debug(`Found ${i.length} diagrams`),n?.startOnLoad!==void 0&&(ge.debug("Start On Load: "+n?.startOnLoad),Ap.updateSiteConfig({startOnLoad:n?.startOnLoad}));const a=new Wr.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let s;const o=[];for(const l of Array.from(i)){if(ge.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const u=`mermaid-${a.next()}`;s=l.innerHTML,s=cpe(Wr.entityDecode(s)).trim().replace(//gi,"
");const d=Wr.detectInit(s);d&&ge.debug("Detected early reinit: ",d);try{const{svg:h,bindFunctions:f}=await o1e(u,s,l);l.innerHTML=h,t&&await t(u),f&&f(l)}catch(h){jQe(h,o,C0.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),i1e=S(function(t){Ap.initialize(t)},"initialize"),ZQe=S(async function(t,e,r){ge.warn("mermaid.init is deprecated. Please use run instead."),t&&i1e(t);const n={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await n1e(n)},"init"),JQe=S(async(t,{lazyLoad:e=!0}={})=>{Uk(),LM(...t),e===!1&&await EQe()},"registerExternalDiagrams"),a1e=S(function(){if(C0.startOnLoad){const{startOnLoad:t}=Ap.getConfig();t&&C0.run().catch(e=>ge.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",a1e,!1);var eZe=S(function(t){C0.parseError=t},"setParseErrorHandler"),a6=[],TR=!1,s1e=S(async()=>{if(!TR){for(TR=!0;a6.length>0;){const t=a6.shift();if(t)try{await t()}catch(e){ge.error("Error executing queue",e)}}TR=!1}},"executeQueue"),tZe=S(async(t,e)=>new Promise((r,n)=>{const i=S(()=>new Promise((a,s)=>{Ap.parse(t,e).then(o=>{a(o),r(o)},o=>{ge.error("Error parsing",o),C0.parseError?.(o),s(o),n(o)})}),"performCall");a6.push(i),s1e().catch(n)}),"parse"),o1e=S((t,e,r)=>new Promise((n,i)=>{const a=S(()=>new Promise((s,o)=>{Ap.render(t,e,r).then(l=>{s(l),n(l)},l=>{ge.error("Error parsing",l),C0.parseError?.(l),o(l),i(l)})}),"performCall");a6.push(a),s1e().catch(i)}),"render"),rZe=S(()=>Object.keys(_p).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),C0={startOnLoad:!0,mermaidAPI:Ap,parse:tZe,render:o1e,init:ZQe,run:n1e,registerExternalDiagrams:JQe,registerLayoutLoaders:lme,initialize:i1e,parseError:void 0,contentLoaded:a1e,setParseErrorHandler:eZe,detectType:pU,registerIconPacks:hpe,getRegisteredDiagramsMetadata:rZe},nZe=C0;const iZe=Object.freeze(Object.defineProperty({__proto__:null,default:nZe},Symbol.toStringTag,{value:"Module"})),aZe=`/* stylelint-disable font-family-no-missing-generic-family-keyword */ @font-face { font-family: "KaTeX_AMS"; src: url(https://cdn.jsdelivr.net/npm/katex@0.17.0/dist/fonts/KaTeX_AMS-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.17.0/dist/fonts/KaTeX_AMS-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.17.0/dist/fonts/KaTeX_AMS-Regular.ttf) format("truetype"); @@ -4113,16 +4113,16 @@ Please report this to https://github.com/markedjs/marked.`,e){let i="

An error body { counter-reset: katexEqnNo mmlEqnNo; } -`,l1e=Object.freeze(Object.defineProperty({__proto__:null,default:iZe},Symbol.toStringTag,{value:"Module"}));var xR,pQ;function aZe(){if(pQ)return xR;pQ=1;function t(he){return he instanceof Map?he.clear=he.delete=he.set=function(){throw new Error("map is read-only")}:he instanceof Set&&(he.add=he.clear=he.delete=function(){throw new Error("set is read-only")}),Object.freeze(he),Object.getOwnPropertyNames(he).forEach(le=>{const Be=he[le],ve=typeof Be;(ve==="object"||ve==="function")&&!Object.isFrozen(Be)&&t(Be)}),he}class e{constructor(le){le.data===void 0&&(le.data={}),this.data=le.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(he){return he.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function n(he,...le){const Be=Object.create(null);for(const ve in he)Be[ve]=he[ve];return le.forEach(function(ve){for(const gt in ve)Be[gt]=ve[gt]}),Be}const i="",a=he=>!!he.scope,s=(he,{prefix:le})=>{if(he.startsWith("language:"))return he.replace("language:","language-");if(he.includes(".")){const Be=he.split(".");return[`${le}${Be.shift()}`,...Be.map((ve,gt)=>`${ve}${"_".repeat(gt+1)}`)].join(" ")}return`${le}${he}`};class o{constructor(le,Be){this.buffer="",this.classPrefix=Be.classPrefix,le.walk(this)}addText(le){this.buffer+=r(le)}openNode(le){if(!a(le))return;const Be=s(le.scope,{prefix:this.classPrefix});this.span(Be)}closeNode(le){a(le)&&(this.buffer+=i)}value(){return this.buffer}span(le){this.buffer+=``}}const l=(he={})=>{const le={children:[]};return Object.assign(le,he),le};class u{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(le){this.top.children.push(le)}openNode(le){const Be=l({scope:le});this.add(Be),this.stack.push(Be)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(le){return this.constructor._walk(le,this.rootNode)}static _walk(le,Be){return typeof Be=="string"?le.addText(Be):Be.children&&(le.openNode(Be),Be.children.forEach(ve=>this._walk(le,ve)),le.closeNode(Be)),le}static _collapse(le){typeof le!="string"&&le.children&&(le.children.every(Be=>typeof Be=="string")?le.children=[le.children.join("")]:le.children.forEach(Be=>{u._collapse(Be)}))}}class d extends u{constructor(le){super(),this.options=le}addText(le){le!==""&&this.add(le)}startScope(le){this.openNode(le)}endScope(){this.closeNode()}__addSublanguage(le,Be){const ve=le.root;Be&&(ve.scope=`language:${Be}`),this.add(ve)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h(he){return he?typeof he=="string"?he:he.source:null}function f(he){return m("(?=",he,")")}function p(he){return m("(?:",he,")*")}function g(he){return m("(?:",he,")?")}function m(...he){return he.map(Be=>h(Be)).join("")}function y(he){const le=he[he.length-1];return typeof le=="object"&&le.constructor===Object?(he.splice(he.length-1,1),le):{}}function v(...he){return"("+(y(he).capture?"":"?:")+he.map(ve=>h(ve)).join("|")+")"}function b(he){return new RegExp(he.toString()+"|").exec("").length-1}function _(he,le){const Be=he&&he.exec(le);return Be&&Be.index===0}const E=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function x(he,{joinWith:le}){let Be=0;return he.map(ve=>{Be+=1;const gt=Be;let Et=h(ve),et="";for(;Et.length>0;){const dt=E.exec(Et);if(!dt){et+=Et;break}et+=Et.substring(0,dt.index),Et=Et.substring(dt.index+dt[0].length),dt[0][0]==="\\"&&dt[1]?et+="\\"+String(Number(dt[1])+gt):(et+=dt[0],dt[0]==="("&&Be++)}return et}).map(ve=>`(${ve})`).join(le)}const C=/\b\B/,T="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",N="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",M="\\b(0b[01]+)",$="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",F=(he={})=>{const le=/^#![ ]*\//;return he.binary&&(he.begin=m(le,/.*\b/,he.binary,/\b.*/)),n({scope:"meta",begin:le,end:/$/,relevance:0,"on:begin":(Be,ve)=>{Be.index!==0&&ve.ignoreMatch()}},he)},A={begin:"\\\\[\\s\\S]",relevance:0},I={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[A]},D={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[A]},L={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},R=function(he,le,Be={}){const ve=n({scope:"comment",begin:he,end:le,contains:[]},Be);ve.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const gt=v("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return ve.contains.push({begin:m(/[ ]+/,"(",gt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ve},P=R("//","$"),z=R("/\\*","\\*/"),B=R("#","$"),q={scope:"number",begin:N,relevance:0},Y={scope:"number",begin:O,relevance:0},Q={scope:"number",begin:M,relevance:0},H={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[A,{begin:/\[/,end:/\]/,relevance:0,contains:[A]}]},J={scope:"title",begin:T,relevance:0},Z={scope:"title",begin:w,relevance:0},pe={begin:"\\.\\s*"+w,relevance:0};var ce=Object.freeze({__proto__:null,APOS_STRING_MODE:I,BACKSLASH_ESCAPE:A,BINARY_NUMBER_MODE:Q,BINARY_NUMBER_RE:M,COMMENT:R,C_BLOCK_COMMENT_MODE:z,C_LINE_COMMENT_MODE:P,C_NUMBER_MODE:Y,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(he){return Object.assign(he,{"on:begin":(le,Be)=>{Be.data._beginMatch=le[1]},"on:end":(le,Be)=>{Be.data._beginMatch!==le[1]&&Be.ignoreMatch()}})},HASH_COMMENT_MODE:B,IDENT_RE:T,MATCH_NOTHING_RE:C,METHOD_GUARD:pe,NUMBER_MODE:q,NUMBER_RE:N,PHRASAL_WORDS_MODE:L,QUOTE_STRING_MODE:D,REGEXP_MODE:H,RE_STARTERS_RE:$,SHEBANG:F,TITLE_MODE:J,UNDERSCORE_IDENT_RE:w,UNDERSCORE_TITLE_MODE:Z});function ae(he,le){he.input[he.index-1]==="."&&le.ignoreMatch()}function se(he,le){he.className!==void 0&&(he.scope=he.className,delete he.className)}function xe(he,le){le&&he.beginKeywords&&(he.begin="\\b("+he.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",he.__beforeBegin=ae,he.keywords=he.keywords||he.beginKeywords,delete he.beginKeywords,he.relevance===void 0&&(he.relevance=0))}function Te(he,le){Array.isArray(he.illegal)&&(he.illegal=v(...he.illegal))}function Ge(he,le){if(he.match){if(he.begin||he.end)throw new Error("begin & end are not supported with match");he.begin=he.match,delete he.match}}function ze(he,le){he.relevance===void 0&&(he.relevance=1)}const Xe=(he,le)=>{if(!he.beforeMatch)return;if(he.starts)throw new Error("beforeMatch cannot be used with starts");const Be=Object.assign({},he);Object.keys(he).forEach(ve=>{delete he[ve]}),he.keywords=Be.keywords,he.begin=m(Be.beforeMatch,f(Be.begin)),he.starts={relevance:0,contains:[Object.assign(Be,{endsParent:!0})]},he.relevance=0,delete Be.beforeMatch},Le=["of","and","for","in","not","or","if","then","parent","list","value"],Re="keyword";function qe(he,le,Be=Re){const ve=Object.create(null);return typeof he=="string"?gt(Be,he.split(" ")):Array.isArray(he)?gt(Be,he):Object.keys(he).forEach(function(Et){Object.assign(ve,qe(he[Et],le,Et))}),ve;function gt(Et,et){le&&(et=et.map(dt=>dt.toLowerCase())),et.forEach(function(dt){const ft=dt.split("|");ve[ft[0]]=[Et,Ne(ft[0],ft[1])]})}}function Ne(he,le){return le?Number(le):ut(he)?0:1}function ut(he){return Le.includes(he.toLowerCase())}const De={},Je=he=>{console.error(he)},st=(he,...le)=>{console.log(`WARN: ${he}`,...le)},ct=(he,le)=>{De[`${he}/${le}`]||(console.log(`Deprecated as of ${he}. ${le}`),De[`${he}/${le}`]=!0)},ot=new Error;function it(he,le,{key:Be}){let ve=0;const gt=he[Be],Et={},et={};for(let dt=1;dt<=le.length;dt++)et[dt+ve]=gt[dt],Et[dt+ve]=!0,ve+=b(le[dt-1]);he[Be]=et,he[Be]._emit=Et,he[Be]._multi=!0}function Oe(he){if(Array.isArray(he.begin)){if(he.skip||he.excludeBegin||he.returnBegin)throw Je("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ot;if(typeof he.beginScope!="object"||he.beginScope===null)throw Je("beginScope must be object"),ot;it(he,he.begin,{key:"beginScope"}),he.begin=x(he.begin,{joinWith:""})}}function U(he){if(Array.isArray(he.end)){if(he.skip||he.excludeEnd||he.returnEnd)throw Je("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ot;if(typeof he.endScope!="object"||he.endScope===null)throw Je("endScope must be object"),ot;it(he,he.end,{key:"endScope"}),he.end=x(he.end,{joinWith:""})}}function oe(he){he.scope&&typeof he.scope=="object"&&he.scope!==null&&(he.beginScope=he.scope,delete he.scope)}function de(he){oe(he),typeof he.beginScope=="string"&&(he.beginScope={_wrap:he.beginScope}),typeof he.endScope=="string"&&(he.endScope={_wrap:he.endScope}),Oe(he),U(he)}function G(he){function le(et,dt){return new RegExp(h(et),"m"+(he.case_insensitive?"i":"")+(he.unicodeRegex?"u":"")+(dt?"g":""))}class Be{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(dt,ft){ft.position=this.position++,this.matchIndexes[this.matchAt]=ft,this.regexes.push([ft,dt]),this.matchAt+=b(dt)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const dt=this.regexes.map(ft=>ft[1]);this.matcherRe=le(x(dt,{joinWith:"|"}),!0),this.lastIndex=0}exec(dt){this.matcherRe.lastIndex=this.lastIndex;const ft=this.matcherRe.exec(dt);if(!ft)return null;const mt=ft.findIndex((It,St)=>St>0&&It!==void 0),fe=this.matchIndexes[mt];return ft.splice(0,mt),Object.assign(ft,fe)}}class ve{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(dt){if(this.multiRegexes[dt])return this.multiRegexes[dt];const ft=new Be;return this.rules.slice(dt).forEach(([mt,fe])=>ft.addRule(mt,fe)),ft.compile(),this.multiRegexes[dt]=ft,ft}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(dt,ft){this.rules.push([dt,ft]),ft.type==="begin"&&this.count++}exec(dt){const ft=this.getMatcher(this.regexIndex);ft.lastIndex=this.lastIndex;let mt=ft.exec(dt);if(this.resumingScanAtSamePosition()&&!(mt&&mt.index===this.lastIndex)){const fe=this.getMatcher(0);fe.lastIndex=this.lastIndex+1,mt=fe.exec(dt)}return mt&&(this.regexIndex+=mt.position+1,this.regexIndex===this.count&&this.considerAll()),mt}}function gt(et){const dt=new ve;return et.contains.forEach(ft=>dt.addRule(ft.begin,{rule:ft,type:"begin"})),et.terminatorEnd&&dt.addRule(et.terminatorEnd,{type:"end"}),et.illegal&&dt.addRule(et.illegal,{type:"illegal"}),dt}function Et(et,dt){const ft=et;if(et.isCompiled)return ft;[se,Ge,de,Xe].forEach(fe=>fe(et,dt)),he.compilerExtensions.forEach(fe=>fe(et,dt)),et.__beforeBegin=null,[xe,Te,ze].forEach(fe=>fe(et,dt)),et.isCompiled=!0;let mt=null;return typeof et.keywords=="object"&&et.keywords.$pattern&&(et.keywords=Object.assign({},et.keywords),mt=et.keywords.$pattern,delete et.keywords.$pattern),mt=mt||/\w+/,et.keywords&&(et.keywords=qe(et.keywords,he.case_insensitive)),ft.keywordPatternRe=le(mt,!0),dt&&(et.begin||(et.begin=/\B|\b/),ft.beginRe=le(ft.begin),!et.end&&!et.endsWithParent&&(et.end=/\B|\b/),et.end&&(ft.endRe=le(ft.end)),ft.terminatorEnd=h(ft.end)||"",et.endsWithParent&&dt.terminatorEnd&&(ft.terminatorEnd+=(et.end?"|":"")+dt.terminatorEnd)),et.illegal&&(ft.illegalRe=le(et.illegal)),et.contains||(et.contains=[]),et.contains=[].concat(...et.contains.map(function(fe){return j(fe==="self"?et:fe)})),et.contains.forEach(function(fe){Et(fe,ft)}),et.starts&&Et(et.starts,dt),ft.matcher=gt(ft),ft}if(he.compilerExtensions||(he.compilerExtensions=[]),he.contains&&he.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return he.classNameAliases=n(he.classNameAliases||{}),Et(he)}function ie(he){return he?he.endsWithParent||ie(he.starts):!1}function j(he){return he.variants&&!he.cachedVariants&&(he.cachedVariants=he.variants.map(function(le){return n(he,{variants:null},le)})),he.cachedVariants?he.cachedVariants:ie(he)?n(he,{starts:he.starts?n(he.starts):null}):Object.isFrozen(he)?n(he):he}var V="11.11.1";class ue extends Error{constructor(le,Be){super(le),this.name="HTMLInjectionError",this.html=Be}}const Fe=r,me=n,Ce=Symbol("nomatch"),ye=7,Me=function(he){const le=Object.create(null),Be=Object.create(null),ve=[];let gt=!0;const Et="Could not find the language '{}', did you forget to load/include a language module?",et={disableAutodetect:!0,name:"Plain text",contains:[]};let dt={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function ft(Mt){return dt.noHighlightRe.test(Mt)}function mt(Mt){let Xt=Mt.className+" ";Xt+=Mt.parentNode?Mt.parentNode.className:"";const kt=dt.languageDetectRe.exec(Xt);if(kt){const xt=pt(kt[1]);return xt||(st(Et.replace("{}",kt[1])),st("Falling back to no-highlight mode for this block.",Mt)),xt?kt[1]:"no-highlight"}return Xt.split(/\s+/).find(xt=>ft(xt)||pt(xt))}function fe(Mt,Xt,kt){let xt="",$t="";typeof Xt=="object"?(xt=Mt,kt=Xt.ignoreIllegals,$t=Xt.language):(ct("10.7.0","highlight(lang, code, ...args) has been deprecated."),ct("10.7.0",`Please use highlight(code, options) instead. +`,l1e=Object.freeze(Object.defineProperty({__proto__:null,default:aZe},Symbol.toStringTag,{value:"Module"}));var xR,pQ;function sZe(){if(pQ)return xR;pQ=1;function t(he){return he instanceof Map?he.clear=he.delete=he.set=function(){throw new Error("map is read-only")}:he instanceof Set&&(he.add=he.clear=he.delete=function(){throw new Error("set is read-only")}),Object.freeze(he),Object.getOwnPropertyNames(he).forEach(le=>{const Be=he[le],ve=typeof Be;(ve==="object"||ve==="function")&&!Object.isFrozen(Be)&&t(Be)}),he}class e{constructor(le){le.data===void 0&&(le.data={}),this.data=le.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(he){return he.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function n(he,...le){const Be=Object.create(null);for(const ve in he)Be[ve]=he[ve];return le.forEach(function(ve){for(const gt in ve)Be[gt]=ve[gt]}),Be}const i="",a=he=>!!he.scope,s=(he,{prefix:le})=>{if(he.startsWith("language:"))return he.replace("language:","language-");if(he.includes(".")){const Be=he.split(".");return[`${le}${Be.shift()}`,...Be.map((ve,gt)=>`${ve}${"_".repeat(gt+1)}`)].join(" ")}return`${le}${he}`};class o{constructor(le,Be){this.buffer="",this.classPrefix=Be.classPrefix,le.walk(this)}addText(le){this.buffer+=r(le)}openNode(le){if(!a(le))return;const Be=s(le.scope,{prefix:this.classPrefix});this.span(Be)}closeNode(le){a(le)&&(this.buffer+=i)}value(){return this.buffer}span(le){this.buffer+=``}}const l=(he={})=>{const le={children:[]};return Object.assign(le,he),le};class u{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(le){this.top.children.push(le)}openNode(le){const Be=l({scope:le});this.add(Be),this.stack.push(Be)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(le){return this.constructor._walk(le,this.rootNode)}static _walk(le,Be){return typeof Be=="string"?le.addText(Be):Be.children&&(le.openNode(Be),Be.children.forEach(ve=>this._walk(le,ve)),le.closeNode(Be)),le}static _collapse(le){typeof le!="string"&&le.children&&(le.children.every(Be=>typeof Be=="string")?le.children=[le.children.join("")]:le.children.forEach(Be=>{u._collapse(Be)}))}}class d extends u{constructor(le){super(),this.options=le}addText(le){le!==""&&this.add(le)}startScope(le){this.openNode(le)}endScope(){this.closeNode()}__addSublanguage(le,Be){const ve=le.root;Be&&(ve.scope=`language:${Be}`),this.add(ve)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h(he){return he?typeof he=="string"?he:he.source:null}function f(he){return m("(?=",he,")")}function p(he){return m("(?:",he,")*")}function g(he){return m("(?:",he,")?")}function m(...he){return he.map(Be=>h(Be)).join("")}function y(he){const le=he[he.length-1];return typeof le=="object"&&le.constructor===Object?(he.splice(he.length-1,1),le):{}}function v(...he){return"("+(y(he).capture?"":"?:")+he.map(ve=>h(ve)).join("|")+")"}function b(he){return new RegExp(he.toString()+"|").exec("").length-1}function _(he,le){const Be=he&&he.exec(le);return Be&&Be.index===0}const E=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function x(he,{joinWith:le}){let Be=0;return he.map(ve=>{Be+=1;const gt=Be;let Et=h(ve),et="";for(;Et.length>0;){const dt=E.exec(Et);if(!dt){et+=Et;break}et+=Et.substring(0,dt.index),Et=Et.substring(dt.index+dt[0].length),dt[0][0]==="\\"&&dt[1]?et+="\\"+String(Number(dt[1])+gt):(et+=dt[0],dt[0]==="("&&Be++)}return et}).map(ve=>`(${ve})`).join(le)}const C=/\b\B/,T="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",N="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",M="\\b(0b[01]+)",$="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",F=(he={})=>{const le=/^#![ ]*\//;return he.binary&&(he.begin=m(le,/.*\b/,he.binary,/\b.*/)),n({scope:"meta",begin:le,end:/$/,relevance:0,"on:begin":(Be,ve)=>{Be.index!==0&&ve.ignoreMatch()}},he)},A={begin:"\\\\[\\s\\S]",relevance:0},I={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[A]},D={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[A]},L={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},R=function(he,le,Be={}){const ve=n({scope:"comment",begin:he,end:le,contains:[]},Be);ve.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const gt=v("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return ve.contains.push({begin:m(/[ ]+/,"(",gt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ve},P=R("//","$"),z=R("/\\*","\\*/"),B=R("#","$"),q={scope:"number",begin:N,relevance:0},Y={scope:"number",begin:O,relevance:0},Q={scope:"number",begin:M,relevance:0},H={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[A,{begin:/\[/,end:/\]/,relevance:0,contains:[A]}]},J={scope:"title",begin:T,relevance:0},Z={scope:"title",begin:w,relevance:0},pe={begin:"\\.\\s*"+w,relevance:0};var ce=Object.freeze({__proto__:null,APOS_STRING_MODE:I,BACKSLASH_ESCAPE:A,BINARY_NUMBER_MODE:Q,BINARY_NUMBER_RE:M,COMMENT:R,C_BLOCK_COMMENT_MODE:z,C_LINE_COMMENT_MODE:P,C_NUMBER_MODE:Y,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(he){return Object.assign(he,{"on:begin":(le,Be)=>{Be.data._beginMatch=le[1]},"on:end":(le,Be)=>{Be.data._beginMatch!==le[1]&&Be.ignoreMatch()}})},HASH_COMMENT_MODE:B,IDENT_RE:T,MATCH_NOTHING_RE:C,METHOD_GUARD:pe,NUMBER_MODE:q,NUMBER_RE:N,PHRASAL_WORDS_MODE:L,QUOTE_STRING_MODE:D,REGEXP_MODE:H,RE_STARTERS_RE:$,SHEBANG:F,TITLE_MODE:J,UNDERSCORE_IDENT_RE:w,UNDERSCORE_TITLE_MODE:Z});function ae(he,le){he.input[he.index-1]==="."&&le.ignoreMatch()}function se(he,le){he.className!==void 0&&(he.scope=he.className,delete he.className)}function xe(he,le){le&&he.beginKeywords&&(he.begin="\\b("+he.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",he.__beforeBegin=ae,he.keywords=he.keywords||he.beginKeywords,delete he.beginKeywords,he.relevance===void 0&&(he.relevance=0))}function Te(he,le){Array.isArray(he.illegal)&&(he.illegal=v(...he.illegal))}function Ge(he,le){if(he.match){if(he.begin||he.end)throw new Error("begin & end are not supported with match");he.begin=he.match,delete he.match}}function ze(he,le){he.relevance===void 0&&(he.relevance=1)}const Xe=(he,le)=>{if(!he.beforeMatch)return;if(he.starts)throw new Error("beforeMatch cannot be used with starts");const Be=Object.assign({},he);Object.keys(he).forEach(ve=>{delete he[ve]}),he.keywords=Be.keywords,he.begin=m(Be.beforeMatch,f(Be.begin)),he.starts={relevance:0,contains:[Object.assign(Be,{endsParent:!0})]},he.relevance=0,delete Be.beforeMatch},Le=["of","and","for","in","not","or","if","then","parent","list","value"],Re="keyword";function qe(he,le,Be=Re){const ve=Object.create(null);return typeof he=="string"?gt(Be,he.split(" ")):Array.isArray(he)?gt(Be,he):Object.keys(he).forEach(function(Et){Object.assign(ve,qe(he[Et],le,Et))}),ve;function gt(Et,et){le&&(et=et.map(dt=>dt.toLowerCase())),et.forEach(function(dt){const ft=dt.split("|");ve[ft[0]]=[Et,Ne(ft[0],ft[1])]})}}function Ne(he,le){return le?Number(le):ut(he)?0:1}function ut(he){return Le.includes(he.toLowerCase())}const De={},Je=he=>{console.error(he)},st=(he,...le)=>{console.log(`WARN: ${he}`,...le)},ct=(he,le)=>{De[`${he}/${le}`]||(console.log(`Deprecated as of ${he}. ${le}`),De[`${he}/${le}`]=!0)},ot=new Error;function it(he,le,{key:Be}){let ve=0;const gt=he[Be],Et={},et={};for(let dt=1;dt<=le.length;dt++)et[dt+ve]=gt[dt],Et[dt+ve]=!0,ve+=b(le[dt-1]);he[Be]=et,he[Be]._emit=Et,he[Be]._multi=!0}function Oe(he){if(Array.isArray(he.begin)){if(he.skip||he.excludeBegin||he.returnBegin)throw Je("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ot;if(typeof he.beginScope!="object"||he.beginScope===null)throw Je("beginScope must be object"),ot;it(he,he.begin,{key:"beginScope"}),he.begin=x(he.begin,{joinWith:""})}}function U(he){if(Array.isArray(he.end)){if(he.skip||he.excludeEnd||he.returnEnd)throw Je("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ot;if(typeof he.endScope!="object"||he.endScope===null)throw Je("endScope must be object"),ot;it(he,he.end,{key:"endScope"}),he.end=x(he.end,{joinWith:""})}}function oe(he){he.scope&&typeof he.scope=="object"&&he.scope!==null&&(he.beginScope=he.scope,delete he.scope)}function de(he){oe(he),typeof he.beginScope=="string"&&(he.beginScope={_wrap:he.beginScope}),typeof he.endScope=="string"&&(he.endScope={_wrap:he.endScope}),Oe(he),U(he)}function G(he){function le(et,dt){return new RegExp(h(et),"m"+(he.case_insensitive?"i":"")+(he.unicodeRegex?"u":"")+(dt?"g":""))}class Be{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(dt,ft){ft.position=this.position++,this.matchIndexes[this.matchAt]=ft,this.regexes.push([ft,dt]),this.matchAt+=b(dt)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const dt=this.regexes.map(ft=>ft[1]);this.matcherRe=le(x(dt,{joinWith:"|"}),!0),this.lastIndex=0}exec(dt){this.matcherRe.lastIndex=this.lastIndex;const ft=this.matcherRe.exec(dt);if(!ft)return null;const mt=ft.findIndex((It,St)=>St>0&&It!==void 0),fe=this.matchIndexes[mt];return ft.splice(0,mt),Object.assign(ft,fe)}}class ve{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(dt){if(this.multiRegexes[dt])return this.multiRegexes[dt];const ft=new Be;return this.rules.slice(dt).forEach(([mt,fe])=>ft.addRule(mt,fe)),ft.compile(),this.multiRegexes[dt]=ft,ft}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(dt,ft){this.rules.push([dt,ft]),ft.type==="begin"&&this.count++}exec(dt){const ft=this.getMatcher(this.regexIndex);ft.lastIndex=this.lastIndex;let mt=ft.exec(dt);if(this.resumingScanAtSamePosition()&&!(mt&&mt.index===this.lastIndex)){const fe=this.getMatcher(0);fe.lastIndex=this.lastIndex+1,mt=fe.exec(dt)}return mt&&(this.regexIndex+=mt.position+1,this.regexIndex===this.count&&this.considerAll()),mt}}function gt(et){const dt=new ve;return et.contains.forEach(ft=>dt.addRule(ft.begin,{rule:ft,type:"begin"})),et.terminatorEnd&&dt.addRule(et.terminatorEnd,{type:"end"}),et.illegal&&dt.addRule(et.illegal,{type:"illegal"}),dt}function Et(et,dt){const ft=et;if(et.isCompiled)return ft;[se,Ge,de,Xe].forEach(fe=>fe(et,dt)),he.compilerExtensions.forEach(fe=>fe(et,dt)),et.__beforeBegin=null,[xe,Te,ze].forEach(fe=>fe(et,dt)),et.isCompiled=!0;let mt=null;return typeof et.keywords=="object"&&et.keywords.$pattern&&(et.keywords=Object.assign({},et.keywords),mt=et.keywords.$pattern,delete et.keywords.$pattern),mt=mt||/\w+/,et.keywords&&(et.keywords=qe(et.keywords,he.case_insensitive)),ft.keywordPatternRe=le(mt,!0),dt&&(et.begin||(et.begin=/\B|\b/),ft.beginRe=le(ft.begin),!et.end&&!et.endsWithParent&&(et.end=/\B|\b/),et.end&&(ft.endRe=le(ft.end)),ft.terminatorEnd=h(ft.end)||"",et.endsWithParent&&dt.terminatorEnd&&(ft.terminatorEnd+=(et.end?"|":"")+dt.terminatorEnd)),et.illegal&&(ft.illegalRe=le(et.illegal)),et.contains||(et.contains=[]),et.contains=[].concat(...et.contains.map(function(fe){return j(fe==="self"?et:fe)})),et.contains.forEach(function(fe){Et(fe,ft)}),et.starts&&Et(et.starts,dt),ft.matcher=gt(ft),ft}if(he.compilerExtensions||(he.compilerExtensions=[]),he.contains&&he.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return he.classNameAliases=n(he.classNameAliases||{}),Et(he)}function ie(he){return he?he.endsWithParent||ie(he.starts):!1}function j(he){return he.variants&&!he.cachedVariants&&(he.cachedVariants=he.variants.map(function(le){return n(he,{variants:null},le)})),he.cachedVariants?he.cachedVariants:ie(he)?n(he,{starts:he.starts?n(he.starts):null}):Object.isFrozen(he)?n(he):he}var V="11.11.1";class ue extends Error{constructor(le,Be){super(le),this.name="HTMLInjectionError",this.html=Be}}const Fe=r,me=n,Ce=Symbol("nomatch"),ye=7,Me=function(he){const le=Object.create(null),Be=Object.create(null),ve=[];let gt=!0;const Et="Could not find the language '{}', did you forget to load/include a language module?",et={disableAutodetect:!0,name:"Plain text",contains:[]};let dt={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function ft(Mt){return dt.noHighlightRe.test(Mt)}function mt(Mt){let Xt=Mt.className+" ";Xt+=Mt.parentNode?Mt.parentNode.className:"";const kt=dt.languageDetectRe.exec(Xt);if(kt){const xt=pt(kt[1]);return xt||(st(Et.replace("{}",kt[1])),st("Falling back to no-highlight mode for this block.",Mt)),xt?kt[1]:"no-highlight"}return Xt.split(/\s+/).find(xt=>ft(xt)||pt(xt))}function fe(Mt,Xt,kt){let xt="",$t="";typeof Xt=="object"?(xt=Mt,kt=Xt.ignoreIllegals,$t=Xt.language):(ct("10.7.0","highlight(lang, code, ...args) has been deprecated."),ct("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),$t=Mt,xt=Xt),kt===void 0&&(kt=!0);const wt={code:xt,language:$t};Gn("before:highlight",wt);const kr=wt.result?wt.result:It(wt.language,wt.code,kt);return kr.code=wt.code,Gn("after:highlight",kr),kr}function It(Mt,Xt,kt,xt){const $t=Object.create(null);function wt(rr,fr){return rr.keywords[fr]}function kr(){if(!vr.keywords){yn.addText(fn);return}let rr=0;vr.keywordPatternRe.lastIndex=0;let fr=vr.keywordPatternRe.exec(fn),Er="";for(;fr;){Er+=fn.substring(rr,fr.index);const vn=no.case_insensitive?fr[0].toLowerCase():fr[0],fa=wt(vr,vn);if(fa){const[il,VW]=fa;if(yn.addText(Er),Er="",$t[vn]=($t[vn]||0)+1,$t[vn]<=ye&&(io+=VW),il.startsWith("_"))Er+=fr[0];else{const WW=no.classNameAliases[il]||il;Ue(fr[0],WW)}}else Er+=fr[0];rr=vr.keywordPatternRe.lastIndex,fr=vr.keywordPatternRe.exec(fn)}Er+=fn.substring(rr),yn.addText(Er)}function $e(){if(fn==="")return;let rr=null;if(typeof vr.subLanguage=="string"){if(!le[vr.subLanguage]){yn.addText(fn);return}rr=It(vr.subLanguage,fn,!0,nl[vr.subLanguage]),nl[vr.subLanguage]=rr._top}else rr=Tt(fn,vr.subLanguage.length?vr.subLanguage:null);vr.relevance>0&&(io+=rr.relevance),yn.__addSublanguage(rr._emitter,rr.language)}function qn(){vr.subLanguage!=null?$e():kr(),fn=""}function Ue(rr,fr){rr!==""&&(yn.startScope(fr),yn.addText(rr),yn.endScope())}function Yn(rr,fr){let Er=1;const vn=fr.length-1;for(;Er<=vn;){if(!rr._emit[Er]){Er++;continue}const fa=no.classNameAliases[rr[Er]]||rr[Er],il=fr[Er];fa?Ue(il,fa):(fn=il,kr(),fn=""),Er++}}function Kh(rr,fr){return rr.scope&&typeof rr.scope=="string"&&yn.openNode(no.classNameAliases[rr.scope]||rr.scope),rr.beginScope&&(rr.beginScope._wrap?(Ue(fn,no.classNameAliases[rr.beginScope._wrap]||rr.beginScope._wrap),fn=""):rr.beginScope._multi&&(Yn(rr.beginScope,fr),fn="")),vr=Object.create(rr,{parent:{value:vr}}),vr}function Xh(rr,fr,Er){let vn=_(rr.endRe,Er);if(vn){if(rr["on:end"]){const fa=new e(rr);rr["on:end"](fr,fa),fa.isMatchIgnored&&(vn=!1)}if(vn){for(;rr.endsParent&&rr.parent;)rr=rr.parent;return rr}}if(rr.endsWithParent)return Xh(rr.parent,fr,Er)}function _2(rr){return vr.matcher.regexIndex===0?(fn+=rr[0],1):(ud=!0,0)}function ax(rr){const fr=rr[0],Er=rr.rule,vn=new e(Er),fa=[Er.__beforeBegin,Er["on:begin"]];for(const il of fa)if(il&&(il(rr,vn),vn.isMatchIgnored))return _2(fr);return Er.skip?fn+=fr:(Er.excludeBegin&&(fn+=fr),qn(),!Er.returnBegin&&!Er.excludeBegin&&(fn=fr)),Kh(Er,rr),Er.returnBegin?0:fr.length}function Gi(rr){const fr=rr[0],Er=Xt.substring(rr.index),vn=Xh(vr,rr,Er);if(!vn)return Ce;const fa=vr;vr.endScope&&vr.endScope._wrap?(qn(),Ue(fr,vr.endScope._wrap)):vr.endScope&&vr.endScope._multi?(qn(),Yn(vr.endScope,rr)):fa.skip?fn+=fr:(fa.returnEnd||fa.excludeEnd||(fn+=fr),qn(),fa.excludeEnd&&(fn=fr));do vr.scope&&yn.closeNode(),!vr.skip&&!vr.subLanguage&&(io+=vr.relevance),vr=vr.parent;while(vr!==vn.parent);return vn.starts&&Kh(vn.starts,rr),fa.returnEnd?0:fr.length}function Ec(){const rr=[];for(let fr=vr;fr!==no;fr=fr.parent)fr.scope&&rr.unshift(fr.scope);rr.forEach(fr=>yn.openNode(fr))}let Lu={};function ld(rr,fr){const Er=fr&&fr[0];if(fn+=rr,Er==null)return qn(),0;if(Lu.type==="begin"&&fr.type==="end"&&Lu.index===fr.index&&Er===""){if(fn+=Xt.slice(fr.index,fr.index+1),!gt){const vn=new Error(`0 width match regex (${Mt})`);throw vn.languageName=Mt,vn.badRule=Lu.rule,vn}return 1}if(Lu=fr,fr.type==="begin")return ax(fr);if(fr.type==="illegal"&&!kt){const vn=new Error('Illegal lexeme "'+Er+'" for mode "'+(vr.scope||"")+'"');throw vn.mode=vr,vn}else if(fr.type==="end"){const vn=Gi(fr);if(vn!==Ce)return vn}if(fr.type==="illegal"&&Er==="")return fn+=` -`,1;if(vs>1e5&&vs>fr.index*3)throw new Error("potential infinite loop, way more iterations than matches");return fn+=Er,Er.length}const no=pt(Mt);if(!no)throw Je(Et.replace("{}",Mt)),new Error('Unknown language: "'+Mt+'"');const b2=G(no);let cd="",vr=xt||b2;const nl={},yn=new dt.__emitter(dt);Ec();let fn="",io=0,ys=0,vs=0,ud=!1;try{if(no.__emitTokens)no.__emitTokens(Xt,yn);else{for(vr.matcher.considerAll();;){vs++,ud?ud=!1:vr.matcher.considerAll(),vr.matcher.lastIndex=ys;const rr=vr.matcher.exec(Xt);if(!rr)break;const fr=Xt.substring(ys,rr.index),Er=ld(fr,rr);ys=rr.index+Er}ld(Xt.substring(ys))}return yn.finalize(),cd=yn.toHTML(),{language:Mt,value:cd,relevance:io,illegal:!1,_emitter:yn,_top:vr}}catch(rr){if(rr.message&&rr.message.includes("Illegal"))return{language:Mt,value:Fe(Xt),illegal:!0,relevance:0,_illegalBy:{message:rr.message,index:ys,context:Xt.slice(ys-100,ys+100),mode:rr.mode,resultSoFar:cd},_emitter:yn};if(gt)return{language:Mt,value:Fe(Xt),illegal:!1,relevance:0,errorRaised:rr,_emitter:yn,_top:vr};throw rr}}function St(Mt){const Xt={value:Fe(Mt),illegal:!1,relevance:0,_top:et,_emitter:new dt.__emitter(dt)};return Xt._emitter.addText(Mt),Xt}function Tt(Mt,Xt){Xt=Xt||dt.languages||Object.keys(le);const kt=St(Mt),xt=Xt.filter(pt).filter(Zt).map(qn=>It(qn,Mt,!1));xt.unshift(kt);const $t=xt.sort((qn,Ue)=>{if(qn.relevance!==Ue.relevance)return Ue.relevance-qn.relevance;if(qn.language&&Ue.language){if(pt(qn.language).supersetOf===Ue.language)return 1;if(pt(Ue.language).supersetOf===qn.language)return-1}return 0}),[wt,kr]=$t,$e=wt;return $e.secondBest=kr,$e}function Nt(Mt,Xt,kt){const xt=Xt&&Be[Xt]||kt;Mt.classList.add("hljs"),Mt.classList.add(`language-${xt}`)}function Hr(Mt){let Xt=null;const kt=mt(Mt);if(ft(kt))return;if(Gn("before:highlightElement",{el:Mt,language:kt}),Mt.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Mt);return}if(Mt.children.length>0&&(dt.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Mt)),dt.throwUnescapedHTML))throw new ue("One of your code blocks includes unescaped HTML.",Mt.innerHTML);Xt=Mt;const xt=Xt.textContent,$t=kt?fe(xt,{language:kt,ignoreIllegals:!0}):Tt(xt);Mt.innerHTML=$t.value,Mt.dataset.highlighted="yes",Nt(Mt,kt,$t.language),Mt.result={language:$t.language,re:$t.relevance,relevance:$t.relevance},$t.secondBest&&(Mt.secondBest={language:$t.secondBest.language,relevance:$t.secondBest.relevance}),Gn("after:highlightElement",{el:Mt,result:$t,text:xt})}function Pe(Mt){dt=me(dt,Mt)}const yt=()=>{Qt(),ct("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function bt(){Qt(),ct("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ot=!1;function Qt(){function Mt(){Qt()}if(document.readyState==="loading"){Ot||window.addEventListener("DOMContentLoaded",Mt,!1),Ot=!0;return}document.querySelectorAll(dt.cssSelector).forEach(Hr)}function br(Mt,Xt){let kt=null;try{kt=Xt(he)}catch(xt){if(Je("Language definition for '{}' could not be registered.".replace("{}",Mt)),gt)Je(xt);else throw xt;kt=et}kt.name||(kt.name=Mt),le[Mt]=kt,kt.rawDefinition=Xt.bind(null,he),kt.aliases&&Dt(kt.aliases,{languageName:Mt})}function Ct(Mt){delete le[Mt];for(const Xt of Object.keys(Be))Be[Xt]===Mt&&delete Be[Xt]}function Ye(){return Object.keys(le)}function pt(Mt){return Mt=(Mt||"").toLowerCase(),le[Mt]||le[Be[Mt]]}function Dt(Mt,{languageName:Xt}){typeof Mt=="string"&&(Mt=[Mt]),Mt.forEach(kt=>{Be[kt.toLowerCase()]=Xt})}function Zt(Mt){const Xt=pt(Mt);return Xt&&!Xt.disableAutodetect}function wr(Mt){Mt["before:highlightBlock"]&&!Mt["before:highlightElement"]&&(Mt["before:highlightElement"]=Xt=>{Mt["before:highlightBlock"](Object.assign({block:Xt.el},Xt))}),Mt["after:highlightBlock"]&&!Mt["after:highlightElement"]&&(Mt["after:highlightElement"]=Xt=>{Mt["after:highlightBlock"](Object.assign({block:Xt.el},Xt))})}function Vr(Mt){wr(Mt),ve.push(Mt)}function Kr(Mt){const Xt=ve.indexOf(Mt);Xt!==-1&&ve.splice(Xt,1)}function Gn(Mt,Xt){const kt=Mt;ve.forEach(function(xt){xt[kt]&&xt[kt](Xt)})}function ji(Mt){return ct("10.7.0","highlightBlock will be removed entirely in v12.0"),ct("10.7.0","Please use highlightElement now."),Hr(Mt)}Object.assign(he,{highlight:fe,highlightAuto:Tt,highlightAll:Qt,highlightElement:Hr,highlightBlock:ji,configure:Pe,initHighlighting:yt,initHighlightingOnLoad:bt,registerLanguage:br,unregisterLanguage:Ct,listLanguages:Ye,getLanguage:pt,registerAliases:Dt,autoDetection:Zt,inherit:me,addPlugin:Vr,removePlugin:Kr}),he.debugMode=function(){gt=!1},he.safeMode=function(){gt=!0},he.versionString=V,he.regex={concat:m,lookahead:f,either:v,optional:g,anyNumberOfTimes:p};for(const Mt in ce)typeof ce[Mt]=="object"&&t(ce[Mt]);return Object.assign(he,ce),he},Ie=Me({});return Ie.newInstance=()=>Me({}),xR=Ie,Ie.HighlightJS=Ie,Ie.default=Ie,xR}var CR,gQ;function sZe(){if(gQ)return CR;gQ=1;function t(e){const r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",a="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",l="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",p="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",z="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",Y="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",Q="null истина ложь неопределено",H=e.inherit(e.NUMBER_MODE),J={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},Z={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},pe={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},re=e.inherit(e.C_LINE_COMMENT_MODE),ce={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:r,keyword:a+l},contains:[re]},ae={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},se={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:r,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:r,keyword:"знач",literal:Q},contains:[H,J,Z]},re]},e.inherit(e.TITLE_MODE,{begin:r})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:r,keyword:a,built_in:p,class:z,type:Y,literal:Q},contains:[ce,se,re,ae,H,J,Z,pe]}}return CR=t,CR}var wR,mQ;function oZe(){if(mQ)return wR;mQ=1;function t(e){const r=e.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,i=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],a=e.COMMENT(/;/,/$/),s={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},o={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},l={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},u={scope:"symbol",match:/%[si](?=".*")/},d={scope:"attribute",match:r.concat(n,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:i,contains:[{scope:"operator",match:/=\/?/},d,a,s,o,l,u,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return wR=t,wR}var kR,yQ;function lZe(){if(yQ)return kR;yQ=1;function t(e){const r=e.regex,n=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:r.concat(/"/,r.either(...n)),end:/"/,keywords:n,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return kR=t,kR}var AR,vQ;function cZe(){if(vQ)return AR;vQ=1;function t(e){const r=e.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,i=r.concat(n,r.concat("(\\.",n,")*")),a=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,s={className:"rest_arg",begin:/[.]{3}/,end:n,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]},{begin:r.concat(/:\s*/,a)}]},e.METHOD_GUARD],illegal:/#/}}return AR=t,AR}var RR,_Q;function uZe(){if(_Q)return RR;_Q=1;function t(e){const r="\\d(_|\\d)*",n="[eE][-+]?"+r,i=r+"(\\."+r+")?("+n+")?",a="\\w+",o="\\b("+(r+"#"+a+"(\\."+a+")?#("+n+")?")+"|"+i+")",l="[A-Za-z](_?[A-Za-z0-9.])*",u=`[]\\{\\}%#'"`,d=e.COMMENT("--","$"),h={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:u,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:l,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[d,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:o,relevance:0},{className:"symbol",begin:"'"+l},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:u},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[d,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:u},h,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:u}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:u},h]}}return RR=t,RR}var NR,bQ;function dZe(){if(bQ)return NR;bQ=1;function t(e){const r={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},n={className:"symbol",begin:"[a-zA-Z0-9_]+@"},i={className:"keyword",begin:"<",end:">",contains:[r,n]};return r.contains=[i],n.contains=[i],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},r,n,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return NR=t,NR}var IR,EQ;function hZe(){if(EQ)return IR;EQ=1;function t(e){const r={className:"number",begin:/[$%]\d+/},n={className:"number",begin:/\b\d+/},i={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},a={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[i,a,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",r]},i,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return IR=t,IR}var OR,SQ;function fZe(){if(SQ)return OR;SQ=1;function t(e){const r=e.regex,n=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),i={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,n]},a=e.COMMENT(/--/,/$/),s=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",a]}),o=[a,s,e.HASH_COMMENT_MODE],l=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],u=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[n,e.C_NUMBER_MODE,{className:"built_in",begin:r.concat(/\b/,r.either(...u),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:r.concat(/\b/,r.either(...l),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,i]},...o],illegal:/\/\/|->|=>|\[\[/}}return OR=t,OR}var DR,TQ;function pZe(){if(TQ)return DR;TQ=1;function t(e){const r=e.regex,n="[A-Za-z_][0-9A-Za-z_]*",i={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","of","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","DistanceToCoordinate","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureInFilter","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","FilterBySubtypeCode","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","KnowledgeGraphByPortalItem","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","MeasureToCoordinate","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","PointToCoordinate","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","QueryGraph","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeFilename","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},a=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","graph","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","userInput","value","variables","view"],s={className:"symbol",begin:"\\$"+r.either(...a)},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},l={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},u={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,l]};l.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,o,e.REGEXP_MODE];const d=l.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:i,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:n+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:n,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+n+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:d}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:n}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:d}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return DR=t,DR}var LR,xQ;function gZe(){if(xQ)return LR;xQ=1;function t(r){const n=r.regex,i=r.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",l="(?!struct)("+a+"|"+n.optional(s)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[r.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},r.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},f={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},r.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},i,r.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(s)+r.IDENT_RE,relevance:0},m=n.optional(s)+r.IDENT_RE+"\\s*\\(",y=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],v=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],_=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:v,keyword:y,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},T={className:"function.dispatch",relevance:0,keywords:{_hint:_},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,r.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},w=[T,p,u,i,r.C_BLOCK_COMMENT_MODE,f,h],N={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:w.concat([{begin:/\(/,end:/\)/,keywords:C,contains:w.concat(["self"]),relevance:0}]),relevance:0},O={className:"function",begin:"("+l+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:C,relevance:0},{begin:m,returnBegin:!0,contains:[g],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,f]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[i,r.C_BLOCK_COMMENT_MODE,h,f,u,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",i,r.C_BLOCK_COMMENT_MODE,h,f,u]}]},u,i,r.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"",keywords:C,contains:["self",u]},{begin:r.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(r){const n={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},i=t(r),a=i.keywords;return a.type=[...a.type,...n.type],a.literal=[...a.literal,...n.literal],a.built_in=[...a.built_in,...n.built_in],a._hints=n._hints,i.name="Arduino",i.aliases=["ino"],i.supersetOf="cpp",i}return LR=e,LR}var MR,CQ;function mZe(){if(CQ)return MR;CQ=1;function t(e){const r={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},r,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return MR=t,MR}var PR,wQ;function yZe(){if(wQ)return PR;wQ=1;function t(e){const r=e.regex,n=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(s,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),u=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[s,u,l,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[s,o,u,l]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:d}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return PR=t,PR}var BR,kQ;function vZe(){if(kQ)return BR;kQ=1;function t(e){const r=e.regex,n={begin:"^'{3,}[ \\t]*$",relevance:10},i=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],a=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:r.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],s=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:r.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],o={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},l={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},l,o,...i,...a,...s,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},n,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return BR=t,BR}var FR,AQ;function _Ze(){if(AQ)return FR;AQ=1;function t(e){const r=e.regex,n=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],i=["get","set","args","call"];return{name:"AspectJ",keywords:n,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:n.concat(i),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:r.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:n,illegal:/["\[\]]/,contains:[{begin:r.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:n.concat(i),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:n,excludeEnd:!0,contains:[{begin:r.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return FR=t,FR}var $R,RQ;function bZe(){if(RQ)return $R;RQ=1;function t(e){const r={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[r,e.inherit(e.QUOTE_STRING_MODE,{contains:[r]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return $R=t,$R}var zR,NQ;function EZe(){if(NQ)return zR;NQ=1;function t(e){const r="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",n=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],i="True False And Null Not Or Default",a="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",s={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},o={begin:"\\$[A-z0-9_]+"},l={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},u={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},d={className:"meta",begin:"#",end:"$",keywords:{keyword:n},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[l,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},l,s]},h={className:"symbol",begin:"@[A-z0-9_]+"},f={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[o,l,u]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:r,built_in:a,literal:i},contains:[s,o,l,u,d,h,f]}}return zR=t,zR}var UR,IQ;function SZe(){if(IQ)return UR;IQ=1;function t(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return UR=t,UR}var GR,OQ;function TZe(){if(OQ)return GR;OQ=1;function t(e){const r={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},n="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:n},contains:[r,i,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return GR=t,GR}var qR,DQ;function xZe(){if(DQ)return qR;DQ=1;function t(e){const r=e.UNDERSCORE_IDENT_RE,s={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},o={variants:[{match:[/(class|interface)\s+/,r,/\s+(extends|implements)\s+/,r]},{match:[/class\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s};return{name:"X++",aliases:["x++"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},o]}}return qR=t,qR}var YR,LQ;function CZe(){if(LQ)return YR;LQ=1;function t(e){const r=e.regex,n={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,a]};a.contains.push(l);const u={match:/\\"/},d={className:"string",begin:/'/,end:/'/},h={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],g=e.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),m={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},y=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],v=["true","false"],b={match:/(\/[a-z._-]+)+/},_=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],E=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],x=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],C=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:y,literal:v,built_in:[..._,...E,"set","shopt",...x,...C]},contains:[g,e.SHEBANG(),m,f,s,o,b,l,u,d,h,n]}}return YR=t,YR}var HR,MQ;function wZe(){if(MQ)return HR;MQ=1;function t(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[{scope:"string",begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return HR=t,HR}var VR,PQ;function kZe(){if(PQ)return VR;PQ=1;function t(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return VR=t,VR}var WR,BQ;function AZe(){if(BQ)return WR;BQ=1;function t(e){const r={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[r]},r]}}return WR=t,WR}var KR,FQ;function RZe(){if(FQ)return KR;FQ=1;function t(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="("+i+"|"+r.optional(a)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:r.optional(a)+e.IDENT_RE,relevance:0},g=r.optional(a)+e.IDENT_RE+"\\s*\\(",v={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},b=[f,l,n,e.C_BLOCK_COMMENT_MODE,h,d],_={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:v,contains:b.concat([{begin:/\(/,end:/\)/,keywords:v,contains:b.concat(["self"]),relevance:0}]),relevance:0},E={begin:"("+o+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:v,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:v,relevance:0},{begin:g,returnBegin:!0,contains:[e.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,h,l,{begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,d,h,l]}]},l,n,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C",aliases:["h"],keywords:v,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:d,keywords:v}}}return KR=t,KR}var XR,$Q;function NZe(){if($Q)return XR;$Q=1;function t(e){const r=e.regex,n=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],i="false true",a=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"string",begin:/(#\d+)+/},l={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},u={className:"string",begin:'"',end:'"'},d={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[s,o,e.NUMBER_MODE]},...a]},h=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],f={match:[/OBJECT/,/\s+/,r.either(...h),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:n,literal:i},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},s,o,l,u,e.NUMBER_MODE,f,d]}}return XR=t,XR}var jR,zQ;function IZe(){if(zQ)return jR;zQ=1;function t(e){const r=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],n=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],i=["true","false"],a={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:r,type:n,literal:i},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},a]}}return jR=t,jR}var QR,UQ;function OZe(){if(UQ)return QR;UQ=1;function t(e){const r=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],n=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],i=["doc","by","license","see","throws","tagged"],a={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:r,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[a]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return a.contains=s,{name:"Ceylon",keywords:{keyword:r.concat(n),meta:i},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(s)}}return QR=t,QR}var ZR,GQ;function DZe(){if(GQ)return ZR;GQ=1;function t(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return ZR=t,ZR}var JR,qQ;function LZe(){if(qQ)return JR;qQ=1;function t(e){const r="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+r+"]["+r+"0-9/;:$#]*",i="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",a={$pattern:n,built_in:i+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},s={begin:n,relevance:0},o={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},l={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},u={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),h={scope:"punctuation",match:/,/,relevance:0},f=e.COMMENT(";","$",{relevance:0}),p={className:"literal",begin:/\b(true|false|nil)\b/},g={begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},m={className:"symbol",begin:"[:]{1,2}"+n},y={begin:"\\(",end:"\\)"},v={endsWithParent:!0,relevance:0},b={keywords:a,className:"name",begin:n,relevance:0,starts:v},_=[h,y,l,u,d,f,m,g,o,p,s],E={beginKeywords:i,keywords:{$pattern:n,keyword:i},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(_)};return y.contains=[E,b,v],v.contains=_,g.contains=_,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[h,y,l,u,d,f,m,g,o,p]}}return JR=t,JR}var eN,YQ;function MZe(){if(YQ)return eN;YQ=1;function t(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return eN=t,eN}var tN,HQ;function PZe(){if(HQ)return tN;HQ=1;function t(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return tN=t,tN}var rN,VQ;function BZe(){if(VQ)return rN;VQ=1;const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],n=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=[].concat(i,r,n);function s(o){const l=["npm","print"],u=["yes","no","on","off"],d=["then","unless","until","loop","by","when","and","or","is","isnt","not"],h=["var","const","let","function","static"],f=x=>C=>!x.includes(C),p={keyword:t.concat(d).filter(f(h)),literal:e.concat(u),built_in:a.concat(l)},g="[A-Za-z$_][0-9A-Za-z$_]*",m={className:"subst",begin:/#\{/,end:/\}/,keywords:p},y=[o.BINARY_NUMBER_MODE,o.inherit(o.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,m]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,m]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[m,o.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+g},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];m.contains=y;const v=o.inherit(o.TITLE_MODE,{begin:g}),b="(\\(.*\\)\\s*)?\\B[-=]>",_={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:p,contains:["self"].concat(y)}]},E={variants:[{match:[/class\s+/,g,/\s+extends\s+/,g]},{match:[/class\s+/,g]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:p};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:p,illegal:/\/\*/,contains:[...y,o.COMMENT("###","###"),o.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+g+"\\s*=\\s*"+b,end:"[-=]>",returnBegin:!0,contains:[v,_]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:b,end:"[-=]>",returnBegin:!0,contains:[_]}]},E,{begin:g+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return rN=s,rN}var nN,WQ;function FZe(){if(WQ)return nN;WQ=1;function t(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return nN=t,nN}var iN,KQ;function $Ze(){if(KQ)return iN;KQ=1;function t(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}return iN=t,iN}var aN,XQ;function zZe(){if(XQ)return aN;XQ=1;function t(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="(?!struct)("+i+"|"+r.optional(a)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:r.optional(a)+e.IDENT_RE,relevance:0},g=r.optional(a)+e.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],y=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],v=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],x={type:y,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:v},C={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:r.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},T=[C,f,l,n,e.C_BLOCK_COMMENT_MODE,h,d],w={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:T.concat([{begin:/\(/,end:/\)/,keywords:x,contains:T.concat(["self"]),relevance:0}]),relevance:0},N={className:"function",begin:"("+o+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:x,relevance:0},{begin:g,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,h]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,h,l,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,d,h,l]}]},l,n,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:x,illegal:"",keywords:x,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:x},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return aN=t,aN}var sN,jQ;function UZe(){if(jQ)return sN;jQ=1;function t(e){const r="primitive rsc_template",n="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:r,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+n.split(" ").join("|")+")\\s+",keywords:n,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}return sN=t,sN}var oN,QQ;function GZe(){if(QQ)return oN;QQ=1;function t(e){const r="(_?[ui](8|16|32|64|128))?",n="(_?f(32|64))?",i="[a-zA-Z_]\\w*[!?=]?",a="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",s="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",o={$pattern:i,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},d={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function h(b,_){const E=[{begin:b,end:_}];return E[0].contains=E,E}const f={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:h("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},p={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%q<",end:">",contains:h("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},g={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},m={className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"%r\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%r<",end:">",contains:h("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},y={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},v=[d,f,p,m,g,y,u,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[f,{begin:a}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+n+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+r}],relevance:0}];return l.contains=v,d.contains=v.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:v}}return oN=t,oN}var lN,ZQ;function qZe(){if(ZQ)return lN;ZQ=1;function t(e){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],a=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:a.concat(s),built_in:r,literal:i},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},h={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},f=e.inherit(h,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:o},g=e.inherit(p,{illegal:/\n/}),m={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,g]},y={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},v=e.inherit(y,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]});p.contains=[y,m,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],g.contains=[v,m,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const b={variants:[d,y,m,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},_={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},E=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",x={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},b,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+E+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,_],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[b,u,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},x]}}return lN=t,lN}var cN,JQ;function YZe(){if(JQ)return cN;JQ=1;function t(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return cN=t,cN}var uN,eZ;function HZe(){if(eZ)return uN;eZ=1;const t=u=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:u.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:u.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function l(u){const d=u.regex,h=t(u),f={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},p="and or not only",g=/@-?\w[\w]*(-\w+)*/,m="[a-zA-Z-][a-zA-Z0-9_-]*",y=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[h.BLOCK_COMMENT,f,h.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+m,relevance:0},h.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+a.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},h.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[h.BLOCK_COMMENT,h.HEXCOLOR,h.IMPORTANT,h.CSS_NUMBER_MODE,...y,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...y,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},h.FUNCTION_DISPATCH]},{begin:d.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:g},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:p,attribute:i.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...y,h.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b"}]}}return uN=l,uN}var dN,tZ;function VZe(){if(tZ)return dN;tZ=1;function t(e){const r={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},n="(0|[1-9][\\d_]*)",i="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",a="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+s,l="([eE][+-]?"+i+")",u="("+i+"(\\.\\d*|"+l+")|\\d+\\."+i+"|\\."+n+l+"?)",d="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+i+")",h="("+n+"|"+a+"|"+o+")",f="("+d+"|"+u+")",p=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,g={className:"number",begin:"\\b"+h+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},m={className:"number",begin:"\\b("+f+"([fF]|L|i|[fF]i|Li)?|"+h+"(i|[fF]i|Li))",relevance:0},y={className:"string",begin:"'("+p+"|.)",end:"'",illegal:"."},b={className:"string",begin:'"',contains:[{begin:p,relevance:0}],end:'"[cwd]?'},_={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},E={className:"string",begin:"`",end:"`[cwd]?"},x={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},C={className:"string",begin:'q"\\{',end:'\\}"'},T={className:"meta",begin:"^#!",end:"$",relevance:5},w={className:"meta",begin:"#(line)",end:"$",relevance:5},N={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},O=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:r,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,O,x,b,_,E,C,m,g,y,T,w,N]}}return dN=t,dN}var hN,rZ;function WZe(){if(rZ)return hN;rZ=1;function t(e){const r=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},a={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,u={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},d={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},h={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},f=e.inherit(d,{contains:[]}),p=e.inherit(h,{contains:[]});d.contains.push(p),h.contains.push(f);let g=[n,u];return[d,h,f,p].forEach(b=>{b.contains=b.contains.concat(g)}),g=g.concat(d,h),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:g},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:g}]}]},n,s,d,h,{className:"quote",begin:"^>\\s+",contains:g,end:"$"},a,i,u,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return hN=t,hN}var fN,nZ;function KZe(){if(nZ)return fN;nZ=1;function t(e){const r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},i={className:"number",relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},a={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,r,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,r,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r,n]}]};n.contains=[i,a];const s=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=s.map(d=>`${d}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:s.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[a,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},i,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return fN=t,fN}var pN,iZ;function XZe(){if(iZ)return pN;iZ=1;function t(e){const r=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},a={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},l={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},u={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[a,o,i].concat(n)},i].concat(n)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:r,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[a,o,s,l,u,i].concat(n)}}return pN=t,pN}var gN,aZ;function jZe(){if(aZ)return gN;aZ=1;function t(e){const r=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return gN=t,gN}var mN,sZ;function QZe(){if(sZ)return mN;sZ=1;function t(e){const r={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[r],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[r]}]}}return mN=t,mN}var yN,oZ;function ZZe(){if(oZ)return yN;oZ=1;function t(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return yN=t,yN}var vN,lZ;function JZe(){if(lZ)return vN;lZ=1;function t(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a={className:"variable",begin:/&[a-z\d_]*\b/},s={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},o={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},l={className:"params",relevance:0,begin:"<",end:">",contains:[n,a]},u={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},d={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},h={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},f={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},p={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[d,a,s,o,u,f,h,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r,i,p,{begin:e.IDENT_RE+"::",keywords:""}]}}return EN=t,EN}var SN,hZ;function nJe(){if(hZ)return SN;hZ=1;function t(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return SN=t,SN}var TN,fZ;function iJe(){if(fZ)return TN;fZ=1;function t(e){const r=e.COMMENT(/\(\*/,/\*\)/),n={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},a={begin:/=/,end:/[.;]/,contains:[r,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[r,n,a]}}return TN=t,TN}var xN,pZ;function aJe(){if(pZ)return xN;pZ=1;function t(e){const r=e.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",o={$pattern:n,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},h={match:/\\[\s\S]/,scope:"char.escape",relevance:0},f=`[/|([{<"']`,p=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],g=C=>({scope:"char.escape",begin:r.concat(/\\/,C),relevance:0}),m={className:"string",begin:"~[a-z](?="+f+")",contains:p.map(C=>e.inherit(C,{contains:[g(C.end),h,l]}))},y={className:"string",begin:"~[A-Z](?="+f+")",contains:p.map(C=>e.inherit(C,{contains:[g(C.end)]}))},v={className:"regex",variants:[{begin:"~r(?="+f+")",contains:p.map(C=>e.inherit(C,{end:r.concat(C.end,/[uismxfU]{0,7}/),contains:[g(C.end),h,l]}))},{begin:"~R(?="+f+")",contains:p.map(C=>e.inherit(C,{end:r.concat(C.end,/[uismxfU]{0,7}/),contains:[g(C.end)]}))}]},b={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},_={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},E=e.inherit(_,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),x=[b,v,y,m,e.HASH_COMMENT_MODE,E,_,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[b,{begin:i}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},u,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return l.contains=x,{name:"Elixir",aliases:["ex","exs"],keywords:o,contains:x}}return xN=t,xN}var CN,gZ;function sJe(){if(gZ)return CN;gZ=1;function t(e){const r={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},r]},a={begin:/\{/,end:/\}/,contains:i.contains},s={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,r],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,r],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,i,a,r]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,r]},{begin:"port",end:"$",keywords:"port",contains:[r]},s,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),r,{begin:"->|<-"}],illegal:/;/}}return CN=t,CN}var wN,mZ;function oJe(){if(mZ)return wN;mZ=1;function t(e){const r=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),a=r.concat(i,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},l={className:"doctag",begin:"@[A-Za-z]+"},u={begin:"#<",end:">"},d=[e.COMMENT("#","$",{contains:[l]}),e.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],h={className:"subst",begin:/#\{/,end:/\}/,keywords:o},f={className:"string",contains:[e.BACKSLASH_ESCAPE,h],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:r.concat(/<<[-~]?'?/,r.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,h]})]}]},p="[1-9](_?[0-9])*|0",g="[0-9](_?[0-9])*",m={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${g}))?([eE][+-]?(${g})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},y={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},T=[f,{variants:[{match:[/class\s+/,a,/\s+<\s+/,a]},{match:[/\b(class|module)\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,a],scope:{2:"title.class"},keywords:o},{relevance:0,match:[a,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[y]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{begin:n}],relevance:0},m,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,h],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(u,d),relevance:0}].concat(u,d);h.contains=T,y.contains=T;const M=[{begin:/^\s*=>/,starts:{end:"$",contains:T}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:T}}];return d.unshift(u),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(M).concat(d).concat(T)}}return wN=t,wN}var kN,yZ;function lJe(){if(yZ)return kN;yZ=1;function t(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return kN=t,kN}var AN,vZ;function cJe(){if(vZ)return AN;vZ=1;function t(e){const r=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:r.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return AN=t,AN}var RN,_Z;function uJe(){if(_Z)return RN;_Z=1;function t(e){const r="[a-z'][a-zA-Z0-9_']*",n="("+r+":"+r+"|"+r+")",i={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else",literal:"false true"},a=e.COMMENT("%","$"),s={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+r+"/\\d+"},l={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},u={begin:/\{/,end:/\}/,relevance:0},d={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},h={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},f={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},p={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},g={scope:"string",match:/"""("*)(?!")[\s\S]*?"""\1/},m={scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},y={beginKeywords:"fun receive if try case maybe",end:"end",keywords:i};y.contains=[a,o,e.inherit(e.APOS_STRING_MODE,{className:""}),y,l,m,g,e.QUOTE_STRING_MODE,s,u,d,h,f,p];const v=[a,o,y,l,m,g,e.QUOTE_STRING_MODE,s,u,d,h,f,p];l.contains[1].contains=v,u.contains=v,f.contains[1].contains=v;const b=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-moduledoc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec","-on_load","-nifs"],_={className:"params",begin:"\\(",end:"\\)",contains:v};return{name:"Erlang",aliases:["erl"],keywords:i,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[_,e.inherit(e.TITLE_MODE,{begin:r})],starts:{end:";|\\.",keywords:i,contains:v}},a,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:b.map(E=>`${E}|1.5`).join(" ")},contains:[_,m,g,e.QUOTE_STRING_MODE]},s,m,g,e.QUOTE_STRING_MODE,f,d,h,u,p,{begin:/\.$/}]}}return RN=t,RN}var NN,bZ;function dJe(){if(bZ)return NN;bZ=1;function t(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ARRAYTOTEXT","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","BYCOL","BYROW","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CHOOSECOLS","CHOOSEROWS","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DROP","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPAND","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE","F.DIST","FDIST","F.DIST.RT","FILTER","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HSTACK","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGE","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISOMITTED","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LAMBDA","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LET","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MAKEARRAY","MAP","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDB","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDARRAY","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REDUCE","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SCAN","SEARCH","SEARCHB","SEC","SECH","SECOND","SEQUENCE","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SORT","SORTBY","SQRT","SQRTPI","SQL.REQUEST","STANDARDIZE","STOCKHISTORY","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TAKE","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTAFTER","TEXTBEFORE","TEXTJOIN","TEXTSPLIT","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TOCOL","TOROW","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UNIQUE","UPPER","VALUE","VALUETOTEXT","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","VSTACK","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","WRAPCOLS","WRAPROWS","XIRR","XLOOKUP","XMATCH","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return NN=t,NN}var IN,EZ;function hJe(){if(EZ)return IN;EZ=1;function t(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return IN=t,IN}var ON,SZ;function fJe(){if(SZ)return ON;SZ=1;function t(e){const r={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},n={className:"string",variants:[{begin:'"',end:'"'}]},a={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,n,a,e.C_NUMBER_MODE]}}return ON=t,ON}var DN,TZ;function pJe(){if(TZ)return DN;TZ=1;function t(e){const r=e.regex,n={className:"params",begin:"\\(",end:"\\)"},i={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},a=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:r.concat(/\b\d+/,/\.(\d*)/,s,a)},{begin:r.concat(/\b\d+/,s,a)},{begin:r.concat(/\.\d+/,s,a)}],relevance:0},l={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]},u={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[u,l,{begin:/^C\s*=(?!=)/,relevance:0},i,o]}}return DN=t,DN}var LN,xZ;function gJe(){if(xZ)return LN;xZ=1;function t(o){return new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(o){return o?typeof o=="string"?o:o.source:null}function r(o){return n("(?=",o,")")}function n(...o){return o.map(u=>e(u)).join("")}function i(o){const l=o[o.length-1];return typeof l=="object"&&l.constructor===Object?(o.splice(o.length-1,1),l):{}}function a(...o){return"("+(i(o).capture?"":"?:")+o.map(d=>e(d)).join("|")+")"}function s(o){const l=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],u={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},d=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],h=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],f=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],p=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],m={keyword:l,literal:h,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":f},v={variants:[o.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),o.C_LINE_COMMENT_MODE]},b=/[a-zA-Z_](\w|')*/,_={scope:"variable",begin:/``/,end:/``/},E=/\B('|\^)/,x={scope:"symbol",variants:[{match:n(E,/``.*?``/)},{match:n(E,o.UNDERSCORE_IDENT_RE)}],relevance:0},C=function({includeEqual:H}){let J;H?J="!%&*+-/<=>@^|~?":J="!%&*+-/<>@^|~?";const Z=Array.from(J),pe=n("[",...Z.map(t),"]"),re=a(pe,/\./),ce=n(re,r(re)),ae=a(n(ce,re,"*"),n(pe,"+"));return{scope:"operator",match:a(ae,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},T=C({includeEqual:!0}),w=C({includeEqual:!1}),N=function(H,J){return{begin:n(H,r(n(/\s*/,a(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:J,end:r(a(/\n/,/=/)),relevance:0,keywords:o.inherit(m,{type:p}),contains:[v,x,o.inherit(_,{scope:null}),w]}},O=N(/:/,"operator"),M=N(/\bof\b/,"keyword"),$={begin:[/(^|\s+)/,/type/,/\s+/,b],beginScope:{2:"keyword",4:"title.class"},end:r(/\(|=|$/),keywords:m,contains:[v,o.inherit(_,{scope:null}),x,{scope:"operator",match:/<|>/},O]},F={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},A={begin:[/^\s*/,n(/#/,a(...d)),/\b/],beginScope:{2:"meta"},end:r(/\s|$/)},I={variants:[o.BINARY_NUMBER_MODE,o.C_NUMBER_MODE]},D={scope:"string",begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE]},L={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},o.BACKSLASH_ESCAPE]},R={scope:"string",begin:/"""/,end:/"""/,relevance:2},P={scope:"subst",begin:/\{/,end:/\}/,keywords:m},z={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},o.BACKSLASH_ESCAPE,P]},B={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},o.BACKSLASH_ESCAPE,P]},q={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},P],relevance:2},Y={scope:"string",match:n(/'/,a(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return P.contains=[B,z,L,D,Y,u,v,_,O,F,A,I,x,T],{name:"F#",aliases:["fs","f#"],keywords:m,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[u,{variants:[q,B,z,R,L,D,Y]},v,_,$,{scope:"meta",begin:/\[\]/,relevance:2,contains:[_,R,L,D,Y,I]},M,O,F,A,I,x,T]}}return LN=s,LN}var MN,CZ;function mJe(){if(CZ)return MN;CZ=1;function t(e){const r=e.regex,n={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},i={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},a={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},s={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},o={begin:"/",end:"/",keywords:n,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},l=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,u={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[s,o,{className:"comment",begin:r.concat(l,r.anyNumberOfTimes(r.concat(/[ ]+/,l))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:n,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,u]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[u]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},i,a]},e.C_NUMBER_MODE,a]}}return MN=t,MN}var PN,wZ;function yJe(){if(wZ)return PN;wZ=1;function t(e){const r={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},n=e.COMMENT("@","@"),i={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},a={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},s=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,a]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},l=function(p,g,m){const y=e.inherit({className:"function",beginKeywords:p,end:g,excludeEnd:!0,contains:[].concat(s)},{});return y.contains.push(o),y.contains.push(e.C_NUMBER_MODE),y.contains.push(e.C_BLOCK_COMMENT_MODE),y.contains.push(n),y},u={className:"built_in",begin:"\\b("+r.built_in.split(" ").join("|")+")\\b"},d={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},h={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:r,relevance:0,contains:[{beginKeywords:r.keyword},u,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},f={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:r.built_in,literal:r.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,u,h,d,"self"]};return h.contains.push(f),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:r,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,d,i,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},l("proc keyword",";"),l("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,f]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},h,a]}}return PN=t,PN}var BN,kZ;function vJe(){if(kZ)return BN;kZ=1;function t(e){const r=e.regex,n={$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},i=/\b/;function a(g,m){if(g.index===0)return;const y=g.input[g.index-1];y>="0"&&y<="9"||y!=="_"&&m.ignoreMatch()}const s=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,o=/[GM]\s*\d+(\.\d+)?/,l=/T\s*\d+/,u=/O\s*\d+/,d=/O<.+>/,h=/[ABCUVWXYZ]\s*/,f=/[FHIJKPQRS]\s*/,p=[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:"title.function",variants:[{match:r.concat(i,o)},{begin:o,"on:begin":a},{match:r.concat(i,l)},{begin:l,"on:begin":a}]},{scope:"symbol",variants:[{match:r.concat(i,u)},{begin:u,"on:begin":a},{match:r.concat(i,d)},{begin:d,"on:begin":a},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:r.concat(i,h,s)},{begin:r.concat(h,s),"on:begin":a}]},{scope:"params",variants:[{match:r.concat(i,f,s)},{begin:r.concat(f,s),"on:begin":a}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:n,contains:p}}return BN=t,BN}var FN,AZ;function _Je(){if(AZ)return FN;AZ=1;function t(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}return FN=t,FN}var $N,RZ;function bJe(){if(RZ)return $N;RZ=1;function t(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return $N=t,$N}var zN,NZ;function EJe(){if(NZ)return zN;NZ=1;function t(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return zN=t,zN}var UN,IZ;function SJe(){if(IZ)return UN;IZ=1;function t(e){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return VN=t,VN}var WN,BZ;function AJe(){if(BZ)return WN;BZ=1;function t(e){const r=e.regex,n={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},i={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},a=/""|"[^"]+"/,s=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,l=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,u=/(\.|\/)/,d=r.either(a,s,o,l),h=r.concat(r.optional(/\.|\.\/|\//),d,r.anyNumberOfTimes(r.concat(u,d))),f=r.concat("(",o,"|",l,")(?==)"),p={begin:h},g=e.inherit(p,{keywords:i}),m={begin:/\(/,end:/\)/},y={className:"attr",begin:f,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,m]}}},v={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},b={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,v,y,g,m],returnEnd:!0},_=e.inherit(p,{className:"name",keywords:n,starts:e.inherit(b,{end:/\)/})});m.contains=[_];const E=e.inherit(p,{keywords:n,className:"name",starts:e.inherit(b,{end:/\}\}/})}),x=e.inherit(p,{keywords:n,className:"name"}),C=e.inherit(p,{className:"name",keywords:n,starts:e.inherit(b,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[E],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[x]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[E]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[x]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[C]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[C]}]}}return WN=t,WN}var KN,FZ;function RJe(){if(FZ)return KN;FZ=1;function t(e){const r="([0-9]_*)+",n="([0-9a-fA-F]_*)+",i="([01]_*)+",a="([0-7]_*)+",u="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",d={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},h={className:"meta",begin:/\{-#/,end:/#-\}/},f={className:"meta",begin:"^#",end:"$"},p={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},g={begin:"\\(",end:"\\)",illegal:'"',contains:[h,f,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),d]},m={begin:/\{/,end:/\}/,contains:g.contains},y={className:"number",relevance:0,variants:[{match:`\\b(${r})(\\.(${r}))?([eE][+-]?(${r}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${r}))?\\b`},{match:`\\b0[oO](${a})\\b`},{match:`\\b0[bB](${i})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[g,d],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[g,d],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[p,g,d]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[h,p,g,m,d]},{beginKeywords:"default",end:"$",contains:[p,g,d]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,d]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[p,e.QUOTE_STRING_MODE,d]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},h,f,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,y,p,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${u}--+|--+(?!-)${u}`},d,{begin:"->|<-"}]}}return KN=t,KN}var XN,$Z;function NJe(){if($Z)return XN;$Z=1;function t(e){const r="[a-zA-Z_$][a-zA-Z0-9_$]*",n=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:n,relevance:0},{className:"variable",begin:"\\$"+r},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}return XN=t,XN}var jN,zZ;function IJe(){if(zZ)return jN;zZ=1;function t(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}return jN=t,jN}var QN,UZ;function OJe(){if(UZ)return QN;UZ=1;function t(e){const r=e.regex,n="HTTP/([32]|1\\.[01])",i=/[A-Za-z][A-Za-z0-9-]*/,a={className:"attribute",begin:r.concat("^",i,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[a,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+n+" \\d{3})",end:/$/,contains:[{className:"meta",begin:n},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+n+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:n},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},e.inherit(a,{relevance:0})]}}return QN=t,QN}var ZN,GZ;function DJe(){if(GZ)return ZN;GZ=1;function t(e){const r="a-zA-Z_\\-!.?+*=<>&#'",n="["+r+"]["+r+"0-9/;:]*",i={$pattern:n,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},a="[-+]?\\d+(\\.\\d+)?",s={begin:n,relevance:0},o={className:"number",begin:a,relevance:0},l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),u=e.COMMENT(";","$",{relevance:0}),d={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},h={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},f={className:"comment",begin:"\\^"+n},p=e.COMMENT("\\^\\{","\\}"),g={className:"symbol",begin:"[:]{1,2}"+n},m={begin:"\\(",end:"\\)"},y={endsWithParent:!0,relevance:0},v={className:"name",relevance:0,keywords:i,begin:n,starts:y},b=[m,l,f,p,u,g,h,o,d,s];return m.contains=[e.COMMENT("comment",""),v,y],y.contains=b,h.contains=b,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),m,l,f,p,u,g,h,o,d]}}return ZN=t,ZN}var JN,qZ;function LJe(){if(qZ)return JN;qZ=1;function t(e){return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:"\\[",end:"\\]"}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:"\\[",end:"\\]",contains:["self"]}]}}return JN=t,JN}var eI,YZ;function MJe(){if(YZ)return eI;YZ=1;function t(e){const r=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const a={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[i,s,a,o,n,"self"],relevance:0},u=/[A-Za-z0-9_-]+/,d=/"(\\"|[^"])*"/,h=/'[^']*'/,f=r.either(u,d,h),p=r.concat(f,"(\\s*\\.\\s*",f,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[i,l,s,a,o,n]}}]}}return eI=t,eI}var tI,HZ;function PJe(){if(HZ)return tI;HZ=1;function t(e){const r=e.regex,n={className:"params",begin:"\\(",end:"\\)"},i=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:r.concat(/\b\d+/,/\.(\d*)/,a,i)},{begin:r.concat(/\b\d+/,a,i)},{begin:r.concat(/\.\d+/,a,i)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),s]}}return tI=t,tI}var rI,VZ;function BJe(){if(VZ)return rI;VZ=1;function t(e){const r="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",i="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",H="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",ld="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",no="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",b2="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",cd="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",vr=H+ld,nl=b2,yn="null true false nil ",fn={className:"number",begin:e.NUMBER_RE,relevance:0},io={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},ys={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},vs={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,ys]},ud={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,ys]},rr={variants:[vs,ud]},fr={$pattern:r,keyword:i,built_in:vr,class:nl,literal:yn},Er={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:fr,relevance:0},vn={className:"type",begin:":[ \\t]*("+cd.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},fa={className:"variable",keywords:fr,begin:r,relevance:0,contains:[vn,Er]},il=n+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:fr,illegal:"\\$|\\?|%|,|;$|~|#|@|i(s,o,l-1))}function a(s){const o=s.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",u=l+i("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),g={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},m={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},y={className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[s.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:g,illegal:/<\/|#/,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[s.BACKSLASH_ESCAPE]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[o.concat(/(?!else)/,l),/\s+/,l,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,l],className:{1:"keyword",3:"title.class"},contains:[y,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+u+"\\s+)",s.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:g,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[m,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,n,s.C_BLOCK_COMMENT_MODE]},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},n,m]}}return nI=a,nI}var iI,KZ;function $Je(){if(KZ)return iI;KZ=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(a,n,i);function l(u){const d=u.regex,h=(Z,{after:pe})=>{const re="",end:""},g=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Z,pe)=>{const re=Z[0].length+Z.index,ce=Z.input[re];if(ce==="<"||ce===","){pe.ignoreMatch();return}ce===">"&&(h(Z,{after:re})||pe.ignoreMatch());let ae;const se=Z.input.substring(re);if(ae=se.match(/^\s*=/)){pe.ignoreMatch();return}if((ae=se.match(/^\s+extends\s+/))&&ae.index===0){pe.ignoreMatch();return}}},y={$pattern:t,keyword:e,literal:r,built_in:o,"variable.language":s},v="[0-9](_?[0-9])*",b=`\\.(${v})`,_="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",E={className:"number",variants:[{begin:`(\\b(${_})((${b})|\\.)?|(${b}))[eE][+-]?(${v})\\b`},{begin:`\\b(${_})\\b((${b})\\b|\\.)?|(${b})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:y,contains:[]},C={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},T={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,x],subLanguage:"css"}},w={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,x],subLanguage:"graphql"}},N={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,x]},M={className:"comment",variants:[u.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:f+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},$=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,C,T,w,N,{match:/\$\d+/},E];x.contains=$.concat({begin:/\{/,end:/\}/,keywords:y,contains:["self"].concat($)});const F=[].concat(M,x.contains),A=F.concat([{begin:/(\s*)\(/,end:/\)/,keywords:y,contains:["self"].concat(F)}]),I={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:A},D={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,d.concat(f,"(",d.concat(/\./,f),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,f],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:d.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...n,...i]}},R={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},P={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[I],illegal:/%/},z={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function B(Z){return d.concat("(?!",Z.join("|"),")")}const q={match:d.concat(/\b/,B([...a,"super","import"].map(Z=>`${Z}\\s*\\(`)),f,d.lookahead(/\s*\(/)),className:"title.function",relevance:0},Y={begin:d.concat(/\./,d.lookahead(d.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Q={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},I]},H="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(H)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[I]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:y,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),R,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,C,T,w,N,M,{match:/\$\d+/},E,L,{scope:"attr",match:f+d.lookahead(":"),relevance:0},J,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[M,u.REGEXP_MODE,{className:"function",begin:H,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:g},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:"xml",contains:[{begin:m.begin,end:m.end,skip:!0,contains:["self"]}]}]},P,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[I,u.inherit(u.TITLE_MODE,{begin:f,className:"title.function"})]},{match:/\.\.\./,relevance:0},Y,{match:"\\$"+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[I]},q,z,D,Q,{match:/\$[(.]/}]}}return iI=l,iI}var aI,XZ;function zJe(){if(XZ)return aI;XZ=1;function t(e){const n={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},i={className:"function",begin:/:[\w\-.]+/,relevance:0},a={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},s={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,s,i,a,n]}}return aI=t,aI}var sI,jZ;function UJe(){if(jZ)return sI;jZ=1;function t(e){const r={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],a={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[r,n,e.QUOTE_STRING_MODE,a,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return sI=t,sI}var oI,QZ;function GJe(){if(QZ)return oI;QZ=1;function t(e){const r="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",s={$pattern:r,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},o={keywords:s,illegal:/<\//},l={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},u={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},d={className:"subst",begin:/\$\(/,end:/\)/,keywords:s},h={className:"variable",begin:"\\$"+r},f={className:"string",contains:[e.BACKSLASH_ESCAPE,d,h],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},p={className:"string",contains:[e.BACKSLASH_ESCAPE,d,h],begin:"`",end:"`"},g={className:"meta",begin:"@"+r},m={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return o.name="Julia",o.contains=[l,u,f,p,g,m,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],d.contains=o.contains,o}return oI=t,oI}var lI,ZZ;function qJe(){if(ZZ)return lI;ZZ=1;function t(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return lI=t,lI}var cI,JZ;function YJe(){if(JZ)return cI;JZ=1;var t="[0-9](_*[0-9])*",e=`\\.(${t})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",n={className:"number",variants:[{begin:`(\\b(${t})((${e})|\\.)?|(${e}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(a){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},o={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"@"},u={className:"subst",begin:/\$\{/,end:/\}/,contains:[a.C_NUMBER_MODE]},d={className:"variable",begin:"\\$"+a.UNDERSCORE_IDENT_RE},h={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[d,u]},{begin:"'",end:"'",illegal:/\n/,contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[a.BACKSLASH_ESCAPE,d,u]}]};u.contains.push(h);const f={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+a.UNDERSCORE_IDENT_RE+")?"},p={className:"meta",begin:"@"+a.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[a.inherit(h,{className:"string"}),"self"]}]},g=n,m=a.COMMENT("/\\*","\\*/",{contains:[a.C_BLOCK_COMMENT_MODE]}),y={variants:[{className:"type",begin:a.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},v=y;return v.variants[1].contains=[y],y.variants[1].contains=[v],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[a.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),a.C_LINE_COMMENT_MODE,m,o,l,f,p,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[a.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[y,a.C_LINE_COMMENT_MODE,m],relevance:0},a.C_LINE_COMMENT_MODE,m,f,p,h,a.C_NUMBER_MODE]},m]},{begin:[/class|interface|trait/,/\s+/,a.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},a.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},f,p]},h,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` -`},g]}}return cI=i,cI}var uI,eJ;function HJe(){if(eJ)return uI;eJ=1;function t(e){const r="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",i="\\]|\\?>",a={$pattern:r+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=e.COMMENT("",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},l={className:"meta",begin:"\\[/noprocess|"+n},u={className:"symbol",begin:"'"+r+"'"},d=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[u]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:a,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[s]}},o,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:a,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[s]}},o,l].concat(d)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(d)}}return uI=t,uI}var dI,tJ;function VJe(){if(tJ)return dI;tJ=1;function t(e){const n=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(M=>M+"(?![a-zA-Z@:_])")),i=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(M=>M+"(?![a-zA-Z:_])").join("|")),a=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],s=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],o={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:n},{endsParent:!0,begin:i},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:a}]},l={className:"params",relevance:0,begin:/#+\d?/},u={variants:s},d={className:"built_in",relevance:0,begin:/[$&^_]/},h={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},f=e.COMMENT("%","$",{relevance:0}),p=[o,l,u,d,h,f],g={begin:/\{/,end:/\}/,relevance:0,contains:["self",...p]},m=e.inherit(g,{relevance:0,endsParent:!0,contains:[g,...p]}),y={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[g,...p]},v={begin:/\s+/,relevance:0},b=[m],_=[y],E=function(M,$){return{contains:[v],starts:{relevance:0,contains:M,starts:$}}},x=function(M,$){return{begin:"\\\\"+M+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+M},relevance:0,contains:[v],starts:$}},C=function(M,$){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+M+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},E(b,$))},T=(M="string")=>e.END_SAME_AS_BEGIN({className:M,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),w=function(M){return{className:"string",end:"(?=\\\\end\\{"+M+"\\})"}},N=(M="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:M,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),O=[...["verb","lstinline"].map(M=>x(M,{contains:[T()]})),x("mint",E(b,{contains:[T()]})),x("mintinline",E(b,{contains:[N(),T()]})),x("url",{contains:[N("link"),N("link")]}),x("hyperref",{contains:[N("link")]}),x("href",E(_,{contains:[N("link")]})),...[].concat(...["","\\*"].map(M=>[C("verbatim"+M,w("verbatim"+M)),C("filecontents"+M,E(b,w("filecontents"+M))),...["","B","L"].map($=>C($+"Verbatim"+M,E(_,w($+"Verbatim"+M))))])),C("minted",E(_,E(b,w("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...O,...p]}}return dI=t,dI}var hI,rJ;function WJe(){if(rJ)return hI;rJ=1;function t(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return hI=t,hI}var fI,nJ;function KJe(){if(nJ)return fI;nJ=1;function t(e){const r=/([A-Za-z_][A-Za-z_0-9]*)?/,i={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},a={match:[r,/(?=\()/],scope:{1:"keyword"},contains:[i]};return i.contains.unshift(a),{name:"Leaf",contains:[{match:[/#+/,r,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[i]},{match:[/#+/,r,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return fI=t,fI}var pI,iJ;function XJe(){if(iJ)return pI;iJ=1;const t=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),l=a.concat(s).sort().reverse();function u(d){const h=t(d),f=l,p="and or not only",g="[\\w-]+",m="("+g+"|@\\{"+g+"\\})",y=[],v=[],b=function(F){return{className:"string",begin:"~?"+F+".*?"+F}},_=function(F,A,I){return{className:F,begin:A,relevance:I}},E={$pattern:/[a-z-]+/,keyword:p,attribute:i.join(" ")},x={begin:"\\(",end:"\\)",contains:v,keywords:E,relevance:0};v.push(d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,b("'"),b('"'),h.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},h.HEXCOLOR,x,_("variable","@@?"+g,10),_("variable","@\\{"+g+"\\}"),_("built_in","~?`[^`]*?`"),{className:"attribute",begin:g+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},h.IMPORTANT,{beginKeywords:"and not"},h.FUNCTION_DISPATCH);const C=v.concat({begin:/\{/,end:/\}/,contains:y}),T={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(v)},w={begin:m+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},h.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:v}}]},N={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:E,returnEnd:!0,contains:v,relevance:0}},O={className:"variable",variants:[{begin:"@"+g+"\\s*:",relevance:15},{begin:"@"+g}],starts:{end:"[;}]",returnEnd:!0,contains:C}},M={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:m,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,T,_("keyword","all\\b"),_("variable","@\\{"+g+"\\}"),{begin:"\\b("+n.join("|")+")\\b",className:"selector-tag"},h.CSS_NUMBER_MODE,_("selector-tag",m,0),_("selector-id","#"+m),_("selector-class","\\."+m,0),_("selector-tag","&",0),h.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+a.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:C},{begin:"!important"},h.FUNCTION_DISPATCH]},$={begin:g+`:(:)?(${f.join("|")})`,returnBegin:!0,contains:[M]};return y.push(d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,N,O,$,w,M,T,h.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:y}}return pI=u,pI}var gI,aJ;function jJe(){if(aJ)return gI;aJ=1;function t(e){const r="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",i="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",a={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:i,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+i+" +"+i,end:"\\)"}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),u={begin:"\\*",end:"\\*"},d={className:"symbol",begin:"[:&]"+r},h={begin:r,relevance:0},f={begin:n},g={contains:[s,o,u,d,{begin:"\\(",end:"\\)",contains:["self",a,o,s,h]},h],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},m={variants:[{begin:"'"+r},{begin:"#'"+r+"(::"+r+")*"}]},y={begin:"\\(\\s*",end:"\\)"},v={endsWithParent:!0,relevance:0};return y.contains=[{className:"name",variants:[{begin:r,relevance:0},{begin:n}]},v],v.contains=[g,m,y,a,s,o,l,u,d,f,h],{name:"Lisp",illegal:/\S/,contains:[s,e.SHEBANG(),a,o,l,g,m,y,h]}}return gI=t,gI}var mI,sJ;function QJe(){if(sJ)return mI;sJ=1;function t(e){const r={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],i=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),a=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[r,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[r,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[a,i],relevance:0},{beginKeywords:"command on",end:"$",contains:[r,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i].concat(n),illegal:";$|^\\[|^=|&|\\{"}}return mI=t,mI}var yI,oJ;function ZJe(){if(oJ)return yI;oJ=1;const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],n=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=[].concat(i,r,n);function s(o){const l=["npm","print"],u=["yes","no","on","off","it","that","void"],d=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],h={keyword:t.concat(d),literal:e.concat(u),built_in:a.concat(l)},f="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",p=o.inherit(o.TITLE_MODE,{begin:f}),g={className:"subst",begin:/#\{/,end:/\}/,keywords:h},m={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:h},y=[o.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,g,m]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,g,m]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[g,o.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+f},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];g.contains=y;const v={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:h,contains:["self"].concat(y)}]},b={begin:"(#=>|=>|\\|>>|-?->|!->)"},_={variants:[{match:[/class\s+/,f,/\s+extends\s+/,f]},{match:[/class\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:h};return{name:"LiveScript",aliases:["ls"],keywords:h,illegal:/\/\*/,contains:y.concat([o.COMMENT("\\/\\*","\\*\\/"),o.HASH_COMMENT_MODE,b,{className:"function",contains:[p,v],returnBegin:!0,variants:[{begin:"("+f+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+f+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+f+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},_,{begin:f+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return yI=s,yI}var vI,lJ;function JJe(){if(lJ)return vI;lJ=1;function t(e){const r=e.regex,n=/([-a-zA-Z$._][\w$.-]*)/,i={className:"type",begin:/\bi\d+(?=\s|\b)/},a={className:"operator",relevance:0,begin:/=/},s={className:"punctuation",relevance:0,begin:/,/},o={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},l={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},u={className:"variable",variants:[{begin:r.concat(/%/,n)},{begin:/%\d+/},{begin:/#\d+/}]},d={className:"title",variants:[{begin:r.concat(/@/,n)},{begin:/@\d+/},{begin:r.concat(/!/,n)},{begin:r.concat(/!\d+/,n)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[i,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},d,s,a,u,l,o]}}return vI=t,vI}var _I,cJ;function eet(){if(cJ)return _I;cJ=1;function t(e){const n={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},i={className:"number",relevance:0,begin:e.C_NUMBER_RE},a={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},s={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[n,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},i,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},s,a,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return _I=t,_I}var bI,uJ;function tet(){if(uJ)return bI;uJ=1;function t(e){const r="\\[=*\\[",n="\\]=*\\]",i={begin:r,end:n,contains:["self"]},a=[e.COMMENT("--(?!"+r+")","$"),e.COMMENT("--"+r,n,{contains:[i],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:a.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:a}].concat(a)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:r,end:n,contains:[i],relevance:5}])}}return bI=t,bI}var EI,dJ;function ret(){if(dJ)return EI;dJ=1;function t(e){const r={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{m.has(T[0])||w.ignoreMatch()}},{className:"symbol",relevance:0,begin:g}]},v={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},b={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},_={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},E={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},x={className:"brace",relevance:0,begin:/[[\](){}]/},C={className:"message-name",relevance:0,begin:n.concat("::",g)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[r.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),_,E,C,y,v,r.QUOTE_STRING_MODE,p,b,x]}}return SI=e,SI}var TI,fJ;function iet(){if(fJ)return TI;fJ=1;function t(e){const r="('|\\.')+",n={relevance:0,contains:[{begin:r}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:n},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+r,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:n},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:n},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:n},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return TI=t,TI}var xI,pJ;function aet(){if(pJ)return xI;pJ=1;function t(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return xI=t,xI}var CI,gJ;function set(){if(gJ)return CI;gJ=1;function t(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},n,e.C_BLOCK_COMMENT_MODE,i,e.NUMBER_MODE,a,s,{begin:/:-/},{begin:/\.$/}]}}return wI=t,wI}var kI,yJ;function cet(){if(yJ)return kI;yJ=1;function t(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return kI=t,kI}var AI,vJ;function uet(){if(vJ)return AI;vJ=1;function t(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}return AI=t,AI}var RI,_J;function det(){if(_J)return RI;_J=1;function t(e){const r=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],i=/[dualxmsipngr]{0,12}/,a={$pattern:/[\w.]+/,keyword:n.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:a},o={begin:/->\{/,end:/\}/},l={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},u={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[l]},d={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},h=[e.BACKSLASH_ESCAPE,s,u],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(y,v,b="\\1")=>{const _=b==="\\1"?b:r.concat(b,v);return r.concat(r.concat("(?:",y,")"),v,/(?:\\.|[^\\\/])*?/,_,/(?:\\.|[^\\\/])*?/,b,i)},g=(y,v,b)=>r.concat(r.concat("(?:",y,")"),v,/(?:\\.|[^\\\/])*?/,b,i),m=[u,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:h,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},d,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:p("s|tr|y",r.either(...f,{capture:!0}))},{begin:p("s|tr|y","\\(","\\)")},{begin:p("s|tr|y","\\[","\\]")},{begin:p("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:g("(?:m|qr)?",/\//,/\//)},{begin:g("m|qr",r.either(...f,{capture:!0}),/\1/)},{begin:g("m|qr",/\(/,/\)/)},{begin:g("m|qr",/\[/,/\]/)},{begin:g("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l,d]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=m,o.contains=m,{name:"Perl",aliases:["pl","pm"],keywords:a,contains:m}}return RI=t,RI}var NI,bJ;function het(){if(bJ)return NI;bJ=1;function t(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return NI=t,NI}var II,EJ;function fet(){if(EJ)return II;EJ=1;function t(e){const r={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},n={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},i={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),n,i,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,r]}}return II=t,II}var OI,SJ;function pet(){if(SJ)return OI;SJ=1;function t(e){const r={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/\}/,keywords:r},a=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];i.contains=a;const s=e.inherit(e.TITLE_MODE,{begin:n}),o="(\\(.*\\)\\s*)?\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:r,contains:["self"].concat(a)}]};return{name:"MoonScript",aliases:["moon"],keywords:r,illegal:/\/\*/,contains:a.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[s,l]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return OI=t,OI}var DI,TJ;function get(){if(TJ)return DI;TJ=1;function t(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}return DI=t,DI}var LI,xJ;function met(){if(xJ)return LI;xJ=1;function t(e){const r={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},n={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},i={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},a={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),a,i,r,n]}}return LI=t,LI}var MI,CJ;function yet(){if(CJ)return MI;CJ=1;function t(e){const r=e.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:r.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},a={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:a.contains,keywords:{section:"upstream location"}},{className:"section",begin:r.concat(e.UNDERSCORE_IDENT_RE+r.lookahead(/\s+\{/)),relevance:0},{begin:r.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:a}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return MI=t,MI}var PI,wJ;function vet(){if(wJ)return PI;wJ=1;function t(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","concept","const","continue","converter","defer","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}return PI=t,PI}var BI,kJ;function _et(){if(kJ)return BI;kJ=1;function t(e){const r=e.regex,n={keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],literal:["true","false","null"],built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]},i={scope:"built_in",match:r.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map(T=>`builtins\\.${T}`)),relevance:10},a="[A-Za-z_][A-Za-z0-9_'-]*",s={scope:"symbol",match:new RegExp(`<${a}(/${a})*>`)},o="[A-Za-z0-9_\\+\\.-]+",l={scope:"symbol",match:new RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},u=r.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),d={scope:"operator",match:r.concat(u,/(?!-)/),relevance:0},h={scope:"number",match:new RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},f={variants:[{scope:"operator",beforeMatch:/\s/,begin:/-(?!>)/},{begin:[new RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:"number",2:"operator"}},{begin:[u,/-/,/(?!>)/],beginScope:{1:"operator",2:"operator"}}],relevance:0},p={beforeMatch:/(^|\{|;)\s*/,begin:new RegExp(`${a}(\\.${a})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${a}(\\.${a})*(?=\\s*=)`),relevance:.2}]},g={scope:"char.escape",match:/\\\$/},m={scope:"char.escape",match:/''\$/},y={scope:"subst",begin:/\$\{/,end:/\}/,keywords:n},v={scope:"char.escape",match:/'''/},b={scope:"char.escape",match:/\\(?!\$)./},_={scope:"string",variants:[{begin:"''",end:"''",contains:[m,y,v,b]},{begin:'"',end:'"',contains:[g,y,b]}]},E={scope:"params",match:new RegExp(`${a}\\s*:(?=\\s)`)},x=[h,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),i,_,s,l,E,p,f,d];y.contains=x;const C=[{scope:"meta.prompt",match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}];return{name:"Nix",aliases:["nixos"],keywords:n,contains:x.concat(C)}}return BI=t,BI}var FI,AJ;function bet(){if(AJ)return FI;AJ=1;function t(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return FI=t,FI}var $I,RJ;function Eet(){if(RJ)return $I;RJ=1;function t(e){const r=e.regex,n=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],i=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],a=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],s={className:"variable.constant",begin:r.concat(/\$/,r.either(...n))},o={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},l={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},u={className:"variable",begin:/\$+\([\w^.:!-]+\)/},d={className:"params",begin:r.either(...i)},h={className:"keyword",begin:r.concat(/!/,r.either(...a))},f={className:"char.escape",begin:/\$(\\[nrt]|\$)/},p={className:"title.function",begin:/\w+::\w+/},g={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[f,s,o,l,u]},m=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],y=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],v={match:[/Function/,/\s+/,r.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},_={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:m,literal:y},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),_,v,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},g,h,o,l,u,d,p,e.NUMBER_MODE]}}return $I=t,$I}var zI,NJ;function Tet(){if(NJ)return zI;NJ=1;function t(e){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},u={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+u.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:u,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return zI=t,zI}var UI,IJ;function xet(){if(IJ)return UI;IJ=1;function t(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return UI=t,UI}var GI,OJ;function Cet(){if(OJ)return GI;OJ=1;function t(e){const r={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"literal",begin:"false|true|PI|undef"},i={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},o={className:"params",begin:"\\(",end:"\\)",contains:["self",i,a,r,n]},l={begin:"[*!#%]",relevance:0},u={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[o,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,s,a,r,l,u]}}return GI=t,GI}var qI,DJ;function wet(){if(DJ)return qI;DJ=1;function t(e){const r={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},n=e.COMMENT(/\{/,/\}/,{relevance:0}),i=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),a={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},s={className:"string",begin:"(#\\d+)+"},o={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:r,contains:[a,s]},n,i]},l={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:r,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[n,i,e.C_LINE_COMMENT_MODE,a,s,e.NUMBER_MODE,o,l]}}return qI=t,qI}var YI,LJ;function ket(){if(LJ)return YI;LJ=1;function t(e){const r=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[r]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}return YI=t,YI}var HI,MJ;function Aet(){if(MJ)return HI;MJ=1;function t(e){const r={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},n={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,r,n]}}return HI=t,HI}var VI,PJ;function Ret(){if(PJ)return VI;PJ=1;function t(e){const r=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",i="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",a="<<\\s*"+n+"\\s*>>",s="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",o="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",l="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",u="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",d=u.trim().split(" ").map(function(y){return y.split("|")[0]}).join("|"),h="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",f="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",p="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",m="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(y){return y.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:s+l+o,built_in:h+f+p},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+m+")\\s*\\("},{begin:"\\.("+d+")\\b"},{begin:"\\b("+d+")\\s+PATH\\b",keywords:{keyword:"PATH",type:u.replace("PATH ","")}},{className:"type",begin:"\\b("+d+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:i,end:i,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:a,relevance:10}]}}return VI=t,VI}var WI,BJ;function Net(){if(BJ)return WI;BJ=1;function t(e){const r=e.regex,n=/(?![A-Za-z0-9])(?![$])/,i=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),a=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),s=r.concat(/[A-Z]+/,n),o={scope:"variable",match:"\\$+"+i},l={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},u={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},d=e.inherit(e.APOS_STRING_MODE,{illegal:null}),h=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(u)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(u),"on:begin":(I,D)=>{D.data._beginMatch=I[1]||I[2]},"on:end":(I,D)=>{D.data._beginMatch!==I[1]&&D.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),g=`[ -]`,m={scope:"string",variants:[h,d,f,p]},y={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},v=["false","null","true"],b=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],_=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],x={keyword:b,literal:(I=>{const D=[];return I.forEach(L=>{D.push(L),L.toLowerCase()===L?D.push(L.toUpperCase()):D.push(L.toLowerCase())}),D})(v),built_in:_},C=I=>I.map(D=>D.replace(/\|\d+$/,"")),T={variants:[{match:[/new/,r.concat(g,"+"),r.concat("(?!",C(_).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},w=r.concat(i,"\\b(?!\\()"),N={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,r.concat(/::/,r.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[a,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},O={scope:"attr",match:r.concat(i,r.lookahead(":"),r.lookahead(/(?!::)/))},M={relevance:0,begin:/\(/,end:/\)/,keywords:x,contains:[O,o,N,e.C_BLOCK_COMMENT_MODE,m,y,T]},$={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",C(b).join("\\b|"),"|",C(_).join("\\b|"),"\\b)"),i,r.concat(g,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[M]};M.contains.push($);const F=[O,N,e.C_BLOCK_COMMENT_MODE,m,y,T],A={begin:r.concat(/#\[\s*\\?/,r.either(a,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:v,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:v,keyword:["new","array"]},contains:["self",...F]},...F,{scope:"meta",variants:[{match:a},{match:s}]}]};return{case_insensitive:!1,keywords:x,contains:[A,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},l,{scope:"variable.language",match:/\$this\b/},o,$,N,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},T,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:x,contains:["self",A,o,N,e.C_BLOCK_COMMENT_MODE,m,y]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},m,y]}}return WI=t,WI}var KI,FJ;function Iet(){if(FJ)return KI;FJ=1;function t(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return KI=t,KI}var XI,$J;function Oet(){if($J)return XI;$J=1;function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return XI=t,XI}var jI,zJ;function Det(){if(zJ)return jI;zJ=1;function t(e){const r={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},n={className:"string",begin:'"""',end:'"""',relevance:10},i={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},a={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},s={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},o={begin:e.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:r,contains:[s,n,i,a,o,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return jI=t,jI}var QI,UJ;function Let(){if(UJ)return QI;UJ=1;function t(e){const r=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",i="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",a={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},s=/\w[\w\d]*((-)[\w\d]+)*/,o={begin:"`[\\s\\S]",relevance:0},l={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},u={className:"literal",begin:/\$(null|true|false)\b/},d={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,l,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},h={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},f={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},p=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[f]}),g={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},m={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},y={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:s,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[l]}]},v={begin:/using\s/,end:/$/,returnBegin:!0,contains:[d,h,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},b={variants:[{className:"operator",begin:"(".concat(i,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},_={className:"selector-tag",begin:/@\B/,relevance:0},E={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(a.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},x=[E,p,o,e.NUMBER_MODE,d,h,g,l,u,_],C={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",x,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return E.contains.unshift(C),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:a,contains:x.concat(m,y,v,b,C)}}return QI=t,QI}var ZI,GJ;function Met(){if(GJ)return ZI;GJ=1;function t(e){const r=e.regex,n=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],i=e.IDENT_RE,a={variants:[{match:r.concat(r.either(...n),r.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:r.concat(/\b(?!for|if|while)/,i,r.lookahead(/\s*\(/)),className:"title.function"}]},s={match:[/new\s+/,i],className:{1:"keyword",2:"class.title"}},o={relevance:0,match:[/\./,i],className:{2:"property"}},l={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,i]},{match:[/class/,/\s+/,i]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},u=["boolean","byte","char","color","double","float","int","long","short"],d=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...n,...d],type:u},contains:[l,s,a,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return ZI=t,ZI}var JI,qJ;function Pet(){if(qJ)return JI;qJ=1;function t(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return JI=t,JI}var eO,YJ;function Bet(){if(YJ)return eO;YJ=1;function t(e){const r={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},n={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},i={begin:/\(/,end:/\)/,relevance:0},a={begin:/\[/,end:/\]/},s={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},l={className:"string",begin:/0'(\\'|.)/},u={className:"string",begin:/0'\\s/},h=[r,n,i,{begin:/:-/},a,s,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,l,u,e.C_NUMBER_MODE];return i.contains=h,a.contains=h,{name:"Prolog",contains:h.concat([{begin:/\.$/}])}}return eO=t,eO}var tO,HJ;function Fet(){if(HJ)return tO;HJ=1;function t(e){const r="[ \\t\\f]*",n="[ \\t\\f]+",i=r+"[:=]"+r,a=n,s="("+i+"|"+a+")",o="([^\\\\:= \\t\\f\\n]|\\\\.)+",l={end:s,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:o+i},{begin:o+a}],contains:[{className:"attr",begin:o,endsParent:!0}],starts:l},{className:"attr",begin:o+r+"$"}]}}return tO=t,tO}var rO,VJ;function $et(){if(VJ)return rO;VJ=1;function t(e){const r=["package","import","option","optional","required","repeated","group","oneof"],n=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],i={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:r,type:n,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return rO=t,rO}var nO,WJ;function zet(){if(WJ)return nO;WJ=1;function t(e){const r={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},n=e.COMMENT("#","$"),i="([A-Za-z_]|::)(\\w|::)*",a=e.inherit(e.TITLE_MODE,{begin:i}),s={className:"variable",begin:"\\$"+i},o={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[n,s,o,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[a,n]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:r,relevance:0,contains:[o,n,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},s]}],relevance:0}]}}return nO=t,nO}var iO,KJ;function Uet(){if(KJ)return iO;KJ=1;function t(e){const r={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},n={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},r,n]}}return iO=t,iO}var aO,XJ;function Get(){if(XJ)return aO;XJ=1;function t(e){const r=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],l={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},d={className:"subst",begin:/\{/,end:/\}/,keywords:l,illegal:/#/},h={begin:/\{\{/,relevance:0},f={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u,h,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u,h,d]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,h,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,h,d]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",g=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,m=`\\b|${i.join("|")}`,y={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${g}))[eE][+-]?(${p})[jJ]?(?=${m})`},{begin:`(${g})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${p})[jJ](?=${m})`}]},v={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:l,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",u,y,f,e.HASH_COMMENT_MODE]}]};return d.contains=[f,y,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[u,y,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,v,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[b]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[y,b,f]}]}}return aO=t,aO}var sO,jJ;function qet(){if(jJ)return sO;jJ=1;function t(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return sO=t,sO}var oO,QJ;function Yet(){if(QJ)return oO;QJ=1;function t(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return oO=t,oO}var lO,ZJ;function Het(){if(ZJ)return lO;ZJ=1;function t(e){const r=e.regex,n={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},i="[a-zA-Z_][a-zA-Z0-9\\._]*",a={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},s={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:i,returnEnd:!1}},l={begin:i+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:i,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},u={begin:r.concat(i,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:i})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:n,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},s,a,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},o,l,u],illegal:/#/}}return lO=t,lO}var cO,JJ;function Vet(){if(JJ)return cO;JJ=1;function t(e){const r=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),a=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[a,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[s,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:a},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return cO=t,cO}var uO,eee;function Wet(){if(eee)return uO;eee=1;function t(e){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}return uO=t,uO}var dO,tee;function Ket(){if(tee)return dO;tee=1;function t(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"/}],illegal:/./},e.COMMENT("^#","$"),l,u,o,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[l,u,o,{className:"literal",begin:"\\b("+a.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+i.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+s.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return fO=t,fO}var pO,iee;function Qet(){if(iee)return pO;iee=1;function t(e){const r=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],n=["matrix","float","color","point","normal","vector"],i=["while","for","if","do","return","else","break","extern","continue"],a={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:i,built_in:r,type:n},illegal:""},s]}}return mO=t,mO}var yO,oee;function ett(){if(oee)return yO;oee=1;function t(e){const r=e.regex,n=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],i=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],a=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:n},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+r.either(...a)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:r.either(...i)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}return yO=t,yO}var vO,lee;function ttt(){if(lee)return vO;lee=1;function t(e){const r=e.regex,n={className:"meta",begin:"@[A-Za-z]+"},i={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},a={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,i]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[i],relevance:10}]},s={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},o={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},l={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o]},u={className:"function",beginKeywords:"def",end:r.lookahead(/[:={\[(\n;]/),contains:[o]},d={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},h={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},f=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],p={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,s,u,l,e.C_NUMBER_MODE,d,h,...f,p,n]}}return vO=t,vO}var _O,cee;function rtt(){if(cee)return _O;cee=1;function t(e){const r="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(-|\\+)?\\d+([./]\\d+)?",i=n+"[+\\-]"+n+"i",a={$pattern:r,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},s={className:"literal",begin:"(#t|#f|#\\\\"+r+"|#\\\\.)"},o={className:"number",variants:[{begin:n,relevance:0},{begin:i,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},l=e.QUOTE_STRING_MODE,u=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],d={begin:r,relevance:0},h={className:"symbol",begin:"'"+r},f={endsWithParent:!0,relevance:0},p={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",s,l,o,d,h]}]},g={className:"name",relevance:0,begin:r,keywords:a},y={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[g,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[d]}]},g,f]};return f.contains=[s,o,l,d,h,p,y].concat(u),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),o,l,h,p,y].concat(u)}}return _O=t,_O}var bO,uee;function ntt(){if(uee)return bO;uee=1;function t(e){const r=[e.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:r},e.COMMENT("//","$")].concat(r)}}return bO=t,bO}var EO,dee;function itt(){if(dee)return EO;dee=1;const t=u=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:u.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:u.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function l(u){const d=t(u),h=s,f=a,p="@[a-z-]+",g="and or not only",y={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,d.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+h.join("|")+")"},y,{begin:/\(/,end:/\)/,contains:[d.CSS_NUMBER_MODE]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[d.BLOCK_COMMENT,y,d.HEXCOLOR,d.CSS_NUMBER_MODE,u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,d.IMPORTANT,d.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:p,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:g,attribute:i.join(" ")},contains:[{begin:p,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},y,u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,d.HEXCOLOR,d.CSS_NUMBER_MODE]},d.FUNCTION_DISPATCH]}}return EO=l,EO}var SO,hee;function att(){if(hee)return SO;hee=1;function t(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return SO=t,SO}var TO,fee;function stt(){if(fee)return TO;fee=1;function t(e){const r=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],n=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],i=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+i.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+r.join("|")+")\\s"},{begin:"\\s("+r.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+n.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;: -]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return TO=t,TO}var xO,pee;function ott(){if(pee)return xO;pee=1;function t(e){const r="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},i={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},e.C_NUMBER_MODE,i,n,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,i]}]}}return xO=t,xO}var CO,gee;function ltt(){if(gee)return CO;gee=1;function t(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return CO=t,CO}var wO,mee;function ctt(){if(mee)return wO;mee=1;function t(e){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},n={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},i={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},a=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],s=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],o=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:a,built_in:o,literal:s},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,r,n,i,l],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return wO=t,wO}var kO,yee;function utt(){if(yee)return kO;yee=1;function t(e){const r=e.regex,n=e.COMMENT("--","$"),i={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},a={begin:/"/,end:/"/,contains:[{match:/""/}]},s=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],l=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],u=["add","asc","collation","desc","final","first","last","view"],d=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],h=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],f=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],p=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],g=h,m=[...d,...u].filter(C=>!h.includes(C)),y={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},v={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},b={match:r.concat(/\b/,r.either(...g),/\s*\(/),relevance:0,keywords:{built_in:g}};function _(C){return r.concat(/\b/,r.either(...C.map(T=>T.replace(/\s+/,"\\s+"))),/\b/)}const E={scope:"keyword",match:_(p),relevance:0};function x(C,{exceptions:T,when:w}={}){const N=w;return T=T||[],C.map(O=>O.match(/\|\d+$/)||T.includes(O)?O:N(O)?`${O}|0`:O)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(m,{when:C=>C.length<3}),literal:s,type:l,built_in:f},contains:[{scope:"type",match:_(o)},E,b,y,i,a,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,v]}}return kO=t,kO}var AO,vee;function dtt(){if(vee)return AO;vee=1;function t(e){const r=e.regex,n=["functions","model","data","parameters","quantities","transformed","generated"],i=["for","in","if","else","while","break","continue","return"],a=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],s=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],o=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],l=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),u={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},d=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:n,type:a,keyword:i,built_in:s},contains:[e.C_LINE_COMMENT_MODE,u,e.HASH_COMMENT_MODE,l,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:r.concat(/[<,]\s*/,r.either(...d),/\s*=/),keywords:d},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,r.either(...o),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:o,begin:r.concat(/\w*/,r.either(...o),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,r.concat(r.either(...o),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+r.either(...o)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:r.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}return AO=t,AO}var RO,_ee;function htt(){if(_ee)return RO;_ee=1;function t(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r +`,1;if(vs>1e5&&vs>fr.index*3)throw new Error("potential infinite loop, way more iterations than matches");return fn+=Er,Er.length}const no=pt(Mt);if(!no)throw Je(Et.replace("{}",Mt)),new Error('Unknown language: "'+Mt+'"');const b2=G(no);let cd="",vr=xt||b2;const nl={},yn=new dt.__emitter(dt);Ec();let fn="",io=0,ys=0,vs=0,ud=!1;try{if(no.__emitTokens)no.__emitTokens(Xt,yn);else{for(vr.matcher.considerAll();;){vs++,ud?ud=!1:vr.matcher.considerAll(),vr.matcher.lastIndex=ys;const rr=vr.matcher.exec(Xt);if(!rr)break;const fr=Xt.substring(ys,rr.index),Er=ld(fr,rr);ys=rr.index+Er}ld(Xt.substring(ys))}return yn.finalize(),cd=yn.toHTML(),{language:Mt,value:cd,relevance:io,illegal:!1,_emitter:yn,_top:vr}}catch(rr){if(rr.message&&rr.message.includes("Illegal"))return{language:Mt,value:Fe(Xt),illegal:!0,relevance:0,_illegalBy:{message:rr.message,index:ys,context:Xt.slice(ys-100,ys+100),mode:rr.mode,resultSoFar:cd},_emitter:yn};if(gt)return{language:Mt,value:Fe(Xt),illegal:!1,relevance:0,errorRaised:rr,_emitter:yn,_top:vr};throw rr}}function St(Mt){const Xt={value:Fe(Mt),illegal:!1,relevance:0,_top:et,_emitter:new dt.__emitter(dt)};return Xt._emitter.addText(Mt),Xt}function Tt(Mt,Xt){Xt=Xt||dt.languages||Object.keys(le);const kt=St(Mt),xt=Xt.filter(pt).filter(Zt).map(qn=>It(qn,Mt,!1));xt.unshift(kt);const $t=xt.sort((qn,Ue)=>{if(qn.relevance!==Ue.relevance)return Ue.relevance-qn.relevance;if(qn.language&&Ue.language){if(pt(qn.language).supersetOf===Ue.language)return 1;if(pt(Ue.language).supersetOf===qn.language)return-1}return 0}),[wt,kr]=$t,$e=wt;return $e.secondBest=kr,$e}function Nt(Mt,Xt,kt){const xt=Xt&&Be[Xt]||kt;Mt.classList.add("hljs"),Mt.classList.add(`language-${xt}`)}function Hr(Mt){let Xt=null;const kt=mt(Mt);if(ft(kt))return;if(Gn("before:highlightElement",{el:Mt,language:kt}),Mt.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Mt);return}if(Mt.children.length>0&&(dt.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Mt)),dt.throwUnescapedHTML))throw new ue("One of your code blocks includes unescaped HTML.",Mt.innerHTML);Xt=Mt;const xt=Xt.textContent,$t=kt?fe(xt,{language:kt,ignoreIllegals:!0}):Tt(xt);Mt.innerHTML=$t.value,Mt.dataset.highlighted="yes",Nt(Mt,kt,$t.language),Mt.result={language:$t.language,re:$t.relevance,relevance:$t.relevance},$t.secondBest&&(Mt.secondBest={language:$t.secondBest.language,relevance:$t.secondBest.relevance}),Gn("after:highlightElement",{el:Mt,result:$t,text:xt})}function Pe(Mt){dt=me(dt,Mt)}const yt=()=>{Qt(),ct("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function bt(){Qt(),ct("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ot=!1;function Qt(){function Mt(){Qt()}if(document.readyState==="loading"){Ot||window.addEventListener("DOMContentLoaded",Mt,!1),Ot=!0;return}document.querySelectorAll(dt.cssSelector).forEach(Hr)}function br(Mt,Xt){let kt=null;try{kt=Xt(he)}catch(xt){if(Je("Language definition for '{}' could not be registered.".replace("{}",Mt)),gt)Je(xt);else throw xt;kt=et}kt.name||(kt.name=Mt),le[Mt]=kt,kt.rawDefinition=Xt.bind(null,he),kt.aliases&&Dt(kt.aliases,{languageName:Mt})}function Ct(Mt){delete le[Mt];for(const Xt of Object.keys(Be))Be[Xt]===Mt&&delete Be[Xt]}function Ye(){return Object.keys(le)}function pt(Mt){return Mt=(Mt||"").toLowerCase(),le[Mt]||le[Be[Mt]]}function Dt(Mt,{languageName:Xt}){typeof Mt=="string"&&(Mt=[Mt]),Mt.forEach(kt=>{Be[kt.toLowerCase()]=Xt})}function Zt(Mt){const Xt=pt(Mt);return Xt&&!Xt.disableAutodetect}function wr(Mt){Mt["before:highlightBlock"]&&!Mt["before:highlightElement"]&&(Mt["before:highlightElement"]=Xt=>{Mt["before:highlightBlock"](Object.assign({block:Xt.el},Xt))}),Mt["after:highlightBlock"]&&!Mt["after:highlightElement"]&&(Mt["after:highlightElement"]=Xt=>{Mt["after:highlightBlock"](Object.assign({block:Xt.el},Xt))})}function Vr(Mt){wr(Mt),ve.push(Mt)}function Kr(Mt){const Xt=ve.indexOf(Mt);Xt!==-1&&ve.splice(Xt,1)}function Gn(Mt,Xt){const kt=Mt;ve.forEach(function(xt){xt[kt]&&xt[kt](Xt)})}function ji(Mt){return ct("10.7.0","highlightBlock will be removed entirely in v12.0"),ct("10.7.0","Please use highlightElement now."),Hr(Mt)}Object.assign(he,{highlight:fe,highlightAuto:Tt,highlightAll:Qt,highlightElement:Hr,highlightBlock:ji,configure:Pe,initHighlighting:yt,initHighlightingOnLoad:bt,registerLanguage:br,unregisterLanguage:Ct,listLanguages:Ye,getLanguage:pt,registerAliases:Dt,autoDetection:Zt,inherit:me,addPlugin:Vr,removePlugin:Kr}),he.debugMode=function(){gt=!1},he.safeMode=function(){gt=!0},he.versionString=V,he.regex={concat:m,lookahead:f,either:v,optional:g,anyNumberOfTimes:p};for(const Mt in ce)typeof ce[Mt]=="object"&&t(ce[Mt]);return Object.assign(he,ce),he},Ie=Me({});return Ie.newInstance=()=>Me({}),xR=Ie,Ie.HighlightJS=Ie,Ie.default=Ie,xR}var CR,gQ;function oZe(){if(gQ)return CR;gQ=1;function t(e){const r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",a="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",l="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",p="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",z="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",Y="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",Q="null истина ложь неопределено",H=e.inherit(e.NUMBER_MODE),J={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},Z={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},pe={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},re=e.inherit(e.C_LINE_COMMENT_MODE),ce={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:r,keyword:a+l},contains:[re]},ae={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},se={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:r,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:r,keyword:"знач",literal:Q},contains:[H,J,Z]},re]},e.inherit(e.TITLE_MODE,{begin:r})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:r,keyword:a,built_in:p,class:z,type:Y,literal:Q},contains:[ce,se,re,ae,H,J,Z,pe]}}return CR=t,CR}var wR,mQ;function lZe(){if(mQ)return wR;mQ=1;function t(e){const r=e.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,i=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],a=e.COMMENT(/;/,/$/),s={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},o={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},l={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},u={scope:"symbol",match:/%[si](?=".*")/},d={scope:"attribute",match:r.concat(n,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:i,contains:[{scope:"operator",match:/=\/?/},d,a,s,o,l,u,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return wR=t,wR}var kR,yQ;function cZe(){if(yQ)return kR;yQ=1;function t(e){const r=e.regex,n=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:r.concat(/"/,r.either(...n)),end:/"/,keywords:n,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return kR=t,kR}var AR,vQ;function uZe(){if(vQ)return AR;vQ=1;function t(e){const r=e.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,i=r.concat(n,r.concat("(\\.",n,")*")),a=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,s={className:"rest_arg",begin:/[.]{3}/,end:n,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]},{begin:r.concat(/:\s*/,a)}]},e.METHOD_GUARD],illegal:/#/}}return AR=t,AR}var RR,_Q;function dZe(){if(_Q)return RR;_Q=1;function t(e){const r="\\d(_|\\d)*",n="[eE][-+]?"+r,i=r+"(\\."+r+")?("+n+")?",a="\\w+",o="\\b("+(r+"#"+a+"(\\."+a+")?#("+n+")?")+"|"+i+")",l="[A-Za-z](_?[A-Za-z0-9.])*",u=`[]\\{\\}%#'"`,d=e.COMMENT("--","$"),h={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:u,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:l,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[d,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:o,relevance:0},{className:"symbol",begin:"'"+l},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:u},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[d,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:u},h,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:u}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:u},h]}}return RR=t,RR}var NR,bQ;function hZe(){if(bQ)return NR;bQ=1;function t(e){const r={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},n={className:"symbol",begin:"[a-zA-Z0-9_]+@"},i={className:"keyword",begin:"<",end:">",contains:[r,n]};return r.contains=[i],n.contains=[i],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},r,n,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return NR=t,NR}var IR,EQ;function fZe(){if(EQ)return IR;EQ=1;function t(e){const r={className:"number",begin:/[$%]\d+/},n={className:"number",begin:/\b\d+/},i={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},a={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[i,a,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",r]},i,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return IR=t,IR}var OR,SQ;function pZe(){if(SQ)return OR;SQ=1;function t(e){const r=e.regex,n=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),i={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,n]},a=e.COMMENT(/--/,/$/),s=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",a]}),o=[a,s,e.HASH_COMMENT_MODE],l=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],u=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[n,e.C_NUMBER_MODE,{className:"built_in",begin:r.concat(/\b/,r.either(...u),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:r.concat(/\b/,r.either(...l),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,i]},...o],illegal:/\/\/|->|=>|\[\[/}}return OR=t,OR}var DR,TQ;function gZe(){if(TQ)return DR;TQ=1;function t(e){const r=e.regex,n="[A-Za-z_][0-9A-Za-z_]*",i={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","of","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","DistanceToCoordinate","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureInFilter","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","FilterBySubtypeCode","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","KnowledgeGraphByPortalItem","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","MeasureToCoordinate","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","PointToCoordinate","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","QueryGraph","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeFilename","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},a=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","graph","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","userInput","value","variables","view"],s={className:"symbol",begin:"\\$"+r.either(...a)},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},l={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},u={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,l]};l.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,o,e.REGEXP_MODE];const d=l.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:i,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:n+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:n,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+n+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:d}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:n}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:d}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return DR=t,DR}var LR,xQ;function mZe(){if(xQ)return LR;xQ=1;function t(r){const n=r.regex,i=r.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",l="(?!struct)("+a+"|"+n.optional(s)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[r.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},r.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},f={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},r.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},i,r.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(s)+r.IDENT_RE,relevance:0},m=n.optional(s)+r.IDENT_RE+"\\s*\\(",y=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],v=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],_=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:v,keyword:y,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},T={className:"function.dispatch",relevance:0,keywords:{_hint:_},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,r.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},w=[T,p,u,i,r.C_BLOCK_COMMENT_MODE,f,h],N={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:w.concat([{begin:/\(/,end:/\)/,keywords:C,contains:w.concat(["self"]),relevance:0}]),relevance:0},O={className:"function",begin:"("+l+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:C,relevance:0},{begin:m,returnBegin:!0,contains:[g],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,f]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[i,r.C_BLOCK_COMMENT_MODE,h,f,u,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",i,r.C_BLOCK_COMMENT_MODE,h,f,u]}]},u,i,r.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"",keywords:C,contains:["self",u]},{begin:r.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(r){const n={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},i=t(r),a=i.keywords;return a.type=[...a.type,...n.type],a.literal=[...a.literal,...n.literal],a.built_in=[...a.built_in,...n.built_in],a._hints=n._hints,i.name="Arduino",i.aliases=["ino"],i.supersetOf="cpp",i}return LR=e,LR}var MR,CQ;function yZe(){if(CQ)return MR;CQ=1;function t(e){const r={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},r,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return MR=t,MR}var PR,wQ;function vZe(){if(wQ)return PR;wQ=1;function t(e){const r=e.regex,n=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(s,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),u=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[s,u,l,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[s,o,u,l]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:d}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return PR=t,PR}var BR,kQ;function _Ze(){if(kQ)return BR;kQ=1;function t(e){const r=e.regex,n={begin:"^'{3,}[ \\t]*$",relevance:10},i=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],a=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:r.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],s=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:r.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],o={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},l={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},l,o,...i,...a,...s,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},n,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return BR=t,BR}var FR,AQ;function bZe(){if(AQ)return FR;AQ=1;function t(e){const r=e.regex,n=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],i=["get","set","args","call"];return{name:"AspectJ",keywords:n,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:n.concat(i),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:r.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:n,illegal:/["\[\]]/,contains:[{begin:r.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:n.concat(i),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:n,excludeEnd:!0,contains:[{begin:r.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return FR=t,FR}var $R,RQ;function EZe(){if(RQ)return $R;RQ=1;function t(e){const r={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[r,e.inherit(e.QUOTE_STRING_MODE,{contains:[r]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return $R=t,$R}var zR,NQ;function SZe(){if(NQ)return zR;NQ=1;function t(e){const r="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",n=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],i="True False And Null Not Or Default",a="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",s={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},o={begin:"\\$[A-z0-9_]+"},l={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},u={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},d={className:"meta",begin:"#",end:"$",keywords:{keyword:n},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[l,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},l,s]},h={className:"symbol",begin:"@[A-z0-9_]+"},f={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[o,l,u]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:r,built_in:a,literal:i},contains:[s,o,l,u,d,h,f]}}return zR=t,zR}var UR,IQ;function TZe(){if(IQ)return UR;IQ=1;function t(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return UR=t,UR}var GR,OQ;function xZe(){if(OQ)return GR;OQ=1;function t(e){const r={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},n="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:n},contains:[r,i,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return GR=t,GR}var qR,DQ;function CZe(){if(DQ)return qR;DQ=1;function t(e){const r=e.UNDERSCORE_IDENT_RE,s={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},o={variants:[{match:[/(class|interface)\s+/,r,/\s+(extends|implements)\s+/,r]},{match:[/class\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s};return{name:"X++",aliases:["x++"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},o]}}return qR=t,qR}var YR,LQ;function wZe(){if(LQ)return YR;LQ=1;function t(e){const r=e.regex,n={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,a]};a.contains.push(l);const u={match:/\\"/},d={className:"string",begin:/'/,end:/'/},h={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],g=e.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),m={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},y=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],v=["true","false"],b={match:/(\/[a-z._-]+)+/},_=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],E=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],x=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],C=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:y,literal:v,built_in:[..._,...E,"set","shopt",...x,...C]},contains:[g,e.SHEBANG(),m,f,s,o,b,l,u,d,h,n]}}return YR=t,YR}var HR,MQ;function kZe(){if(MQ)return HR;MQ=1;function t(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[{scope:"string",begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return HR=t,HR}var VR,PQ;function AZe(){if(PQ)return VR;PQ=1;function t(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return VR=t,VR}var WR,BQ;function RZe(){if(BQ)return WR;BQ=1;function t(e){const r={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[r]},r]}}return WR=t,WR}var KR,FQ;function NZe(){if(FQ)return KR;FQ=1;function t(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="("+i+"|"+r.optional(a)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:r.optional(a)+e.IDENT_RE,relevance:0},g=r.optional(a)+e.IDENT_RE+"\\s*\\(",v={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},b=[f,l,n,e.C_BLOCK_COMMENT_MODE,h,d],_={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:v,contains:b.concat([{begin:/\(/,end:/\)/,keywords:v,contains:b.concat(["self"]),relevance:0}]),relevance:0},E={begin:"("+o+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:v,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:v,relevance:0},{begin:g,returnBegin:!0,contains:[e.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,h,l,{begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,d,h,l]}]},l,n,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C",aliases:["h"],keywords:v,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:d,keywords:v}}}return KR=t,KR}var XR,$Q;function IZe(){if($Q)return XR;$Q=1;function t(e){const r=e.regex,n=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],i="false true",a=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"string",begin:/(#\d+)+/},l={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},u={className:"string",begin:'"',end:'"'},d={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[s,o,e.NUMBER_MODE]},...a]},h=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],f={match:[/OBJECT/,/\s+/,r.either(...h),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:n,literal:i},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},s,o,l,u,e.NUMBER_MODE,f,d]}}return XR=t,XR}var jR,zQ;function OZe(){if(zQ)return jR;zQ=1;function t(e){const r=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],n=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],i=["true","false"],a={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:r,type:n,literal:i},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},a]}}return jR=t,jR}var QR,UQ;function DZe(){if(UQ)return QR;UQ=1;function t(e){const r=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],n=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],i=["doc","by","license","see","throws","tagged"],a={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:r,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[a]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return a.contains=s,{name:"Ceylon",keywords:{keyword:r.concat(n),meta:i},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(s)}}return QR=t,QR}var ZR,GQ;function LZe(){if(GQ)return ZR;GQ=1;function t(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return ZR=t,ZR}var JR,qQ;function MZe(){if(qQ)return JR;qQ=1;function t(e){const r="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+r+"]["+r+"0-9/;:$#]*",i="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",a={$pattern:n,built_in:i+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},s={begin:n,relevance:0},o={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},l={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},u={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),h={scope:"punctuation",match:/,/,relevance:0},f=e.COMMENT(";","$",{relevance:0}),p={className:"literal",begin:/\b(true|false|nil)\b/},g={begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},m={className:"symbol",begin:"[:]{1,2}"+n},y={begin:"\\(",end:"\\)"},v={endsWithParent:!0,relevance:0},b={keywords:a,className:"name",begin:n,relevance:0,starts:v},_=[h,y,l,u,d,f,m,g,o,p,s],E={beginKeywords:i,keywords:{$pattern:n,keyword:i},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(_)};return y.contains=[E,b,v],v.contains=_,g.contains=_,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[h,y,l,u,d,f,m,g,o,p]}}return JR=t,JR}var eN,YQ;function PZe(){if(YQ)return eN;YQ=1;function t(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return eN=t,eN}var tN,HQ;function BZe(){if(HQ)return tN;HQ=1;function t(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return tN=t,tN}var rN,VQ;function FZe(){if(VQ)return rN;VQ=1;const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],n=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=[].concat(i,r,n);function s(o){const l=["npm","print"],u=["yes","no","on","off"],d=["then","unless","until","loop","by","when","and","or","is","isnt","not"],h=["var","const","let","function","static"],f=x=>C=>!x.includes(C),p={keyword:t.concat(d).filter(f(h)),literal:e.concat(u),built_in:a.concat(l)},g="[A-Za-z$_][0-9A-Za-z$_]*",m={className:"subst",begin:/#\{/,end:/\}/,keywords:p},y=[o.BINARY_NUMBER_MODE,o.inherit(o.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,m]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,m]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[m,o.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+g},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];m.contains=y;const v=o.inherit(o.TITLE_MODE,{begin:g}),b="(\\(.*\\)\\s*)?\\B[-=]>",_={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:p,contains:["self"].concat(y)}]},E={variants:[{match:[/class\s+/,g,/\s+extends\s+/,g]},{match:[/class\s+/,g]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:p};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:p,illegal:/\/\*/,contains:[...y,o.COMMENT("###","###"),o.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+g+"\\s*=\\s*"+b,end:"[-=]>",returnBegin:!0,contains:[v,_]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:b,end:"[-=]>",returnBegin:!0,contains:[_]}]},E,{begin:g+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return rN=s,rN}var nN,WQ;function $Ze(){if(WQ)return nN;WQ=1;function t(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return nN=t,nN}var iN,KQ;function zZe(){if(KQ)return iN;KQ=1;function t(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}return iN=t,iN}var aN,XQ;function UZe(){if(XQ)return aN;XQ=1;function t(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="(?!struct)("+i+"|"+r.optional(a)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:r.optional(a)+e.IDENT_RE,relevance:0},g=r.optional(a)+e.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],y=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],v=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],x={type:y,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:v},C={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:r.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},T=[C,f,l,n,e.C_BLOCK_COMMENT_MODE,h,d],w={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:T.concat([{begin:/\(/,end:/\)/,keywords:x,contains:T.concat(["self"]),relevance:0}]),relevance:0},N={className:"function",begin:"("+o+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:x,relevance:0},{begin:g,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,h]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,h,l,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,d,h,l]}]},l,n,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:x,illegal:"",keywords:x,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:x},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return aN=t,aN}var sN,jQ;function GZe(){if(jQ)return sN;jQ=1;function t(e){const r="primitive rsc_template",n="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:r,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+n.split(" ").join("|")+")\\s+",keywords:n,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}return sN=t,sN}var oN,QQ;function qZe(){if(QQ)return oN;QQ=1;function t(e){const r="(_?[ui](8|16|32|64|128))?",n="(_?f(32|64))?",i="[a-zA-Z_]\\w*[!?=]?",a="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",s="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",o={$pattern:i,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},d={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function h(b,_){const E=[{begin:b,end:_}];return E[0].contains=E,E}const f={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:h("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},p={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%q<",end:">",contains:h("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},g={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},m={className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"%r\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%r<",end:">",contains:h("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},y={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},v=[d,f,p,m,g,y,u,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[f,{begin:a}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+n+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+r}],relevance:0}];return l.contains=v,d.contains=v.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:v}}return oN=t,oN}var lN,ZQ;function YZe(){if(ZQ)return lN;ZQ=1;function t(e){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],a=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:a.concat(s),built_in:r,literal:i},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},h={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},f=e.inherit(h,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:o},g=e.inherit(p,{illegal:/\n/}),m={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,g]},y={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},v=e.inherit(y,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]});p.contains=[y,m,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],g.contains=[v,m,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const b={variants:[d,y,m,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},_={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},E=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",x={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},b,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+E+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,_],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[b,u,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},x]}}return lN=t,lN}var cN,JQ;function HZe(){if(JQ)return cN;JQ=1;function t(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return cN=t,cN}var uN,eZ;function VZe(){if(eZ)return uN;eZ=1;const t=u=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:u.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:u.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function l(u){const d=u.regex,h=t(u),f={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},p="and or not only",g=/@-?\w[\w]*(-\w+)*/,m="[a-zA-Z-][a-zA-Z0-9_-]*",y=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[h.BLOCK_COMMENT,f,h.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+m,relevance:0},h.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+a.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},h.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[h.BLOCK_COMMENT,h.HEXCOLOR,h.IMPORTANT,h.CSS_NUMBER_MODE,...y,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...y,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},h.FUNCTION_DISPATCH]},{begin:d.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:g},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:p,attribute:i.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...y,h.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b"}]}}return uN=l,uN}var dN,tZ;function WZe(){if(tZ)return dN;tZ=1;function t(e){const r={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},n="(0|[1-9][\\d_]*)",i="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",a="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+s,l="([eE][+-]?"+i+")",u="("+i+"(\\.\\d*|"+l+")|\\d+\\."+i+"|\\."+n+l+"?)",d="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+i+")",h="("+n+"|"+a+"|"+o+")",f="("+d+"|"+u+")",p=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,g={className:"number",begin:"\\b"+h+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},m={className:"number",begin:"\\b("+f+"([fF]|L|i|[fF]i|Li)?|"+h+"(i|[fF]i|Li))",relevance:0},y={className:"string",begin:"'("+p+"|.)",end:"'",illegal:"."},b={className:"string",begin:'"',contains:[{begin:p,relevance:0}],end:'"[cwd]?'},_={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},E={className:"string",begin:"`",end:"`[cwd]?"},x={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},C={className:"string",begin:'q"\\{',end:'\\}"'},T={className:"meta",begin:"^#!",end:"$",relevance:5},w={className:"meta",begin:"#(line)",end:"$",relevance:5},N={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},O=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:r,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,O,x,b,_,E,C,m,g,y,T,w,N]}}return dN=t,dN}var hN,rZ;function KZe(){if(rZ)return hN;rZ=1;function t(e){const r=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},a={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,u={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},d={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},h={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},f=e.inherit(d,{contains:[]}),p=e.inherit(h,{contains:[]});d.contains.push(p),h.contains.push(f);let g=[n,u];return[d,h,f,p].forEach(b=>{b.contains=b.contains.concat(g)}),g=g.concat(d,h),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:g},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:g}]}]},n,s,d,h,{className:"quote",begin:"^>\\s+",contains:g,end:"$"},a,i,u,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return hN=t,hN}var fN,nZ;function XZe(){if(nZ)return fN;nZ=1;function t(e){const r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},i={className:"number",relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},a={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,r,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,r,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r,n]}]};n.contains=[i,a];const s=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=s.map(d=>`${d}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:s.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[a,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},i,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return fN=t,fN}var pN,iZ;function jZe(){if(iZ)return pN;iZ=1;function t(e){const r=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},a={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},l={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},u={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[a,o,i].concat(n)},i].concat(n)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:r,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[a,o,s,l,u,i].concat(n)}}return pN=t,pN}var gN,aZ;function QZe(){if(aZ)return gN;aZ=1;function t(e){const r=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return gN=t,gN}var mN,sZ;function ZZe(){if(sZ)return mN;sZ=1;function t(e){const r={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[r],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[r]}]}}return mN=t,mN}var yN,oZ;function JZe(){if(oZ)return yN;oZ=1;function t(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return yN=t,yN}var vN,lZ;function eJe(){if(lZ)return vN;lZ=1;function t(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a={className:"variable",begin:/&[a-z\d_]*\b/},s={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},o={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},l={className:"params",relevance:0,begin:"<",end:">",contains:[n,a]},u={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},d={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},h={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},f={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},p={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[d,a,s,o,u,f,h,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r,i,p,{begin:e.IDENT_RE+"::",keywords:""}]}}return EN=t,EN}var SN,hZ;function iJe(){if(hZ)return SN;hZ=1;function t(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return SN=t,SN}var TN,fZ;function aJe(){if(fZ)return TN;fZ=1;function t(e){const r=e.COMMENT(/\(\*/,/\*\)/),n={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},a={begin:/=/,end:/[.;]/,contains:[r,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[r,n,a]}}return TN=t,TN}var xN,pZ;function sJe(){if(pZ)return xN;pZ=1;function t(e){const r=e.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",o={$pattern:n,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},h={match:/\\[\s\S]/,scope:"char.escape",relevance:0},f=`[/|([{<"']`,p=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],g=C=>({scope:"char.escape",begin:r.concat(/\\/,C),relevance:0}),m={className:"string",begin:"~[a-z](?="+f+")",contains:p.map(C=>e.inherit(C,{contains:[g(C.end),h,l]}))},y={className:"string",begin:"~[A-Z](?="+f+")",contains:p.map(C=>e.inherit(C,{contains:[g(C.end)]}))},v={className:"regex",variants:[{begin:"~r(?="+f+")",contains:p.map(C=>e.inherit(C,{end:r.concat(C.end,/[uismxfU]{0,7}/),contains:[g(C.end),h,l]}))},{begin:"~R(?="+f+")",contains:p.map(C=>e.inherit(C,{end:r.concat(C.end,/[uismxfU]{0,7}/),contains:[g(C.end)]}))}]},b={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},_={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},E=e.inherit(_,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),x=[b,v,y,m,e.HASH_COMMENT_MODE,E,_,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[b,{begin:i}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},u,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return l.contains=x,{name:"Elixir",aliases:["ex","exs"],keywords:o,contains:x}}return xN=t,xN}var CN,gZ;function oJe(){if(gZ)return CN;gZ=1;function t(e){const r={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},r]},a={begin:/\{/,end:/\}/,contains:i.contains},s={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,r],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,r],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,i,a,r]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,r]},{begin:"port",end:"$",keywords:"port",contains:[r]},s,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),r,{begin:"->|<-"}],illegal:/;/}}return CN=t,CN}var wN,mZ;function lJe(){if(mZ)return wN;mZ=1;function t(e){const r=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),a=r.concat(i,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},l={className:"doctag",begin:"@[A-Za-z]+"},u={begin:"#<",end:">"},d=[e.COMMENT("#","$",{contains:[l]}),e.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],h={className:"subst",begin:/#\{/,end:/\}/,keywords:o},f={className:"string",contains:[e.BACKSLASH_ESCAPE,h],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:r.concat(/<<[-~]?'?/,r.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,h]})]}]},p="[1-9](_?[0-9])*|0",g="[0-9](_?[0-9])*",m={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${g}))?([eE][+-]?(${g})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},y={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},T=[f,{variants:[{match:[/class\s+/,a,/\s+<\s+/,a]},{match:[/\b(class|module)\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,a],scope:{2:"title.class"},keywords:o},{relevance:0,match:[a,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[y]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{begin:n}],relevance:0},m,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,h],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(u,d),relevance:0}].concat(u,d);h.contains=T,y.contains=T;const M=[{begin:/^\s*=>/,starts:{end:"$",contains:T}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:T}}];return d.unshift(u),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(M).concat(d).concat(T)}}return wN=t,wN}var kN,yZ;function cJe(){if(yZ)return kN;yZ=1;function t(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return kN=t,kN}var AN,vZ;function uJe(){if(vZ)return AN;vZ=1;function t(e){const r=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:r.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return AN=t,AN}var RN,_Z;function dJe(){if(_Z)return RN;_Z=1;function t(e){const r="[a-z'][a-zA-Z0-9_']*",n="("+r+":"+r+"|"+r+")",i={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else",literal:"false true"},a=e.COMMENT("%","$"),s={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+r+"/\\d+"},l={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},u={begin:/\{/,end:/\}/,relevance:0},d={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},h={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},f={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},p={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},g={scope:"string",match:/"""("*)(?!")[\s\S]*?"""\1/},m={scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},y={beginKeywords:"fun receive if try case maybe",end:"end",keywords:i};y.contains=[a,o,e.inherit(e.APOS_STRING_MODE,{className:""}),y,l,m,g,e.QUOTE_STRING_MODE,s,u,d,h,f,p];const v=[a,o,y,l,m,g,e.QUOTE_STRING_MODE,s,u,d,h,f,p];l.contains[1].contains=v,u.contains=v,f.contains[1].contains=v;const b=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-moduledoc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec","-on_load","-nifs"],_={className:"params",begin:"\\(",end:"\\)",contains:v};return{name:"Erlang",aliases:["erl"],keywords:i,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[_,e.inherit(e.TITLE_MODE,{begin:r})],starts:{end:";|\\.",keywords:i,contains:v}},a,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:b.map(E=>`${E}|1.5`).join(" ")},contains:[_,m,g,e.QUOTE_STRING_MODE]},s,m,g,e.QUOTE_STRING_MODE,f,d,h,u,p,{begin:/\.$/}]}}return RN=t,RN}var NN,bZ;function hJe(){if(bZ)return NN;bZ=1;function t(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ARRAYTOTEXT","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","BYCOL","BYROW","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CHOOSECOLS","CHOOSEROWS","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DROP","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPAND","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE","F.DIST","FDIST","F.DIST.RT","FILTER","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HSTACK","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGE","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISOMITTED","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LAMBDA","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LET","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MAKEARRAY","MAP","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDB","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDARRAY","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REDUCE","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SCAN","SEARCH","SEARCHB","SEC","SECH","SECOND","SEQUENCE","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SORT","SORTBY","SQRT","SQRTPI","SQL.REQUEST","STANDARDIZE","STOCKHISTORY","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TAKE","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTAFTER","TEXTBEFORE","TEXTJOIN","TEXTSPLIT","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TOCOL","TOROW","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UNIQUE","UPPER","VALUE","VALUETOTEXT","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","VSTACK","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","WRAPCOLS","WRAPROWS","XIRR","XLOOKUP","XMATCH","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return NN=t,NN}var IN,EZ;function fJe(){if(EZ)return IN;EZ=1;function t(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return IN=t,IN}var ON,SZ;function pJe(){if(SZ)return ON;SZ=1;function t(e){const r={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},n={className:"string",variants:[{begin:'"',end:'"'}]},a={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,n,a,e.C_NUMBER_MODE]}}return ON=t,ON}var DN,TZ;function gJe(){if(TZ)return DN;TZ=1;function t(e){const r=e.regex,n={className:"params",begin:"\\(",end:"\\)"},i={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},a=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:r.concat(/\b\d+/,/\.(\d*)/,s,a)},{begin:r.concat(/\b\d+/,s,a)},{begin:r.concat(/\.\d+/,s,a)}],relevance:0},l={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]},u={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[u,l,{begin:/^C\s*=(?!=)/,relevance:0},i,o]}}return DN=t,DN}var LN,xZ;function mJe(){if(xZ)return LN;xZ=1;function t(o){return new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(o){return o?typeof o=="string"?o:o.source:null}function r(o){return n("(?=",o,")")}function n(...o){return o.map(u=>e(u)).join("")}function i(o){const l=o[o.length-1];return typeof l=="object"&&l.constructor===Object?(o.splice(o.length-1,1),l):{}}function a(...o){return"("+(i(o).capture?"":"?:")+o.map(d=>e(d)).join("|")+")"}function s(o){const l=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],u={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},d=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],h=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],f=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],p=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],m={keyword:l,literal:h,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":f},v={variants:[o.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),o.C_LINE_COMMENT_MODE]},b=/[a-zA-Z_](\w|')*/,_={scope:"variable",begin:/``/,end:/``/},E=/\B('|\^)/,x={scope:"symbol",variants:[{match:n(E,/``.*?``/)},{match:n(E,o.UNDERSCORE_IDENT_RE)}],relevance:0},C=function({includeEqual:H}){let J;H?J="!%&*+-/<=>@^|~?":J="!%&*+-/<>@^|~?";const Z=Array.from(J),pe=n("[",...Z.map(t),"]"),re=a(pe,/\./),ce=n(re,r(re)),ae=a(n(ce,re,"*"),n(pe,"+"));return{scope:"operator",match:a(ae,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},T=C({includeEqual:!0}),w=C({includeEqual:!1}),N=function(H,J){return{begin:n(H,r(n(/\s*/,a(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:J,end:r(a(/\n/,/=/)),relevance:0,keywords:o.inherit(m,{type:p}),contains:[v,x,o.inherit(_,{scope:null}),w]}},O=N(/:/,"operator"),M=N(/\bof\b/,"keyword"),$={begin:[/(^|\s+)/,/type/,/\s+/,b],beginScope:{2:"keyword",4:"title.class"},end:r(/\(|=|$/),keywords:m,contains:[v,o.inherit(_,{scope:null}),x,{scope:"operator",match:/<|>/},O]},F={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},A={begin:[/^\s*/,n(/#/,a(...d)),/\b/],beginScope:{2:"meta"},end:r(/\s|$/)},I={variants:[o.BINARY_NUMBER_MODE,o.C_NUMBER_MODE]},D={scope:"string",begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE]},L={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},o.BACKSLASH_ESCAPE]},R={scope:"string",begin:/"""/,end:/"""/,relevance:2},P={scope:"subst",begin:/\{/,end:/\}/,keywords:m},z={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},o.BACKSLASH_ESCAPE,P]},B={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},o.BACKSLASH_ESCAPE,P]},q={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},P],relevance:2},Y={scope:"string",match:n(/'/,a(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return P.contains=[B,z,L,D,Y,u,v,_,O,F,A,I,x,T],{name:"F#",aliases:["fs","f#"],keywords:m,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[u,{variants:[q,B,z,R,L,D,Y]},v,_,$,{scope:"meta",begin:/\[\]/,relevance:2,contains:[_,R,L,D,Y,I]},M,O,F,A,I,x,T]}}return LN=s,LN}var MN,CZ;function yJe(){if(CZ)return MN;CZ=1;function t(e){const r=e.regex,n={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},i={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},a={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},s={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},o={begin:"/",end:"/",keywords:n,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},l=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,u={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[s,o,{className:"comment",begin:r.concat(l,r.anyNumberOfTimes(r.concat(/[ ]+/,l))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:n,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,u]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[u]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},i,a]},e.C_NUMBER_MODE,a]}}return MN=t,MN}var PN,wZ;function vJe(){if(wZ)return PN;wZ=1;function t(e){const r={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},n=e.COMMENT("@","@"),i={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},a={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},s=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,a]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},l=function(p,g,m){const y=e.inherit({className:"function",beginKeywords:p,end:g,excludeEnd:!0,contains:[].concat(s)},{});return y.contains.push(o),y.contains.push(e.C_NUMBER_MODE),y.contains.push(e.C_BLOCK_COMMENT_MODE),y.contains.push(n),y},u={className:"built_in",begin:"\\b("+r.built_in.split(" ").join("|")+")\\b"},d={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},h={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:r,relevance:0,contains:[{beginKeywords:r.keyword},u,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},f={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:r.built_in,literal:r.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,u,h,d,"self"]};return h.contains.push(f),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:r,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,d,i,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},l("proc keyword",";"),l("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,f]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},h,a]}}return PN=t,PN}var BN,kZ;function _Je(){if(kZ)return BN;kZ=1;function t(e){const r=e.regex,n={$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},i=/\b/;function a(g,m){if(g.index===0)return;const y=g.input[g.index-1];y>="0"&&y<="9"||y!=="_"&&m.ignoreMatch()}const s=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,o=/[GM]\s*\d+(\.\d+)?/,l=/T\s*\d+/,u=/O\s*\d+/,d=/O<.+>/,h=/[ABCUVWXYZ]\s*/,f=/[FHIJKPQRS]\s*/,p=[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:"title.function",variants:[{match:r.concat(i,o)},{begin:o,"on:begin":a},{match:r.concat(i,l)},{begin:l,"on:begin":a}]},{scope:"symbol",variants:[{match:r.concat(i,u)},{begin:u,"on:begin":a},{match:r.concat(i,d)},{begin:d,"on:begin":a},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:r.concat(i,h,s)},{begin:r.concat(h,s),"on:begin":a}]},{scope:"params",variants:[{match:r.concat(i,f,s)},{begin:r.concat(f,s),"on:begin":a}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:n,contains:p}}return BN=t,BN}var FN,AZ;function bJe(){if(AZ)return FN;AZ=1;function t(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}return FN=t,FN}var $N,RZ;function EJe(){if(RZ)return $N;RZ=1;function t(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return $N=t,$N}var zN,NZ;function SJe(){if(NZ)return zN;NZ=1;function t(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return zN=t,zN}var UN,IZ;function TJe(){if(IZ)return UN;IZ=1;function t(e){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return VN=t,VN}var WN,BZ;function RJe(){if(BZ)return WN;BZ=1;function t(e){const r=e.regex,n={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},i={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},a=/""|"[^"]+"/,s=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,l=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,u=/(\.|\/)/,d=r.either(a,s,o,l),h=r.concat(r.optional(/\.|\.\/|\//),d,r.anyNumberOfTimes(r.concat(u,d))),f=r.concat("(",o,"|",l,")(?==)"),p={begin:h},g=e.inherit(p,{keywords:i}),m={begin:/\(/,end:/\)/},y={className:"attr",begin:f,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,m]}}},v={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},b={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,v,y,g,m],returnEnd:!0},_=e.inherit(p,{className:"name",keywords:n,starts:e.inherit(b,{end:/\)/})});m.contains=[_];const E=e.inherit(p,{keywords:n,className:"name",starts:e.inherit(b,{end:/\}\}/})}),x=e.inherit(p,{keywords:n,className:"name"}),C=e.inherit(p,{className:"name",keywords:n,starts:e.inherit(b,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[E],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[x]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[E]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[x]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[C]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[C]}]}}return WN=t,WN}var KN,FZ;function NJe(){if(FZ)return KN;FZ=1;function t(e){const r="([0-9]_*)+",n="([0-9a-fA-F]_*)+",i="([01]_*)+",a="([0-7]_*)+",u="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",d={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},h={className:"meta",begin:/\{-#/,end:/#-\}/},f={className:"meta",begin:"^#",end:"$"},p={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},g={begin:"\\(",end:"\\)",illegal:'"',contains:[h,f,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),d]},m={begin:/\{/,end:/\}/,contains:g.contains},y={className:"number",relevance:0,variants:[{match:`\\b(${r})(\\.(${r}))?([eE][+-]?(${r}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${r}))?\\b`},{match:`\\b0[oO](${a})\\b`},{match:`\\b0[bB](${i})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[g,d],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[g,d],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[p,g,d]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[h,p,g,m,d]},{beginKeywords:"default",end:"$",contains:[p,g,d]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,d]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[p,e.QUOTE_STRING_MODE,d]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},h,f,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,y,p,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${u}--+|--+(?!-)${u}`},d,{begin:"->|<-"}]}}return KN=t,KN}var XN,$Z;function IJe(){if($Z)return XN;$Z=1;function t(e){const r="[a-zA-Z_$][a-zA-Z0-9_$]*",n=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:n,relevance:0},{className:"variable",begin:"\\$"+r},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}return XN=t,XN}var jN,zZ;function OJe(){if(zZ)return jN;zZ=1;function t(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}return jN=t,jN}var QN,UZ;function DJe(){if(UZ)return QN;UZ=1;function t(e){const r=e.regex,n="HTTP/([32]|1\\.[01])",i=/[A-Za-z][A-Za-z0-9-]*/,a={className:"attribute",begin:r.concat("^",i,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[a,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+n+" \\d{3})",end:/$/,contains:[{className:"meta",begin:n},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+n+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:n},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},e.inherit(a,{relevance:0})]}}return QN=t,QN}var ZN,GZ;function LJe(){if(GZ)return ZN;GZ=1;function t(e){const r="a-zA-Z_\\-!.?+*=<>&#'",n="["+r+"]["+r+"0-9/;:]*",i={$pattern:n,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},a="[-+]?\\d+(\\.\\d+)?",s={begin:n,relevance:0},o={className:"number",begin:a,relevance:0},l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),u=e.COMMENT(";","$",{relevance:0}),d={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},h={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},f={className:"comment",begin:"\\^"+n},p=e.COMMENT("\\^\\{","\\}"),g={className:"symbol",begin:"[:]{1,2}"+n},m={begin:"\\(",end:"\\)"},y={endsWithParent:!0,relevance:0},v={className:"name",relevance:0,keywords:i,begin:n,starts:y},b=[m,l,f,p,u,g,h,o,d,s];return m.contains=[e.COMMENT("comment",""),v,y],y.contains=b,h.contains=b,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),m,l,f,p,u,g,h,o,d]}}return ZN=t,ZN}var JN,qZ;function MJe(){if(qZ)return JN;qZ=1;function t(e){return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:"\\[",end:"\\]"}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:"\\[",end:"\\]",contains:["self"]}]}}return JN=t,JN}var eI,YZ;function PJe(){if(YZ)return eI;YZ=1;function t(e){const r=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const a={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[i,s,a,o,n,"self"],relevance:0},u=/[A-Za-z0-9_-]+/,d=/"(\\"|[^"])*"/,h=/'[^']*'/,f=r.either(u,d,h),p=r.concat(f,"(\\s*\\.\\s*",f,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[i,l,s,a,o,n]}}]}}return eI=t,eI}var tI,HZ;function BJe(){if(HZ)return tI;HZ=1;function t(e){const r=e.regex,n={className:"params",begin:"\\(",end:"\\)"},i=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:r.concat(/\b\d+/,/\.(\d*)/,a,i)},{begin:r.concat(/\b\d+/,a,i)},{begin:r.concat(/\.\d+/,a,i)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),s]}}return tI=t,tI}var rI,VZ;function FJe(){if(VZ)return rI;VZ=1;function t(e){const r="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",i="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",H="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",ld="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",no="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",b2="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",cd="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",vr=H+ld,nl=b2,yn="null true false nil ",fn={className:"number",begin:e.NUMBER_RE,relevance:0},io={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},ys={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},vs={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,ys]},ud={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,ys]},rr={variants:[vs,ud]},fr={$pattern:r,keyword:i,built_in:vr,class:nl,literal:yn},Er={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:fr,relevance:0},vn={className:"type",begin:":[ \\t]*("+cd.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},fa={className:"variable",keywords:fr,begin:r,relevance:0,contains:[vn,Er]},il=n+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:fr,illegal:"\\$|\\?|%|,|;$|~|#|@|i(s,o,l-1))}function a(s){const o=s.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",u=l+i("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),g={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},m={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},y={className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[s.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:g,illegal:/<\/|#/,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[s.BACKSLASH_ESCAPE]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[o.concat(/(?!else)/,l),/\s+/,l,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,l],className:{1:"keyword",3:"title.class"},contains:[y,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+u+"\\s+)",s.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:g,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[m,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,n,s.C_BLOCK_COMMENT_MODE]},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},n,m]}}return nI=a,nI}var iI,KZ;function zJe(){if(KZ)return iI;KZ=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(a,n,i);function l(u){const d=u.regex,h=(Z,{after:pe})=>{const re="",end:""},g=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Z,pe)=>{const re=Z[0].length+Z.index,ce=Z.input[re];if(ce==="<"||ce===","){pe.ignoreMatch();return}ce===">"&&(h(Z,{after:re})||pe.ignoreMatch());let ae;const se=Z.input.substring(re);if(ae=se.match(/^\s*=/)){pe.ignoreMatch();return}if((ae=se.match(/^\s+extends\s+/))&&ae.index===0){pe.ignoreMatch();return}}},y={$pattern:t,keyword:e,literal:r,built_in:o,"variable.language":s},v="[0-9](_?[0-9])*",b=`\\.(${v})`,_="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",E={className:"number",variants:[{begin:`(\\b(${_})((${b})|\\.)?|(${b}))[eE][+-]?(${v})\\b`},{begin:`\\b(${_})\\b((${b})\\b|\\.)?|(${b})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:y,contains:[]},C={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},T={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,x],subLanguage:"css"}},w={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,x],subLanguage:"graphql"}},N={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,x]},M={className:"comment",variants:[u.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:f+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},$=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,C,T,w,N,{match:/\$\d+/},E];x.contains=$.concat({begin:/\{/,end:/\}/,keywords:y,contains:["self"].concat($)});const F=[].concat(M,x.contains),A=F.concat([{begin:/(\s*)\(/,end:/\)/,keywords:y,contains:["self"].concat(F)}]),I={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:A},D={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,d.concat(f,"(",d.concat(/\./,f),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,f],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:d.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...n,...i]}},R={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},P={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[I],illegal:/%/},z={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function B(Z){return d.concat("(?!",Z.join("|"),")")}const q={match:d.concat(/\b/,B([...a,"super","import"].map(Z=>`${Z}\\s*\\(`)),f,d.lookahead(/\s*\(/)),className:"title.function",relevance:0},Y={begin:d.concat(/\./,d.lookahead(d.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Q={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},I]},H="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(H)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[I]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:y,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),R,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,C,T,w,N,M,{match:/\$\d+/},E,L,{scope:"attr",match:f+d.lookahead(":"),relevance:0},J,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[M,u.REGEXP_MODE,{className:"function",begin:H,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:g},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:"xml",contains:[{begin:m.begin,end:m.end,skip:!0,contains:["self"]}]}]},P,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[I,u.inherit(u.TITLE_MODE,{begin:f,className:"title.function"})]},{match:/\.\.\./,relevance:0},Y,{match:"\\$"+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[I]},q,z,D,Q,{match:/\$[(.]/}]}}return iI=l,iI}var aI,XZ;function UJe(){if(XZ)return aI;XZ=1;function t(e){const n={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},i={className:"function",begin:/:[\w\-.]+/,relevance:0},a={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},s={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,s,i,a,n]}}return aI=t,aI}var sI,jZ;function GJe(){if(jZ)return sI;jZ=1;function t(e){const r={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],a={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[r,n,e.QUOTE_STRING_MODE,a,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return sI=t,sI}var oI,QZ;function qJe(){if(QZ)return oI;QZ=1;function t(e){const r="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",s={$pattern:r,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},o={keywords:s,illegal:/<\//},l={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},u={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},d={className:"subst",begin:/\$\(/,end:/\)/,keywords:s},h={className:"variable",begin:"\\$"+r},f={className:"string",contains:[e.BACKSLASH_ESCAPE,d,h],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},p={className:"string",contains:[e.BACKSLASH_ESCAPE,d,h],begin:"`",end:"`"},g={className:"meta",begin:"@"+r},m={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return o.name="Julia",o.contains=[l,u,f,p,g,m,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],d.contains=o.contains,o}return oI=t,oI}var lI,ZZ;function YJe(){if(ZZ)return lI;ZZ=1;function t(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return lI=t,lI}var cI,JZ;function HJe(){if(JZ)return cI;JZ=1;var t="[0-9](_*[0-9])*",e=`\\.(${t})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",n={className:"number",variants:[{begin:`(\\b(${t})((${e})|\\.)?|(${e}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(a){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},o={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"@"},u={className:"subst",begin:/\$\{/,end:/\}/,contains:[a.C_NUMBER_MODE]},d={className:"variable",begin:"\\$"+a.UNDERSCORE_IDENT_RE},h={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[d,u]},{begin:"'",end:"'",illegal:/\n/,contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[a.BACKSLASH_ESCAPE,d,u]}]};u.contains.push(h);const f={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+a.UNDERSCORE_IDENT_RE+")?"},p={className:"meta",begin:"@"+a.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[a.inherit(h,{className:"string"}),"self"]}]},g=n,m=a.COMMENT("/\\*","\\*/",{contains:[a.C_BLOCK_COMMENT_MODE]}),y={variants:[{className:"type",begin:a.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},v=y;return v.variants[1].contains=[y],y.variants[1].contains=[v],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[a.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),a.C_LINE_COMMENT_MODE,m,o,l,f,p,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[a.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[y,a.C_LINE_COMMENT_MODE,m],relevance:0},a.C_LINE_COMMENT_MODE,m,f,p,h,a.C_NUMBER_MODE]},m]},{begin:[/class|interface|trait/,/\s+/,a.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},a.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},f,p]},h,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` +`},g]}}return cI=i,cI}var uI,eJ;function VJe(){if(eJ)return uI;eJ=1;function t(e){const r="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",i="\\]|\\?>",a={$pattern:r+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=e.COMMENT("",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},l={className:"meta",begin:"\\[/noprocess|"+n},u={className:"symbol",begin:"'"+r+"'"},d=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[u]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:a,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[s]}},o,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:a,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[s]}},o,l].concat(d)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(d)}}return uI=t,uI}var dI,tJ;function WJe(){if(tJ)return dI;tJ=1;function t(e){const n=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(M=>M+"(?![a-zA-Z@:_])")),i=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(M=>M+"(?![a-zA-Z:_])").join("|")),a=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],s=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],o={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:n},{endsParent:!0,begin:i},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:a}]},l={className:"params",relevance:0,begin:/#+\d?/},u={variants:s},d={className:"built_in",relevance:0,begin:/[$&^_]/},h={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},f=e.COMMENT("%","$",{relevance:0}),p=[o,l,u,d,h,f],g={begin:/\{/,end:/\}/,relevance:0,contains:["self",...p]},m=e.inherit(g,{relevance:0,endsParent:!0,contains:[g,...p]}),y={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[g,...p]},v={begin:/\s+/,relevance:0},b=[m],_=[y],E=function(M,$){return{contains:[v],starts:{relevance:0,contains:M,starts:$}}},x=function(M,$){return{begin:"\\\\"+M+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+M},relevance:0,contains:[v],starts:$}},C=function(M,$){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+M+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},E(b,$))},T=(M="string")=>e.END_SAME_AS_BEGIN({className:M,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),w=function(M){return{className:"string",end:"(?=\\\\end\\{"+M+"\\})"}},N=(M="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:M,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),O=[...["verb","lstinline"].map(M=>x(M,{contains:[T()]})),x("mint",E(b,{contains:[T()]})),x("mintinline",E(b,{contains:[N(),T()]})),x("url",{contains:[N("link"),N("link")]}),x("hyperref",{contains:[N("link")]}),x("href",E(_,{contains:[N("link")]})),...[].concat(...["","\\*"].map(M=>[C("verbatim"+M,w("verbatim"+M)),C("filecontents"+M,E(b,w("filecontents"+M))),...["","B","L"].map($=>C($+"Verbatim"+M,E(_,w($+"Verbatim"+M))))])),C("minted",E(_,E(b,w("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...O,...p]}}return dI=t,dI}var hI,rJ;function KJe(){if(rJ)return hI;rJ=1;function t(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return hI=t,hI}var fI,nJ;function XJe(){if(nJ)return fI;nJ=1;function t(e){const r=/([A-Za-z_][A-Za-z_0-9]*)?/,i={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},a={match:[r,/(?=\()/],scope:{1:"keyword"},contains:[i]};return i.contains.unshift(a),{name:"Leaf",contains:[{match:[/#+/,r,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[i]},{match:[/#+/,r,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return fI=t,fI}var pI,iJ;function jJe(){if(iJ)return pI;iJ=1;const t=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),l=a.concat(s).sort().reverse();function u(d){const h=t(d),f=l,p="and or not only",g="[\\w-]+",m="("+g+"|@\\{"+g+"\\})",y=[],v=[],b=function(F){return{className:"string",begin:"~?"+F+".*?"+F}},_=function(F,A,I){return{className:F,begin:A,relevance:I}},E={$pattern:/[a-z-]+/,keyword:p,attribute:i.join(" ")},x={begin:"\\(",end:"\\)",contains:v,keywords:E,relevance:0};v.push(d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,b("'"),b('"'),h.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},h.HEXCOLOR,x,_("variable","@@?"+g,10),_("variable","@\\{"+g+"\\}"),_("built_in","~?`[^`]*?`"),{className:"attribute",begin:g+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},h.IMPORTANT,{beginKeywords:"and not"},h.FUNCTION_DISPATCH);const C=v.concat({begin:/\{/,end:/\}/,contains:y}),T={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(v)},w={begin:m+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},h.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:v}}]},N={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:E,returnEnd:!0,contains:v,relevance:0}},O={className:"variable",variants:[{begin:"@"+g+"\\s*:",relevance:15},{begin:"@"+g}],starts:{end:"[;}]",returnEnd:!0,contains:C}},M={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:m,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,T,_("keyword","all\\b"),_("variable","@\\{"+g+"\\}"),{begin:"\\b("+n.join("|")+")\\b",className:"selector-tag"},h.CSS_NUMBER_MODE,_("selector-tag",m,0),_("selector-id","#"+m),_("selector-class","\\."+m,0),_("selector-tag","&",0),h.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+a.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:C},{begin:"!important"},h.FUNCTION_DISPATCH]},$={begin:g+`:(:)?(${f.join("|")})`,returnBegin:!0,contains:[M]};return y.push(d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,N,O,$,w,M,T,h.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:y}}return pI=u,pI}var gI,aJ;function QJe(){if(aJ)return gI;aJ=1;function t(e){const r="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",i="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",a={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:i,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+i+" +"+i,end:"\\)"}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),u={begin:"\\*",end:"\\*"},d={className:"symbol",begin:"[:&]"+r},h={begin:r,relevance:0},f={begin:n},g={contains:[s,o,u,d,{begin:"\\(",end:"\\)",contains:["self",a,o,s,h]},h],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},m={variants:[{begin:"'"+r},{begin:"#'"+r+"(::"+r+")*"}]},y={begin:"\\(\\s*",end:"\\)"},v={endsWithParent:!0,relevance:0};return y.contains=[{className:"name",variants:[{begin:r,relevance:0},{begin:n}]},v],v.contains=[g,m,y,a,s,o,l,u,d,f,h],{name:"Lisp",illegal:/\S/,contains:[s,e.SHEBANG(),a,o,l,g,m,y,h]}}return gI=t,gI}var mI,sJ;function ZJe(){if(sJ)return mI;sJ=1;function t(e){const r={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],i=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),a=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[r,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[r,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[a,i],relevance:0},{beginKeywords:"command on",end:"$",contains:[r,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i].concat(n),illegal:";$|^\\[|^=|&|\\{"}}return mI=t,mI}var yI,oJ;function JJe(){if(oJ)return yI;oJ=1;const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],n=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=[].concat(i,r,n);function s(o){const l=["npm","print"],u=["yes","no","on","off","it","that","void"],d=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],h={keyword:t.concat(d),literal:e.concat(u),built_in:a.concat(l)},f="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",p=o.inherit(o.TITLE_MODE,{begin:f}),g={className:"subst",begin:/#\{/,end:/\}/,keywords:h},m={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:h},y=[o.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,g,m]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,g,m]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[g,o.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+f},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];g.contains=y;const v={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:h,contains:["self"].concat(y)}]},b={begin:"(#=>|=>|\\|>>|-?->|!->)"},_={variants:[{match:[/class\s+/,f,/\s+extends\s+/,f]},{match:[/class\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:h};return{name:"LiveScript",aliases:["ls"],keywords:h,illegal:/\/\*/,contains:y.concat([o.COMMENT("\\/\\*","\\*\\/"),o.HASH_COMMENT_MODE,b,{className:"function",contains:[p,v],returnBegin:!0,variants:[{begin:"("+f+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+f+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+f+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},_,{begin:f+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return yI=s,yI}var vI,lJ;function eet(){if(lJ)return vI;lJ=1;function t(e){const r=e.regex,n=/([-a-zA-Z$._][\w$.-]*)/,i={className:"type",begin:/\bi\d+(?=\s|\b)/},a={className:"operator",relevance:0,begin:/=/},s={className:"punctuation",relevance:0,begin:/,/},o={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},l={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},u={className:"variable",variants:[{begin:r.concat(/%/,n)},{begin:/%\d+/},{begin:/#\d+/}]},d={className:"title",variants:[{begin:r.concat(/@/,n)},{begin:/@\d+/},{begin:r.concat(/!/,n)},{begin:r.concat(/!\d+/,n)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[i,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},d,s,a,u,l,o]}}return vI=t,vI}var _I,cJ;function tet(){if(cJ)return _I;cJ=1;function t(e){const n={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},i={className:"number",relevance:0,begin:e.C_NUMBER_RE},a={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},s={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[n,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},i,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},s,a,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return _I=t,_I}var bI,uJ;function ret(){if(uJ)return bI;uJ=1;function t(e){const r="\\[=*\\[",n="\\]=*\\]",i={begin:r,end:n,contains:["self"]},a=[e.COMMENT("--(?!"+r+")","$"),e.COMMENT("--"+r,n,{contains:[i],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:a.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:a}].concat(a)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:r,end:n,contains:[i],relevance:5}])}}return bI=t,bI}var EI,dJ;function net(){if(dJ)return EI;dJ=1;function t(e){const r={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{m.has(T[0])||w.ignoreMatch()}},{className:"symbol",relevance:0,begin:g}]},v={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},b={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},_={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},E={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},x={className:"brace",relevance:0,begin:/[[\](){}]/},C={className:"message-name",relevance:0,begin:n.concat("::",g)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[r.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),_,E,C,y,v,r.QUOTE_STRING_MODE,p,b,x]}}return SI=e,SI}var TI,fJ;function aet(){if(fJ)return TI;fJ=1;function t(e){const r="('|\\.')+",n={relevance:0,contains:[{begin:r}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:n},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+r,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:n},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:n},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:n},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return TI=t,TI}var xI,pJ;function set(){if(pJ)return xI;pJ=1;function t(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return xI=t,xI}var CI,gJ;function oet(){if(gJ)return CI;gJ=1;function t(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},n,e.C_BLOCK_COMMENT_MODE,i,e.NUMBER_MODE,a,s,{begin:/:-/},{begin:/\.$/}]}}return wI=t,wI}var kI,yJ;function uet(){if(yJ)return kI;yJ=1;function t(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return kI=t,kI}var AI,vJ;function det(){if(vJ)return AI;vJ=1;function t(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}return AI=t,AI}var RI,_J;function het(){if(_J)return RI;_J=1;function t(e){const r=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],i=/[dualxmsipngr]{0,12}/,a={$pattern:/[\w.]+/,keyword:n.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:a},o={begin:/->\{/,end:/\}/},l={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},u={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[l]},d={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},h=[e.BACKSLASH_ESCAPE,s,u],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(y,v,b="\\1")=>{const _=b==="\\1"?b:r.concat(b,v);return r.concat(r.concat("(?:",y,")"),v,/(?:\\.|[^\\\/])*?/,_,/(?:\\.|[^\\\/])*?/,b,i)},g=(y,v,b)=>r.concat(r.concat("(?:",y,")"),v,/(?:\\.|[^\\\/])*?/,b,i),m=[u,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:h,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},d,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:p("s|tr|y",r.either(...f,{capture:!0}))},{begin:p("s|tr|y","\\(","\\)")},{begin:p("s|tr|y","\\[","\\]")},{begin:p("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:g("(?:m|qr)?",/\//,/\//)},{begin:g("m|qr",r.either(...f,{capture:!0}),/\1/)},{begin:g("m|qr",/\(/,/\)/)},{begin:g("m|qr",/\[/,/\]/)},{begin:g("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l,d]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=m,o.contains=m,{name:"Perl",aliases:["pl","pm"],keywords:a,contains:m}}return RI=t,RI}var NI,bJ;function fet(){if(bJ)return NI;bJ=1;function t(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return NI=t,NI}var II,EJ;function pet(){if(EJ)return II;EJ=1;function t(e){const r={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},n={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},i={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),n,i,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,r]}}return II=t,II}var OI,SJ;function get(){if(SJ)return OI;SJ=1;function t(e){const r={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/\}/,keywords:r},a=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];i.contains=a;const s=e.inherit(e.TITLE_MODE,{begin:n}),o="(\\(.*\\)\\s*)?\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:r,contains:["self"].concat(a)}]};return{name:"MoonScript",aliases:["moon"],keywords:r,illegal:/\/\*/,contains:a.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[s,l]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return OI=t,OI}var DI,TJ;function met(){if(TJ)return DI;TJ=1;function t(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}return DI=t,DI}var LI,xJ;function yet(){if(xJ)return LI;xJ=1;function t(e){const r={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},n={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},i={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},a={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),a,i,r,n]}}return LI=t,LI}var MI,CJ;function vet(){if(CJ)return MI;CJ=1;function t(e){const r=e.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:r.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},a={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:a.contains,keywords:{section:"upstream location"}},{className:"section",begin:r.concat(e.UNDERSCORE_IDENT_RE+r.lookahead(/\s+\{/)),relevance:0},{begin:r.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:a}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return MI=t,MI}var PI,wJ;function _et(){if(wJ)return PI;wJ=1;function t(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","concept","const","continue","converter","defer","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}return PI=t,PI}var BI,kJ;function bet(){if(kJ)return BI;kJ=1;function t(e){const r=e.regex,n={keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],literal:["true","false","null"],built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]},i={scope:"built_in",match:r.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map(T=>`builtins\\.${T}`)),relevance:10},a="[A-Za-z_][A-Za-z0-9_'-]*",s={scope:"symbol",match:new RegExp(`<${a}(/${a})*>`)},o="[A-Za-z0-9_\\+\\.-]+",l={scope:"symbol",match:new RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},u=r.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),d={scope:"operator",match:r.concat(u,/(?!-)/),relevance:0},h={scope:"number",match:new RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},f={variants:[{scope:"operator",beforeMatch:/\s/,begin:/-(?!>)/},{begin:[new RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:"number",2:"operator"}},{begin:[u,/-/,/(?!>)/],beginScope:{1:"operator",2:"operator"}}],relevance:0},p={beforeMatch:/(^|\{|;)\s*/,begin:new RegExp(`${a}(\\.${a})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${a}(\\.${a})*(?=\\s*=)`),relevance:.2}]},g={scope:"char.escape",match:/\\\$/},m={scope:"char.escape",match:/''\$/},y={scope:"subst",begin:/\$\{/,end:/\}/,keywords:n},v={scope:"char.escape",match:/'''/},b={scope:"char.escape",match:/\\(?!\$)./},_={scope:"string",variants:[{begin:"''",end:"''",contains:[m,y,v,b]},{begin:'"',end:'"',contains:[g,y,b]}]},E={scope:"params",match:new RegExp(`${a}\\s*:(?=\\s)`)},x=[h,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),i,_,s,l,E,p,f,d];y.contains=x;const C=[{scope:"meta.prompt",match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}];return{name:"Nix",aliases:["nixos"],keywords:n,contains:x.concat(C)}}return BI=t,BI}var FI,AJ;function Eet(){if(AJ)return FI;AJ=1;function t(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return FI=t,FI}var $I,RJ;function Tet(){if(RJ)return $I;RJ=1;function t(e){const r=e.regex,n=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],i=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],a=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],s={className:"variable.constant",begin:r.concat(/\$/,r.either(...n))},o={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},l={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},u={className:"variable",begin:/\$+\([\w^.:!-]+\)/},d={className:"params",begin:r.either(...i)},h={className:"keyword",begin:r.concat(/!/,r.either(...a))},f={className:"char.escape",begin:/\$(\\[nrt]|\$)/},p={className:"title.function",begin:/\w+::\w+/},g={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[f,s,o,l,u]},m=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],y=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],v={match:[/Function/,/\s+/,r.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},_={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:m,literal:y},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),_,v,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},g,h,o,l,u,d,p,e.NUMBER_MODE]}}return $I=t,$I}var zI,NJ;function xet(){if(NJ)return zI;NJ=1;function t(e){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},u={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+u.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:u,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return zI=t,zI}var UI,IJ;function Cet(){if(IJ)return UI;IJ=1;function t(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return UI=t,UI}var GI,OJ;function wet(){if(OJ)return GI;OJ=1;function t(e){const r={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"literal",begin:"false|true|PI|undef"},i={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},o={className:"params",begin:"\\(",end:"\\)",contains:["self",i,a,r,n]},l={begin:"[*!#%]",relevance:0},u={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[o,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,s,a,r,l,u]}}return GI=t,GI}var qI,DJ;function ket(){if(DJ)return qI;DJ=1;function t(e){const r={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},n=e.COMMENT(/\{/,/\}/,{relevance:0}),i=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),a={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},s={className:"string",begin:"(#\\d+)+"},o={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:r,contains:[a,s]},n,i]},l={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:r,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[n,i,e.C_LINE_COMMENT_MODE,a,s,e.NUMBER_MODE,o,l]}}return qI=t,qI}var YI,LJ;function Aet(){if(LJ)return YI;LJ=1;function t(e){const r=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[r]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}return YI=t,YI}var HI,MJ;function Ret(){if(MJ)return HI;MJ=1;function t(e){const r={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},n={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,r,n]}}return HI=t,HI}var VI,PJ;function Net(){if(PJ)return VI;PJ=1;function t(e){const r=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",i="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",a="<<\\s*"+n+"\\s*>>",s="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",o="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",l="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",u="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",d=u.trim().split(" ").map(function(y){return y.split("|")[0]}).join("|"),h="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",f="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",p="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",m="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(y){return y.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:s+l+o,built_in:h+f+p},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+m+")\\s*\\("},{begin:"\\.("+d+")\\b"},{begin:"\\b("+d+")\\s+PATH\\b",keywords:{keyword:"PATH",type:u.replace("PATH ","")}},{className:"type",begin:"\\b("+d+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:i,end:i,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:a,relevance:10}]}}return VI=t,VI}var WI,BJ;function Iet(){if(BJ)return WI;BJ=1;function t(e){const r=e.regex,n=/(?![A-Za-z0-9])(?![$])/,i=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),a=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),s=r.concat(/[A-Z]+/,n),o={scope:"variable",match:"\\$+"+i},l={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},u={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},d=e.inherit(e.APOS_STRING_MODE,{illegal:null}),h=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(u)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(u),"on:begin":(I,D)=>{D.data._beginMatch=I[1]||I[2]},"on:end":(I,D)=>{D.data._beginMatch!==I[1]&&D.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),g=`[ +]`,m={scope:"string",variants:[h,d,f,p]},y={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},v=["false","null","true"],b=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],_=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],x={keyword:b,literal:(I=>{const D=[];return I.forEach(L=>{D.push(L),L.toLowerCase()===L?D.push(L.toUpperCase()):D.push(L.toLowerCase())}),D})(v),built_in:_},C=I=>I.map(D=>D.replace(/\|\d+$/,"")),T={variants:[{match:[/new/,r.concat(g,"+"),r.concat("(?!",C(_).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},w=r.concat(i,"\\b(?!\\()"),N={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,r.concat(/::/,r.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[a,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},O={scope:"attr",match:r.concat(i,r.lookahead(":"),r.lookahead(/(?!::)/))},M={relevance:0,begin:/\(/,end:/\)/,keywords:x,contains:[O,o,N,e.C_BLOCK_COMMENT_MODE,m,y,T]},$={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",C(b).join("\\b|"),"|",C(_).join("\\b|"),"\\b)"),i,r.concat(g,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[M]};M.contains.push($);const F=[O,N,e.C_BLOCK_COMMENT_MODE,m,y,T],A={begin:r.concat(/#\[\s*\\?/,r.either(a,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:v,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:v,keyword:["new","array"]},contains:["self",...F]},...F,{scope:"meta",variants:[{match:a},{match:s}]}]};return{case_insensitive:!1,keywords:x,contains:[A,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},l,{scope:"variable.language",match:/\$this\b/},o,$,N,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},T,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:x,contains:["self",A,o,N,e.C_BLOCK_COMMENT_MODE,m,y]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},m,y]}}return WI=t,WI}var KI,FJ;function Oet(){if(FJ)return KI;FJ=1;function t(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return KI=t,KI}var XI,$J;function Det(){if($J)return XI;$J=1;function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return XI=t,XI}var jI,zJ;function Let(){if(zJ)return jI;zJ=1;function t(e){const r={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},n={className:"string",begin:'"""',end:'"""',relevance:10},i={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},a={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},s={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},o={begin:e.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:r,contains:[s,n,i,a,o,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return jI=t,jI}var QI,UJ;function Met(){if(UJ)return QI;UJ=1;function t(e){const r=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",i="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",a={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},s=/\w[\w\d]*((-)[\w\d]+)*/,o={begin:"`[\\s\\S]",relevance:0},l={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},u={className:"literal",begin:/\$(null|true|false)\b/},d={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,l,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},h={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},f={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},p=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[f]}),g={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},m={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},y={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:s,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[l]}]},v={begin:/using\s/,end:/$/,returnBegin:!0,contains:[d,h,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},b={variants:[{className:"operator",begin:"(".concat(i,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},_={className:"selector-tag",begin:/@\B/,relevance:0},E={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(a.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},x=[E,p,o,e.NUMBER_MODE,d,h,g,l,u,_],C={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",x,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return E.contains.unshift(C),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:a,contains:x.concat(m,y,v,b,C)}}return QI=t,QI}var ZI,GJ;function Pet(){if(GJ)return ZI;GJ=1;function t(e){const r=e.regex,n=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],i=e.IDENT_RE,a={variants:[{match:r.concat(r.either(...n),r.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:r.concat(/\b(?!for|if|while)/,i,r.lookahead(/\s*\(/)),className:"title.function"}]},s={match:[/new\s+/,i],className:{1:"keyword",2:"class.title"}},o={relevance:0,match:[/\./,i],className:{2:"property"}},l={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,i]},{match:[/class/,/\s+/,i]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},u=["boolean","byte","char","color","double","float","int","long","short"],d=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...n,...d],type:u},contains:[l,s,a,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return ZI=t,ZI}var JI,qJ;function Bet(){if(qJ)return JI;qJ=1;function t(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return JI=t,JI}var eO,YJ;function Fet(){if(YJ)return eO;YJ=1;function t(e){const r={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},n={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},i={begin:/\(/,end:/\)/,relevance:0},a={begin:/\[/,end:/\]/},s={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},l={className:"string",begin:/0'(\\'|.)/},u={className:"string",begin:/0'\\s/},h=[r,n,i,{begin:/:-/},a,s,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,l,u,e.C_NUMBER_MODE];return i.contains=h,a.contains=h,{name:"Prolog",contains:h.concat([{begin:/\.$/}])}}return eO=t,eO}var tO,HJ;function $et(){if(HJ)return tO;HJ=1;function t(e){const r="[ \\t\\f]*",n="[ \\t\\f]+",i=r+"[:=]"+r,a=n,s="("+i+"|"+a+")",o="([^\\\\:= \\t\\f\\n]|\\\\.)+",l={end:s,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:o+i},{begin:o+a}],contains:[{className:"attr",begin:o,endsParent:!0}],starts:l},{className:"attr",begin:o+r+"$"}]}}return tO=t,tO}var rO,VJ;function zet(){if(VJ)return rO;VJ=1;function t(e){const r=["package","import","option","optional","required","repeated","group","oneof"],n=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],i={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:r,type:n,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return rO=t,rO}var nO,WJ;function Uet(){if(WJ)return nO;WJ=1;function t(e){const r={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},n=e.COMMENT("#","$"),i="([A-Za-z_]|::)(\\w|::)*",a=e.inherit(e.TITLE_MODE,{begin:i}),s={className:"variable",begin:"\\$"+i},o={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[n,s,o,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[a,n]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:r,relevance:0,contains:[o,n,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},s]}],relevance:0}]}}return nO=t,nO}var iO,KJ;function Get(){if(KJ)return iO;KJ=1;function t(e){const r={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},n={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},r,n]}}return iO=t,iO}var aO,XJ;function qet(){if(XJ)return aO;XJ=1;function t(e){const r=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],l={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},d={className:"subst",begin:/\{/,end:/\}/,keywords:l,illegal:/#/},h={begin:/\{\{/,relevance:0},f={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u,h,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u,h,d]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,h,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,h,d]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",g=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,m=`\\b|${i.join("|")}`,y={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${g}))[eE][+-]?(${p})[jJ]?(?=${m})`},{begin:`(${g})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${p})[jJ](?=${m})`}]},v={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:l,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",u,y,f,e.HASH_COMMENT_MODE]}]};return d.contains=[f,y,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[u,y,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,v,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[b]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[y,b,f]}]}}return aO=t,aO}var sO,jJ;function Yet(){if(jJ)return sO;jJ=1;function t(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return sO=t,sO}var oO,QJ;function Het(){if(QJ)return oO;QJ=1;function t(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return oO=t,oO}var lO,ZJ;function Vet(){if(ZJ)return lO;ZJ=1;function t(e){const r=e.regex,n={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},i="[a-zA-Z_][a-zA-Z0-9\\._]*",a={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},s={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:i,returnEnd:!1}},l={begin:i+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:i,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},u={begin:r.concat(i,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:i})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:n,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},s,a,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},o,l,u],illegal:/#/}}return lO=t,lO}var cO,JJ;function Wet(){if(JJ)return cO;JJ=1;function t(e){const r=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),a=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[a,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[s,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:a},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return cO=t,cO}var uO,eee;function Ket(){if(eee)return uO;eee=1;function t(e){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}return uO=t,uO}var dO,tee;function Xet(){if(tee)return dO;tee=1;function t(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"/}],illegal:/./},e.COMMENT("^#","$"),l,u,o,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[l,u,o,{className:"literal",begin:"\\b("+a.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+i.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+s.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return fO=t,fO}var pO,iee;function Zet(){if(iee)return pO;iee=1;function t(e){const r=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],n=["matrix","float","color","point","normal","vector"],i=["while","for","if","do","return","else","break","extern","continue"],a={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:i,built_in:r,type:n},illegal:""},s]}}return mO=t,mO}var yO,oee;function ttt(){if(oee)return yO;oee=1;function t(e){const r=e.regex,n=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],i=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],a=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:n},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+r.either(...a)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:r.either(...i)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}return yO=t,yO}var vO,lee;function rtt(){if(lee)return vO;lee=1;function t(e){const r=e.regex,n={className:"meta",begin:"@[A-Za-z]+"},i={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},a={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,i]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[i],relevance:10}]},s={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},o={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},l={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o]},u={className:"function",beginKeywords:"def",end:r.lookahead(/[:={\[(\n;]/),contains:[o]},d={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},h={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},f=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],p={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,s,u,l,e.C_NUMBER_MODE,d,h,...f,p,n]}}return vO=t,vO}var _O,cee;function ntt(){if(cee)return _O;cee=1;function t(e){const r="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(-|\\+)?\\d+([./]\\d+)?",i=n+"[+\\-]"+n+"i",a={$pattern:r,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},s={className:"literal",begin:"(#t|#f|#\\\\"+r+"|#\\\\.)"},o={className:"number",variants:[{begin:n,relevance:0},{begin:i,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},l=e.QUOTE_STRING_MODE,u=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],d={begin:r,relevance:0},h={className:"symbol",begin:"'"+r},f={endsWithParent:!0,relevance:0},p={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",s,l,o,d,h]}]},g={className:"name",relevance:0,begin:r,keywords:a},y={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[g,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[d]}]},g,f]};return f.contains=[s,o,l,d,h,p,y].concat(u),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),o,l,h,p,y].concat(u)}}return _O=t,_O}var bO,uee;function itt(){if(uee)return bO;uee=1;function t(e){const r=[e.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:r},e.COMMENT("//","$")].concat(r)}}return bO=t,bO}var EO,dee;function att(){if(dee)return EO;dee=1;const t=u=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:u.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:u.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function l(u){const d=t(u),h=s,f=a,p="@[a-z-]+",g="and or not only",y={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,d.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+h.join("|")+")"},y,{begin:/\(/,end:/\)/,contains:[d.CSS_NUMBER_MODE]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[d.BLOCK_COMMENT,y,d.HEXCOLOR,d.CSS_NUMBER_MODE,u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,d.IMPORTANT,d.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:p,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:g,attribute:i.join(" ")},contains:[{begin:p,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},y,u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,d.HEXCOLOR,d.CSS_NUMBER_MODE]},d.FUNCTION_DISPATCH]}}return EO=l,EO}var SO,hee;function stt(){if(hee)return SO;hee=1;function t(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return SO=t,SO}var TO,fee;function ott(){if(fee)return TO;fee=1;function t(e){const r=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],n=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],i=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+i.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+r.join("|")+")\\s"},{begin:"\\s("+r.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+n.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;: +]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return TO=t,TO}var xO,pee;function ltt(){if(pee)return xO;pee=1;function t(e){const r="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},i={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},e.C_NUMBER_MODE,i,n,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,i]}]}}return xO=t,xO}var CO,gee;function ctt(){if(gee)return CO;gee=1;function t(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return CO=t,CO}var wO,mee;function utt(){if(mee)return wO;mee=1;function t(e){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},n={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},i={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},a=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],s=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],o=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:a,built_in:o,literal:s},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,r,n,i,l],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return wO=t,wO}var kO,yee;function dtt(){if(yee)return kO;yee=1;function t(e){const r=e.regex,n=e.COMMENT("--","$"),i={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},a={begin:/"/,end:/"/,contains:[{match:/""/}]},s=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],l=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],u=["add","asc","collation","desc","final","first","last","view"],d=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],h=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],f=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],p=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],g=h,m=[...d,...u].filter(C=>!h.includes(C)),y={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},v={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},b={match:r.concat(/\b/,r.either(...g),/\s*\(/),relevance:0,keywords:{built_in:g}};function _(C){return r.concat(/\b/,r.either(...C.map(T=>T.replace(/\s+/,"\\s+"))),/\b/)}const E={scope:"keyword",match:_(p),relevance:0};function x(C,{exceptions:T,when:w}={}){const N=w;return T=T||[],C.map(O=>O.match(/\|\d+$/)||T.includes(O)?O:N(O)?`${O}|0`:O)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(m,{when:C=>C.length<3}),literal:s,type:l,built_in:f},contains:[{scope:"type",match:_(o)},E,b,y,i,a,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,v]}}return kO=t,kO}var AO,vee;function htt(){if(vee)return AO;vee=1;function t(e){const r=e.regex,n=["functions","model","data","parameters","quantities","transformed","generated"],i=["for","in","if","else","while","break","continue","return"],a=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],s=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],o=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],l=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),u={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},d=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:n,type:a,keyword:i,built_in:s},contains:[e.C_LINE_COMMENT_MODE,u,e.HASH_COMMENT_MODE,l,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:r.concat(/[<,]\s*/,r.either(...d),/\s*=/),keywords:d},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,r.either(...o),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:o,begin:r.concat(/\w*/,r.either(...o),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,r.concat(r.either(...o),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+r.either(...o)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:r.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}return AO=t,AO}var RO,_ee;function ftt(){if(_ee)return RO;_ee=1;function t(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r ]*?"'`},{begin:`"[^\r -"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return RO=t,RO}var NO,bee;function ftt(){if(bee)return NO;bee=1;function t(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return NO=t,NO}var IO,Eee;function ptt(){if(Eee)return IO;Eee=1;const t=u=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:u.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:u.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function l(u){const d=t(u),h="and or not only",f={className:"variable",begin:"\\$"+u.IDENT_RE},p=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],g="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,d.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+g,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+g,className:"selector-id"},{begin:"\\b("+n.join("|")+")"+g,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+a.join("|")+")"+g},{className:"selector-pseudo",begin:"&?:(:)?("+s.join("|")+")"+g},d.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:h,attribute:i.join(" ")},contains:[d.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+p.join("|")+"))\\b"},f,d.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[d.HEXCOLOR,f,u.APOS_STRING_MODE,d.CSS_NUMBER_MODE,u.QUOTE_STRING_MODE]}]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",starts:{end:/;|$/,contains:[d.HEXCOLOR,f,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,d.CSS_NUMBER_MODE,u.C_BLOCK_COMMENT_MODE,d.IMPORTANT,d.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},d.FUNCTION_DISPATCH]}}return IO=l,IO}var OO,See;function gtt(){if(See)return OO;See=1;function t(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[ +"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return RO=t,RO}var NO,bee;function ptt(){if(bee)return NO;bee=1;function t(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return NO=t,NO}var IO,Eee;function gtt(){if(Eee)return IO;Eee=1;const t=u=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:u.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:u.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function l(u){const d=t(u),h="and or not only",f={className:"variable",begin:"\\$"+u.IDENT_RE},p=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],g="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,d.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+g,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+g,className:"selector-id"},{begin:"\\b("+n.join("|")+")"+g,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+a.join("|")+")"+g},{className:"selector-pseudo",begin:"&?:(:)?("+s.join("|")+")"+g},d.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:h,attribute:i.join(" ")},contains:[d.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+p.join("|")+"))\\b"},f,d.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[d.HEXCOLOR,f,u.APOS_STRING_MODE,d.CSS_NUMBER_MODE,u.QUOTE_STRING_MODE]}]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",starts:{end:/;|$/,contains:[d.HEXCOLOR,f,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,d.CSS_NUMBER_MODE,u.C_BLOCK_COMMENT_MODE,d.IMPORTANT,d.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},d.FUNCTION_DISPATCH]}}return IO=l,IO}var OO,See;function mtt(){if(See)return OO;See=1;function t(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[ (multipart)?`,end:`\\] -`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return OO=t,OO}var DO,Tee;function mtt(){if(Tee)return DO;Tee=1;function t(w){return w?typeof w=="string"?w:w.source:null}function e(w){return r("(?=",w,")")}function r(...w){return w.map(O=>t(O)).join("")}function n(w){const N=w[w.length-1];return typeof N=="object"&&N.constructor===Object?(w.splice(w.length-1,1),N):{}}function i(...w){return"("+(n(w).capture?"":"?:")+w.map(M=>t(M)).join("|")+")"}const a=w=>r(/\b/,w,/\w$/.test(w)?/\b/:/\B/),s=["Protocol","Type"].map(a),o=["init","self"].map(a),l=["Any","Self"],u=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],d=["false","nil","true"],h=["assignment","associativity","higherThan","left","lowerThan","none","right"],f=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],g=i(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),m=i(g,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),y=r(g,m,"*"),v=i(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),b=i(v,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),_=r(v,b,"*"),E=r(/[A-Z]/,b,"*"),x=["attached","autoclosure",r(/convention\(/,i("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,_,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],C=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function T(w){const N={match:/\s+/,relevance:0},O=w.COMMENT("/\\*","\\*/",{contains:["self"]}),M=[w.C_LINE_COMMENT_MODE,O],$={match:[/\./,i(...s,...o)],className:{2:"keyword"}},F={match:r(/\./,i(...u)),relevance:0},A=u.filter(Ce=>typeof Ce=="string").concat(["_|0"]),I=u.filter(Ce=>typeof Ce!="string").concat(l).map(a),D={variants:[{className:"keyword",match:i(...I,...o)}]},L={$pattern:i(/\b\w+/,/#\w+/),keyword:A.concat(f),literal:d},R=[$,F,D],P={match:r(/\./,i(...p)),relevance:0},z={className:"built_in",match:r(/\b/,i(...p),/(?=\()/)},B=[P,z],q={match:/->/,relevance:0},Y={className:"operator",relevance:0,variants:[{match:y},{match:`\\.(\\.|${m})+`}]},Q=[q,Y],H="([0-9]_*)+",J="([0-9a-fA-F]_*)+",Z={className:"number",relevance:0,variants:[{match:`\\b(${H})(\\.(${H}))?([eE][+-]?(${H}))?\\b`},{match:`\\b0x(${J})(\\.(${J}))?([pP][+-]?(${H}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},pe=(Ce="")=>({className:"subst",variants:[{match:r(/\\/,Ce,/[0\\tnr"']/)},{match:r(/\\/,Ce,/u\{[0-9a-fA-F]{1,8}\}/)}]}),re=(Ce="")=>({className:"subst",match:r(/\\/,Ce,/[\t ]*(?:[\r\n]|\r\n)/)}),ce=(Ce="")=>({className:"subst",label:"interpol",begin:r(/\\/,Ce,/\(/),end:/\)/}),ae=(Ce="")=>({begin:r(Ce,/"""/),end:r(/"""/,Ce),contains:[pe(Ce),re(Ce),ce(Ce)]}),se=(Ce="")=>({begin:r(Ce,/"/),end:r(/"/,Ce),contains:[pe(Ce),ce(Ce)]}),xe={className:"string",variants:[ae(),ae("#"),ae("##"),ae("###"),se(),se("#"),se("##"),se("###")]},Te=[w.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[w.BACKSLASH_ESCAPE]}],Ge={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Te},ze=Ce=>{const ye=r(Ce,/\//),Me=r(/\//,Ce);return{begin:ye,end:Me,contains:[...Te,{scope:"comment",begin:`#(?!.*${Me})`,end:/$/}]}},Xe={scope:"regexp",variants:[ze("###"),ze("##"),ze("#"),Ge]},Le={match:r(/`/,_,/`/)},Re={className:"variable",match:/\$\d+/},qe={className:"variable",match:`\\$${b}+`},Ne=[Le,Re,qe],ut={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:C,contains:[...Q,Z,xe]}]}},De={scope:"keyword",match:r(/@/,i(...x),e(i(/\(/,/\s+/)))},Je={scope:"meta",match:r(/@/,_)},st=[ut,De,Je],ct={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,b,"+")},{className:"type",match:E,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,e(E)),relevance:0}]},ot={begin://,keywords:L,contains:[...M,...R,...st,q,ct]};ct.contains.push(ot);const it={match:r(_,/\s*:/),keywords:"_|0",relevance:0},Oe={begin:/\(/,end:/\)/,relevance:0,keywords:L,contains:["self",it,...M,Xe,...R,...B,...Q,Z,xe,...Ne,...st,ct]},U={begin://,keywords:"repeat each",contains:[...M,ct]},oe={begin:i(e(r(_,/\s*:/)),e(r(_,/\s+/,_,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:_}]},de={begin:/\(/,end:/\)/,keywords:L,contains:[oe,...M,...R,...Q,Z,xe,...st,ct,Oe],endsParent:!0,illegal:/["']/},G={match:[/(func|macro)/,/\s+/,i(Le.match,_,y)],className:{1:"keyword",3:"title.function"},contains:[U,de,N],illegal:[/\[/,/%/]},ie={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[U,de,N],illegal:/\[|%/},j={match:[/operator/,/\s+/,y],className:{1:"keyword",3:"title"}},V={begin:[/precedencegroup/,/\s+/,E],className:{1:"keyword",3:"title"},contains:[ct],keywords:[...h,...d],end:/}/},ue={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Fe={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},me={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,_,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:L,contains:[U,...R,{begin:/:/,end:/\{/,keywords:L,contains:[{scope:"title.class.inherited",match:E},...R],relevance:0}]};for(const Ce of xe.variants){const ye=Ce.contains.find(Ie=>Ie.label==="interpol");ye.keywords=L;const Me=[...R,...B,...Q,Z,xe,...Ne];ye.contains=[...Me,{begin:/\(/,end:/\)/,contains:["self",...Me]}]}return{name:"Swift",keywords:L,contains:[...M,G,ie,ue,Fe,me,j,V,{beginKeywords:"import",end:/$/,contains:[...M],relevance:0},Xe,...R,...B,...Q,Z,xe,...Ne,...st,ct,Oe]}}return DO=T,DO}var LO,xee;function ytt(){if(xee)return LO;xee=1;function t(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}return LO=t,LO}var MO,Cee;function vtt(){if(Cee)return MO;Cee=1;function t(e){const r="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},a={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,a]},l=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},g={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},m={begin:/\{/,end:/\}/,contains:[g],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},v=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},p,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},m,y,s,o],b=[...v];return b.pop(),b.push(l),g.contains=b,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return MO=t,MO}var PO,wee;function _tt(){if(wee)return PO;wee=1;function t(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return PO=t,PO}var BO,kee;function btt(){if(kee)return BO;kee=1;function t(e){const r=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,i={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:r.concat(/\$/,r.optional(/::/),n,"(::",n,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[i]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i]}}return BO=t,BO}var FO,Aee;function Ett(){if(Aee)return FO;Aee=1;function t(e){const r=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:r,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...r,"set","list","map"]},end:">",contains:["self"]}]}}return FO=t,FO}var $O,Ree;function Stt(){if(Ree)return $O;Ree=1;function t(e){const r={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"},i={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",r,n]},a={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",r,e.QUOTE_STRING_MODE,n]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[i,a,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return $O=t,$O}var zO,Nee;function Ttt(){if(Nee)return zO;Nee=1;function t(e){const r=e.regex,n=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],i=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let a=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];a=a.concat(a.map(m=>`end${m}`));const s={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},o={scope:"number",match:/\d+/},l={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[s,o]},u={beginKeywords:n.join(" "),keywords:{name:n},relevance:0,contains:[l]},d={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:i}]},h=(m,{relevance:y})=>({beginScope:{1:"template-tag",3:"name"},relevance:y||2,endScope:"template-tag",begin:[/\{%/,/\s*/,r.either(...m)],end:/%\}/,keywords:"in",contains:[d,u,s,o]}),f=/[a-z_]+/,p=h(a,{relevance:2}),g=h([f],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),p,g,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",d,u,s,o]}]}}return zO=t,zO}var UO,Iee;function xtt(){if(Iee)return UO;Iee=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(a,n,i);function l(d){const h=d.regex,f=(pe,{after:re})=>{const ce="",end:""},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,y={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(pe,re)=>{const ce=pe[0].length+pe.index,ae=pe.input[ce];if(ae==="<"||ae===","){re.ignoreMatch();return}ae===">"&&(f(pe,{after:ce})||re.ignoreMatch());let se;const xe=pe.input.substring(ce);if(se=xe.match(/^\s*=/)){re.ignoreMatch();return}if((se=xe.match(/^\s+extends\s+/))&&se.index===0){re.ignoreMatch();return}}},v={$pattern:t,keyword:e,literal:r,built_in:o,"variable.language":s},b="[0-9](_?[0-9])*",_=`\\.(${b})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",x={className:"number",variants:[{begin:`(\\b(${E})((${_})|\\.)?|(${_}))[eE][+-]?(${b})\\b`},{begin:`\\b(${E})\\b((${_})\\b|\\.)?|(${_})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},C={className:"subst",begin:"\\$\\{",end:"\\}",keywords:v,contains:[]},T={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,C],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,C],subLanguage:"css"}},N={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,C],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[d.BACKSLASH_ESCAPE,C]},$={className:"comment",variants:[d.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:p+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),d.C_BLOCK_COMMENT_MODE,d.C_LINE_COMMENT_MODE]},F=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,T,w,N,O,{match:/\$\d+/},x];C.contains=F.concat({begin:/\{/,end:/\}/,keywords:v,contains:["self"].concat(F)});const A=[].concat($,C.contains),I=A.concat([{begin:/(\s*)\(/,end:/\)/,keywords:v,contains:["self"].concat(A)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:I},L={variants:[{match:[/class/,/\s+/,p,/\s+/,/extends/,/\s+/,h.concat(p,"(",h.concat(/\./,p),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,p],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0,match:h.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...n,...i]}},P={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,p,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function q(pe){return h.concat("(?!",pe.join("|"),")")}const Y={match:h.concat(/\b/,q([...a,"super","import"].map(pe=>`${pe}\\s*\\(`)),p,h.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:h.concat(/\./,h.lookahead(h.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},J="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,h.lookahead(J)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:v,exports:{PARAMS_CONTAINS:I,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,T,w,N,O,$,{match:/\$\d+/},x,R,{scope:"attr",match:p+h.lookahead(":"),relevance:0},Z,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[$,d.REGEXP_MODE,{className:"function",begin:J,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:d.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:I}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:m},{begin:y.begin,"on:begin":y.isTrulyOpeningTag,end:y.end}],subLanguage:"xml",contains:[{begin:y.begin,end:y.end,skip:!0,contains:["self"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+d.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,d.inherit(d.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},Y,B,L,H,{match:/\$[(.]/}]}}function u(d){const h=d.regex,f=l(d),p=t,g=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],m={begin:[/namespace/,/\s+/,d.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},y={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:g},contains:[f.exports.CLASS_REFERENCE]},v={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],_={$pattern:t,keyword:e.concat(b),literal:r,built_in:o.concat(g),"variable.language":s},E={className:"meta",begin:"@"+p},x=(N,O,M)=>{const $=N.contains.findIndex(F=>F.label===O);if($===-1)throw new Error("can not find mode to replace");N.contains.splice($,1,M)};Object.assign(f.keywords,_),f.exports.PARAMS_CONTAINS.push(E);const C=f.contains.find(N=>N.scope==="attr"),T=Object.assign({},C,{match:h.concat(p,h.lookahead(/\s*\?:/))});f.exports.PARAMS_CONTAINS.push([f.exports.CLASS_REFERENCE,C,T]),f.contains=f.contains.concat([E,m,y,T]),x(f,"shebang",d.SHEBANG()),x(f,"use_strict",v);const w=f.contains.find(N=>N.label==="func.def");return w.relevance=0,Object.assign(f,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),f}return UO=u,UO}var GO,Oee;function Ctt(){if(Oee)return GO;Oee=1;function t(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}return GO=t,GO}var qO,Dee;function wtt(){if(Dee)return qO;Dee=1;function t(e){const r=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},a=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,l=/\d{1,2}(:\d{1,2}){1,2}/,u={className:"literal",variants:[{begin:r.concat(/# */,r.either(s,a),/ *#/)},{begin:r.concat(/# */,l,/ *#/)},{begin:r.concat(/# */,o,/ *#/)},{begin:r.concat(/# */,r.either(s,a),/ +/,r.either(o,l),/ *#/)}]},d={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},h={className:"label",begin:/^\w+:/},f=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,i,u,d,h,f,p,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[p]}]}}return qO=t,qO}var YO,Lee;function ktt(){if(Lee)return YO;Lee=1;function t(e){const r=e.regex,n=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],i=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],a={begin:r.concat(r.either(...n),"\\s*\\("),relevance:0,keywords:{built_in:n}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:i,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[a,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return YO=t,YO}var HO,Mee;function Att(){if(Mee)return HO;Mee=1;function t(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return HO=t,HO}var VO,Pee;function Rtt(){if(Pee)return VO;Pee=1;function t(e){const r=e.regex,n={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},i=["__FILE__","__LINE__"],a=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:n,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:r.concat(/`/,r.either(...i))},{scope:"meta",begin:r.concat(/`/,r.either(...a)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:a}]}}return VO=t,VO}var WO,Bee;function Ntt(){if(Bee)return WO;Bee=1;function t(e){const r="\\d(_|\\d)*",n="[eE][-+]?"+r,i=r+"(\\."+r+")?("+n+")?",a="\\w+",o="\\b("+(r+"#"+a+"(\\."+a+")?#("+n+")?")+"|"+i+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:o,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}return WO=t,WO}var KO,Fee;function Itt(){if(Fee)return KO;Fee=1;function t(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return KO=t,KO}var XO,$ee;function Ott(){if($ee)return XO;$ee=1;function t(e){e.regex;const r=e.COMMENT(/\(;/,/;\)/);r.contains.push("self");const n=e.COMMENT(/;;/,/$/),i=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],a={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},l={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},u={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},d={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:i},contains:[n,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,o,a,e.QUOTE_STRING_MODE,u,d,l]}}return XO=t,XO}var jO,zee;function Dtt(){if(zee)return jO;zee=1;function t(e){const r=e.regex,n=/[a-zA-Z]\w*/,i=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],a=["true","false","null"],s=["this","super"],o=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],l=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],u={relevance:0,match:r.concat(/\b(?!(if|while|for|else|super)\b)/,n,/(?=\s*[({])/),className:"title.function"},d={match:r.concat(r.either(r.concat(/\b(?!(if|while|for|else|super)\b)/,n),r.either(...l)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:n}]}]}},h={variants:[{match:[/class\s+/,n,/\s+is\s+/,n]},{match:[/class\s+/,n]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i},f={relevance:0,match:r.either(...l),className:"operator"},p={className:"string",begin:/"""/,end:/"""/},g={className:"property",begin:r.concat(/\./,r.lookahead(n)),end:n,excludeBegin:!0,relevance:0},m={relevance:0,match:r.concat(/\b_/,n),scope:"variable"},y={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:o}},v=e.C_NUMBER_MODE,b={match:[n,/\s*/,/=/,/\s*/,/\(/,n,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},_=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),E={scope:"subst",begin:/%\(/,end:/\)/,contains:[v,y,u,m,f]},x={scope:"string",begin:/"/,end:/"/,contains:[E,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};E.contains.push(x);const C=[...i,...s,...a],T={relevance:0,match:r.concat("\\b(?!",C.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:i,"variable.language":s,literal:a},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:a},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},v,x,p,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,h,b,d,u,f,m,g,T]}}return jO=t,jO}var QO,Uee;function Ltt(){if(Uee)return QO;Uee=1;function t(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return QO=t,QO}var ZO,Gee;function Mtt(){if(Gee)return ZO;Gee=1;function t(e){const r=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],n=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],i=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],s={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:r,literal:["true","false","nil"],built_in:n.concat(i)},o={className:"string",begin:'"',end:'"',illegal:"\\n"},l={className:"string",begin:"'",end:"'",illegal:"\\n"},u={className:"string",begin:"<<",end:">>"},d={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},h={beginKeywords:"import",end:"$",keywords:s,contains:[o]},f={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:s}})]};return{name:"XL",aliases:["tao"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,l,u,f,h,d,e.NUMBER_MODE]}}return ZO=t,ZO}var JO,qee;function Ptt(){if(qee)return JO;qee=1;function t(e){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return JO=t,JO}var e9,Yee;function Btt(){if(Yee)return e9;Yee=1;function t(e){const r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n=e.UNDERSCORE_TITLE_MODE,i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},a="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:a,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[n,{className:"params",begin:/\(/,end:/\)/,keywords:a,contains:["self",e.C_BLOCK_COMMENT_MODE,r,i]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},n]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[n]},{beginKeywords:"use",end:/;/,contains:[n]},{begin:/=>/},r,i]}}return e9=t,e9}var t9,Hee;function Ftt(){if(Hee)return t9;Hee=1;var t=aZe();return t.registerLanguage("1c",sZe()),t.registerLanguage("abnf",oZe()),t.registerLanguage("accesslog",lZe()),t.registerLanguage("actionscript",cZe()),t.registerLanguage("ada",uZe()),t.registerLanguage("angelscript",dZe()),t.registerLanguage("apache",hZe()),t.registerLanguage("applescript",fZe()),t.registerLanguage("arcade",pZe()),t.registerLanguage("arduino",gZe()),t.registerLanguage("armasm",mZe()),t.registerLanguage("xml",yZe()),t.registerLanguage("asciidoc",vZe()),t.registerLanguage("aspectj",_Ze()),t.registerLanguage("autohotkey",bZe()),t.registerLanguage("autoit",EZe()),t.registerLanguage("avrasm",SZe()),t.registerLanguage("awk",TZe()),t.registerLanguage("axapta",xZe()),t.registerLanguage("bash",CZe()),t.registerLanguage("basic",wZe()),t.registerLanguage("bnf",kZe()),t.registerLanguage("brainfuck",AZe()),t.registerLanguage("c",RZe()),t.registerLanguage("cal",NZe()),t.registerLanguage("capnproto",IZe()),t.registerLanguage("ceylon",OZe()),t.registerLanguage("clean",DZe()),t.registerLanguage("clojure",LZe()),t.registerLanguage("clojure-repl",MZe()),t.registerLanguage("cmake",PZe()),t.registerLanguage("coffeescript",BZe()),t.registerLanguage("coq",FZe()),t.registerLanguage("cos",$Ze()),t.registerLanguage("cpp",zZe()),t.registerLanguage("crmsh",UZe()),t.registerLanguage("crystal",GZe()),t.registerLanguage("csharp",qZe()),t.registerLanguage("csp",YZe()),t.registerLanguage("css",HZe()),t.registerLanguage("d",VZe()),t.registerLanguage("markdown",WZe()),t.registerLanguage("dart",KZe()),t.registerLanguage("delphi",XZe()),t.registerLanguage("diff",jZe()),t.registerLanguage("django",QZe()),t.registerLanguage("dns",ZZe()),t.registerLanguage("dockerfile",JZe()),t.registerLanguage("dos",eJe()),t.registerLanguage("dsconfig",tJe()),t.registerLanguage("dts",rJe()),t.registerLanguage("dust",nJe()),t.registerLanguage("ebnf",iJe()),t.registerLanguage("elixir",aJe()),t.registerLanguage("elm",sJe()),t.registerLanguage("ruby",oJe()),t.registerLanguage("erb",lJe()),t.registerLanguage("erlang-repl",cJe()),t.registerLanguage("erlang",uJe()),t.registerLanguage("excel",dJe()),t.registerLanguage("fix",hJe()),t.registerLanguage("flix",fJe()),t.registerLanguage("fortran",pJe()),t.registerLanguage("fsharp",gJe()),t.registerLanguage("gams",mJe()),t.registerLanguage("gauss",yJe()),t.registerLanguage("gcode",vJe()),t.registerLanguage("gherkin",_Je()),t.registerLanguage("glsl",bJe()),t.registerLanguage("gml",EJe()),t.registerLanguage("go",SJe()),t.registerLanguage("golo",TJe()),t.registerLanguage("gradle",xJe()),t.registerLanguage("graphql",CJe()),t.registerLanguage("groovy",wJe()),t.registerLanguage("haml",kJe()),t.registerLanguage("handlebars",AJe()),t.registerLanguage("haskell",RJe()),t.registerLanguage("haxe",NJe()),t.registerLanguage("hsp",IJe()),t.registerLanguage("http",OJe()),t.registerLanguage("hy",DJe()),t.registerLanguage("inform7",LJe()),t.registerLanguage("ini",MJe()),t.registerLanguage("irpf90",PJe()),t.registerLanguage("isbl",BJe()),t.registerLanguage("java",FJe()),t.registerLanguage("javascript",$Je()),t.registerLanguage("jboss-cli",zJe()),t.registerLanguage("json",UJe()),t.registerLanguage("julia",GJe()),t.registerLanguage("julia-repl",qJe()),t.registerLanguage("kotlin",YJe()),t.registerLanguage("lasso",HJe()),t.registerLanguage("latex",VJe()),t.registerLanguage("ldif",WJe()),t.registerLanguage("leaf",KJe()),t.registerLanguage("less",XJe()),t.registerLanguage("lisp",jJe()),t.registerLanguage("livecodeserver",QJe()),t.registerLanguage("livescript",ZJe()),t.registerLanguage("llvm",JJe()),t.registerLanguage("lsl",eet()),t.registerLanguage("lua",tet()),t.registerLanguage("makefile",ret()),t.registerLanguage("mathematica",net()),t.registerLanguage("matlab",iet()),t.registerLanguage("maxima",aet()),t.registerLanguage("mel",set()),t.registerLanguage("mercury",oet()),t.registerLanguage("mipsasm",cet()),t.registerLanguage("mizar",uet()),t.registerLanguage("perl",det()),t.registerLanguage("mojolicious",het()),t.registerLanguage("monkey",fet()),t.registerLanguage("moonscript",pet()),t.registerLanguage("n1ql",get()),t.registerLanguage("nestedtext",met()),t.registerLanguage("nginx",yet()),t.registerLanguage("nim",vet()),t.registerLanguage("nix",_et()),t.registerLanguage("node-repl",bet()),t.registerLanguage("nsis",Eet()),t.registerLanguage("objectivec",Tet()),t.registerLanguage("ocaml",xet()),t.registerLanguage("openscad",Cet()),t.registerLanguage("oxygene",wet()),t.registerLanguage("parser3",ket()),t.registerLanguage("pf",Aet()),t.registerLanguage("pgsql",Ret()),t.registerLanguage("php",Net()),t.registerLanguage("php-template",Iet()),t.registerLanguage("plaintext",Oet()),t.registerLanguage("pony",Det()),t.registerLanguage("powershell",Let()),t.registerLanguage("processing",Met()),t.registerLanguage("profile",Pet()),t.registerLanguage("prolog",Bet()),t.registerLanguage("properties",Fet()),t.registerLanguage("protobuf",$et()),t.registerLanguage("puppet",zet()),t.registerLanguage("purebasic",Uet()),t.registerLanguage("python",Get()),t.registerLanguage("python-repl",qet()),t.registerLanguage("q",Yet()),t.registerLanguage("qml",Het()),t.registerLanguage("r",Vet()),t.registerLanguage("reasonml",Wet()),t.registerLanguage("rib",Ket()),t.registerLanguage("roboconf",Xet()),t.registerLanguage("routeros",jet()),t.registerLanguage("rsl",Qet()),t.registerLanguage("ruleslanguage",Zet()),t.registerLanguage("rust",Jet()),t.registerLanguage("sas",ett()),t.registerLanguage("scala",ttt()),t.registerLanguage("scheme",rtt()),t.registerLanguage("scilab",ntt()),t.registerLanguage("scss",itt()),t.registerLanguage("shell",att()),t.registerLanguage("smali",stt()),t.registerLanguage("smalltalk",ott()),t.registerLanguage("sml",ltt()),t.registerLanguage("sqf",ctt()),t.registerLanguage("sql",utt()),t.registerLanguage("stan",dtt()),t.registerLanguage("stata",htt()),t.registerLanguage("step21",ftt()),t.registerLanguage("stylus",ptt()),t.registerLanguage("subunit",gtt()),t.registerLanguage("swift",mtt()),t.registerLanguage("taggerscript",ytt()),t.registerLanguage("yaml",vtt()),t.registerLanguage("tap",_tt()),t.registerLanguage("tcl",btt()),t.registerLanguage("thrift",Ett()),t.registerLanguage("tp",Stt()),t.registerLanguage("twig",Ttt()),t.registerLanguage("typescript",xtt()),t.registerLanguage("vala",Ctt()),t.registerLanguage("vbnet",wtt()),t.registerLanguage("vbscript",ktt()),t.registerLanguage("vbscript-html",Att()),t.registerLanguage("verilog",Rtt()),t.registerLanguage("vhdl",Ntt()),t.registerLanguage("vim",Itt()),t.registerLanguage("wasm",Ott()),t.registerLanguage("wren",Dtt()),t.registerLanguage("x86asm",Ltt()),t.registerLanguage("xl",Mtt()),t.registerLanguage("xquery",Ptt()),t.registerLanguage("zephir",Btt()),t.HighlightJS=t,t.default=t,t9=t,t9}var r9,Vee;function $tt(){if(Vee)return r9;Vee=1;var t=Object.defineProperty,e=Object.defineProperties,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,l=(T,w,N)=>w in T?t(T,w,{enumerable:!0,configurable:!0,writable:!0,value:N}):T[w]=N,u=(T,w)=>{for(var N in w||(w={}))s.call(w,N)&&l(T,N,w[N]);if(a)for(var N of a(w))o.call(w,N)&&l(T,N,w[N]);return T},d=(T,w)=>e(T,n(w)),h=(T,w)=>{for(var N in w)t(T,N,{get:w[N],enumerable:!0})},f=(T,w,N,O)=>{if(w&&typeof w=="object"||typeof w=="function")for(let M of i(w))!s.call(T,M)&&M!==N&&t(T,M,{get:()=>w[M],enumerable:!(O=r(w,M))||O.enumerable});return T},p=T=>f(t({},"__esModule",{value:!0}),T),g={};h(g,{default:()=>C}),r9=p(g);function m(T,w){for(const[N,O]of Object.entries(w))T.registerLanguage(N,O)}function y(T,w){for(const[N,O]of Object.entries(w))T.registerAliases(O,{languageName:N})}function v(T,w,N,O,M){try{return w.highlight(O,{language:M!==""?M:"plaintext",ignoreIllegals:N}).value}catch{return T.utils.escapeHtml(O)}}function b(T,w,N,O,M){if(M!=="")return v(T,w,N,O,M);try{return w.highlightAuto(O).value}catch{return T.utils.escapeHtml(O)}}function _(T){return function(...N){return T(...N).replace(//g,'')}}function E(T){var w,N;for(const O of T.tokens)if(O.type==="inline"&&O.children!=null)for(const[M,$]of O.children.entries()){if($.type!=="code_inline")continue;const F=O.children[M+1];if(F==null)continue;const A=/^{:?\.([^}]+)}/.exec(F.content);if(A==null)continue;const I=A[1];F.content=F.content.slice(A[0].length);let D=(w=$.attrGet("class"))!=null?w:"";D+=`${(N=T.md.options.langPrefix)!=null?N:"language-"}${I}`,$.attrSet("class",D),$.meta=d(u({},$.meta),{highlightLanguage:I})}}function x(T,w,N,O,M){var $,F;const A=T[w];if(N.highlight==null)throw new Error("`options.highlight` was null, this is not supposed to happen");const I=N.highlight(A.content,(F=($=A.meta)==null?void 0:$.highlightLanguage)!=null?F:"","");return`${I}`}function C(T,w){const N=u(u({},C.defaults),w);if(N.hljs==null)throw new Error("Please pass a highlight.js instance for the required `hljs` option.");N.register!=null&&m(N.hljs,N.register),N.registerAliases!=null&&y(N.hljs,N.registerAliases),T.options.highlight=(N.auto?b:v).bind(null,T,N.hljs,N.ignoreIllegals),T.renderer.rules.fence!=null&&(T.renderer.rules.fence=_(T.renderer.rules.fence)),N.code&&T.renderer.rules.code_block!=null&&(T.renderer.rules.code_block=_(T.renderer.rules.code_block)),N.inline&&(T.core.ruler.before("linkify","inline_code_language",E),T.renderer.rules.code_inline=_(x))}return C.defaults={auto:!1,code:!1,inline:!1,ignoreIllegals:!1},r9}var n9,Wee;function ztt(){if(Wee)return n9;Wee=1;var t=Object.create,e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,l=(b,_,E)=>_ in b?e(b,_,{enumerable:!0,configurable:!0,writable:!0,value:E}):b[_]=E,u=(b,_)=>{for(var E in _||(_={}))s.call(_,E)&&l(b,E,_[E]);if(i)for(var E of i(_))o.call(_,E)&&l(b,E,_[E]);return b},d=(b,_)=>{for(var E in _)e(b,E,{get:_[E],enumerable:!0})},h=(b,_,E,x)=>{if(_&&typeof _=="object"||typeof _=="function")for(let C of n(_))!s.call(b,C)&&C!==E&&e(b,C,{get:()=>_[C],enumerable:!(x=r(_,C))||x.enumerable});return b},f=(b,_,E)=>(E=b!=null?t(a(b)):{},h(!b||!b.__esModule?e(E,"default",{value:b,enumerable:!0}):E,b)),p=b=>h(e({},"__esModule",{value:!0}),b),g={};d(g,{default:()=>v}),n9=p(g);var m=f(Ftt()),y=f($tt());function v(b,_){return _=u(u({},v.defaults),_),_.hljs==null&&(_.hljs=m.default),(0,y.default)(b,_)}return v.defaults={auto:!0,code:!0,inline:!1,ignoreIllegals:!0},n9}var i9,Kee;function Utt(){return Kee||(Kee=1,i9=ztt().default),i9}var c1e=Utt();const Gtt=Ml(c1e),qtt=eNe({__proto__:null,default:Gtt},[c1e]);let jt=class u1e extends Error{constructor(e,r){var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var d;a+15t.replace(Ytt,"-$1").toLowerCase(),Htt={"&":"&",">":">","<":"<",'"':""","'":"'"},Vtt=/[&><"']/g,us=t=>String(t).replace(Vtt,e=>Htt[e]),ZE=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?ZE(t.body[0]):t:t.type==="font"?ZE(t.body):t,Wtt=new Set(["mathord","textord","atom"]),V0=t=>Wtt.has(ZE(t).type),Ktt=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},FP={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 "},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 ",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:t=>"#"+t},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),cli:"--min-rule-thickness ",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:t=>Math.max(0,t),cli:"-s, --max-size ",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:t=>Math.max(0,t),cli:"-e, --max-expand ",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function Xtt(t){if("default"in t)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}let RG=class{constructor(e){e===void 0&&(e={}),e=e||{};for(var r of Object.keys(FP)){var n=FP[r],i=e[r];this[r]=i!==void 0?n.processor?n.processor(i):i:Xtt(n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new jt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=Ktt(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}},fd=class{constructor(e,r,n){this.id=e,this.size=r,this.cramped=n}sup(){return Fc[jtt[this.id]]}sub(){return Fc[Qtt[this.id]]}fracNum(){return Fc[Ztt[this.id]]}fracDen(){return Fc[Jtt[this.id]]}cramp(){return Fc[ert[this.id]]}text(){return Fc[trt[this.id]]}isTight(){return this.size>=2}};var NG=0,s6=1,Km=2,y0=3,jS=4,vl=5,rb=6,Ms=7,Fc=[new fd(NG,0,!1),new fd(s6,0,!0),new fd(Km,1,!1),new fd(y0,1,!0),new fd(jS,2,!1),new fd(vl,2,!0),new fd(rb,3,!1),new fd(Ms,3,!0)],jtt=[jS,vl,jS,vl,rb,Ms,rb,Ms],Qtt=[vl,vl,vl,vl,Ms,Ms,Ms,Ms],Ztt=[Km,y0,jS,vl,rb,Ms,rb,Ms],Jtt=[y0,y0,vl,vl,Ms,Ms,Ms,Ms],ert=[s6,s6,y0,y0,vl,vl,Ms,Ms],trt=[NG,s6,Km,y0,Km,y0,Km,y0],jr={DISPLAY:Fc[NG],TEXT:Fc[Km],SCRIPT:Fc[jS],SCRIPTSCRIPT:Fc[rb]},$P=[{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]]}];function rrt(t){for(var e=0;e<$P.length;e++)for(var r=$P[e],n=0;n=i[0]&&t<=i[1])return r.name}return null}var a5=[];$P.forEach(t=>t.blocks.forEach(e=>a5.push(...e)));function d1e(t){for(var e=0;e=a5[e]&&t<=a5[e+1])return!0;return!1}var Pg=80,nrt=function(e,r){return"M95,"+(622+e+r)+` +`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return OO=t,OO}var DO,Tee;function ytt(){if(Tee)return DO;Tee=1;function t(w){return w?typeof w=="string"?w:w.source:null}function e(w){return r("(?=",w,")")}function r(...w){return w.map(O=>t(O)).join("")}function n(w){const N=w[w.length-1];return typeof N=="object"&&N.constructor===Object?(w.splice(w.length-1,1),N):{}}function i(...w){return"("+(n(w).capture?"":"?:")+w.map(M=>t(M)).join("|")+")"}const a=w=>r(/\b/,w,/\w$/.test(w)?/\b/:/\B/),s=["Protocol","Type"].map(a),o=["init","self"].map(a),l=["Any","Self"],u=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],d=["false","nil","true"],h=["assignment","associativity","higherThan","left","lowerThan","none","right"],f=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],g=i(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),m=i(g,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),y=r(g,m,"*"),v=i(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),b=i(v,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),_=r(v,b,"*"),E=r(/[A-Z]/,b,"*"),x=["attached","autoclosure",r(/convention\(/,i("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,_,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],C=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function T(w){const N={match:/\s+/,relevance:0},O=w.COMMENT("/\\*","\\*/",{contains:["self"]}),M=[w.C_LINE_COMMENT_MODE,O],$={match:[/\./,i(...s,...o)],className:{2:"keyword"}},F={match:r(/\./,i(...u)),relevance:0},A=u.filter(Ce=>typeof Ce=="string").concat(["_|0"]),I=u.filter(Ce=>typeof Ce!="string").concat(l).map(a),D={variants:[{className:"keyword",match:i(...I,...o)}]},L={$pattern:i(/\b\w+/,/#\w+/),keyword:A.concat(f),literal:d},R=[$,F,D],P={match:r(/\./,i(...p)),relevance:0},z={className:"built_in",match:r(/\b/,i(...p),/(?=\()/)},B=[P,z],q={match:/->/,relevance:0},Y={className:"operator",relevance:0,variants:[{match:y},{match:`\\.(\\.|${m})+`}]},Q=[q,Y],H="([0-9]_*)+",J="([0-9a-fA-F]_*)+",Z={className:"number",relevance:0,variants:[{match:`\\b(${H})(\\.(${H}))?([eE][+-]?(${H}))?\\b`},{match:`\\b0x(${J})(\\.(${J}))?([pP][+-]?(${H}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},pe=(Ce="")=>({className:"subst",variants:[{match:r(/\\/,Ce,/[0\\tnr"']/)},{match:r(/\\/,Ce,/u\{[0-9a-fA-F]{1,8}\}/)}]}),re=(Ce="")=>({className:"subst",match:r(/\\/,Ce,/[\t ]*(?:[\r\n]|\r\n)/)}),ce=(Ce="")=>({className:"subst",label:"interpol",begin:r(/\\/,Ce,/\(/),end:/\)/}),ae=(Ce="")=>({begin:r(Ce,/"""/),end:r(/"""/,Ce),contains:[pe(Ce),re(Ce),ce(Ce)]}),se=(Ce="")=>({begin:r(Ce,/"/),end:r(/"/,Ce),contains:[pe(Ce),ce(Ce)]}),xe={className:"string",variants:[ae(),ae("#"),ae("##"),ae("###"),se(),se("#"),se("##"),se("###")]},Te=[w.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[w.BACKSLASH_ESCAPE]}],Ge={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Te},ze=Ce=>{const ye=r(Ce,/\//),Me=r(/\//,Ce);return{begin:ye,end:Me,contains:[...Te,{scope:"comment",begin:`#(?!.*${Me})`,end:/$/}]}},Xe={scope:"regexp",variants:[ze("###"),ze("##"),ze("#"),Ge]},Le={match:r(/`/,_,/`/)},Re={className:"variable",match:/\$\d+/},qe={className:"variable",match:`\\$${b}+`},Ne=[Le,Re,qe],ut={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:C,contains:[...Q,Z,xe]}]}},De={scope:"keyword",match:r(/@/,i(...x),e(i(/\(/,/\s+/)))},Je={scope:"meta",match:r(/@/,_)},st=[ut,De,Je],ct={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,b,"+")},{className:"type",match:E,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,e(E)),relevance:0}]},ot={begin://,keywords:L,contains:[...M,...R,...st,q,ct]};ct.contains.push(ot);const it={match:r(_,/\s*:/),keywords:"_|0",relevance:0},Oe={begin:/\(/,end:/\)/,relevance:0,keywords:L,contains:["self",it,...M,Xe,...R,...B,...Q,Z,xe,...Ne,...st,ct]},U={begin://,keywords:"repeat each",contains:[...M,ct]},oe={begin:i(e(r(_,/\s*:/)),e(r(_,/\s+/,_,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:_}]},de={begin:/\(/,end:/\)/,keywords:L,contains:[oe,...M,...R,...Q,Z,xe,...st,ct,Oe],endsParent:!0,illegal:/["']/},G={match:[/(func|macro)/,/\s+/,i(Le.match,_,y)],className:{1:"keyword",3:"title.function"},contains:[U,de,N],illegal:[/\[/,/%/]},ie={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[U,de,N],illegal:/\[|%/},j={match:[/operator/,/\s+/,y],className:{1:"keyword",3:"title"}},V={begin:[/precedencegroup/,/\s+/,E],className:{1:"keyword",3:"title"},contains:[ct],keywords:[...h,...d],end:/}/},ue={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Fe={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},me={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,_,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:L,contains:[U,...R,{begin:/:/,end:/\{/,keywords:L,contains:[{scope:"title.class.inherited",match:E},...R],relevance:0}]};for(const Ce of xe.variants){const ye=Ce.contains.find(Ie=>Ie.label==="interpol");ye.keywords=L;const Me=[...R,...B,...Q,Z,xe,...Ne];ye.contains=[...Me,{begin:/\(/,end:/\)/,contains:["self",...Me]}]}return{name:"Swift",keywords:L,contains:[...M,G,ie,ue,Fe,me,j,V,{beginKeywords:"import",end:/$/,contains:[...M],relevance:0},Xe,...R,...B,...Q,Z,xe,...Ne,...st,ct,Oe]}}return DO=T,DO}var LO,xee;function vtt(){if(xee)return LO;xee=1;function t(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}return LO=t,LO}var MO,Cee;function _tt(){if(Cee)return MO;Cee=1;function t(e){const r="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},a={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,a]},l=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},g={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},m={begin:/\{/,end:/\}/,contains:[g],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},v=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},p,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},m,y,s,o],b=[...v];return b.pop(),b.push(l),g.contains=b,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return MO=t,MO}var PO,wee;function btt(){if(wee)return PO;wee=1;function t(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return PO=t,PO}var BO,kee;function Ett(){if(kee)return BO;kee=1;function t(e){const r=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,i={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:r.concat(/\$/,r.optional(/::/),n,"(::",n,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[i]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i]}}return BO=t,BO}var FO,Aee;function Stt(){if(Aee)return FO;Aee=1;function t(e){const r=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:r,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...r,"set","list","map"]},end:">",contains:["self"]}]}}return FO=t,FO}var $O,Ree;function Ttt(){if(Ree)return $O;Ree=1;function t(e){const r={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"},i={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",r,n]},a={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",r,e.QUOTE_STRING_MODE,n]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[i,a,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return $O=t,$O}var zO,Nee;function xtt(){if(Nee)return zO;Nee=1;function t(e){const r=e.regex,n=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],i=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let a=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];a=a.concat(a.map(m=>`end${m}`));const s={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},o={scope:"number",match:/\d+/},l={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[s,o]},u={beginKeywords:n.join(" "),keywords:{name:n},relevance:0,contains:[l]},d={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:i}]},h=(m,{relevance:y})=>({beginScope:{1:"template-tag",3:"name"},relevance:y||2,endScope:"template-tag",begin:[/\{%/,/\s*/,r.either(...m)],end:/%\}/,keywords:"in",contains:[d,u,s,o]}),f=/[a-z_]+/,p=h(a,{relevance:2}),g=h([f],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),p,g,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",d,u,s,o]}]}}return zO=t,zO}var UO,Iee;function Ctt(){if(Iee)return UO;Iee=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(a,n,i);function l(d){const h=d.regex,f=(pe,{after:re})=>{const ce="",end:""},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,y={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(pe,re)=>{const ce=pe[0].length+pe.index,ae=pe.input[ce];if(ae==="<"||ae===","){re.ignoreMatch();return}ae===">"&&(f(pe,{after:ce})||re.ignoreMatch());let se;const xe=pe.input.substring(ce);if(se=xe.match(/^\s*=/)){re.ignoreMatch();return}if((se=xe.match(/^\s+extends\s+/))&&se.index===0){re.ignoreMatch();return}}},v={$pattern:t,keyword:e,literal:r,built_in:o,"variable.language":s},b="[0-9](_?[0-9])*",_=`\\.(${b})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",x={className:"number",variants:[{begin:`(\\b(${E})((${_})|\\.)?|(${_}))[eE][+-]?(${b})\\b`},{begin:`\\b(${E})\\b((${_})\\b|\\.)?|(${_})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},C={className:"subst",begin:"\\$\\{",end:"\\}",keywords:v,contains:[]},T={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,C],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,C],subLanguage:"css"}},N={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,C],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[d.BACKSLASH_ESCAPE,C]},$={className:"comment",variants:[d.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:p+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),d.C_BLOCK_COMMENT_MODE,d.C_LINE_COMMENT_MODE]},F=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,T,w,N,O,{match:/\$\d+/},x];C.contains=F.concat({begin:/\{/,end:/\}/,keywords:v,contains:["self"].concat(F)});const A=[].concat($,C.contains),I=A.concat([{begin:/(\s*)\(/,end:/\)/,keywords:v,contains:["self"].concat(A)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:I},L={variants:[{match:[/class/,/\s+/,p,/\s+/,/extends/,/\s+/,h.concat(p,"(",h.concat(/\./,p),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,p],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0,match:h.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...n,...i]}},P={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,p,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function q(pe){return h.concat("(?!",pe.join("|"),")")}const Y={match:h.concat(/\b/,q([...a,"super","import"].map(pe=>`${pe}\\s*\\(`)),p,h.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:h.concat(/\./,h.lookahead(h.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},J="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,h.lookahead(J)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:v,exports:{PARAMS_CONTAINS:I,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,T,w,N,O,$,{match:/\$\d+/},x,R,{scope:"attr",match:p+h.lookahead(":"),relevance:0},Z,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[$,d.REGEXP_MODE,{className:"function",begin:J,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:d.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:I}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:m},{begin:y.begin,"on:begin":y.isTrulyOpeningTag,end:y.end}],subLanguage:"xml",contains:[{begin:y.begin,end:y.end,skip:!0,contains:["self"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+d.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,d.inherit(d.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},Y,B,L,H,{match:/\$[(.]/}]}}function u(d){const h=d.regex,f=l(d),p=t,g=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],m={begin:[/namespace/,/\s+/,d.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},y={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:g},contains:[f.exports.CLASS_REFERENCE]},v={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],_={$pattern:t,keyword:e.concat(b),literal:r,built_in:o.concat(g),"variable.language":s},E={className:"meta",begin:"@"+p},x=(N,O,M)=>{const $=N.contains.findIndex(F=>F.label===O);if($===-1)throw new Error("can not find mode to replace");N.contains.splice($,1,M)};Object.assign(f.keywords,_),f.exports.PARAMS_CONTAINS.push(E);const C=f.contains.find(N=>N.scope==="attr"),T=Object.assign({},C,{match:h.concat(p,h.lookahead(/\s*\?:/))});f.exports.PARAMS_CONTAINS.push([f.exports.CLASS_REFERENCE,C,T]),f.contains=f.contains.concat([E,m,y,T]),x(f,"shebang",d.SHEBANG()),x(f,"use_strict",v);const w=f.contains.find(N=>N.label==="func.def");return w.relevance=0,Object.assign(f,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),f}return UO=u,UO}var GO,Oee;function wtt(){if(Oee)return GO;Oee=1;function t(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}return GO=t,GO}var qO,Dee;function ktt(){if(Dee)return qO;Dee=1;function t(e){const r=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},a=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,l=/\d{1,2}(:\d{1,2}){1,2}/,u={className:"literal",variants:[{begin:r.concat(/# */,r.either(s,a),/ *#/)},{begin:r.concat(/# */,l,/ *#/)},{begin:r.concat(/# */,o,/ *#/)},{begin:r.concat(/# */,r.either(s,a),/ +/,r.either(o,l),/ *#/)}]},d={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},h={className:"label",begin:/^\w+:/},f=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,i,u,d,h,f,p,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[p]}]}}return qO=t,qO}var YO,Lee;function Att(){if(Lee)return YO;Lee=1;function t(e){const r=e.regex,n=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],i=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],a={begin:r.concat(r.either(...n),"\\s*\\("),relevance:0,keywords:{built_in:n}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:i,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[a,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return YO=t,YO}var HO,Mee;function Rtt(){if(Mee)return HO;Mee=1;function t(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return HO=t,HO}var VO,Pee;function Ntt(){if(Pee)return VO;Pee=1;function t(e){const r=e.regex,n={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},i=["__FILE__","__LINE__"],a=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:n,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:r.concat(/`/,r.either(...i))},{scope:"meta",begin:r.concat(/`/,r.either(...a)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:a}]}}return VO=t,VO}var WO,Bee;function Itt(){if(Bee)return WO;Bee=1;function t(e){const r="\\d(_|\\d)*",n="[eE][-+]?"+r,i=r+"(\\."+r+")?("+n+")?",a="\\w+",o="\\b("+(r+"#"+a+"(\\."+a+")?#("+n+")?")+"|"+i+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:o,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}return WO=t,WO}var KO,Fee;function Ott(){if(Fee)return KO;Fee=1;function t(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return KO=t,KO}var XO,$ee;function Dtt(){if($ee)return XO;$ee=1;function t(e){e.regex;const r=e.COMMENT(/\(;/,/;\)/);r.contains.push("self");const n=e.COMMENT(/;;/,/$/),i=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],a={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},l={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},u={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},d={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:i},contains:[n,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,o,a,e.QUOTE_STRING_MODE,u,d,l]}}return XO=t,XO}var jO,zee;function Ltt(){if(zee)return jO;zee=1;function t(e){const r=e.regex,n=/[a-zA-Z]\w*/,i=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],a=["true","false","null"],s=["this","super"],o=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],l=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],u={relevance:0,match:r.concat(/\b(?!(if|while|for|else|super)\b)/,n,/(?=\s*[({])/),className:"title.function"},d={match:r.concat(r.either(r.concat(/\b(?!(if|while|for|else|super)\b)/,n),r.either(...l)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:n}]}]}},h={variants:[{match:[/class\s+/,n,/\s+is\s+/,n]},{match:[/class\s+/,n]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i},f={relevance:0,match:r.either(...l),className:"operator"},p={className:"string",begin:/"""/,end:/"""/},g={className:"property",begin:r.concat(/\./,r.lookahead(n)),end:n,excludeBegin:!0,relevance:0},m={relevance:0,match:r.concat(/\b_/,n),scope:"variable"},y={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:o}},v=e.C_NUMBER_MODE,b={match:[n,/\s*/,/=/,/\s*/,/\(/,n,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},_=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),E={scope:"subst",begin:/%\(/,end:/\)/,contains:[v,y,u,m,f]},x={scope:"string",begin:/"/,end:/"/,contains:[E,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};E.contains.push(x);const C=[...i,...s,...a],T={relevance:0,match:r.concat("\\b(?!",C.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:i,"variable.language":s,literal:a},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:a},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},v,x,p,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,h,b,d,u,f,m,g,T]}}return jO=t,jO}var QO,Uee;function Mtt(){if(Uee)return QO;Uee=1;function t(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return QO=t,QO}var ZO,Gee;function Ptt(){if(Gee)return ZO;Gee=1;function t(e){const r=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],n=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],i=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],s={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:r,literal:["true","false","nil"],built_in:n.concat(i)},o={className:"string",begin:'"',end:'"',illegal:"\\n"},l={className:"string",begin:"'",end:"'",illegal:"\\n"},u={className:"string",begin:"<<",end:">>"},d={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},h={beginKeywords:"import",end:"$",keywords:s,contains:[o]},f={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:s}})]};return{name:"XL",aliases:["tao"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,l,u,f,h,d,e.NUMBER_MODE]}}return ZO=t,ZO}var JO,qee;function Btt(){if(qee)return JO;qee=1;function t(e){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return JO=t,JO}var e9,Yee;function Ftt(){if(Yee)return e9;Yee=1;function t(e){const r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n=e.UNDERSCORE_TITLE_MODE,i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},a="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:a,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[n,{className:"params",begin:/\(/,end:/\)/,keywords:a,contains:["self",e.C_BLOCK_COMMENT_MODE,r,i]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},n]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[n]},{beginKeywords:"use",end:/;/,contains:[n]},{begin:/=>/},r,i]}}return e9=t,e9}var t9,Hee;function $tt(){if(Hee)return t9;Hee=1;var t=sZe();return t.registerLanguage("1c",oZe()),t.registerLanguage("abnf",lZe()),t.registerLanguage("accesslog",cZe()),t.registerLanguage("actionscript",uZe()),t.registerLanguage("ada",dZe()),t.registerLanguage("angelscript",hZe()),t.registerLanguage("apache",fZe()),t.registerLanguage("applescript",pZe()),t.registerLanguage("arcade",gZe()),t.registerLanguage("arduino",mZe()),t.registerLanguage("armasm",yZe()),t.registerLanguage("xml",vZe()),t.registerLanguage("asciidoc",_Ze()),t.registerLanguage("aspectj",bZe()),t.registerLanguage("autohotkey",EZe()),t.registerLanguage("autoit",SZe()),t.registerLanguage("avrasm",TZe()),t.registerLanguage("awk",xZe()),t.registerLanguage("axapta",CZe()),t.registerLanguage("bash",wZe()),t.registerLanguage("basic",kZe()),t.registerLanguage("bnf",AZe()),t.registerLanguage("brainfuck",RZe()),t.registerLanguage("c",NZe()),t.registerLanguage("cal",IZe()),t.registerLanguage("capnproto",OZe()),t.registerLanguage("ceylon",DZe()),t.registerLanguage("clean",LZe()),t.registerLanguage("clojure",MZe()),t.registerLanguage("clojure-repl",PZe()),t.registerLanguage("cmake",BZe()),t.registerLanguage("coffeescript",FZe()),t.registerLanguage("coq",$Ze()),t.registerLanguage("cos",zZe()),t.registerLanguage("cpp",UZe()),t.registerLanguage("crmsh",GZe()),t.registerLanguage("crystal",qZe()),t.registerLanguage("csharp",YZe()),t.registerLanguage("csp",HZe()),t.registerLanguage("css",VZe()),t.registerLanguage("d",WZe()),t.registerLanguage("markdown",KZe()),t.registerLanguage("dart",XZe()),t.registerLanguage("delphi",jZe()),t.registerLanguage("diff",QZe()),t.registerLanguage("django",ZZe()),t.registerLanguage("dns",JZe()),t.registerLanguage("dockerfile",eJe()),t.registerLanguage("dos",tJe()),t.registerLanguage("dsconfig",rJe()),t.registerLanguage("dts",nJe()),t.registerLanguage("dust",iJe()),t.registerLanguage("ebnf",aJe()),t.registerLanguage("elixir",sJe()),t.registerLanguage("elm",oJe()),t.registerLanguage("ruby",lJe()),t.registerLanguage("erb",cJe()),t.registerLanguage("erlang-repl",uJe()),t.registerLanguage("erlang",dJe()),t.registerLanguage("excel",hJe()),t.registerLanguage("fix",fJe()),t.registerLanguage("flix",pJe()),t.registerLanguage("fortran",gJe()),t.registerLanguage("fsharp",mJe()),t.registerLanguage("gams",yJe()),t.registerLanguage("gauss",vJe()),t.registerLanguage("gcode",_Je()),t.registerLanguage("gherkin",bJe()),t.registerLanguage("glsl",EJe()),t.registerLanguage("gml",SJe()),t.registerLanguage("go",TJe()),t.registerLanguage("golo",xJe()),t.registerLanguage("gradle",CJe()),t.registerLanguage("graphql",wJe()),t.registerLanguage("groovy",kJe()),t.registerLanguage("haml",AJe()),t.registerLanguage("handlebars",RJe()),t.registerLanguage("haskell",NJe()),t.registerLanguage("haxe",IJe()),t.registerLanguage("hsp",OJe()),t.registerLanguage("http",DJe()),t.registerLanguage("hy",LJe()),t.registerLanguage("inform7",MJe()),t.registerLanguage("ini",PJe()),t.registerLanguage("irpf90",BJe()),t.registerLanguage("isbl",FJe()),t.registerLanguage("java",$Je()),t.registerLanguage("javascript",zJe()),t.registerLanguage("jboss-cli",UJe()),t.registerLanguage("json",GJe()),t.registerLanguage("julia",qJe()),t.registerLanguage("julia-repl",YJe()),t.registerLanguage("kotlin",HJe()),t.registerLanguage("lasso",VJe()),t.registerLanguage("latex",WJe()),t.registerLanguage("ldif",KJe()),t.registerLanguage("leaf",XJe()),t.registerLanguage("less",jJe()),t.registerLanguage("lisp",QJe()),t.registerLanguage("livecodeserver",ZJe()),t.registerLanguage("livescript",JJe()),t.registerLanguage("llvm",eet()),t.registerLanguage("lsl",tet()),t.registerLanguage("lua",ret()),t.registerLanguage("makefile",net()),t.registerLanguage("mathematica",iet()),t.registerLanguage("matlab",aet()),t.registerLanguage("maxima",set()),t.registerLanguage("mel",oet()),t.registerLanguage("mercury",cet()),t.registerLanguage("mipsasm",uet()),t.registerLanguage("mizar",det()),t.registerLanguage("perl",het()),t.registerLanguage("mojolicious",fet()),t.registerLanguage("monkey",pet()),t.registerLanguage("moonscript",get()),t.registerLanguage("n1ql",met()),t.registerLanguage("nestedtext",yet()),t.registerLanguage("nginx",vet()),t.registerLanguage("nim",_et()),t.registerLanguage("nix",bet()),t.registerLanguage("node-repl",Eet()),t.registerLanguage("nsis",Tet()),t.registerLanguage("objectivec",xet()),t.registerLanguage("ocaml",Cet()),t.registerLanguage("openscad",wet()),t.registerLanguage("oxygene",ket()),t.registerLanguage("parser3",Aet()),t.registerLanguage("pf",Ret()),t.registerLanguage("pgsql",Net()),t.registerLanguage("php",Iet()),t.registerLanguage("php-template",Oet()),t.registerLanguage("plaintext",Det()),t.registerLanguage("pony",Let()),t.registerLanguage("powershell",Met()),t.registerLanguage("processing",Pet()),t.registerLanguage("profile",Bet()),t.registerLanguage("prolog",Fet()),t.registerLanguage("properties",$et()),t.registerLanguage("protobuf",zet()),t.registerLanguage("puppet",Uet()),t.registerLanguage("purebasic",Get()),t.registerLanguage("python",qet()),t.registerLanguage("python-repl",Yet()),t.registerLanguage("q",Het()),t.registerLanguage("qml",Vet()),t.registerLanguage("r",Wet()),t.registerLanguage("reasonml",Ket()),t.registerLanguage("rib",Xet()),t.registerLanguage("roboconf",jet()),t.registerLanguage("routeros",Qet()),t.registerLanguage("rsl",Zet()),t.registerLanguage("ruleslanguage",Jet()),t.registerLanguage("rust",ett()),t.registerLanguage("sas",ttt()),t.registerLanguage("scala",rtt()),t.registerLanguage("scheme",ntt()),t.registerLanguage("scilab",itt()),t.registerLanguage("scss",att()),t.registerLanguage("shell",stt()),t.registerLanguage("smali",ott()),t.registerLanguage("smalltalk",ltt()),t.registerLanguage("sml",ctt()),t.registerLanguage("sqf",utt()),t.registerLanguage("sql",dtt()),t.registerLanguage("stan",htt()),t.registerLanguage("stata",ftt()),t.registerLanguage("step21",ptt()),t.registerLanguage("stylus",gtt()),t.registerLanguage("subunit",mtt()),t.registerLanguage("swift",ytt()),t.registerLanguage("taggerscript",vtt()),t.registerLanguage("yaml",_tt()),t.registerLanguage("tap",btt()),t.registerLanguage("tcl",Ett()),t.registerLanguage("thrift",Stt()),t.registerLanguage("tp",Ttt()),t.registerLanguage("twig",xtt()),t.registerLanguage("typescript",Ctt()),t.registerLanguage("vala",wtt()),t.registerLanguage("vbnet",ktt()),t.registerLanguage("vbscript",Att()),t.registerLanguage("vbscript-html",Rtt()),t.registerLanguage("verilog",Ntt()),t.registerLanguage("vhdl",Itt()),t.registerLanguage("vim",Ott()),t.registerLanguage("wasm",Dtt()),t.registerLanguage("wren",Ltt()),t.registerLanguage("x86asm",Mtt()),t.registerLanguage("xl",Ptt()),t.registerLanguage("xquery",Btt()),t.registerLanguage("zephir",Ftt()),t.HighlightJS=t,t.default=t,t9=t,t9}var r9,Vee;function ztt(){if(Vee)return r9;Vee=1;var t=Object.defineProperty,e=Object.defineProperties,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,l=(T,w,N)=>w in T?t(T,w,{enumerable:!0,configurable:!0,writable:!0,value:N}):T[w]=N,u=(T,w)=>{for(var N in w||(w={}))s.call(w,N)&&l(T,N,w[N]);if(a)for(var N of a(w))o.call(w,N)&&l(T,N,w[N]);return T},d=(T,w)=>e(T,n(w)),h=(T,w)=>{for(var N in w)t(T,N,{get:w[N],enumerable:!0})},f=(T,w,N,O)=>{if(w&&typeof w=="object"||typeof w=="function")for(let M of i(w))!s.call(T,M)&&M!==N&&t(T,M,{get:()=>w[M],enumerable:!(O=r(w,M))||O.enumerable});return T},p=T=>f(t({},"__esModule",{value:!0}),T),g={};h(g,{default:()=>C}),r9=p(g);function m(T,w){for(const[N,O]of Object.entries(w))T.registerLanguage(N,O)}function y(T,w){for(const[N,O]of Object.entries(w))T.registerAliases(O,{languageName:N})}function v(T,w,N,O,M){try{return w.highlight(O,{language:M!==""?M:"plaintext",ignoreIllegals:N}).value}catch{return T.utils.escapeHtml(O)}}function b(T,w,N,O,M){if(M!=="")return v(T,w,N,O,M);try{return w.highlightAuto(O).value}catch{return T.utils.escapeHtml(O)}}function _(T){return function(...N){return T(...N).replace(//g,'')}}function E(T){var w,N;for(const O of T.tokens)if(O.type==="inline"&&O.children!=null)for(const[M,$]of O.children.entries()){if($.type!=="code_inline")continue;const F=O.children[M+1];if(F==null)continue;const A=/^{:?\.([^}]+)}/.exec(F.content);if(A==null)continue;const I=A[1];F.content=F.content.slice(A[0].length);let D=(w=$.attrGet("class"))!=null?w:"";D+=`${(N=T.md.options.langPrefix)!=null?N:"language-"}${I}`,$.attrSet("class",D),$.meta=d(u({},$.meta),{highlightLanguage:I})}}function x(T,w,N,O,M){var $,F;const A=T[w];if(N.highlight==null)throw new Error("`options.highlight` was null, this is not supposed to happen");const I=N.highlight(A.content,(F=($=A.meta)==null?void 0:$.highlightLanguage)!=null?F:"","");return`${I}`}function C(T,w){const N=u(u({},C.defaults),w);if(N.hljs==null)throw new Error("Please pass a highlight.js instance for the required `hljs` option.");N.register!=null&&m(N.hljs,N.register),N.registerAliases!=null&&y(N.hljs,N.registerAliases),T.options.highlight=(N.auto?b:v).bind(null,T,N.hljs,N.ignoreIllegals),T.renderer.rules.fence!=null&&(T.renderer.rules.fence=_(T.renderer.rules.fence)),N.code&&T.renderer.rules.code_block!=null&&(T.renderer.rules.code_block=_(T.renderer.rules.code_block)),N.inline&&(T.core.ruler.before("linkify","inline_code_language",E),T.renderer.rules.code_inline=_(x))}return C.defaults={auto:!1,code:!1,inline:!1,ignoreIllegals:!1},r9}var n9,Wee;function Utt(){if(Wee)return n9;Wee=1;var t=Object.create,e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,l=(b,_,E)=>_ in b?e(b,_,{enumerable:!0,configurable:!0,writable:!0,value:E}):b[_]=E,u=(b,_)=>{for(var E in _||(_={}))s.call(_,E)&&l(b,E,_[E]);if(i)for(var E of i(_))o.call(_,E)&&l(b,E,_[E]);return b},d=(b,_)=>{for(var E in _)e(b,E,{get:_[E],enumerable:!0})},h=(b,_,E,x)=>{if(_&&typeof _=="object"||typeof _=="function")for(let C of n(_))!s.call(b,C)&&C!==E&&e(b,C,{get:()=>_[C],enumerable:!(x=r(_,C))||x.enumerable});return b},f=(b,_,E)=>(E=b!=null?t(a(b)):{},h(!b||!b.__esModule?e(E,"default",{value:b,enumerable:!0}):E,b)),p=b=>h(e({},"__esModule",{value:!0}),b),g={};d(g,{default:()=>v}),n9=p(g);var m=f($tt()),y=f(ztt());function v(b,_){return _=u(u({},v.defaults),_),_.hljs==null&&(_.hljs=m.default),(0,y.default)(b,_)}return v.defaults={auto:!0,code:!0,inline:!1,ignoreIllegals:!0},n9}var i9,Kee;function Gtt(){return Kee||(Kee=1,i9=Utt().default),i9}var c1e=Gtt();const qtt=Ml(c1e),Ytt=eNe({__proto__:null,default:qtt},[c1e]);let jt=class u1e extends Error{constructor(e,r){var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var d;a+15t.replace(Htt,"-$1").toLowerCase(),Vtt={"&":"&",">":">","<":"<",'"':""","'":"'"},Wtt=/[&><"']/g,us=t=>String(t).replace(Wtt,e=>Vtt[e]),ZE=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?ZE(t.body[0]):t:t.type==="font"?ZE(t.body):t,Ktt=new Set(["mathord","textord","atom"]),V0=t=>Ktt.has(ZE(t).type),Xtt=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},FP={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 "},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 ",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:t=>"#"+t},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),cli:"--min-rule-thickness ",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:t=>Math.max(0,t),cli:"-s, --max-size ",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:t=>Math.max(0,t),cli:"-e, --max-expand ",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function jtt(t){if("default"in t)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}let RG=class{constructor(e){e===void 0&&(e={}),e=e||{};for(var r of Object.keys(FP)){var n=FP[r],i=e[r];this[r]=i!==void 0?n.processor?n.processor(i):i:jtt(n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new jt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=Xtt(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}},fd=class{constructor(e,r,n){this.id=e,this.size=r,this.cramped=n}sup(){return Fc[Qtt[this.id]]}sub(){return Fc[Ztt[this.id]]}fracNum(){return Fc[Jtt[this.id]]}fracDen(){return Fc[ert[this.id]]}cramp(){return Fc[trt[this.id]]}text(){return Fc[rrt[this.id]]}isTight(){return this.size>=2}};var NG=0,s6=1,Km=2,y0=3,jS=4,vl=5,rb=6,Ms=7,Fc=[new fd(NG,0,!1),new fd(s6,0,!0),new fd(Km,1,!1),new fd(y0,1,!0),new fd(jS,2,!1),new fd(vl,2,!0),new fd(rb,3,!1),new fd(Ms,3,!0)],Qtt=[jS,vl,jS,vl,rb,Ms,rb,Ms],Ztt=[vl,vl,vl,vl,Ms,Ms,Ms,Ms],Jtt=[Km,y0,jS,vl,rb,Ms,rb,Ms],ert=[y0,y0,vl,vl,Ms,Ms,Ms,Ms],trt=[s6,s6,y0,y0,vl,vl,Ms,Ms],rrt=[NG,s6,Km,y0,Km,y0,Km,y0],jr={DISPLAY:Fc[NG],TEXT:Fc[Km],SCRIPT:Fc[jS],SCRIPTSCRIPT:Fc[rb]},$P=[{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]]}];function nrt(t){for(var e=0;e<$P.length;e++)for(var r=$P[e],n=0;n=i[0]&&t<=i[1])return r.name}return null}var a5=[];$P.forEach(t=>t.blocks.forEach(e=>a5.push(...e)));function d1e(t){for(var e=0;e=a5[e]&&t<=a5[e+1])return!0;return!1}var Pg=80,irt=function(e,r){return"M95,"+(622+e+r)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.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 @@ -4133,7 +4133,7 @@ c5.3,-9.3,12,-14,20,-14 H400000v`+(40+e)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},irt=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119 +M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},art=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+e/2.084+" -"+e+` @@ -4143,7 +4143,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5, c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},art=function(e,r){return"M983 "+(10+e+r)+` +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},srt=function(e,r){return"M983 "+(10+e+r)+` l`+e/3.13+" -"+e+` c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 @@ -4152,7 +4152,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},srt=function(e,r){return"M424,"+(2398+e+r)+` +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},ort=function(e,r){return"M424,"+(2398+e+r)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-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 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 @@ -4162,18 +4162,18 @@ v`+(40+e)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+` -h400000v`+(40+e)+"h-400000z"},ort=function(e,r){return"M473,"+(2713+e+r)+` +h400000v`+(40+e)+"h-400000z"},lrt=function(e,r){return"M473,"+(2713+e+r)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-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 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},lrt=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},crt=function(e,r,n){var i=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` +606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},crt=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},urt=function(e,r,n){var i=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` H742v`+i+`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 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},urt=function(e,r,n){r=1e3*r;var i="";switch(e){case"sqrtMain":i=nrt(r,Pg);break;case"sqrtSize1":i=irt(r,Pg);break;case"sqrtSize2":i=art(r,Pg);break;case"sqrtSize3":i=srt(r,Pg);break;case"sqrtSize4":i=ort(r,Pg);break;case"sqrtTall":i=crt(r,Pg,n)}return i},drt=function(e,r){switch(e){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},Xee={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},drt=function(e,r,n){r=1e3*r;var i="";switch(e){case"sqrtMain":i=irt(r,Pg);break;case"sqrtSize1":i=art(r,Pg);break;case"sqrtSize2":i=srt(r,Pg);break;case"sqrtSize3":i=ort(r,Pg);break;case"sqrtSize4":i=lrt(r,Pg);break;case"sqrtTall":i=urt(r,Pg,n)}return i},hrt=function(e,r){switch(e){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},Xee={doubleleftarrow:`M262 157 l10-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 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 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 @@ -4348,7 +4348,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z` c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -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 c-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 -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},hrt=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},frt=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -4376,19 +4376,19 @@ c-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 c0,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 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --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.")}},zP={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},frt={ex:!0,em:!0,mu:!0},h1e=function(e){return typeof e!="string"&&(e=e.unit),e in zP||e in frt||e==="ex"},ki=function(e,r){var n;if(e.unit in zP)n=zP[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,e.unit==="ex")n=i.fontMetrics().xHeight;else if(e.unit==="em")n=i.fontMetrics().quad;else throw new jt("Invalid unit: '"+e.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},er=function(e){return+e.toFixed(4)+"em"},ch=function(e){return e.filter(r=>r).join(" ")},f1e=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},p1e=function(e){var r=document.createElement(e);r.className=ch(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,g1e=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+us(ch(this.classes))+'"');var n="";for(var i of Object.keys(this.style))n+=AG(i)+":"+this.style[i]+";";n&&(r+=' style="'+us(n)+'"');for(var a of Object.keys(this.attributes)){if(prt.test(a))throw new jt("Invalid attribute name '"+a+"'");r+=" "+a+'="'+us(this.attributes[a])+'"'}r+=">";for(var s=0;s",r};let dT=class{constructor(e,r,n,i){f1e.call(this,e,n,i),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return p1e.call(this,"span")}toMarkup(){return g1e.call(this,"span")}},IG=class{constructor(e,r,n,i){f1e.call(this,r,i),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return p1e.call(this,"a")}toMarkup(){return g1e.call(this,"a")}},grt=class{constructor(e,r,n){this.alt=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var r of Object.keys(this.style))e.style[r]=this.style[r];return e}toMarkup(){var e=''+us(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=er(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=ch(this.classes));for(var n of Object.keys(this.style))r=r||document.createElement("span"),r.style[n]=this.style[n];return r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="0&&(n+="margin-right:"+this.italic+"em;");for(var i of Object.keys(this.style))n+=AG(i)+":"+this.style[i]+";";n&&(e=!0,r+=' style="'+us(n)+'"');var a=us(this.text);return e?(r+=">",r+=a,r+="",r):a}},w0=class{constructor(e,r){this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i':''}},UP=class{constructor(e){this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e=" but got "+String(t)+".")}var Vc={"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]}},Dx={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]},Qee={Å:"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 vrt(t,e){Vc[t]=e}function OG(t,e,r){if(!Vc[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),i=Vc[e][n];if(!i&&t[0]in Qee&&(n=Qee[t[0]].charCodeAt(0),i=Vc[e][n]),!i&&r==="text"&&d1e(n)&&(i=Vc[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var a9={};function _rt(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!a9[e]){var r=a9[e]={cssEmPerMu:Dx.quad[e]/18};for(var n in Dx)Dx.hasOwnProperty(n)&&(r[n]=Dx[n][e])}return a9[e]}var brt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Ert={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},hi={math:{},text:{}};function X(t,e,r,n,i,a){hi[t][i]={font:e,group:r,replace:n},a&&n&&(hi[t][n]=hi[t][i])}var ne="math",Ft="text",Se="main",Ve="ams",bi="accent-token",ur="bin",Js="close",Vb="inner",Rr="mathord",da="op-token",Ho="open",Gk="punct",Qe="rel",W0="spacing",nt="textord";X(ne,Se,Qe,"≡","\\equiv",!0);X(ne,Se,Qe,"≺","\\prec",!0);X(ne,Se,Qe,"≻","\\succ",!0);X(ne,Se,Qe,"∼","\\sim",!0);X(ne,Se,Qe,"⊥","\\perp");X(ne,Se,Qe,"⪯","\\preceq",!0);X(ne,Se,Qe,"⪰","\\succeq",!0);X(ne,Se,Qe,"≃","\\simeq",!0);X(ne,Se,Qe,"∣","\\mid",!0);X(ne,Se,Qe,"≪","\\ll",!0);X(ne,Se,Qe,"≫","\\gg",!0);X(ne,Se,Qe,"≍","\\asymp",!0);X(ne,Se,Qe,"∥","\\parallel");X(ne,Se,Qe,"⋈","\\bowtie",!0);X(ne,Se,Qe,"⌣","\\smile",!0);X(ne,Se,Qe,"⊑","\\sqsubseteq",!0);X(ne,Se,Qe,"⊒","\\sqsupseteq",!0);X(ne,Se,Qe,"≐","\\doteq",!0);X(ne,Se,Qe,"⌢","\\frown",!0);X(ne,Se,Qe,"∋","\\ni",!0);X(ne,Se,Qe,"∝","\\propto",!0);X(ne,Se,Qe,"⊢","\\vdash",!0);X(ne,Se,Qe,"⊣","\\dashv",!0);X(ne,Se,Qe,"∋","\\owns");X(ne,Se,Gk,".","\\ldotp");X(ne,Se,Gk,"⋅","\\cdotp");X(ne,Se,nt,"#","\\#");X(Ft,Se,nt,"#","\\#");X(ne,Se,nt,"&","\\&");X(Ft,Se,nt,"&","\\&");X(ne,Se,nt,"ℵ","\\aleph",!0);X(ne,Se,nt,"∀","\\forall",!0);X(ne,Se,nt,"ℏ","\\hbar",!0);X(ne,Se,nt,"∃","\\exists",!0);X(ne,Se,nt,"∇","\\nabla",!0);X(ne,Se,nt,"♭","\\flat",!0);X(ne,Se,nt,"ℓ","\\ell",!0);X(ne,Se,nt,"♮","\\natural",!0);X(ne,Se,nt,"♣","\\clubsuit",!0);X(ne,Se,nt,"℘","\\wp",!0);X(ne,Se,nt,"♯","\\sharp",!0);X(ne,Se,nt,"♢","\\diamondsuit",!0);X(ne,Se,nt,"ℜ","\\Re",!0);X(ne,Se,nt,"♡","\\heartsuit",!0);X(ne,Se,nt,"ℑ","\\Im",!0);X(ne,Se,nt,"♠","\\spadesuit",!0);X(ne,Se,nt,"§","\\S",!0);X(Ft,Se,nt,"§","\\S");X(ne,Se,nt,"¶","\\P",!0);X(Ft,Se,nt,"¶","\\P");X(ne,Se,nt,"†","\\dag");X(Ft,Se,nt,"†","\\dag");X(Ft,Se,nt,"†","\\textdagger");X(ne,Se,nt,"‡","\\ddag");X(Ft,Se,nt,"‡","\\ddag");X(Ft,Se,nt,"‡","\\textdaggerdbl");X(ne,Se,Js,"⎱","\\rmoustache",!0);X(ne,Se,Ho,"⎰","\\lmoustache",!0);X(ne,Se,Js,"⟯","\\rgroup",!0);X(ne,Se,Ho,"⟮","\\lgroup",!0);X(ne,Se,ur,"∓","\\mp",!0);X(ne,Se,ur,"⊖","\\ominus",!0);X(ne,Se,ur,"⊎","\\uplus",!0);X(ne,Se,ur,"⊓","\\sqcap",!0);X(ne,Se,ur,"∗","\\ast");X(ne,Se,ur,"⊔","\\sqcup",!0);X(ne,Se,ur,"◯","\\bigcirc",!0);X(ne,Se,ur,"∙","\\bullet",!0);X(ne,Se,ur,"‡","\\ddagger");X(ne,Se,ur,"≀","\\wr",!0);X(ne,Se,ur,"⨿","\\amalg");X(ne,Se,ur,"&","\\And");X(ne,Se,Qe,"⟵","\\longleftarrow",!0);X(ne,Se,Qe,"⇐","\\Leftarrow",!0);X(ne,Se,Qe,"⟸","\\Longleftarrow",!0);X(ne,Se,Qe,"⟶","\\longrightarrow",!0);X(ne,Se,Qe,"⇒","\\Rightarrow",!0);X(ne,Se,Qe,"⟹","\\Longrightarrow",!0);X(ne,Se,Qe,"↔","\\leftrightarrow",!0);X(ne,Se,Qe,"⟷","\\longleftrightarrow",!0);X(ne,Se,Qe,"⇔","\\Leftrightarrow",!0);X(ne,Se,Qe,"⟺","\\Longleftrightarrow",!0);X(ne,Se,Qe,"↦","\\mapsto",!0);X(ne,Se,Qe,"⟼","\\longmapsto",!0);X(ne,Se,Qe,"↗","\\nearrow",!0);X(ne,Se,Qe,"↩","\\hookleftarrow",!0);X(ne,Se,Qe,"↪","\\hookrightarrow",!0);X(ne,Se,Qe,"↘","\\searrow",!0);X(ne,Se,Qe,"↼","\\leftharpoonup",!0);X(ne,Se,Qe,"⇀","\\rightharpoonup",!0);X(ne,Se,Qe,"↙","\\swarrow",!0);X(ne,Se,Qe,"↽","\\leftharpoondown",!0);X(ne,Se,Qe,"⇁","\\rightharpoondown",!0);X(ne,Se,Qe,"↖","\\nwarrow",!0);X(ne,Se,Qe,"⇌","\\rightleftharpoons",!0);X(ne,Ve,Qe,"≮","\\nless",!0);X(ne,Ve,Qe,"","\\@nleqslant");X(ne,Ve,Qe,"","\\@nleqq");X(ne,Ve,Qe,"⪇","\\lneq",!0);X(ne,Ve,Qe,"≨","\\lneqq",!0);X(ne,Ve,Qe,"","\\@lvertneqq");X(ne,Ve,Qe,"⋦","\\lnsim",!0);X(ne,Ve,Qe,"⪉","\\lnapprox",!0);X(ne,Ve,Qe,"⊀","\\nprec",!0);X(ne,Ve,Qe,"⋠","\\npreceq",!0);X(ne,Ve,Qe,"⋨","\\precnsim",!0);X(ne,Ve,Qe,"⪹","\\precnapprox",!0);X(ne,Ve,Qe,"≁","\\nsim",!0);X(ne,Ve,Qe,"","\\@nshortmid");X(ne,Ve,Qe,"∤","\\nmid",!0);X(ne,Ve,Qe,"⊬","\\nvdash",!0);X(ne,Ve,Qe,"⊭","\\nvDash",!0);X(ne,Ve,Qe,"⋪","\\ntriangleleft");X(ne,Ve,Qe,"⋬","\\ntrianglelefteq",!0);X(ne,Ve,Qe,"⊊","\\subsetneq",!0);X(ne,Ve,Qe,"","\\@varsubsetneq");X(ne,Ve,Qe,"⫋","\\subsetneqq",!0);X(ne,Ve,Qe,"","\\@varsubsetneqq");X(ne,Ve,Qe,"≯","\\ngtr",!0);X(ne,Ve,Qe,"","\\@ngeqslant");X(ne,Ve,Qe,"","\\@ngeqq");X(ne,Ve,Qe,"⪈","\\gneq",!0);X(ne,Ve,Qe,"≩","\\gneqq",!0);X(ne,Ve,Qe,"","\\@gvertneqq");X(ne,Ve,Qe,"⋧","\\gnsim",!0);X(ne,Ve,Qe,"⪊","\\gnapprox",!0);X(ne,Ve,Qe,"⊁","\\nsucc",!0);X(ne,Ve,Qe,"⋡","\\nsucceq",!0);X(ne,Ve,Qe,"⋩","\\succnsim",!0);X(ne,Ve,Qe,"⪺","\\succnapprox",!0);X(ne,Ve,Qe,"≆","\\ncong",!0);X(ne,Ve,Qe,"","\\@nshortparallel");X(ne,Ve,Qe,"∦","\\nparallel",!0);X(ne,Ve,Qe,"⊯","\\nVDash",!0);X(ne,Ve,Qe,"⋫","\\ntriangleright");X(ne,Ve,Qe,"⋭","\\ntrianglerighteq",!0);X(ne,Ve,Qe,"","\\@nsupseteqq");X(ne,Ve,Qe,"⊋","\\supsetneq",!0);X(ne,Ve,Qe,"","\\@varsupsetneq");X(ne,Ve,Qe,"⫌","\\supsetneqq",!0);X(ne,Ve,Qe,"","\\@varsupsetneqq");X(ne,Ve,Qe,"⊮","\\nVdash",!0);X(ne,Ve,Qe,"⪵","\\precneqq",!0);X(ne,Ve,Qe,"⪶","\\succneqq",!0);X(ne,Ve,Qe,"","\\@nsubseteqq");X(ne,Ve,ur,"⊴","\\unlhd");X(ne,Ve,ur,"⊵","\\unrhd");X(ne,Ve,Qe,"↚","\\nleftarrow",!0);X(ne,Ve,Qe,"↛","\\nrightarrow",!0);X(ne,Ve,Qe,"⇍","\\nLeftarrow",!0);X(ne,Ve,Qe,"⇏","\\nRightarrow",!0);X(ne,Ve,Qe,"↮","\\nleftrightarrow",!0);X(ne,Ve,Qe,"⇎","\\nLeftrightarrow",!0);X(ne,Ve,Qe,"△","\\vartriangle");X(ne,Ve,nt,"ℏ","\\hslash");X(ne,Ve,nt,"▽","\\triangledown");X(ne,Ve,nt,"◊","\\lozenge");X(ne,Ve,nt,"Ⓢ","\\circledS");X(ne,Ve,nt,"®","\\circledR");X(Ft,Ve,nt,"®","\\circledR");X(ne,Ve,nt,"∡","\\measuredangle",!0);X(ne,Ve,nt,"∄","\\nexists");X(ne,Ve,nt,"℧","\\mho");X(ne,Ve,nt,"Ⅎ","\\Finv",!0);X(ne,Ve,nt,"⅁","\\Game",!0);X(ne,Ve,nt,"‵","\\backprime");X(ne,Ve,nt,"▲","\\blacktriangle");X(ne,Ve,nt,"▼","\\blacktriangledown");X(ne,Ve,nt,"■","\\blacksquare");X(ne,Ve,nt,"⧫","\\blacklozenge");X(ne,Ve,nt,"★","\\bigstar");X(ne,Ve,nt,"∢","\\sphericalangle",!0);X(ne,Ve,nt,"∁","\\complement",!0);X(ne,Ve,nt,"ð","\\eth",!0);X(Ft,Se,nt,"ð","ð");X(ne,Ve,nt,"╱","\\diagup");X(ne,Ve,nt,"╲","\\diagdown");X(ne,Ve,nt,"□","\\square");X(ne,Ve,nt,"□","\\Box");X(ne,Ve,nt,"◊","\\Diamond");X(ne,Ve,nt,"¥","\\yen",!0);X(Ft,Ve,nt,"¥","\\yen",!0);X(ne,Ve,nt,"✓","\\checkmark",!0);X(Ft,Ve,nt,"✓","\\checkmark");X(ne,Ve,nt,"ℶ","\\beth",!0);X(ne,Ve,nt,"ℸ","\\daleth",!0);X(ne,Ve,nt,"ℷ","\\gimel",!0);X(ne,Ve,nt,"ϝ","\\digamma",!0);X(ne,Ve,nt,"ϰ","\\varkappa");X(ne,Ve,Ho,"┌","\\@ulcorner",!0);X(ne,Ve,Js,"┐","\\@urcorner",!0);X(ne,Ve,Ho,"└","\\@llcorner",!0);X(ne,Ve,Js,"┘","\\@lrcorner",!0);X(ne,Ve,Qe,"≦","\\leqq",!0);X(ne,Ve,Qe,"⩽","\\leqslant",!0);X(ne,Ve,Qe,"⪕","\\eqslantless",!0);X(ne,Ve,Qe,"≲","\\lesssim",!0);X(ne,Ve,Qe,"⪅","\\lessapprox",!0);X(ne,Ve,Qe,"≊","\\approxeq",!0);X(ne,Ve,ur,"⋖","\\lessdot");X(ne,Ve,Qe,"⋘","\\lll",!0);X(ne,Ve,Qe,"≶","\\lessgtr",!0);X(ne,Ve,Qe,"⋚","\\lesseqgtr",!0);X(ne,Ve,Qe,"⪋","\\lesseqqgtr",!0);X(ne,Ve,Qe,"≑","\\doteqdot");X(ne,Ve,Qe,"≓","\\risingdotseq",!0);X(ne,Ve,Qe,"≒","\\fallingdotseq",!0);X(ne,Ve,Qe,"∽","\\backsim",!0);X(ne,Ve,Qe,"⋍","\\backsimeq",!0);X(ne,Ve,Qe,"⫅","\\subseteqq",!0);X(ne,Ve,Qe,"⋐","\\Subset",!0);X(ne,Ve,Qe,"⊏","\\sqsubset",!0);X(ne,Ve,Qe,"≼","\\preccurlyeq",!0);X(ne,Ve,Qe,"⋞","\\curlyeqprec",!0);X(ne,Ve,Qe,"≾","\\precsim",!0);X(ne,Ve,Qe,"⪷","\\precapprox",!0);X(ne,Ve,Qe,"⊲","\\vartriangleleft");X(ne,Ve,Qe,"⊴","\\trianglelefteq");X(ne,Ve,Qe,"⊨","\\vDash",!0);X(ne,Ve,Qe,"⊪","\\Vvdash",!0);X(ne,Ve,Qe,"⌣","\\smallsmile");X(ne,Ve,Qe,"⌢","\\smallfrown");X(ne,Ve,Qe,"≏","\\bumpeq",!0);X(ne,Ve,Qe,"≎","\\Bumpeq",!0);X(ne,Ve,Qe,"≧","\\geqq",!0);X(ne,Ve,Qe,"⩾","\\geqslant",!0);X(ne,Ve,Qe,"⪖","\\eqslantgtr",!0);X(ne,Ve,Qe,"≳","\\gtrsim",!0);X(ne,Ve,Qe,"⪆","\\gtrapprox",!0);X(ne,Ve,ur,"⋗","\\gtrdot");X(ne,Ve,Qe,"⋙","\\ggg",!0);X(ne,Ve,Qe,"≷","\\gtrless",!0);X(ne,Ve,Qe,"⋛","\\gtreqless",!0);X(ne,Ve,Qe,"⪌","\\gtreqqless",!0);X(ne,Ve,Qe,"≖","\\eqcirc",!0);X(ne,Ve,Qe,"≗","\\circeq",!0);X(ne,Ve,Qe,"≜","\\triangleq",!0);X(ne,Ve,Qe,"∼","\\thicksim");X(ne,Ve,Qe,"≈","\\thickapprox");X(ne,Ve,Qe,"⫆","\\supseteqq",!0);X(ne,Ve,Qe,"⋑","\\Supset",!0);X(ne,Ve,Qe,"⊐","\\sqsupset",!0);X(ne,Ve,Qe,"≽","\\succcurlyeq",!0);X(ne,Ve,Qe,"⋟","\\curlyeqsucc",!0);X(ne,Ve,Qe,"≿","\\succsim",!0);X(ne,Ve,Qe,"⪸","\\succapprox",!0);X(ne,Ve,Qe,"⊳","\\vartriangleright");X(ne,Ve,Qe,"⊵","\\trianglerighteq");X(ne,Ve,Qe,"⊩","\\Vdash",!0);X(ne,Ve,Qe,"∣","\\shortmid");X(ne,Ve,Qe,"∥","\\shortparallel");X(ne,Ve,Qe,"≬","\\between",!0);X(ne,Ve,Qe,"⋔","\\pitchfork",!0);X(ne,Ve,Qe,"∝","\\varpropto");X(ne,Ve,Qe,"◀","\\blacktriangleleft");X(ne,Ve,Qe,"∴","\\therefore",!0);X(ne,Ve,Qe,"∍","\\backepsilon");X(ne,Ve,Qe,"▶","\\blacktriangleright");X(ne,Ve,Qe,"∵","\\because",!0);X(ne,Ve,Qe,"⋘","\\llless");X(ne,Ve,Qe,"⋙","\\gggtr");X(ne,Ve,ur,"⊲","\\lhd");X(ne,Ve,ur,"⊳","\\rhd");X(ne,Ve,Qe,"≂","\\eqsim",!0);X(ne,Se,Qe,"⋈","\\Join");X(ne,Ve,Qe,"≑","\\Doteq",!0);X(ne,Ve,ur,"∔","\\dotplus",!0);X(ne,Ve,ur,"∖","\\smallsetminus");X(ne,Ve,ur,"⋒","\\Cap",!0);X(ne,Ve,ur,"⋓","\\Cup",!0);X(ne,Ve,ur,"⩞","\\doublebarwedge",!0);X(ne,Ve,ur,"⊟","\\boxminus",!0);X(ne,Ve,ur,"⊞","\\boxplus",!0);X(ne,Ve,ur,"⋇","\\divideontimes",!0);X(ne,Ve,ur,"⋉","\\ltimes",!0);X(ne,Ve,ur,"⋊","\\rtimes",!0);X(ne,Ve,ur,"⋋","\\leftthreetimes",!0);X(ne,Ve,ur,"⋌","\\rightthreetimes",!0);X(ne,Ve,ur,"⋏","\\curlywedge",!0);X(ne,Ve,ur,"⋎","\\curlyvee",!0);X(ne,Ve,ur,"⊝","\\circleddash",!0);X(ne,Ve,ur,"⊛","\\circledast",!0);X(ne,Ve,ur,"⋅","\\centerdot");X(ne,Ve,ur,"⊺","\\intercal",!0);X(ne,Ve,ur,"⋒","\\doublecap");X(ne,Ve,ur,"⋓","\\doublecup");X(ne,Ve,ur,"⊠","\\boxtimes",!0);X(ne,Ve,Qe,"⇢","\\dashrightarrow",!0);X(ne,Ve,Qe,"⇠","\\dashleftarrow",!0);X(ne,Ve,Qe,"⇇","\\leftleftarrows",!0);X(ne,Ve,Qe,"⇆","\\leftrightarrows",!0);X(ne,Ve,Qe,"⇚","\\Lleftarrow",!0);X(ne,Ve,Qe,"↞","\\twoheadleftarrow",!0);X(ne,Ve,Qe,"↢","\\leftarrowtail",!0);X(ne,Ve,Qe,"↫","\\looparrowleft",!0);X(ne,Ve,Qe,"⇋","\\leftrightharpoons",!0);X(ne,Ve,Qe,"↶","\\curvearrowleft",!0);X(ne,Ve,Qe,"↺","\\circlearrowleft",!0);X(ne,Ve,Qe,"↰","\\Lsh",!0);X(ne,Ve,Qe,"⇈","\\upuparrows",!0);X(ne,Ve,Qe,"↿","\\upharpoonleft",!0);X(ne,Ve,Qe,"⇃","\\downharpoonleft",!0);X(ne,Se,Qe,"⊶","\\origof",!0);X(ne,Se,Qe,"⊷","\\imageof",!0);X(ne,Ve,Qe,"⊸","\\multimap",!0);X(ne,Ve,Qe,"↭","\\leftrightsquigarrow",!0);X(ne,Ve,Qe,"⇉","\\rightrightarrows",!0);X(ne,Ve,Qe,"⇄","\\rightleftarrows",!0);X(ne,Ve,Qe,"↠","\\twoheadrightarrow",!0);X(ne,Ve,Qe,"↣","\\rightarrowtail",!0);X(ne,Ve,Qe,"↬","\\looparrowright",!0);X(ne,Ve,Qe,"↷","\\curvearrowright",!0);X(ne,Ve,Qe,"↻","\\circlearrowright",!0);X(ne,Ve,Qe,"↱","\\Rsh",!0);X(ne,Ve,Qe,"⇊","\\downdownarrows",!0);X(ne,Ve,Qe,"↾","\\upharpoonright",!0);X(ne,Ve,Qe,"⇂","\\downharpoonright",!0);X(ne,Ve,Qe,"⇝","\\rightsquigarrow",!0);X(ne,Ve,Qe,"⇝","\\leadsto");X(ne,Ve,Qe,"⇛","\\Rrightarrow",!0);X(ne,Ve,Qe,"↾","\\restriction");X(ne,Se,nt,"‘","`");X(ne,Se,nt,"$","\\$");X(Ft,Se,nt,"$","\\$");X(Ft,Se,nt,"$","\\textdollar");X(ne,Se,nt,"%","\\%");X(Ft,Se,nt,"%","\\%");X(ne,Se,nt,"_","\\_");X(Ft,Se,nt,"_","\\_");X(Ft,Se,nt,"_","\\textunderscore");X(ne,Se,nt,"∠","\\angle",!0);X(ne,Se,nt,"∞","\\infty",!0);X(ne,Se,nt,"′","\\prime");X(ne,Se,nt,"△","\\triangle");X(ne,Se,nt,"Γ","\\Gamma",!0);X(ne,Se,nt,"Δ","\\Delta",!0);X(ne,Se,nt,"Θ","\\Theta",!0);X(ne,Se,nt,"Λ","\\Lambda",!0);X(ne,Se,nt,"Ξ","\\Xi",!0);X(ne,Se,nt,"Π","\\Pi",!0);X(ne,Se,nt,"Σ","\\Sigma",!0);X(ne,Se,nt,"Υ","\\Upsilon",!0);X(ne,Se,nt,"Φ","\\Phi",!0);X(ne,Se,nt,"Ψ","\\Psi",!0);X(ne,Se,nt,"Ω","\\Omega",!0);X(ne,Se,nt,"A","Α");X(ne,Se,nt,"B","Β");X(ne,Se,nt,"E","Ε");X(ne,Se,nt,"Z","Ζ");X(ne,Se,nt,"H","Η");X(ne,Se,nt,"I","Ι");X(ne,Se,nt,"K","Κ");X(ne,Se,nt,"M","Μ");X(ne,Se,nt,"N","Ν");X(ne,Se,nt,"O","Ο");X(ne,Se,nt,"P","Ρ");X(ne,Se,nt,"T","Τ");X(ne,Se,nt,"X","Χ");X(ne,Se,nt,"¬","\\neg",!0);X(ne,Se,nt,"¬","\\lnot");X(ne,Se,nt,"⊤","\\top");X(ne,Se,nt,"⊥","\\bot");X(ne,Se,nt,"∅","\\emptyset");X(ne,Ve,nt,"∅","\\varnothing");X(ne,Se,Rr,"α","\\alpha",!0);X(ne,Se,Rr,"β","\\beta",!0);X(ne,Se,Rr,"γ","\\gamma",!0);X(ne,Se,Rr,"δ","\\delta",!0);X(ne,Se,Rr,"ϵ","\\epsilon",!0);X(ne,Se,Rr,"ζ","\\zeta",!0);X(ne,Se,Rr,"η","\\eta",!0);X(ne,Se,Rr,"θ","\\theta",!0);X(ne,Se,Rr,"ι","\\iota",!0);X(ne,Se,Rr,"κ","\\kappa",!0);X(ne,Se,Rr,"λ","\\lambda",!0);X(ne,Se,Rr,"μ","\\mu",!0);X(ne,Se,Rr,"ν","\\nu",!0);X(ne,Se,Rr,"ξ","\\xi",!0);X(ne,Se,Rr,"ο","\\omicron",!0);X(ne,Se,Rr,"π","\\pi",!0);X(ne,Se,Rr,"ρ","\\rho",!0);X(ne,Se,Rr,"σ","\\sigma",!0);X(ne,Se,Rr,"τ","\\tau",!0);X(ne,Se,Rr,"υ","\\upsilon",!0);X(ne,Se,Rr,"ϕ","\\phi",!0);X(ne,Se,Rr,"χ","\\chi",!0);X(ne,Se,Rr,"ψ","\\psi",!0);X(ne,Se,Rr,"ω","\\omega",!0);X(ne,Se,Rr,"ε","\\varepsilon",!0);X(ne,Se,Rr,"ϑ","\\vartheta",!0);X(ne,Se,Rr,"ϖ","\\varpi",!0);X(ne,Se,Rr,"ϱ","\\varrho",!0);X(ne,Se,Rr,"ς","\\varsigma",!0);X(ne,Se,Rr,"φ","\\varphi",!0);X(ne,Se,ur,"∗","*",!0);X(ne,Se,ur,"+","+");X(ne,Se,ur,"−","-",!0);X(ne,Se,ur,"⋅","\\cdot",!0);X(ne,Se,ur,"∘","\\circ",!0);X(ne,Se,ur,"÷","\\div",!0);X(ne,Se,ur,"±","\\pm",!0);X(ne,Se,ur,"×","\\times",!0);X(ne,Se,ur,"∩","\\cap",!0);X(ne,Se,ur,"∪","\\cup",!0);X(ne,Se,ur,"∖","\\setminus",!0);X(ne,Se,ur,"∧","\\land");X(ne,Se,ur,"∨","\\lor");X(ne,Se,ur,"∧","\\wedge",!0);X(ne,Se,ur,"∨","\\vee",!0);X(ne,Se,nt,"√","\\surd");X(ne,Se,Ho,"⟨","\\langle",!0);X(ne,Se,Ho,"∣","\\lvert");X(ne,Se,Ho,"∥","\\lVert");X(ne,Se,Js,"?","?");X(ne,Se,Js,"!","!");X(ne,Se,Js,"⟩","\\rangle",!0);X(ne,Se,Js,"∣","\\rvert");X(ne,Se,Js,"∥","\\rVert");X(ne,Se,Qe,"=","=");X(ne,Se,Qe,":",":");X(ne,Se,Qe,"≈","\\approx",!0);X(ne,Se,Qe,"≅","\\cong",!0);X(ne,Se,Qe,"≥","\\ge");X(ne,Se,Qe,"≥","\\geq",!0);X(ne,Se,Qe,"←","\\gets");X(ne,Se,Qe,">","\\gt",!0);X(ne,Se,Qe,"∈","\\in",!0);X(ne,Se,Qe,"","\\@not");X(ne,Se,Qe,"⊂","\\subset",!0);X(ne,Se,Qe,"⊃","\\supset",!0);X(ne,Se,Qe,"⊆","\\subseteq",!0);X(ne,Se,Qe,"⊇","\\supseteq",!0);X(ne,Ve,Qe,"⊈","\\nsubseteq",!0);X(ne,Ve,Qe,"⊉","\\nsupseteq",!0);X(ne,Se,Qe,"⊨","\\models");X(ne,Se,Qe,"←","\\leftarrow",!0);X(ne,Se,Qe,"≤","\\le");X(ne,Se,Qe,"≤","\\leq",!0);X(ne,Se,Qe,"<","\\lt",!0);X(ne,Se,Qe,"→","\\rightarrow",!0);X(ne,Se,Qe,"→","\\to");X(ne,Ve,Qe,"≱","\\ngeq",!0);X(ne,Ve,Qe,"≰","\\nleq",!0);X(ne,Se,W0," ","\\ ");X(ne,Se,W0," ","\\space");X(ne,Se,W0," ","\\nobreakspace");X(Ft,Se,W0," ","\\ ");X(Ft,Se,W0," "," ");X(Ft,Se,W0," ","\\space");X(Ft,Se,W0," ","\\nobreakspace");X(ne,Se,W0,null,"\\nobreak");X(ne,Se,W0,null,"\\allowbreak");X(ne,Se,Gk,",",",");X(ne,Se,Gk,";",";");X(ne,Ve,ur,"⊼","\\barwedge",!0);X(ne,Ve,ur,"⊻","\\veebar",!0);X(ne,Se,ur,"⊙","\\odot",!0);X(ne,Se,ur,"⊕","\\oplus",!0);X(ne,Se,ur,"⊗","\\otimes",!0);X(ne,Se,nt,"∂","\\partial",!0);X(ne,Se,ur,"⊘","\\oslash",!0);X(ne,Ve,ur,"⊚","\\circledcirc",!0);X(ne,Ve,ur,"⊡","\\boxdot",!0);X(ne,Se,ur,"△","\\bigtriangleup");X(ne,Se,ur,"▽","\\bigtriangledown");X(ne,Se,ur,"†","\\dagger");X(ne,Se,ur,"⋄","\\diamond");X(ne,Se,ur,"⋆","\\star");X(ne,Se,ur,"◃","\\triangleleft");X(ne,Se,ur,"▹","\\triangleright");X(ne,Se,Ho,"{","\\{");X(Ft,Se,nt,"{","\\{");X(Ft,Se,nt,"{","\\textbraceleft");X(ne,Se,Js,"}","\\}");X(Ft,Se,nt,"}","\\}");X(Ft,Se,nt,"}","\\textbraceright");X(ne,Se,Ho,"{","\\lbrace");X(ne,Se,Js,"}","\\rbrace");X(ne,Se,Ho,"[","\\lbrack",!0);X(Ft,Se,nt,"[","\\lbrack",!0);X(ne,Se,Js,"]","\\rbrack",!0);X(Ft,Se,nt,"]","\\rbrack",!0);X(ne,Se,Ho,"(","\\lparen",!0);X(ne,Se,Js,")","\\rparen",!0);X(Ft,Se,nt,"<","\\textless",!0);X(Ft,Se,nt,">","\\textgreater",!0);X(ne,Se,Ho,"⌊","\\lfloor",!0);X(ne,Se,Js,"⌋","\\rfloor",!0);X(ne,Se,Ho,"⌈","\\lceil",!0);X(ne,Se,Js,"⌉","\\rceil",!0);X(ne,Se,nt,"\\","\\backslash");X(ne,Se,nt,"∣","|");X(ne,Se,nt,"∣","\\vert");X(Ft,Se,nt,"|","\\textbar",!0);X(ne,Se,nt,"∥","\\|");X(ne,Se,nt,"∥","\\Vert");X(Ft,Se,nt,"∥","\\textbardbl");X(Ft,Se,nt,"~","\\textasciitilde");X(Ft,Se,nt,"\\","\\textbackslash");X(Ft,Se,nt,"^","\\textasciicircum");X(ne,Se,Qe,"↑","\\uparrow",!0);X(ne,Se,Qe,"⇑","\\Uparrow",!0);X(ne,Se,Qe,"↓","\\downarrow",!0);X(ne,Se,Qe,"⇓","\\Downarrow",!0);X(ne,Se,Qe,"↕","\\updownarrow",!0);X(ne,Se,Qe,"⇕","\\Updownarrow",!0);X(ne,Se,da,"∐","\\coprod");X(ne,Se,da,"⋁","\\bigvee");X(ne,Se,da,"⋀","\\bigwedge");X(ne,Se,da,"⨄","\\biguplus");X(ne,Se,da,"⋂","\\bigcap");X(ne,Se,da,"⋃","\\bigcup");X(ne,Se,da,"∫","\\int");X(ne,Se,da,"∫","\\intop");X(ne,Se,da,"∬","\\iint");X(ne,Se,da,"∭","\\iiint");X(ne,Se,da,"∏","\\prod");X(ne,Se,da,"∑","\\sum");X(ne,Se,da,"⨂","\\bigotimes");X(ne,Se,da,"⨁","\\bigoplus");X(ne,Se,da,"⨀","\\bigodot");X(ne,Se,da,"∮","\\oint");X(ne,Se,da,"∯","\\oiint");X(ne,Se,da,"∰","\\oiiint");X(ne,Se,da,"⨆","\\bigsqcup");X(ne,Se,da,"∫","\\smallint");X(Ft,Se,Vb,"…","\\textellipsis");X(ne,Se,Vb,"…","\\mathellipsis");X(Ft,Se,Vb,"…","\\ldots",!0);X(ne,Se,Vb,"…","\\ldots",!0);X(ne,Se,Vb,"⋯","\\@cdots",!0);X(ne,Se,Vb,"⋱","\\ddots",!0);X(ne,Se,nt,"⋮","\\varvdots");X(Ft,Se,nt,"⋮","\\varvdots");X(ne,Se,bi,"ˊ","\\acute");X(ne,Se,bi,"ˋ","\\grave");X(ne,Se,bi,"¨","\\ddot");X(ne,Se,bi,"~","\\tilde");X(ne,Se,bi,"ˉ","\\bar");X(ne,Se,bi,"˘","\\breve");X(ne,Se,bi,"ˇ","\\check");X(ne,Se,bi,"^","\\hat");X(ne,Se,bi,"⃗","\\vec");X(ne,Se,bi,"˙","\\dot");X(ne,Se,bi,"˚","\\mathring");X(ne,Se,Rr,"","\\@imath");X(ne,Se,Rr,"","\\@jmath");X(ne,Se,nt,"ı","ı");X(ne,Se,nt,"ȷ","ȷ");X(Ft,Se,nt,"ı","\\i",!0);X(Ft,Se,nt,"ȷ","\\j",!0);X(Ft,Se,nt,"ß","\\ss",!0);X(Ft,Se,nt,"æ","\\ae",!0);X(Ft,Se,nt,"œ","\\oe",!0);X(Ft,Se,nt,"ø","\\o",!0);X(Ft,Se,nt,"Æ","\\AE",!0);X(Ft,Se,nt,"Œ","\\OE",!0);X(Ft,Se,nt,"Ø","\\O",!0);X(Ft,Se,bi,"ˊ","\\'");X(Ft,Se,bi,"ˋ","\\`");X(Ft,Se,bi,"ˆ","\\^");X(Ft,Se,bi,"˜","\\~");X(Ft,Se,bi,"ˉ","\\=");X(Ft,Se,bi,"˘","\\u");X(Ft,Se,bi,"˙","\\.");X(Ft,Se,bi,"¸","\\c");X(Ft,Se,bi,"˚","\\r");X(Ft,Se,bi,"ˇ","\\v");X(Ft,Se,bi,"¨",'\\"');X(Ft,Se,bi,"˝","\\H");X(Ft,Se,bi,"◯","\\textcircled");var m1e={"--":!0,"---":!0,"``":!0,"''":!0};X(Ft,Se,nt,"–","--",!0);X(Ft,Se,nt,"–","\\textendash");X(Ft,Se,nt,"—","---",!0);X(Ft,Se,nt,"—","\\textemdash");X(Ft,Se,nt,"‘","`",!0);X(Ft,Se,nt,"‘","\\textquoteleft");X(Ft,Se,nt,"’","'",!0);X(Ft,Se,nt,"’","\\textquoteright");X(Ft,Se,nt,"“","``",!0);X(Ft,Se,nt,"“","\\textquotedblleft");X(Ft,Se,nt,"”","''",!0);X(Ft,Se,nt,"”","\\textquotedblright");X(ne,Se,nt,"°","\\degree",!0);X(Ft,Se,nt,"°","\\degree");X(Ft,Se,nt,"°","\\textdegree",!0);X(ne,Se,nt,"£","\\pounds");X(ne,Se,nt,"£","\\mathsterling",!0);X(Ft,Se,nt,"£","\\pounds");X(Ft,Se,nt,"£","\\textsterling",!0);X(ne,Ve,nt,"✠","\\maltese");X(Ft,Ve,nt,"✠","\\maltese");var Zee='0123456789/@."';for(var s9=0;s9{var r=t.charCodeAt(0),n=t.charCodeAt(1),i=(r-55296)*1024+(n-56320)+65536,a=e==="math"?0:1;if(119808<=i&&i<120484){var s=Math.floor((i-119808)/26);return[Px[s][2],Px[s][a]]}else if(120782<=i&&i<=120831){var o=Math.floor((i-120782)/10);return[rte[o][2],rte[o][a]]}else{if(i===120485||i===120486)return[Px[0][2],Px[0][a]];if(120486r.toText();return this.children.map(e).join("")}};var qk=function(e,r,n){if(hi[n][e]){var i=hi[n][e].replace;i&&(e=i)}return{value:e,metrics:OG(e,r,n)}},As=function(e,r,n,i,a){var s=qk(e,r,n),o=s.metrics;e=s.value;var l;if(o){var u=o.italic;(n==="text"||i&&i.font==="mathit")&&(u=0),l=new Rl(e,o.height,o.depth,u,o.skew,o.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+r+"' and mode '"+n+"'")),l=new Rl(e,0,0,0,0,0,a);if(i){l.maxFontSize=i.sizeMultiplier,i.style.isTight()&&l.classes.push("mtight");var d=i.getColor();d&&(l.style.color=d)}return l},DG=function(e,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&qk(e,"Main-Bold",r).metrics?As(e,"Main-Bold",r,n,i.concat(["mathbf"])):e==="\\"||hi[r][e].font==="main"?As(e,"Main-Regular",r,n,i):As(e,"AMS-Regular",r,n,i.concat(["amsrm"]))},Trt=function(e,r,n,i,a){return a!=="textord"&&qk(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Yk=function(e,r,n){var i=e.mode,a=e.text,s=["mord"],o=i==="math"||i==="text"&&r.font,l=o?r.font:r.fontFamily,u="",d="";if(a.charCodeAt(0)===55349&&([u,d]=Srt(a,i)),u.length>0)return As(a,u,i,r,s.concat(d));if(l){var h,f;if(l==="boldsymbol"){var p=Trt(a,i,r,s,n);h=p.fontName,f=[p.fontClass]}else o?(h=qP[l].fontName,f=[l]):(h=Bx(l,r.fontWeight,r.fontShape),f=[l,r.fontWeight,r.fontShape]);if(qk(a,h,i).metrics)return As(a,h,i,r,s.concat(f));if(m1e.hasOwnProperty(a)&&h.slice(0,10)==="Typewriter"){for(var g=[],m=0;m{if(ch(t.classes)!==ch(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var i of Object.keys(e.style))if(t.style[i]!==e.style[i])return!1;return!0},y1e=t=>{for(var e=0;er&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=i},Ut=function(e,r,n,i){var a=new dT(e,r,n,i);return LG(a),a},dh=(t,e,r,n)=>new dT(t,e,r,n),nb=function(e,r,n){var i=Ut([e],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=er(i.height),i.maxFontSize=1,i},Crt=function(e,r,n,i){var a=new IG(e,r,n,i);return LG(a),a},K0=function(e){var r=new hT(e);return LG(r),r},ib=function(e,r){return e instanceof hT?Ut([],[e],r):e},wrt=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s{var r=Ut(["mspace"],[],e),n=ki(t,e);return r.style.marginRight=er(n),r},Bx=function(e,r,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},qP={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"}},_1e={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},b1e=function(e,r){var[n,i,a]=_1e[e],s=new uh(n),o=new w0([s],{width:er(i),height:er(a),style:"width:"+er(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=dh(["overlay"],[o],r);return l.height=a,l.style.height=er(a),l.style.width=er(i),l},xi={number:3,unit:"mu"},af={number:4,unit:"mu"},Fu={number:5,unit:"mu"},krt={mord:{mop:xi,mbin:af,mrel:Fu,minner:xi},mop:{mord:xi,mop:xi,mrel:Fu,minner:xi},mbin:{mord:af,mop:af,mopen:af,minner:af},mrel:{mord:Fu,mop:Fu,mopen:Fu,minner:Fu},mopen:{},mclose:{mop:xi,mbin:af,mrel:Fu,minner:xi},mpunct:{mord:xi,mop:xi,mrel:Fu,mopen:xi,mclose:xi,mpunct:xi,minner:xi},minner:{mord:xi,mop:xi,mbin:af,mrel:Fu,mopen:xi,mpunct:xi,minner:xi}},Art={mord:{mop:xi},mop:{mord:xi,mop:xi},mbin:{},mrel:{},mopen:{},mclose:{mop:xi},mpunct:{},minner:{mop:xi}},E1e={},l6={},c6={};function or(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},l=0;l{var y=m.classes[0],v=g.classes[0];y==="mbin"&&Nrt.has(v)?m.classes[0]="mord":v==="mbin"&&Rrt.has(y)&&(g.classes[0]="mord")},{node:h},f,p),YP(a,(g,m)=>{var y,v,b=VP(m),_=VP(g),E=b&&_?g.hasClass("mtight")?(y=Art[b])==null?void 0:y[_]:(v=krt[b])==null?void 0:v[_]:null;if(E)return v1e(E,u)},{node:h},f,p),a},YP=function(e,r,n,i,a){i&&e.push(i);for(var s=0;sf=>{e.splice(h+1,0,f),s++})(s)}i&&e.pop()},S1e=function(e){return e instanceof hT||e instanceof IG||e instanceof dT&&e.hasClass("enclosing")?e:null},HP=function(e,r){var n=S1e(e);if(n){var i=n.children;if(i.length){if(r==="right")return HP(i[i.length-1],"right");if(r==="left")return HP(i[0],"left")}}return e},VP=function(e,r){if(!e)return null;r&&(e=HP(e,r));var n=e.classes[0];return Ort[n]||null},QS=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Ut(r.concat(n))},En=function(e,r,n){if(!e)return Ut();if(l6[e.type]){var i=l6[e.type](e,r);if(n&&r.size!==n.size){i=Ut(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new jt("Got group of unknown type: '"+e.type+"'")};function Fx(t,e){var r=Ut(["base"],t,e),n=Ut(["strut"]);return n.style.height=er(r.height+r.depth),r.depth&&(n.style.verticalAlign=er(-r.depth)),r.children.unshift(n),r}function WP(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=wa(t,e,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],s=[],o=0;o0&&(a.push(Fx(s,e)),s=[]),a.push(n[o]));s.length>0&&a.push(Fx(s,e));var u;r?(u=Fx(wa(r,e,!0),e),u.classes=["tag"],a.push(u)):i&&a.push(i);var d=Ut(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),u){var h=u.children[0];h.style.height=er(d.height+d.depth),d.depth&&(h.style.verticalAlign=er(-d.depth))}return d}function T1e(t){return new hT(t)}let Wt=class{constructor(e,r,n){this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&e.setAttribute(r,this.attributes[r]);this.classes.length>0&&(e.className=ch(this.classes));for(var n=0;n0&&(e+=' class ="'+us(ch(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}},ia=class{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return us(this.toText())}toText(){return this.text}},x1e=class{constructor(e){this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",er(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}};var Drt=new Set(["\\imath","\\jmath"]),Lrt=new Set(["mrow","mtable"]),Nl=function(e,r,n){return hi[r][e]&&hi[r][e].replace&&e.charCodeAt(0)!==55349&&!(m1e.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=hi[r][e].replace),new ia(e)},MG=function(e){return e.length===1?e[0]:new Wt("mrow",e)},PG=function(e,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=e.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=e.text;if(Drt.has(a))return null;if(hi[i][a]){var s=hi[i][a].replace;s&&(a=s)}var o=qP[n].fontName;return OG(a,o,i)?qP[n].variant:null};function u9(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof ia&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof ia&&r.text===","}else return!1}var Vo=function(e,r,n){if(e.length===1){var i=zn(e[0],r);return n&&i instanceof Wt&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||u9(s))){var u=l.children[0];u instanceof Wt&&u.type==="mn"&&(u.children=[...s.children,...u.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof ia&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof ia&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),a.pop())}}}a.push(l),s=l}return a},hh=function(e,r,n){return MG(Vo(e,r,n))},zn=function(e,r){if(!e)return new Wt("mrow");if(c6[e.type]){var n=c6[e.type](e,r);return n}else throw new jt("Got group of unknown type: '"+e.type+"'")};function nte(t,e,r,n,i){var a=Vo(t,r),s;a.length===1&&a[0]instanceof Wt&&Lrt.has(a[0].type)?s=a[0]:s=new Wt("mrow",a);var o=new Wt("annotation",[new ia(e)]);o.setAttribute("encoding","application/x-tex");var l=new Wt("semantics",[s,o]),u=new Wt("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var d=i?"katex":"katex-mathml";return Ut([d],[u])}var Mrt=[[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]],ite=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ate=function(e,r){return r.size<2?e:Mrt[e-1][r.size-1]};let C1e=class Ef{constructor(e){this.style=e.style,this.color=e.color,this.size=e.size||Ef.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=ite[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={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};return Object.assign(r,e),new Ef(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:ate(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:ite[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=ate(Ef.BASESIZE,e);return this.size===r&&this.textSize===Ef.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var 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!==Ef.BASESIZE?["sizing","reset-size"+this.size,"size"+Ef.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=_rt(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};C1e.BASESIZE=6;var w1e=function(e){return new C1e({style:e.displayMode?jr.DISPLAY:jr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},k1e=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=Ut(n,[e])}return e},Prt=function(e,r,n){var i=w1e(n),a;if(n.output==="mathml")return nte(e,r,i,n.displayMode,!0);if(n.output==="html"){var s=WP(e,i);a=Ut(["katex"],[s])}else{var o=nte(e,r,i,n.displayMode,!1),l=WP(e,i);a=Ut(["katex"],[o,l])}return k1e(a,n)},Brt=function(e,r,n){var i=w1e(n),a=WP(e,i),s=Ut(["katex"],[a]);return k1e(s,n)},Frt={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":"="},Hk=function(e){var r=new Wt("mo",[new ia(Frt[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},$rt={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]},zrt=new Set(["widehat","widecheck","widetilde","utilde"]),Vk=function(e,r){function n(){var o=4e5,l=e.label.slice(1);if(zrt.has(l)){var u=e,d=u.base.type==="ordgroup"?u.base.body.length:1,h,f,p;if(d>5)l==="widehat"||l==="widecheck"?(h=420,o=2364,p=.42,f=l+"4"):(h=312,o=2340,p=.34,f="tilde4");else{var g=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][g],h=[0,239,300,360,420][g],p=[0,.24,.3,.3,.36,.42][g],f=l+g):(o=[0,600,1033,2339,2340][g],h=[0,260,286,306,312][g],p=[0,.26,.286,.3,.306,.34][g],f="tilde"+g)}var m=new uh(f),y=new w0([m],{width:"100%",height:er(p),viewBox:"0 0 "+o+" "+h,preserveAspectRatio:"none"});return{span:dh([],[y],r),minWidth:0,height:p}}else{var v=[],b=$rt[l],[_,E,x]=b,C=x/1e3,T=_.length,w,N;if(T===1){var O=b[3];w=["hide-tail"],N=[O]}else if(T===2)w=["halfarrow-left","halfarrow-right"],N=["xMinYMin","xMaxYMin"];else if(T===3)w=["brace-left","brace-center","brace-right"],N=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+T+" children.");for(var M=0;M0&&(i.style.minWidth=er(a)),i},Urt=function(e,r,n,i,a){var s,o=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=Ut(["stretchy",r],[],a),r==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new UP({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new UP({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new w0(u,{width:"100%",height:er(o)});s=dh([],[d],a)}return s.height=o,s.style.height=er(o),s};function en(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Wk(t){var e=Kk(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Kk(t){return t&&(t.type==="atom"||Ert.hasOwnProperty(t.type))?t:null}var BG=(t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=en(t.base,"accent"),r=n.base,t.base=r,i=yrt(En(t,e)),t.base=n):(n=en(t,"accent"),r=n.base);var a=En(r,e.havingCrampedStyle()),s=n.isShifty&&V0(r),o=0;if(s){var l=ZE(r),u=En(l,e.havingCrampedStyle());o=jee(u).skew}var d=n.label==="\\c",h=d?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=Vk(n,e),f=wn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+er(2*o)+")",marginLeft:er(2*o)}:void 0}]});else{var p,g;n.label==="\\vec"?(p=b1e("vec",e),g=_1e.vec[1]):(p=Yk({mode:n.mode,text:n.label},e,"textord"),p=jee(p),p.italic=0,g=p.width,d&&(h+=p.depth)),f=Ut(["accent-body"],[p]);var m=n.label==="\\textcircled";m&&(f.classes.push("accent-full"),h=a.height);var y=o;m||(y-=g/2),f.style.left=er(y),n.label==="\\textcircled"&&(f.style.top=".2em"),f=wn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:f}]})}var v=Ut(["mord","accent"],[f],e);return i?(i.children[0]=v,i.height=Math.max(v.height,i.height),i.classes[0]="mord",i):v},A1e=(t,e)=>{var r=t.isStretchy?Hk(t.label):new Wt("mo",[Nl(t.label,t.mode)]),n=new Wt("mover",[zn(t.base,e),r]);return n.setAttribute("accent","true"),n},Grt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));or({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:(t,e)=>{var r=u6(e[0]),n=!Grt.test(t.funcName),i=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:BG,mathmlBuilder:A1e});or({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:BG,mathmlBuilder:A1e});or({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(t,e)=>{var r=En(t.base,e),n=Vk(t,e),i=t.label==="\\utilde"?.12:0,a=wn({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return Ut(["mord","accentunder"],[a],e)},mathmlBuilder:(t,e)=>{var r=Hk(t.label),n=new Wt("munder",[zn(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var $x=t=>{var e=new Wt("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};or({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(t,e,r){var{parser:n,funcName:i}=t;return{type:"xArrow",mode:n.mode,label:i,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),i=ib(En(t.body,n,e),e),a=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=ib(En(t.below,n,e),e),s.classes.push(a+"-arrow-pad"));var o=Vk(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(u-=i.depth);var d;if(s){var h=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=wn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:h}]})}else d=wn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l}]});return d.children[0].children[0].children[1].classes.push("svg-align"),Ut(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var r=Hk(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var i=$x(zn(t.body,e));if(t.below){var a=$x(zn(t.below,e));n=new Wt("munderover",[r,a,i])}else n=new Wt("mover",[r,i])}else if(t.below){var s=$x(zn(t.below,e));n=new Wt("munder",[r,s])}else n=$x(),n=new Wt("mover",[r,n]);return n}});function R1e(t,e){var r=wa(t.body,e,!0);return Ut([t.mclass],r,e)}function N1e(t,e){var r,n=Vo(t.body,e);return t.mclass==="minner"?r=new Wt("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new Wt("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new Wt("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):t.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}or({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:na(i),isCharacterBox:V0(i)}},htmlBuilder:R1e,mathmlBuilder:N1e});var Xk=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};or({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:Xk(e[0]),body:na(e[1]),isCharacterBox:V0(e[1])}}});or({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,i=e[1],a=e[0],s;n!=="\\stackrel"?s=Xk(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:na(i)},l={type:"supsub",mode:a.mode,base:o,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:V0(l)}},htmlBuilder:R1e,mathmlBuilder:N1e});or({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:Xk(e[0]),body:na(e[0])}},htmlBuilder(t,e){var r=wa(t.body,e,!0),n=Ut([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=Vo(t.body,e),n=new Wt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var qrt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ste=()=>({type:"styling",body:[],mode:"math",style:"display"}),ote=t=>t.type==="textord"&&t.text==="@",Yrt=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function Hrt(t,e,r){var n=qrt[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[e[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Vrt(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new jt("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],i=[n],a=0;aAV".includes(u))for(var h=0;h<2;h++){for(var f=!0,p=l+1;pAV=|." after @',s[l]);var g=Hrt(u,d,t),m={type:"styling",body:[g],mode:"math",style:"display"};n.push(m),o=ste()}a%2===0?n.push(o):n.shift(),n=[],i.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var y=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:y,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}or({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=ib(En(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=er(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new Wt("mrow",[zn(t.label,e)]);return r=new Wt("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Wt("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});or({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:r}=t;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=ib(En(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Wt("mrow",[zn(t.fragment,e)])}});or({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=en(e[0],"ordgroup"),i=n.body,a="",s=0;s=1114111)throw new jt("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var I1e=(t,e)=>{var r=wa(t.body,e.withColor(t.color),!1);return K0(r)},O1e=(t,e)=>{var r=Vo(t.body,e.withColor(t.color)),n=new Wt("mstyle",r);return n.setAttribute("mathcolor",t.color),n};or({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:r}=t,n=en(e[0],"color-token").color,i=e[1];return{type:"color",mode:r.mode,color:n,body:na(i)}},htmlBuilder:I1e,mathmlBuilder:O1e});or({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,i=en(e[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:I1e,mathmlBuilder:O1e});or({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&en(i,"size").value}},htmlBuilder(t,e){var r=Ut(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=er(ki(t.size,e)))),r},mathmlBuilder(t,e){var r=new Wt("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",er(ki(t.size,e)))),r}});var KP={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},D1e=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new jt("Expected a control sequence",t);return e},Wrt=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},L1e=(t,e,r,n)=>{var i=t.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,i,n)};or({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:r}=t;e.consumeSpaces();var n=e.fetch();if(KP[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=KP[n.text]),en(e.parseFunction(),"internal");throw new jt("Invalid token after macro prefix",n)}});or({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=e.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new jt("Expected a control sequence",n);for(var a=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[a].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new jt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new jt('Argument number "'+n.text+'" out of order');a++,o.push([])}else{if(n.text==="EOF")throw new jt("Expected a macro definition");o[a].push(n.text)}var{tokens:l}=e.gullet.consumeArg();return s&&l.unshift(s),(r==="\\edef"||r==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},r===KP[r]),{type:"internal",mode:e.mode}}});or({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=D1e(e.gullet.popToken());e.gullet.consumeSpaces();var i=Wrt(e);return L1e(e,n,i,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});or({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=D1e(e.gullet.popToken()),i=e.gullet.popToken(),a=e.gullet.popToken();return L1e(e,n,a,r==="\\\\globalfuture"),e.gullet.pushToken(a),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var pE=function(e,r,n){var i=hi.math[e]&&hi.math[e].replace,a=OG(i||e,r,n);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return a},FG=function(e,r,n,i){var a=n.havingBaseStyle(r),s=Ut(i.concat(a.sizingClasses(n)),[e],n),o=a.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},M1e=function(e,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=er(a),e.height-=a,e.depth+=a},Krt=function(e,r,n,i,a,s){var o=As(e,"Main-Regular",a,i),l=FG(o,r,i,s);return M1e(l,i,r),l},Xrt=function(e,r,n,i){return As(e,"Size"+r+"-Regular",n,i)},P1e=function(e,r,n,i,a,s){var o=Xrt(e,r,a,i),l=FG(Ut(["delimsizing","size"+r],[o],i),jr.TEXT,i,s);return n&&M1e(l,i,jr.TEXT),l},d9=function(e,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Ut(["delimsizinginner",i],[Ut([],[As(e,r,n)])]);return{type:"elem",elem:a}},h9=function(e,r,n){var i=Vc["Size4-Regular"][e.charCodeAt(0)]?Vc["Size4-Regular"][e.charCodeAt(0)][4]:Vc["Size1-Regular"][e.charCodeAt(0)][4],a=new uh("inner",drt(e,Math.round(1e3*r))),s=new w0([a],{width:er(i),height:er(r),style:"width:"+er(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=dh([],[s],n);return o.height=r,o.style.height=er(r),o.style.width=er(i),{type:"elem",elem:o}},XP=.008,zx={type:"kern",size:-1*XP},jrt=new Set(["|","\\lvert","\\rvert","\\vert"]),Qrt=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),B1e=function(e,r,n,i,a,s){var o,l,u,d,h="",f=0;o=u=d=e,l=null;var p="Size1-Regular";e==="\\uparrow"?u=d="⏐":e==="\\Uparrow"?u=d="‖":e==="\\downarrow"?o=u="⏐":e==="\\Downarrow"?o=u="‖":e==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):jrt.has(e)?(u="∣",h="vert",f=333):Qrt.has(e)?(u="∥",h="doublevert",f=556):e==="["||e==="\\lbrack"?(o="⎡",u="⎢",d="⎣",p="Size4-Regular",h="lbrack",f=667):e==="]"||e==="\\rbrack"?(o="⎤",u="⎥",d="⎦",p="Size4-Regular",h="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(u=o="⎢",d="⎣",p="Size4-Regular",h="lfloor",f=667):e==="\\lceil"||e==="⌈"?(o="⎡",u=d="⎢",p="Size4-Regular",h="lceil",f=667):e==="\\rfloor"||e==="⌋"?(u=o="⎥",d="⎦",p="Size4-Regular",h="rfloor",f=667):e==="\\rceil"||e==="⌉"?(o="⎤",u=d="⎥",p="Size4-Regular",h="rceil",f=667):e==="("||e==="\\lparen"?(o="⎛",u="⎜",d="⎝",p="Size4-Regular",h="lparen",f=875):e===")"||e==="\\rparen"?(o="⎞",u="⎟",d="⎠",p="Size4-Regular",h="rparen",f=875):e==="\\{"||e==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",p="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",d="⎩",u="⎪",p="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",d="⎭",u="⎪",p="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",d="⎩",u="⎪",p="Size4-Regular");var g=pE(o,p,a),m=g.height+g.depth,y=pE(u,p,a),v=y.height+y.depth,b=pE(d,p,a),_=b.height+b.depth,E=0,x=1;if(l!==null){var C=pE(l,p,a);E=C.height+C.depth,x=2}var T=m+_+E,w=Math.max(0,Math.ceil((r-T)/(x*v))),N=T+w*x*v,O=i.fontMetrics().axisHeight;n&&(O*=i.sizeMultiplier);var M=N/2-O,$=[];if(h.length>0){var F=N-m-_,A=Math.round(N*1e3),I=hrt(h,Math.round(F*1e3)),D=new uh(h,I),L=(f/1e3).toFixed(3)+"em",R=(A/1e3).toFixed(3)+"em",P=new w0([D],{width:L,height:R,viewBox:"0 0 "+f+" "+A}),z=dh([],[P],i);z.height=A/1e3,z.style.width=L,z.style.height=R,$.push({type:"elem",elem:z})}else{if($.push(d9(d,p,a)),$.push(zx),l===null){var B=N-m-_+2*XP;$.push(h9(u,B,i))}else{var q=(N-m-_-E)/2+2*XP;$.push(h9(u,q,i)),$.push(zx),$.push(d9(l,p,a)),$.push(zx),$.push(h9(u,q,i))}$.push(zx),$.push(d9(o,p,a))}var Y=i.havingBaseStyle(jr.TEXT),Q=wn({positionType:"bottom",positionData:M,children:$});return FG(Ut(["delimsizing","mult"],[Q],Y),jr.TEXT,i,s)},f9=80,p9=.08,g9=function(e,r,n,i,a){var s=urt(e,i,n),o=new uh(e,s),l=new w0([o],{width:"400em",height:er(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return dh(["hide-tail"],[l],a)},Zrt=function(e,r){var n=r.havingBaseSizing(),i=G1e("\\surd",e*n.sizeMultiplier,U1e,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,h;return i.type==="small"?(d=1e3+1e3*s+f9,e<1?a=1:e<1.4&&(a=.7),l=(1+s+p9)/a,u=(1+s)/a,o=g9("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",h=.833/a):i.type==="large"?(d=(1e3+f9)*JE[i.size],u=(JE[i.size]+s)/a,l=(JE[i.size]+s+p9)/a,o=g9("sqrtSize"+i.size,l,d,s,r),o.style.minWidth="1.02em",h=1/a):(l=e+s+p9,u=e+s,d=Math.floor(1e3*e+s)+f9,o=g9("sqrtTall",l,d,s,r),o.style.minWidth="0.742em",h=1.056),o.height=u,o.style.height=er(l),{span:o,advanceWidth:h,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},F1e=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Jrt=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),$1e=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),JE=[0,1.2,1.8,2.4,3],z1e=function(e,r,n,i,a){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),F1e.has(e)||$1e.has(e))return P1e(e,r,!1,n,i,a);if(Jrt.has(e))return B1e(e,JE[r],!1,n,i,a);throw new jt("Illegal delimiter: '"+e+"'")},ent=[{type:"small",style:jr.SCRIPTSCRIPT},{type:"small",style:jr.SCRIPT},{type:"small",style:jr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],tnt=[{type:"small",style:jr.SCRIPTSCRIPT},{type:"small",style:jr.SCRIPT},{type:"small",style:jr.TEXT},{type:"stack"}],U1e=[{type:"small",style:jr.SCRIPTSCRIPT},{type:"small",style:jr.SCRIPT},{type:"small",style:jr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],rnt=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},G1e=function(e,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;sr)return o}return n[n.length-1]},jP=function(e,r,n,i,a,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;$1e.has(e)?o=ent:F1e.has(e)?o=U1e:o=tnt;var l=G1e(e,r,o,i);return l.type==="small"?Krt(e,l.style,n,i,a,s):l.type==="large"?P1e(e,l.size,n,i,a,s):B1e(e,r,n,i,a,s)},m9=function(e,r,n,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),h=Math.max(d/500*l,2*d-u);return jP(e,h,!0,i,a,s)},lte={"\\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}},nnt=new Set(["(","\\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 jk(t,e){var r=Kk(t);if(r&&nnt.has(r.text))return r;throw r?new jt("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new jt("Invalid delimiter type '"+t.type+"'",t)}or({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:(t,e)=>{var r=jk(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:lte[t.funcName].size,mclass:lte[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?Ut([t.mclass]):z1e(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Nl(t.delim,t.mode));var r=new Wt("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=er(JE[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function cte(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}or({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new jt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:jk(e[0],t).text,color:r}}});or({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=jk(e[0],t),n=t.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=en(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(t,e)=>{cte(t);for(var r=wa(t.body,e,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s{cte(t);var r=Vo(t.body,e);if(t.left!=="."){var n=new Wt("mo",[Nl(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var i=new Wt("mo",[Nl(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),r.push(i)}return MG(r)}});or({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=jk(e[0],t);if(!t.parser.leftrightDepth)throw new jt("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;if(t.delim===".")r=QS(e,[]);else{r=z1e(t.delim,1,e,t.mode,[]);var n={delim:t.delim,options:e};r.isMiddle=n}return r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?Nl("|","text"):Nl(t.delim,t.mode),n=new Wt("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var $G=(t,e)=>{var r=ib(En(t.body,e),e),n=t.label.slice(1),i=e.sizeMultiplier,a,s=0,o=V0(t.body);if(n==="sout")a=Ut(["stretchy","sout"]),a.height=e.fontMetrics().defaultRuleThickness/i,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=ki({number:.6,unit:"pt"},e),u=ki({number:.35,unit:"ex"},e),d=e.havingBaseSizing();i=i/d.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=er(h/2+l);var f=Math.floor(1e3*h*i),p=lrt(f),g=new w0([new uh("phase",p)],{width:"400em",height:er(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=dh(["hide-tail"],[g],e),a.style.height=er(h),s=r.depth+l+u}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var m=0,y=0,v=0;/box/.test(n)?(v=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(n==="colorbox"?0:v),y=m):n==="angl"?(v=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*v,y=Math.max(0,.25-r.depth)):(m=o?.2:0,y=m),a=Urt(r,n,m,y,e),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=er(v)):n==="angl"&&v!==.049&&(a.style.borderTopWidth=er(v),a.style.borderRightWidth=er(v)),s=r.depth+y,t.backgroundColor&&(a.style.backgroundColor=t.backgroundColor,t.borderColor&&(a.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=wn({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]});else{var _=/cancel|phase/.test(n)?["svg-align"]:[];b=wn({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:_}]})}return/cancel/.test(n)&&(b.height=r.height,b.depth=r.depth),/cancel/.test(n)&&!o?Ut(["mord","cancel-lap"],[b],e):Ut(["mord"],[b],e)},zG=(t,e)=>{var r=0,n=new Wt(t.label.includes("colorbox")?"mpadded":"menclose",[zn(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(t.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};or({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=en(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:$G,mathmlBuilder:zG});or({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=en(e[0],"color-token").color,s=en(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:$G,mathmlBuilder:zG});or({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});or({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:$G,mathmlBuilder:zG});or({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var q1e={};function yu(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var e=t.parser.settings;if(!e.displayMode)throw new jt("{"+t.envName+"} can be used only in display mode.")},int=new Set(["gather","gather*"]);function UG(t){if(!t.includes("ed"))return!t.includes("*")}function Ih(t,e,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:h,leqno:f}=e;if(t.gullet.beginGroup(),u||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=t.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new jt("Invalid \\arraystretch: "+p)}t.gullet.beginGroup();var g=[],m=[g],y=[],v=[],b=l!=null?[]:void 0;function _(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function E(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new rc("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),v.push(ute(t));;){var x=t.parseExpression(!1,u?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var C={type:"ordgroup",mode:t.mode,body:x};r&&(C={type:"styling",mode:t.mode,style:r,body:[C]}),g.push(C);var T=t.fetch().text;if(T==="&"){if(h&&g.length===h){if(u||o)throw new jt("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(T==="\\end"){E(),g.length===1&&C.type==="styling"&&C.body.length===1&&C.body[0].type==="ordgroup"&&C.body[0].body.length===0&&(m.length>1||!d)&&m.pop(),v.length0&&(_+=.25),u.push({pos:_,isDashed:it[Oe]})}for(E(s[0]),n=0;n0&&(M+=b,Tit))for(n=0;n=o)){var re=void 0;if(i>0||e.hskipBeforeAndAfter){var ce,ae;re=(ce=(ae=Y)==null?void 0:ae.pregap)!=null?ce:f,re!==0&&(I=Ut(["arraycolsep"],[]),I.style.width=er(re),A.push(I))}var se=[];for(n=0;n0){for(var Ne=nb("hline",r,d),ut=nb("hdashline",r,d),De=[{type:"elem",elem:qe,shift:0}];u.length>0;){var Je=u.pop(),st=Je.pos-$;Je.isDashed?De.push({type:"elem",elem:ut,shift:st}):De.push({type:"elem",elem:Ne,shift:st})}qe=wn({positionType:"individualShift",children:De})}if(L.length===0)return Ut(["mord"],[qe],r);var ct=wn({positionType:"individualShift",children:L}),ot=Ut(["tag"],[ct],r);return K0([qe,ot])},ant={c:"center ",l:"left ",r:"right "},_u=function(e,r){for(var n=[],i=new Wt("mtd",[],["mtr-glue"]),a=new Wt("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,m="",y=!1,v=0,b=g.length;g[0].type==="separator"&&(f+="top ",v=1),g[g.length-1].type==="separator"&&(f+="bottom ",b-=1);for(var _=v;_0?"left ":"",f+=N[N.length-1].length>0?"right ":"";for(var O=1;O0&&p&&(y=1),n[g]={type:"align",align:m,pregap:y,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};yu({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=Kk(e[0]),n=r?[e[0]]:en(e[0],"ordgroup").body,i=n.map(function(s){var o=Wk(s),l=o.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new jt("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Ih(t.parser,a,GG(t.envName))},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new jt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=Ih(t.parser,n,GG(t.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[a],left:e[0],right:e[1],rightColor:void 0}:a},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=Ih(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=Kk(e[0]),n=r?[e[0]]:en(e[0],"ordgroup").body,i=n.map(function(o){var l=Wk(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new jt("Unknown column alignment: "+u,o)});if(i.length>1)throw new jt("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},s=Ih(t.parser,a,"script");if(s.body.length>0&&s.body[0].length>1)throw new jt("{subarray} can contain only one column");return s},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Ih(t.parser,e,GG(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:W1e,htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){int.has(t.envName)&&Qk(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:UG(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Ih(t.parser,e,"display")},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:W1e,htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Qk(t);var e={autoTag:UG(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Ih(t.parser,e,"display")},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Qk(t),Vrt(t.parser)},htmlBuilder:vu,mathmlBuilder:_u});ke("\\nonumber","\\gdef\\@eqnsw{0}");ke("\\notag","\\nonumber");or({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new jt(t.funcName+" valid only within array environment")}});var dte=q1e;or({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];if(i.type!=="ordgroup")throw new jt("Invalid environment name",i);for(var a="",s=0;s{var r=t.font,n=e.withFont(r);return En(t.body,n)},X1e=(t,e)=>{var r=t.font,n=e.withFont(r);return zn(t.body,n)},hte={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};or({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=u6(e[0]),a=n;return a in hte&&(a=hte[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:K1e,mathmlBuilder:X1e});or({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"mclass",mode:r.mode,mclass:Xk(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:V0(n)}}});or({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n,breakOnTokenText:i}=t,{mode:a}=r,s=r.parseExpression(!0,i),o="math"+n.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:K1e,mathmlBuilder:X1e});var snt=(t,e)=>{var r=e.style,n=r.fracNum(),i=r.fracDen(),a;a=e.havingStyle(n);var s=En(t.numer,a,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height0?g=3*f:g=7*f,m=e.fontMetrics().denom1):(h>0?(p=e.fontMetrics().num2,g=f):(p=e.fontMetrics().num3,g=3*f),m=e.fontMetrics().denom2);var y;if(d){var b=e.fontMetrics().axisHeight;p-s.depth-(b+.5*h){var r=new Wt("mfrac",[zn(t.numer,e),zn(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=ki(t.barSize,e);r.setAttribute("linethickness",er(n))}if(t.leftDelim!=null||t.rightDelim!=null){var i=[];if(t.leftDelim!=null){var a=new Wt("mo",[new ia(t.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),t.rightDelim!=null){var s=new Wt("mo",[new ia(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}return MG(i)}return r},j1e=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};or({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1],s,o=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var u=n==="\\cfrac",d=null;return u||n.startsWith("\\d")?d="display":n.startsWith("\\t")&&(d="text"),j1e({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},d)},htmlBuilder:snt,mathmlBuilder:ont});or({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:n}}});var fte=["display","text","script","scriptscript"],pte=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};or({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:r}=t,n=e[4],i=e[5],a=u6(e[0]),s=a.type==="atom"&&a.family==="open"?pte(a.text):null,o=u6(e[1]),l=o.type==="atom"&&o.family==="close"?pte(o.text):null,u=en(e[2],"size"),d,h=null;u.isBlank?d=!0:(h=u.value,d=h.number>0);var f=null,p=e[3];if(p.type==="ordgroup"){if(p.body.length>0){var g=en(p.body[0],"textord");f=fte[Number(g.text)]}}else p=en(p,"textord"),f=fte[Number(p.text)];return j1e({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:d,barSize:h,leftDelim:s,rightDelim:l},f)}});or({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:r,funcName:n,token:i}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:en(e[0],"size").value,token:i}}});or({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=en(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var s=e[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null}}});var Q1e=(t,e)=>{var r=e.style,n,i;t.type==="supsub"?(n=t.sup?En(t.sup,e.havingStyle(r.sup()),e):En(t.sub,e.havingStyle(r.sub()),e),i=en(t.base,"horizBrace")):i=en(t,"horizBrace");var a=En(i.base,e.havingBaseStyle(jr.DISPLAY)),s=Vk(i,e),o;if(i.isOver?(o=wn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]}),o.children[0].children[0].children[1].classes.push("svg-align")):(o=wn({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]}),o.children[0].children[0].children[0].classes.push("svg-align")),n){var l=Ut(["mord",i.isOver?"mover":"munder"],[o],e);i.isOver?o=wn({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=wn({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return Ut(["mord",i.isOver?"mover":"munder"],[o],e)},lnt=(t,e)=>{var r=Hk(t.label);return new Wt(t.isOver?"mover":"munder",[zn(t.base,e),r])};or({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:Q1e,mathmlBuilder:lnt});or({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[1],i=en(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:na(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=wa(t.body,e,!1);return Crt(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=hh(t.body,e);return r instanceof Wt||(r=new Wt("mrow",[r])),r.setAttribute("href",t.href),r}});or({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=en(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:r,funcName:n,token:i}=t,a=en(e[0],"raw").string,s=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(n){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),d=0;d{var r=wa(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var i=Ut(n,r,e);for(var a in t.attributes)a!=="class"&&t.attributes.hasOwnProperty(a)&&i.setAttribute(a,t.attributes[a]);return i},mathmlBuilder:(t,e)=>hh(t.body,e)});or({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"htmlmathml",mode:r.mode,html:na(e[0]),mathml:na(e[1])}},htmlBuilder:(t,e)=>{var r=wa(t.html,e,!1);return K0(r)},mathmlBuilder:(t,e)=>hh(t.mathml,e)});var y9=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new jt("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!h1e(n))throw new jt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};or({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,r)=>{var{parser:n}=t,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=en(r[0],"raw").string,u=l.split(","),d=0;d{var r=ki(t.height,e),n=0;t.totalheight.number>0&&(n=ki(t.totalheight,e)-r);var i=0;t.width.number>0&&(i=ki(t.width,e));var a={height:er(r+n)};i>0&&(a.width=er(i)),n>0&&(a.verticalAlign=er(-n));var s=new grt(t.src,t.alt,a);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new Wt("mglyph",[]);r.setAttribute("alt",t.alt);var n=ki(t.height,e),i=0;if(t.totalheight.number>0&&(i=ki(t.totalheight,e)-n,r.setAttribute("valign",er(-i))),r.setAttribute("height",er(n+i)),t.width.number>0){var a=ki(t.width,e);r.setAttribute("width",er(a))}return r.setAttribute("src",t.src),r}});or({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=en(e[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(t,e){return v1e(t.dimension,e)},mathmlBuilder(t,e){var r=ki(t.dimension,e);return new x1e(r)}});or({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=Ut([],[En(t.body,e)]),r=Ut(["inner"],[r],e)):r=Ut(["inner"],[En(t.body,e)]);var n=Ut(["fix"],[]),i=Ut([t.alignment],[r,n],e),a=Ut(["strut"]);return a.style.height=er(i.height+i.depth),i.depth&&(a.style.verticalAlign=er(-i.depth)),i.children.unshift(a),i=Ut(["thinbox"],[i],e),Ut(["mord","vbox"],[i],e)},mathmlBuilder:(t,e)=>{var r=new Wt("mpadded",[zn(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});or({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:n}=t,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:s}}});or({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new jt("Mismatched "+t.funcName)}});var gte=(t,e)=>{switch(e.style.size){case jr.DISPLAY.size:return t.display;case jr.TEXT.size:return t.text;case jr.SCRIPT.size:return t.script;case jr.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};or({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:na(e[0]),text:na(e[1]),script:na(e[2]),scriptscript:na(e[3])}},htmlBuilder:(t,e)=>{var r=gte(t,e),n=wa(r,e,!1);return K0(n)},mathmlBuilder:(t,e)=>{var r=gte(t,e);return hh(r,e)}});var Z1e=(t,e,r,n,i,a,s)=>{t=Ut([],[t]);var o=r&&V0(r),l,u;if(e){var d=En(e,n.havingStyle(i.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=En(r,n.havingStyle(i.sub()),n);l={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var f;if(u&&l){var p=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+s;f=wn({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:er(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:er(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var g=t.height-s;f=wn({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:er(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t}]})}else if(u){var m=t.depth+s;f=wn({positionType:"bottom",positionData:m,children:[{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:er(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var y=[f];if(l&&a!==0&&!o){var v=Ut(["mspace"],[],n);v.style.marginRight=er(a),y.unshift(v)}return Ut(["mop","op-limits"],y,n)},J1e=new Set(["\\smallint"]),Wb=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=en(t.base,"op"),i=!0):a=en(t,"op");var s=e.style,o=!1;s.size===jr.DISPLAY.size&&a.symbol&&!J1e.has(a.name)&&(o=!0);var l;if(a.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),l=As(a.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var h=l.italic,f=b1e(d+"Size"+(o?"2":"1"),e);l=wn({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),a.name="\\"+d,l.classes.unshift("mop"),l.italic=h}}else if(a.body){var p=wa(a.body,e,!0);p.length===1&&p[0]instanceof Rl?(l=p[0],l.classes[0]="mop"):l=Ut(["mop"],p,e)}else{for(var g=[],m=1;m{var r;if(t.symbol)r=new Wt("mo",[Nl(t.name,t.mode)]),J1e.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new Wt("mo",Vo(t.body,e));else{r=new Wt("mi",[new ia(t.name.slice(1))]);var n=new Wt("mo",[Nl("⁡","text")]);t.parentIsSupSub?r=new Wt("mrow",[r,n]):r=T1e([r,n])}return r},cnt={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};or({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=n;return i.length===1&&(i=cnt[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Wb,mathmlBuilder:fT});or({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:na(n)}},htmlBuilder:Wb,mathmlBuilder:fT});var unt={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};or({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(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Wb,mathmlBuilder:fT});or({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Wb,mathmlBuilder:fT});or({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(t){var{parser:e,funcName:r}=t,n=r;return n.length===1&&(n=unt[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Wb,mathmlBuilder:fT});var eye=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=en(t.base,"operatorname"),i=!0):a=en(t,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(h=>{var f="text"in h?h.text:void 0;return typeof f=="string"?{type:"textord",mode:h.mode,text:f}:h}),l=wa(o,e.withFont("mathrm"),!0),u=0;u{for(var r=Vo(t.body,e.withFont("mathrm")),n=!0,i=0;id.toText()).join("");r=[new ia(o)]}var l=new Wt("mi",r);l.setAttribute("mathvariant","normal");var u=new Wt("mo",[Nl("⁡","text")]);return t.parentIsSupSub?new Wt("mrow",[l,u]):T1e([l,u])};or({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"operatorname",mode:r.mode,body:na(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:eye,mathmlBuilder:dnt});ke("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");jp({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?K0(wa(t.body,e,!1)):Ut(["mord"],wa(t.body,e,!0),e)},mathmlBuilder(t,e){return hh(t.body,e,!0)}});or({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:r}=t,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=En(t.body,e.havingCrampedStyle()),n=nb("overline-line",e),i=e.fontMetrics().defaultRuleThickness,a=wn({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return Ut(["mord","overline"],[a],e)},mathmlBuilder(t,e){var r=new Wt("mo",[new ia("‾")]);r.setAttribute("stretchy","true");var n=new Wt("mover",[zn(t.body,e),r]);return n.setAttribute("accent","true"),n}});or({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"phantom",mode:r.mode,body:na(n)}},htmlBuilder:(t,e)=>{var r=wa(t.body,e.withPhantom(),!1);return K0(r)},mathmlBuilder:(t,e)=>{var r=Vo(t.body,e);return new Wt("mphantom",r)}});ke("\\hphantom","\\smash{\\phantom{#1}}");or({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=Ut(["inner"],[En(t.body,e.withPhantom())]),n=Ut(["fix"],[]);return Ut(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=Vo(na(t.body),e),n=new Wt("mphantom",r),i=new Wt("mpadded",[n]);return i.setAttribute("width","0px"),i}});or({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t,n=en(e[0],"size").value,i=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(t,e){var r=En(t.body,e),n=ki(t.dy,e);return wn({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Wt("mpadded",[zn(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});or({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});or({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(t,e,r){var{parser:n}=t,i=r[0],a=en(e[0],"size"),s=en(e[1],"size");return{type:"rule",mode:n.mode,shift:i&&en(i,"size").value,width:a.value,height:s.value}},htmlBuilder(t,e){var r=Ut(["mord","rule"],[],e),n=ki(t.width,e),i=ki(t.height,e),a=t.shift?ki(t.shift,e):0;return r.style.borderRightWidth=er(n),r.style.borderTopWidth=er(i),r.style.bottom=er(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=ki(t.width,e),n=ki(t.height,e),i=t.shift?ki(t.shift,e):0,a=e.color&&e.getColor()||"black",s=new Wt("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",er(r)),s.setAttribute("height",er(n));var o=new Wt("mpadded",[s]);return i>=0?o.setAttribute("height",er(i)):(o.setAttribute("height",er(i)),o.setAttribute("depth",er(-i))),o.setAttribute("voffset",er(i)),o}});function tye(t,e,r){for(var n=wa(t,e,!1),i=e.sizeMultiplier/r.sizeMultiplier,a=0;a{var r=e.havingSize(t.size);return tye(t.body,r,e)};or({type:"sizing",names:mte,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:mte.indexOf(n)+1,body:a}},htmlBuilder:hnt,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=Vo(t.body,r),i=new Wt("mstyle",n);return i.setAttribute("mathsize",er(r.sizeMultiplier)),i}});or({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:n}=t,i=!1,a=!1,s=r[0]&&en(r[0],"ordgroup");if(s)for(var o="",l=0;l{var r=Ut([],[En(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return Ut(["mord","smash"],[r],e);if(r.children)for(var n=0;n{var r=new Wt("mpadded",[zn(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});or({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n}=t,i=r[0],a=e[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(t,e){var r=En(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=ib(r,e);var n=e.fontMetrics(),i=n.defaultRuleThickness,a=i;e.style.idr.height+r.depth+s&&(s=(s+h-r.height-r.depth)/2);var f=l.height-r.height-s-u;r.style.paddingLeft=er(d);var p=wn({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]});if(t.index){var g=e.havingStyle(jr.SCRIPTSCRIPT),m=En(t.index,g,e),y=.6*(p.height-p.depth),v=wn({positionType:"shift",positionData:-y,children:[{type:"elem",elem:m}]}),b=Ut(["root"],[v]);return Ut(["mord","sqrt"],[b,p],e)}else return Ut(["mord","sqrt"],[p],e)},mathmlBuilder(t,e){var{body:r,index:n}=t;return n?new Wt("mroot",[zn(r,e),zn(n,e)]):new Wt("msqrt",[zn(r,e)])}});var yte={display:jr.DISPLAY,text:jr.TEXT,script:jr.SCRIPT,scriptscript:jr.SCRIPTSCRIPT};or({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(t,e){var r=yte[t.style],n=e.havingStyle(r).withFont("");return tye(t.body,n,e)},mathmlBuilder(t,e){var r=yte[t.style],n=e.havingStyle(r),i=Vo(t.body,n),a=new Wt("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var fnt=function(e,r){var n=e.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===jr.DISPLAY.size||n.alwaysHandleSupSub);return i?Wb:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===jr.DISPLAY.size||n.limits);return a?eye:null}else{if(n.type==="accent")return V0(n.base)?BG:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Q1e:null}else return null}else return null};jp({type:"supsub",htmlBuilder(t,e){var r=fnt(t,e);if(r)return r(t,e);var{base:n,sup:i,sub:a}=t,s=En(n,e),o,l,u=e.fontMetrics(),d=0,h=0,f=n&&V0(n);if(i){var p=e.havingStyle(e.style.sup());o=En(i,p,e),f||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(a){var g=e.havingStyle(e.style.sub());l=En(a,g,e),f||(h=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}var m;e.style===jr.DISPLAY?m=u.sup1:e.style.cramped?m=u.sup3:m=u.sup2;var y=e.sizeMultiplier,v=er(.5/u.ptPerEm/y),b=null;if(l){var _=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(s instanceof Rl||_)&&(b=er(-s.italic))}var E;if(o&&l){d=Math.max(d,m,o.depth+.25*u.xHeight),h=Math.max(h,u.sub2);var x=u.defaultRuleThickness,C=4*x;if(d-o.depth-(l.height-h)0&&(d+=T,h-=T)}var w=[{type:"elem",elem:l,shift:h,marginRight:v,marginLeft:b},{type:"elem",elem:o,shift:-d,marginRight:v}];E=wn({positionType:"individualShift",children:w})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var N=[{type:"elem",elem:l,marginLeft:b,marginRight:v}];E=wn({positionType:"shift",positionData:h,children:N})}else if(o)d=Math.max(d,m,o.depth+.25*u.xHeight),E=wn({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:v}]});else throw new Error("supsub must have either sup or sub.");var O=VP(s,"right")||"mord";return Ut([O],[s,Ut(["msupsub"],[E])],e)},mathmlBuilder(t,e){var r=!1,n,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var a=[zn(t.base,e)];t.sub&&a.push(zn(t.sub,e)),t.sup&&a.push(zn(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var u=t.base;u&&u.type==="op"&&u.limits&&e.style===jr.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(e.style===jr.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===jr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===jr.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===jr.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===jr.DISPLAY)?s="mover":s="msup"}return new Wt(s,a)}});jp({type:"atom",htmlBuilder(t,e){return DG(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Wt("mo",[Nl(t.text,t.mode)]);if(t.family==="bin"){var n=PG(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var rye={mi:"italic",mn:"normal",mtext:"normal"};jp({type:"mathord",htmlBuilder(t,e){return Yk(t,e,"mathord")},mathmlBuilder(t,e){var r=new Wt("mi",[Nl(t.text,t.mode,e)]),n=PG(t,e)||"italic";return n!==rye[r.type]&&r.setAttribute("mathvariant",n),r}});jp({type:"textord",htmlBuilder(t,e){return Yk(t,e,"textord")},mathmlBuilder(t,e){var r=Nl(t.text,t.mode,e),n=PG(t,e)||"normal",i;return t.mode==="text"?i=new Wt("mtext",[r]):/[0-9]/.test(t.text)?i=new Wt("mn",[r]):t.text==="\\prime"?i=new Wt("mo",[r]):i=new Wt("mi",[r]),n!==rye[i.type]&&i.setAttribute("mathvariant",n),i}});var v9={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},_9={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};jp({type:"spacing",htmlBuilder(t,e){if(_9.hasOwnProperty(t.text)){var r=_9[t.text].className||"";if(t.mode==="text"){var n=Yk(t,e,"textord");return n.classes.push(r),n}else return Ut(["mspace",r],[DG(t.text,t.mode,e)],e)}else{if(v9.hasOwnProperty(t.text))return Ut(["mspace",v9[t.text]],[],e);throw new jt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(_9.hasOwnProperty(t.text))r=new Wt("mtext",[new ia(" ")]);else{if(v9.hasOwnProperty(t.text))return new Wt("mspace");throw new jt('Unknown type of space "'+t.text+'"')}return r}});var vte=()=>{var t=new Wt("mtd",[]);return t.setAttribute("width","50%"),t};jp({type:"tag",mathmlBuilder(t,e){var r=new Wt("mtable",[new Wt("mtr",[vte(),new Wt("mtd",[hh(t.body,e)]),vte(),new Wt("mtd",[hh(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var _te={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},bte={"\\textbf":"textbf","\\textmd":"textmd"},pnt={"\\textit":"textit","\\textup":"textup"},Ete=(t,e)=>{var r=t.font;if(r){if(_te[r])return e.withTextFontFamily(_te[r]);if(bte[r])return e.withTextFontWeight(bte[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(pnt[r])};or({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"text",mode:r.mode,body:na(i),font:n}},htmlBuilder(t,e){var r=Ete(t,e),n=wa(t.body,r,!0);return Ut(["mord","text"],n,r)},mathmlBuilder(t,e){var r=Ete(t,e);return hh(t.body,r)}});or({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=En(t.body,e),n=nb("underline-line",e),i=e.fontMetrics().defaultRuleThickness,a=wn({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return Ut(["mord","underline"],[a],e)},mathmlBuilder(t,e){var r=new Wt("mo",[new ia("‾")]);r.setAttribute("stretchy","true");var n=new Wt("munder",[zn(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});or({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=En(t.body,e),n=e.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return wn({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){return new Wt("mpadded",[zn(t.body,e)],["vcenter"])}});or({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,r){throw new jt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=Ste(t),n=[],i=e.havingStyle(e.style.text()),a=0;at.body.replace(/ /g,t.star?"␣":" "),$d=E1e,nye=`[ \r - ]`,gnt="\\\\[a-zA-Z@]+",mnt="\\\\[^\uD800-\uDFFF]",ynt="("+gnt+")"+nye+"*",vnt=`\\\\( +-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.")}},zP={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},prt={ex:!0,em:!0,mu:!0},h1e=function(e){return typeof e!="string"&&(e=e.unit),e in zP||e in prt||e==="ex"},ki=function(e,r){var n;if(e.unit in zP)n=zP[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,e.unit==="ex")n=i.fontMetrics().xHeight;else if(e.unit==="em")n=i.fontMetrics().quad;else throw new jt("Invalid unit: '"+e.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},er=function(e){return+e.toFixed(4)+"em"},ch=function(e){return e.filter(r=>r).join(" ")},f1e=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},p1e=function(e){var r=document.createElement(e);r.className=ch(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,g1e=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+us(ch(this.classes))+'"');var n="";for(var i of Object.keys(this.style))n+=AG(i)+":"+this.style[i]+";";n&&(r+=' style="'+us(n)+'"');for(var a of Object.keys(this.attributes)){if(grt.test(a))throw new jt("Invalid attribute name '"+a+"'");r+=" "+a+'="'+us(this.attributes[a])+'"'}r+=">";for(var s=0;s",r};let dT=class{constructor(e,r,n,i){f1e.call(this,e,n,i),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return p1e.call(this,"span")}toMarkup(){return g1e.call(this,"span")}},IG=class{constructor(e,r,n,i){f1e.call(this,r,i),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return p1e.call(this,"a")}toMarkup(){return g1e.call(this,"a")}},mrt=class{constructor(e,r,n){this.alt=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var r of Object.keys(this.style))e.style[r]=this.style[r];return e}toMarkup(){var e=''+us(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=er(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=ch(this.classes));for(var n of Object.keys(this.style))r=r||document.createElement("span"),r.style[n]=this.style[n];return r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="0&&(n+="margin-right:"+this.italic+"em;");for(var i of Object.keys(this.style))n+=AG(i)+":"+this.style[i]+";";n&&(e=!0,r+=' style="'+us(n)+'"');var a=us(this.text);return e?(r+=">",r+=a,r+="",r):a}},w0=class{constructor(e,r){this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i':''}},UP=class{constructor(e){this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e=" but got "+String(t)+".")}var Vc={"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]}},Dx={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]},Qee={Å:"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 _rt(t,e){Vc[t]=e}function OG(t,e,r){if(!Vc[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),i=Vc[e][n];if(!i&&t[0]in Qee&&(n=Qee[t[0]].charCodeAt(0),i=Vc[e][n]),!i&&r==="text"&&d1e(n)&&(i=Vc[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var a9={};function brt(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!a9[e]){var r=a9[e]={cssEmPerMu:Dx.quad[e]/18};for(var n in Dx)Dx.hasOwnProperty(n)&&(r[n]=Dx[n][e])}return a9[e]}var Ert={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Srt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},hi={math:{},text:{}};function X(t,e,r,n,i,a){hi[t][i]={font:e,group:r,replace:n},a&&n&&(hi[t][n]=hi[t][i])}var ne="math",Ft="text",Se="main",Ve="ams",bi="accent-token",ur="bin",Js="close",Vb="inner",Rr="mathord",da="op-token",Ho="open",Gk="punct",Qe="rel",W0="spacing",nt="textord";X(ne,Se,Qe,"≡","\\equiv",!0);X(ne,Se,Qe,"≺","\\prec",!0);X(ne,Se,Qe,"≻","\\succ",!0);X(ne,Se,Qe,"∼","\\sim",!0);X(ne,Se,Qe,"⊥","\\perp");X(ne,Se,Qe,"⪯","\\preceq",!0);X(ne,Se,Qe,"⪰","\\succeq",!0);X(ne,Se,Qe,"≃","\\simeq",!0);X(ne,Se,Qe,"∣","\\mid",!0);X(ne,Se,Qe,"≪","\\ll",!0);X(ne,Se,Qe,"≫","\\gg",!0);X(ne,Se,Qe,"≍","\\asymp",!0);X(ne,Se,Qe,"∥","\\parallel");X(ne,Se,Qe,"⋈","\\bowtie",!0);X(ne,Se,Qe,"⌣","\\smile",!0);X(ne,Se,Qe,"⊑","\\sqsubseteq",!0);X(ne,Se,Qe,"⊒","\\sqsupseteq",!0);X(ne,Se,Qe,"≐","\\doteq",!0);X(ne,Se,Qe,"⌢","\\frown",!0);X(ne,Se,Qe,"∋","\\ni",!0);X(ne,Se,Qe,"∝","\\propto",!0);X(ne,Se,Qe,"⊢","\\vdash",!0);X(ne,Se,Qe,"⊣","\\dashv",!0);X(ne,Se,Qe,"∋","\\owns");X(ne,Se,Gk,".","\\ldotp");X(ne,Se,Gk,"⋅","\\cdotp");X(ne,Se,nt,"#","\\#");X(Ft,Se,nt,"#","\\#");X(ne,Se,nt,"&","\\&");X(Ft,Se,nt,"&","\\&");X(ne,Se,nt,"ℵ","\\aleph",!0);X(ne,Se,nt,"∀","\\forall",!0);X(ne,Se,nt,"ℏ","\\hbar",!0);X(ne,Se,nt,"∃","\\exists",!0);X(ne,Se,nt,"∇","\\nabla",!0);X(ne,Se,nt,"♭","\\flat",!0);X(ne,Se,nt,"ℓ","\\ell",!0);X(ne,Se,nt,"♮","\\natural",!0);X(ne,Se,nt,"♣","\\clubsuit",!0);X(ne,Se,nt,"℘","\\wp",!0);X(ne,Se,nt,"♯","\\sharp",!0);X(ne,Se,nt,"♢","\\diamondsuit",!0);X(ne,Se,nt,"ℜ","\\Re",!0);X(ne,Se,nt,"♡","\\heartsuit",!0);X(ne,Se,nt,"ℑ","\\Im",!0);X(ne,Se,nt,"♠","\\spadesuit",!0);X(ne,Se,nt,"§","\\S",!0);X(Ft,Se,nt,"§","\\S");X(ne,Se,nt,"¶","\\P",!0);X(Ft,Se,nt,"¶","\\P");X(ne,Se,nt,"†","\\dag");X(Ft,Se,nt,"†","\\dag");X(Ft,Se,nt,"†","\\textdagger");X(ne,Se,nt,"‡","\\ddag");X(Ft,Se,nt,"‡","\\ddag");X(Ft,Se,nt,"‡","\\textdaggerdbl");X(ne,Se,Js,"⎱","\\rmoustache",!0);X(ne,Se,Ho,"⎰","\\lmoustache",!0);X(ne,Se,Js,"⟯","\\rgroup",!0);X(ne,Se,Ho,"⟮","\\lgroup",!0);X(ne,Se,ur,"∓","\\mp",!0);X(ne,Se,ur,"⊖","\\ominus",!0);X(ne,Se,ur,"⊎","\\uplus",!0);X(ne,Se,ur,"⊓","\\sqcap",!0);X(ne,Se,ur,"∗","\\ast");X(ne,Se,ur,"⊔","\\sqcup",!0);X(ne,Se,ur,"◯","\\bigcirc",!0);X(ne,Se,ur,"∙","\\bullet",!0);X(ne,Se,ur,"‡","\\ddagger");X(ne,Se,ur,"≀","\\wr",!0);X(ne,Se,ur,"⨿","\\amalg");X(ne,Se,ur,"&","\\And");X(ne,Se,Qe,"⟵","\\longleftarrow",!0);X(ne,Se,Qe,"⇐","\\Leftarrow",!0);X(ne,Se,Qe,"⟸","\\Longleftarrow",!0);X(ne,Se,Qe,"⟶","\\longrightarrow",!0);X(ne,Se,Qe,"⇒","\\Rightarrow",!0);X(ne,Se,Qe,"⟹","\\Longrightarrow",!0);X(ne,Se,Qe,"↔","\\leftrightarrow",!0);X(ne,Se,Qe,"⟷","\\longleftrightarrow",!0);X(ne,Se,Qe,"⇔","\\Leftrightarrow",!0);X(ne,Se,Qe,"⟺","\\Longleftrightarrow",!0);X(ne,Se,Qe,"↦","\\mapsto",!0);X(ne,Se,Qe,"⟼","\\longmapsto",!0);X(ne,Se,Qe,"↗","\\nearrow",!0);X(ne,Se,Qe,"↩","\\hookleftarrow",!0);X(ne,Se,Qe,"↪","\\hookrightarrow",!0);X(ne,Se,Qe,"↘","\\searrow",!0);X(ne,Se,Qe,"↼","\\leftharpoonup",!0);X(ne,Se,Qe,"⇀","\\rightharpoonup",!0);X(ne,Se,Qe,"↙","\\swarrow",!0);X(ne,Se,Qe,"↽","\\leftharpoondown",!0);X(ne,Se,Qe,"⇁","\\rightharpoondown",!0);X(ne,Se,Qe,"↖","\\nwarrow",!0);X(ne,Se,Qe,"⇌","\\rightleftharpoons",!0);X(ne,Ve,Qe,"≮","\\nless",!0);X(ne,Ve,Qe,"","\\@nleqslant");X(ne,Ve,Qe,"","\\@nleqq");X(ne,Ve,Qe,"⪇","\\lneq",!0);X(ne,Ve,Qe,"≨","\\lneqq",!0);X(ne,Ve,Qe,"","\\@lvertneqq");X(ne,Ve,Qe,"⋦","\\lnsim",!0);X(ne,Ve,Qe,"⪉","\\lnapprox",!0);X(ne,Ve,Qe,"⊀","\\nprec",!0);X(ne,Ve,Qe,"⋠","\\npreceq",!0);X(ne,Ve,Qe,"⋨","\\precnsim",!0);X(ne,Ve,Qe,"⪹","\\precnapprox",!0);X(ne,Ve,Qe,"≁","\\nsim",!0);X(ne,Ve,Qe,"","\\@nshortmid");X(ne,Ve,Qe,"∤","\\nmid",!0);X(ne,Ve,Qe,"⊬","\\nvdash",!0);X(ne,Ve,Qe,"⊭","\\nvDash",!0);X(ne,Ve,Qe,"⋪","\\ntriangleleft");X(ne,Ve,Qe,"⋬","\\ntrianglelefteq",!0);X(ne,Ve,Qe,"⊊","\\subsetneq",!0);X(ne,Ve,Qe,"","\\@varsubsetneq");X(ne,Ve,Qe,"⫋","\\subsetneqq",!0);X(ne,Ve,Qe,"","\\@varsubsetneqq");X(ne,Ve,Qe,"≯","\\ngtr",!0);X(ne,Ve,Qe,"","\\@ngeqslant");X(ne,Ve,Qe,"","\\@ngeqq");X(ne,Ve,Qe,"⪈","\\gneq",!0);X(ne,Ve,Qe,"≩","\\gneqq",!0);X(ne,Ve,Qe,"","\\@gvertneqq");X(ne,Ve,Qe,"⋧","\\gnsim",!0);X(ne,Ve,Qe,"⪊","\\gnapprox",!0);X(ne,Ve,Qe,"⊁","\\nsucc",!0);X(ne,Ve,Qe,"⋡","\\nsucceq",!0);X(ne,Ve,Qe,"⋩","\\succnsim",!0);X(ne,Ve,Qe,"⪺","\\succnapprox",!0);X(ne,Ve,Qe,"≆","\\ncong",!0);X(ne,Ve,Qe,"","\\@nshortparallel");X(ne,Ve,Qe,"∦","\\nparallel",!0);X(ne,Ve,Qe,"⊯","\\nVDash",!0);X(ne,Ve,Qe,"⋫","\\ntriangleright");X(ne,Ve,Qe,"⋭","\\ntrianglerighteq",!0);X(ne,Ve,Qe,"","\\@nsupseteqq");X(ne,Ve,Qe,"⊋","\\supsetneq",!0);X(ne,Ve,Qe,"","\\@varsupsetneq");X(ne,Ve,Qe,"⫌","\\supsetneqq",!0);X(ne,Ve,Qe,"","\\@varsupsetneqq");X(ne,Ve,Qe,"⊮","\\nVdash",!0);X(ne,Ve,Qe,"⪵","\\precneqq",!0);X(ne,Ve,Qe,"⪶","\\succneqq",!0);X(ne,Ve,Qe,"","\\@nsubseteqq");X(ne,Ve,ur,"⊴","\\unlhd");X(ne,Ve,ur,"⊵","\\unrhd");X(ne,Ve,Qe,"↚","\\nleftarrow",!0);X(ne,Ve,Qe,"↛","\\nrightarrow",!0);X(ne,Ve,Qe,"⇍","\\nLeftarrow",!0);X(ne,Ve,Qe,"⇏","\\nRightarrow",!0);X(ne,Ve,Qe,"↮","\\nleftrightarrow",!0);X(ne,Ve,Qe,"⇎","\\nLeftrightarrow",!0);X(ne,Ve,Qe,"△","\\vartriangle");X(ne,Ve,nt,"ℏ","\\hslash");X(ne,Ve,nt,"▽","\\triangledown");X(ne,Ve,nt,"◊","\\lozenge");X(ne,Ve,nt,"Ⓢ","\\circledS");X(ne,Ve,nt,"®","\\circledR");X(Ft,Ve,nt,"®","\\circledR");X(ne,Ve,nt,"∡","\\measuredangle",!0);X(ne,Ve,nt,"∄","\\nexists");X(ne,Ve,nt,"℧","\\mho");X(ne,Ve,nt,"Ⅎ","\\Finv",!0);X(ne,Ve,nt,"⅁","\\Game",!0);X(ne,Ve,nt,"‵","\\backprime");X(ne,Ve,nt,"▲","\\blacktriangle");X(ne,Ve,nt,"▼","\\blacktriangledown");X(ne,Ve,nt,"■","\\blacksquare");X(ne,Ve,nt,"⧫","\\blacklozenge");X(ne,Ve,nt,"★","\\bigstar");X(ne,Ve,nt,"∢","\\sphericalangle",!0);X(ne,Ve,nt,"∁","\\complement",!0);X(ne,Ve,nt,"ð","\\eth",!0);X(Ft,Se,nt,"ð","ð");X(ne,Ve,nt,"╱","\\diagup");X(ne,Ve,nt,"╲","\\diagdown");X(ne,Ve,nt,"□","\\square");X(ne,Ve,nt,"□","\\Box");X(ne,Ve,nt,"◊","\\Diamond");X(ne,Ve,nt,"¥","\\yen",!0);X(Ft,Ve,nt,"¥","\\yen",!0);X(ne,Ve,nt,"✓","\\checkmark",!0);X(Ft,Ve,nt,"✓","\\checkmark");X(ne,Ve,nt,"ℶ","\\beth",!0);X(ne,Ve,nt,"ℸ","\\daleth",!0);X(ne,Ve,nt,"ℷ","\\gimel",!0);X(ne,Ve,nt,"ϝ","\\digamma",!0);X(ne,Ve,nt,"ϰ","\\varkappa");X(ne,Ve,Ho,"┌","\\@ulcorner",!0);X(ne,Ve,Js,"┐","\\@urcorner",!0);X(ne,Ve,Ho,"└","\\@llcorner",!0);X(ne,Ve,Js,"┘","\\@lrcorner",!0);X(ne,Ve,Qe,"≦","\\leqq",!0);X(ne,Ve,Qe,"⩽","\\leqslant",!0);X(ne,Ve,Qe,"⪕","\\eqslantless",!0);X(ne,Ve,Qe,"≲","\\lesssim",!0);X(ne,Ve,Qe,"⪅","\\lessapprox",!0);X(ne,Ve,Qe,"≊","\\approxeq",!0);X(ne,Ve,ur,"⋖","\\lessdot");X(ne,Ve,Qe,"⋘","\\lll",!0);X(ne,Ve,Qe,"≶","\\lessgtr",!0);X(ne,Ve,Qe,"⋚","\\lesseqgtr",!0);X(ne,Ve,Qe,"⪋","\\lesseqqgtr",!0);X(ne,Ve,Qe,"≑","\\doteqdot");X(ne,Ve,Qe,"≓","\\risingdotseq",!0);X(ne,Ve,Qe,"≒","\\fallingdotseq",!0);X(ne,Ve,Qe,"∽","\\backsim",!0);X(ne,Ve,Qe,"⋍","\\backsimeq",!0);X(ne,Ve,Qe,"⫅","\\subseteqq",!0);X(ne,Ve,Qe,"⋐","\\Subset",!0);X(ne,Ve,Qe,"⊏","\\sqsubset",!0);X(ne,Ve,Qe,"≼","\\preccurlyeq",!0);X(ne,Ve,Qe,"⋞","\\curlyeqprec",!0);X(ne,Ve,Qe,"≾","\\precsim",!0);X(ne,Ve,Qe,"⪷","\\precapprox",!0);X(ne,Ve,Qe,"⊲","\\vartriangleleft");X(ne,Ve,Qe,"⊴","\\trianglelefteq");X(ne,Ve,Qe,"⊨","\\vDash",!0);X(ne,Ve,Qe,"⊪","\\Vvdash",!0);X(ne,Ve,Qe,"⌣","\\smallsmile");X(ne,Ve,Qe,"⌢","\\smallfrown");X(ne,Ve,Qe,"≏","\\bumpeq",!0);X(ne,Ve,Qe,"≎","\\Bumpeq",!0);X(ne,Ve,Qe,"≧","\\geqq",!0);X(ne,Ve,Qe,"⩾","\\geqslant",!0);X(ne,Ve,Qe,"⪖","\\eqslantgtr",!0);X(ne,Ve,Qe,"≳","\\gtrsim",!0);X(ne,Ve,Qe,"⪆","\\gtrapprox",!0);X(ne,Ve,ur,"⋗","\\gtrdot");X(ne,Ve,Qe,"⋙","\\ggg",!0);X(ne,Ve,Qe,"≷","\\gtrless",!0);X(ne,Ve,Qe,"⋛","\\gtreqless",!0);X(ne,Ve,Qe,"⪌","\\gtreqqless",!0);X(ne,Ve,Qe,"≖","\\eqcirc",!0);X(ne,Ve,Qe,"≗","\\circeq",!0);X(ne,Ve,Qe,"≜","\\triangleq",!0);X(ne,Ve,Qe,"∼","\\thicksim");X(ne,Ve,Qe,"≈","\\thickapprox");X(ne,Ve,Qe,"⫆","\\supseteqq",!0);X(ne,Ve,Qe,"⋑","\\Supset",!0);X(ne,Ve,Qe,"⊐","\\sqsupset",!0);X(ne,Ve,Qe,"≽","\\succcurlyeq",!0);X(ne,Ve,Qe,"⋟","\\curlyeqsucc",!0);X(ne,Ve,Qe,"≿","\\succsim",!0);X(ne,Ve,Qe,"⪸","\\succapprox",!0);X(ne,Ve,Qe,"⊳","\\vartriangleright");X(ne,Ve,Qe,"⊵","\\trianglerighteq");X(ne,Ve,Qe,"⊩","\\Vdash",!0);X(ne,Ve,Qe,"∣","\\shortmid");X(ne,Ve,Qe,"∥","\\shortparallel");X(ne,Ve,Qe,"≬","\\between",!0);X(ne,Ve,Qe,"⋔","\\pitchfork",!0);X(ne,Ve,Qe,"∝","\\varpropto");X(ne,Ve,Qe,"◀","\\blacktriangleleft");X(ne,Ve,Qe,"∴","\\therefore",!0);X(ne,Ve,Qe,"∍","\\backepsilon");X(ne,Ve,Qe,"▶","\\blacktriangleright");X(ne,Ve,Qe,"∵","\\because",!0);X(ne,Ve,Qe,"⋘","\\llless");X(ne,Ve,Qe,"⋙","\\gggtr");X(ne,Ve,ur,"⊲","\\lhd");X(ne,Ve,ur,"⊳","\\rhd");X(ne,Ve,Qe,"≂","\\eqsim",!0);X(ne,Se,Qe,"⋈","\\Join");X(ne,Ve,Qe,"≑","\\Doteq",!0);X(ne,Ve,ur,"∔","\\dotplus",!0);X(ne,Ve,ur,"∖","\\smallsetminus");X(ne,Ve,ur,"⋒","\\Cap",!0);X(ne,Ve,ur,"⋓","\\Cup",!0);X(ne,Ve,ur,"⩞","\\doublebarwedge",!0);X(ne,Ve,ur,"⊟","\\boxminus",!0);X(ne,Ve,ur,"⊞","\\boxplus",!0);X(ne,Ve,ur,"⋇","\\divideontimes",!0);X(ne,Ve,ur,"⋉","\\ltimes",!0);X(ne,Ve,ur,"⋊","\\rtimes",!0);X(ne,Ve,ur,"⋋","\\leftthreetimes",!0);X(ne,Ve,ur,"⋌","\\rightthreetimes",!0);X(ne,Ve,ur,"⋏","\\curlywedge",!0);X(ne,Ve,ur,"⋎","\\curlyvee",!0);X(ne,Ve,ur,"⊝","\\circleddash",!0);X(ne,Ve,ur,"⊛","\\circledast",!0);X(ne,Ve,ur,"⋅","\\centerdot");X(ne,Ve,ur,"⊺","\\intercal",!0);X(ne,Ve,ur,"⋒","\\doublecap");X(ne,Ve,ur,"⋓","\\doublecup");X(ne,Ve,ur,"⊠","\\boxtimes",!0);X(ne,Ve,Qe,"⇢","\\dashrightarrow",!0);X(ne,Ve,Qe,"⇠","\\dashleftarrow",!0);X(ne,Ve,Qe,"⇇","\\leftleftarrows",!0);X(ne,Ve,Qe,"⇆","\\leftrightarrows",!0);X(ne,Ve,Qe,"⇚","\\Lleftarrow",!0);X(ne,Ve,Qe,"↞","\\twoheadleftarrow",!0);X(ne,Ve,Qe,"↢","\\leftarrowtail",!0);X(ne,Ve,Qe,"↫","\\looparrowleft",!0);X(ne,Ve,Qe,"⇋","\\leftrightharpoons",!0);X(ne,Ve,Qe,"↶","\\curvearrowleft",!0);X(ne,Ve,Qe,"↺","\\circlearrowleft",!0);X(ne,Ve,Qe,"↰","\\Lsh",!0);X(ne,Ve,Qe,"⇈","\\upuparrows",!0);X(ne,Ve,Qe,"↿","\\upharpoonleft",!0);X(ne,Ve,Qe,"⇃","\\downharpoonleft",!0);X(ne,Se,Qe,"⊶","\\origof",!0);X(ne,Se,Qe,"⊷","\\imageof",!0);X(ne,Ve,Qe,"⊸","\\multimap",!0);X(ne,Ve,Qe,"↭","\\leftrightsquigarrow",!0);X(ne,Ve,Qe,"⇉","\\rightrightarrows",!0);X(ne,Ve,Qe,"⇄","\\rightleftarrows",!0);X(ne,Ve,Qe,"↠","\\twoheadrightarrow",!0);X(ne,Ve,Qe,"↣","\\rightarrowtail",!0);X(ne,Ve,Qe,"↬","\\looparrowright",!0);X(ne,Ve,Qe,"↷","\\curvearrowright",!0);X(ne,Ve,Qe,"↻","\\circlearrowright",!0);X(ne,Ve,Qe,"↱","\\Rsh",!0);X(ne,Ve,Qe,"⇊","\\downdownarrows",!0);X(ne,Ve,Qe,"↾","\\upharpoonright",!0);X(ne,Ve,Qe,"⇂","\\downharpoonright",!0);X(ne,Ve,Qe,"⇝","\\rightsquigarrow",!0);X(ne,Ve,Qe,"⇝","\\leadsto");X(ne,Ve,Qe,"⇛","\\Rrightarrow",!0);X(ne,Ve,Qe,"↾","\\restriction");X(ne,Se,nt,"‘","`");X(ne,Se,nt,"$","\\$");X(Ft,Se,nt,"$","\\$");X(Ft,Se,nt,"$","\\textdollar");X(ne,Se,nt,"%","\\%");X(Ft,Se,nt,"%","\\%");X(ne,Se,nt,"_","\\_");X(Ft,Se,nt,"_","\\_");X(Ft,Se,nt,"_","\\textunderscore");X(ne,Se,nt,"∠","\\angle",!0);X(ne,Se,nt,"∞","\\infty",!0);X(ne,Se,nt,"′","\\prime");X(ne,Se,nt,"△","\\triangle");X(ne,Se,nt,"Γ","\\Gamma",!0);X(ne,Se,nt,"Δ","\\Delta",!0);X(ne,Se,nt,"Θ","\\Theta",!0);X(ne,Se,nt,"Λ","\\Lambda",!0);X(ne,Se,nt,"Ξ","\\Xi",!0);X(ne,Se,nt,"Π","\\Pi",!0);X(ne,Se,nt,"Σ","\\Sigma",!0);X(ne,Se,nt,"Υ","\\Upsilon",!0);X(ne,Se,nt,"Φ","\\Phi",!0);X(ne,Se,nt,"Ψ","\\Psi",!0);X(ne,Se,nt,"Ω","\\Omega",!0);X(ne,Se,nt,"A","Α");X(ne,Se,nt,"B","Β");X(ne,Se,nt,"E","Ε");X(ne,Se,nt,"Z","Ζ");X(ne,Se,nt,"H","Η");X(ne,Se,nt,"I","Ι");X(ne,Se,nt,"K","Κ");X(ne,Se,nt,"M","Μ");X(ne,Se,nt,"N","Ν");X(ne,Se,nt,"O","Ο");X(ne,Se,nt,"P","Ρ");X(ne,Se,nt,"T","Τ");X(ne,Se,nt,"X","Χ");X(ne,Se,nt,"¬","\\neg",!0);X(ne,Se,nt,"¬","\\lnot");X(ne,Se,nt,"⊤","\\top");X(ne,Se,nt,"⊥","\\bot");X(ne,Se,nt,"∅","\\emptyset");X(ne,Ve,nt,"∅","\\varnothing");X(ne,Se,Rr,"α","\\alpha",!0);X(ne,Se,Rr,"β","\\beta",!0);X(ne,Se,Rr,"γ","\\gamma",!0);X(ne,Se,Rr,"δ","\\delta",!0);X(ne,Se,Rr,"ϵ","\\epsilon",!0);X(ne,Se,Rr,"ζ","\\zeta",!0);X(ne,Se,Rr,"η","\\eta",!0);X(ne,Se,Rr,"θ","\\theta",!0);X(ne,Se,Rr,"ι","\\iota",!0);X(ne,Se,Rr,"κ","\\kappa",!0);X(ne,Se,Rr,"λ","\\lambda",!0);X(ne,Se,Rr,"μ","\\mu",!0);X(ne,Se,Rr,"ν","\\nu",!0);X(ne,Se,Rr,"ξ","\\xi",!0);X(ne,Se,Rr,"ο","\\omicron",!0);X(ne,Se,Rr,"π","\\pi",!0);X(ne,Se,Rr,"ρ","\\rho",!0);X(ne,Se,Rr,"σ","\\sigma",!0);X(ne,Se,Rr,"τ","\\tau",!0);X(ne,Se,Rr,"υ","\\upsilon",!0);X(ne,Se,Rr,"ϕ","\\phi",!0);X(ne,Se,Rr,"χ","\\chi",!0);X(ne,Se,Rr,"ψ","\\psi",!0);X(ne,Se,Rr,"ω","\\omega",!0);X(ne,Se,Rr,"ε","\\varepsilon",!0);X(ne,Se,Rr,"ϑ","\\vartheta",!0);X(ne,Se,Rr,"ϖ","\\varpi",!0);X(ne,Se,Rr,"ϱ","\\varrho",!0);X(ne,Se,Rr,"ς","\\varsigma",!0);X(ne,Se,Rr,"φ","\\varphi",!0);X(ne,Se,ur,"∗","*",!0);X(ne,Se,ur,"+","+");X(ne,Se,ur,"−","-",!0);X(ne,Se,ur,"⋅","\\cdot",!0);X(ne,Se,ur,"∘","\\circ",!0);X(ne,Se,ur,"÷","\\div",!0);X(ne,Se,ur,"±","\\pm",!0);X(ne,Se,ur,"×","\\times",!0);X(ne,Se,ur,"∩","\\cap",!0);X(ne,Se,ur,"∪","\\cup",!0);X(ne,Se,ur,"∖","\\setminus",!0);X(ne,Se,ur,"∧","\\land");X(ne,Se,ur,"∨","\\lor");X(ne,Se,ur,"∧","\\wedge",!0);X(ne,Se,ur,"∨","\\vee",!0);X(ne,Se,nt,"√","\\surd");X(ne,Se,Ho,"⟨","\\langle",!0);X(ne,Se,Ho,"∣","\\lvert");X(ne,Se,Ho,"∥","\\lVert");X(ne,Se,Js,"?","?");X(ne,Se,Js,"!","!");X(ne,Se,Js,"⟩","\\rangle",!0);X(ne,Se,Js,"∣","\\rvert");X(ne,Se,Js,"∥","\\rVert");X(ne,Se,Qe,"=","=");X(ne,Se,Qe,":",":");X(ne,Se,Qe,"≈","\\approx",!0);X(ne,Se,Qe,"≅","\\cong",!0);X(ne,Se,Qe,"≥","\\ge");X(ne,Se,Qe,"≥","\\geq",!0);X(ne,Se,Qe,"←","\\gets");X(ne,Se,Qe,">","\\gt",!0);X(ne,Se,Qe,"∈","\\in",!0);X(ne,Se,Qe,"","\\@not");X(ne,Se,Qe,"⊂","\\subset",!0);X(ne,Se,Qe,"⊃","\\supset",!0);X(ne,Se,Qe,"⊆","\\subseteq",!0);X(ne,Se,Qe,"⊇","\\supseteq",!0);X(ne,Ve,Qe,"⊈","\\nsubseteq",!0);X(ne,Ve,Qe,"⊉","\\nsupseteq",!0);X(ne,Se,Qe,"⊨","\\models");X(ne,Se,Qe,"←","\\leftarrow",!0);X(ne,Se,Qe,"≤","\\le");X(ne,Se,Qe,"≤","\\leq",!0);X(ne,Se,Qe,"<","\\lt",!0);X(ne,Se,Qe,"→","\\rightarrow",!0);X(ne,Se,Qe,"→","\\to");X(ne,Ve,Qe,"≱","\\ngeq",!0);X(ne,Ve,Qe,"≰","\\nleq",!0);X(ne,Se,W0," ","\\ ");X(ne,Se,W0," ","\\space");X(ne,Se,W0," ","\\nobreakspace");X(Ft,Se,W0," ","\\ ");X(Ft,Se,W0," "," ");X(Ft,Se,W0," ","\\space");X(Ft,Se,W0," ","\\nobreakspace");X(ne,Se,W0,null,"\\nobreak");X(ne,Se,W0,null,"\\allowbreak");X(ne,Se,Gk,",",",");X(ne,Se,Gk,";",";");X(ne,Ve,ur,"⊼","\\barwedge",!0);X(ne,Ve,ur,"⊻","\\veebar",!0);X(ne,Se,ur,"⊙","\\odot",!0);X(ne,Se,ur,"⊕","\\oplus",!0);X(ne,Se,ur,"⊗","\\otimes",!0);X(ne,Se,nt,"∂","\\partial",!0);X(ne,Se,ur,"⊘","\\oslash",!0);X(ne,Ve,ur,"⊚","\\circledcirc",!0);X(ne,Ve,ur,"⊡","\\boxdot",!0);X(ne,Se,ur,"△","\\bigtriangleup");X(ne,Se,ur,"▽","\\bigtriangledown");X(ne,Se,ur,"†","\\dagger");X(ne,Se,ur,"⋄","\\diamond");X(ne,Se,ur,"⋆","\\star");X(ne,Se,ur,"◃","\\triangleleft");X(ne,Se,ur,"▹","\\triangleright");X(ne,Se,Ho,"{","\\{");X(Ft,Se,nt,"{","\\{");X(Ft,Se,nt,"{","\\textbraceleft");X(ne,Se,Js,"}","\\}");X(Ft,Se,nt,"}","\\}");X(Ft,Se,nt,"}","\\textbraceright");X(ne,Se,Ho,"{","\\lbrace");X(ne,Se,Js,"}","\\rbrace");X(ne,Se,Ho,"[","\\lbrack",!0);X(Ft,Se,nt,"[","\\lbrack",!0);X(ne,Se,Js,"]","\\rbrack",!0);X(Ft,Se,nt,"]","\\rbrack",!0);X(ne,Se,Ho,"(","\\lparen",!0);X(ne,Se,Js,")","\\rparen",!0);X(Ft,Se,nt,"<","\\textless",!0);X(Ft,Se,nt,">","\\textgreater",!0);X(ne,Se,Ho,"⌊","\\lfloor",!0);X(ne,Se,Js,"⌋","\\rfloor",!0);X(ne,Se,Ho,"⌈","\\lceil",!0);X(ne,Se,Js,"⌉","\\rceil",!0);X(ne,Se,nt,"\\","\\backslash");X(ne,Se,nt,"∣","|");X(ne,Se,nt,"∣","\\vert");X(Ft,Se,nt,"|","\\textbar",!0);X(ne,Se,nt,"∥","\\|");X(ne,Se,nt,"∥","\\Vert");X(Ft,Se,nt,"∥","\\textbardbl");X(Ft,Se,nt,"~","\\textasciitilde");X(Ft,Se,nt,"\\","\\textbackslash");X(Ft,Se,nt,"^","\\textasciicircum");X(ne,Se,Qe,"↑","\\uparrow",!0);X(ne,Se,Qe,"⇑","\\Uparrow",!0);X(ne,Se,Qe,"↓","\\downarrow",!0);X(ne,Se,Qe,"⇓","\\Downarrow",!0);X(ne,Se,Qe,"↕","\\updownarrow",!0);X(ne,Se,Qe,"⇕","\\Updownarrow",!0);X(ne,Se,da,"∐","\\coprod");X(ne,Se,da,"⋁","\\bigvee");X(ne,Se,da,"⋀","\\bigwedge");X(ne,Se,da,"⨄","\\biguplus");X(ne,Se,da,"⋂","\\bigcap");X(ne,Se,da,"⋃","\\bigcup");X(ne,Se,da,"∫","\\int");X(ne,Se,da,"∫","\\intop");X(ne,Se,da,"∬","\\iint");X(ne,Se,da,"∭","\\iiint");X(ne,Se,da,"∏","\\prod");X(ne,Se,da,"∑","\\sum");X(ne,Se,da,"⨂","\\bigotimes");X(ne,Se,da,"⨁","\\bigoplus");X(ne,Se,da,"⨀","\\bigodot");X(ne,Se,da,"∮","\\oint");X(ne,Se,da,"∯","\\oiint");X(ne,Se,da,"∰","\\oiiint");X(ne,Se,da,"⨆","\\bigsqcup");X(ne,Se,da,"∫","\\smallint");X(Ft,Se,Vb,"…","\\textellipsis");X(ne,Se,Vb,"…","\\mathellipsis");X(Ft,Se,Vb,"…","\\ldots",!0);X(ne,Se,Vb,"…","\\ldots",!0);X(ne,Se,Vb,"⋯","\\@cdots",!0);X(ne,Se,Vb,"⋱","\\ddots",!0);X(ne,Se,nt,"⋮","\\varvdots");X(Ft,Se,nt,"⋮","\\varvdots");X(ne,Se,bi,"ˊ","\\acute");X(ne,Se,bi,"ˋ","\\grave");X(ne,Se,bi,"¨","\\ddot");X(ne,Se,bi,"~","\\tilde");X(ne,Se,bi,"ˉ","\\bar");X(ne,Se,bi,"˘","\\breve");X(ne,Se,bi,"ˇ","\\check");X(ne,Se,bi,"^","\\hat");X(ne,Se,bi,"⃗","\\vec");X(ne,Se,bi,"˙","\\dot");X(ne,Se,bi,"˚","\\mathring");X(ne,Se,Rr,"","\\@imath");X(ne,Se,Rr,"","\\@jmath");X(ne,Se,nt,"ı","ı");X(ne,Se,nt,"ȷ","ȷ");X(Ft,Se,nt,"ı","\\i",!0);X(Ft,Se,nt,"ȷ","\\j",!0);X(Ft,Se,nt,"ß","\\ss",!0);X(Ft,Se,nt,"æ","\\ae",!0);X(Ft,Se,nt,"œ","\\oe",!0);X(Ft,Se,nt,"ø","\\o",!0);X(Ft,Se,nt,"Æ","\\AE",!0);X(Ft,Se,nt,"Œ","\\OE",!0);X(Ft,Se,nt,"Ø","\\O",!0);X(Ft,Se,bi,"ˊ","\\'");X(Ft,Se,bi,"ˋ","\\`");X(Ft,Se,bi,"ˆ","\\^");X(Ft,Se,bi,"˜","\\~");X(Ft,Se,bi,"ˉ","\\=");X(Ft,Se,bi,"˘","\\u");X(Ft,Se,bi,"˙","\\.");X(Ft,Se,bi,"¸","\\c");X(Ft,Se,bi,"˚","\\r");X(Ft,Se,bi,"ˇ","\\v");X(Ft,Se,bi,"¨",'\\"');X(Ft,Se,bi,"˝","\\H");X(Ft,Se,bi,"◯","\\textcircled");var m1e={"--":!0,"---":!0,"``":!0,"''":!0};X(Ft,Se,nt,"–","--",!0);X(Ft,Se,nt,"–","\\textendash");X(Ft,Se,nt,"—","---",!0);X(Ft,Se,nt,"—","\\textemdash");X(Ft,Se,nt,"‘","`",!0);X(Ft,Se,nt,"‘","\\textquoteleft");X(Ft,Se,nt,"’","'",!0);X(Ft,Se,nt,"’","\\textquoteright");X(Ft,Se,nt,"“","``",!0);X(Ft,Se,nt,"“","\\textquotedblleft");X(Ft,Se,nt,"”","''",!0);X(Ft,Se,nt,"”","\\textquotedblright");X(ne,Se,nt,"°","\\degree",!0);X(Ft,Se,nt,"°","\\degree");X(Ft,Se,nt,"°","\\textdegree",!0);X(ne,Se,nt,"£","\\pounds");X(ne,Se,nt,"£","\\mathsterling",!0);X(Ft,Se,nt,"£","\\pounds");X(Ft,Se,nt,"£","\\textsterling",!0);X(ne,Ve,nt,"✠","\\maltese");X(Ft,Ve,nt,"✠","\\maltese");var Zee='0123456789/@."';for(var s9=0;s9{var r=t.charCodeAt(0),n=t.charCodeAt(1),i=(r-55296)*1024+(n-56320)+65536,a=e==="math"?0:1;if(119808<=i&&i<120484){var s=Math.floor((i-119808)/26);return[Px[s][2],Px[s][a]]}else if(120782<=i&&i<=120831){var o=Math.floor((i-120782)/10);return[rte[o][2],rte[o][a]]}else{if(i===120485||i===120486)return[Px[0][2],Px[0][a]];if(120486r.toText();return this.children.map(e).join("")}};var qk=function(e,r,n){if(hi[n][e]){var i=hi[n][e].replace;i&&(e=i)}return{value:e,metrics:OG(e,r,n)}},As=function(e,r,n,i,a){var s=qk(e,r,n),o=s.metrics;e=s.value;var l;if(o){var u=o.italic;(n==="text"||i&&i.font==="mathit")&&(u=0),l=new Rl(e,o.height,o.depth,u,o.skew,o.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+r+"' and mode '"+n+"'")),l=new Rl(e,0,0,0,0,0,a);if(i){l.maxFontSize=i.sizeMultiplier,i.style.isTight()&&l.classes.push("mtight");var d=i.getColor();d&&(l.style.color=d)}return l},DG=function(e,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&qk(e,"Main-Bold",r).metrics?As(e,"Main-Bold",r,n,i.concat(["mathbf"])):e==="\\"||hi[r][e].font==="main"?As(e,"Main-Regular",r,n,i):As(e,"AMS-Regular",r,n,i.concat(["amsrm"]))},xrt=function(e,r,n,i,a){return a!=="textord"&&qk(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Yk=function(e,r,n){var i=e.mode,a=e.text,s=["mord"],o=i==="math"||i==="text"&&r.font,l=o?r.font:r.fontFamily,u="",d="";if(a.charCodeAt(0)===55349&&([u,d]=Trt(a,i)),u.length>0)return As(a,u,i,r,s.concat(d));if(l){var h,f;if(l==="boldsymbol"){var p=xrt(a,i,r,s,n);h=p.fontName,f=[p.fontClass]}else o?(h=qP[l].fontName,f=[l]):(h=Bx(l,r.fontWeight,r.fontShape),f=[l,r.fontWeight,r.fontShape]);if(qk(a,h,i).metrics)return As(a,h,i,r,s.concat(f));if(m1e.hasOwnProperty(a)&&h.slice(0,10)==="Typewriter"){for(var g=[],m=0;m{if(ch(t.classes)!==ch(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var i of Object.keys(e.style))if(t.style[i]!==e.style[i])return!1;return!0},y1e=t=>{for(var e=0;er&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=i},Ut=function(e,r,n,i){var a=new dT(e,r,n,i);return LG(a),a},dh=(t,e,r,n)=>new dT(t,e,r,n),nb=function(e,r,n){var i=Ut([e],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=er(i.height),i.maxFontSize=1,i},wrt=function(e,r,n,i){var a=new IG(e,r,n,i);return LG(a),a},K0=function(e){var r=new hT(e);return LG(r),r},ib=function(e,r){return e instanceof hT?Ut([],[e],r):e},krt=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s{var r=Ut(["mspace"],[],e),n=ki(t,e);return r.style.marginRight=er(n),r},Bx=function(e,r,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},qP={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"}},_1e={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},b1e=function(e,r){var[n,i,a]=_1e[e],s=new uh(n),o=new w0([s],{width:er(i),height:er(a),style:"width:"+er(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=dh(["overlay"],[o],r);return l.height=a,l.style.height=er(a),l.style.width=er(i),l},xi={number:3,unit:"mu"},af={number:4,unit:"mu"},Fu={number:5,unit:"mu"},Art={mord:{mop:xi,mbin:af,mrel:Fu,minner:xi},mop:{mord:xi,mop:xi,mrel:Fu,minner:xi},mbin:{mord:af,mop:af,mopen:af,minner:af},mrel:{mord:Fu,mop:Fu,mopen:Fu,minner:Fu},mopen:{},mclose:{mop:xi,mbin:af,mrel:Fu,minner:xi},mpunct:{mord:xi,mop:xi,mrel:Fu,mopen:xi,mclose:xi,mpunct:xi,minner:xi},minner:{mord:xi,mop:xi,mbin:af,mrel:Fu,mopen:xi,mpunct:xi,minner:xi}},Rrt={mord:{mop:xi},mop:{mord:xi,mop:xi},mbin:{},mrel:{},mopen:{},mclose:{mop:xi},mpunct:{},minner:{mop:xi}},E1e={},l6={},c6={};function or(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},l=0;l{var y=m.classes[0],v=g.classes[0];y==="mbin"&&Irt.has(v)?m.classes[0]="mord":v==="mbin"&&Nrt.has(y)&&(g.classes[0]="mord")},{node:h},f,p),YP(a,(g,m)=>{var y,v,b=VP(m),_=VP(g),E=b&&_?g.hasClass("mtight")?(y=Rrt[b])==null?void 0:y[_]:(v=Art[b])==null?void 0:v[_]:null;if(E)return v1e(E,u)},{node:h},f,p),a},YP=function(e,r,n,i,a){i&&e.push(i);for(var s=0;sf=>{e.splice(h+1,0,f),s++})(s)}i&&e.pop()},S1e=function(e){return e instanceof hT||e instanceof IG||e instanceof dT&&e.hasClass("enclosing")?e:null},HP=function(e,r){var n=S1e(e);if(n){var i=n.children;if(i.length){if(r==="right")return HP(i[i.length-1],"right");if(r==="left")return HP(i[0],"left")}}return e},VP=function(e,r){if(!e)return null;r&&(e=HP(e,r));var n=e.classes[0];return Drt[n]||null},QS=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Ut(r.concat(n))},En=function(e,r,n){if(!e)return Ut();if(l6[e.type]){var i=l6[e.type](e,r);if(n&&r.size!==n.size){i=Ut(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new jt("Got group of unknown type: '"+e.type+"'")};function Fx(t,e){var r=Ut(["base"],t,e),n=Ut(["strut"]);return n.style.height=er(r.height+r.depth),r.depth&&(n.style.verticalAlign=er(-r.depth)),r.children.unshift(n),r}function WP(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=wa(t,e,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],s=[],o=0;o0&&(a.push(Fx(s,e)),s=[]),a.push(n[o]));s.length>0&&a.push(Fx(s,e));var u;r?(u=Fx(wa(r,e,!0),e),u.classes=["tag"],a.push(u)):i&&a.push(i);var d=Ut(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),u){var h=u.children[0];h.style.height=er(d.height+d.depth),d.depth&&(h.style.verticalAlign=er(-d.depth))}return d}function T1e(t){return new hT(t)}let Wt=class{constructor(e,r,n){this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&e.setAttribute(r,this.attributes[r]);this.classes.length>0&&(e.className=ch(this.classes));for(var n=0;n0&&(e+=' class ="'+us(ch(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}},ia=class{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return us(this.toText())}toText(){return this.text}},x1e=class{constructor(e){this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",er(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}};var Lrt=new Set(["\\imath","\\jmath"]),Mrt=new Set(["mrow","mtable"]),Nl=function(e,r,n){return hi[r][e]&&hi[r][e].replace&&e.charCodeAt(0)!==55349&&!(m1e.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=hi[r][e].replace),new ia(e)},MG=function(e){return e.length===1?e[0]:new Wt("mrow",e)},PG=function(e,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=e.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=e.text;if(Lrt.has(a))return null;if(hi[i][a]){var s=hi[i][a].replace;s&&(a=s)}var o=qP[n].fontName;return OG(a,o,i)?qP[n].variant:null};function u9(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof ia&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof ia&&r.text===","}else return!1}var Vo=function(e,r,n){if(e.length===1){var i=zn(e[0],r);return n&&i instanceof Wt&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||u9(s))){var u=l.children[0];u instanceof Wt&&u.type==="mn"&&(u.children=[...s.children,...u.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof ia&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof ia&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),a.pop())}}}a.push(l),s=l}return a},hh=function(e,r,n){return MG(Vo(e,r,n))},zn=function(e,r){if(!e)return new Wt("mrow");if(c6[e.type]){var n=c6[e.type](e,r);return n}else throw new jt("Got group of unknown type: '"+e.type+"'")};function nte(t,e,r,n,i){var a=Vo(t,r),s;a.length===1&&a[0]instanceof Wt&&Mrt.has(a[0].type)?s=a[0]:s=new Wt("mrow",a);var o=new Wt("annotation",[new ia(e)]);o.setAttribute("encoding","application/x-tex");var l=new Wt("semantics",[s,o]),u=new Wt("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var d=i?"katex":"katex-mathml";return Ut([d],[u])}var Prt=[[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]],ite=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ate=function(e,r){return r.size<2?e:Prt[e-1][r.size-1]};let C1e=class Ef{constructor(e){this.style=e.style,this.color=e.color,this.size=e.size||Ef.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=ite[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={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};return Object.assign(r,e),new Ef(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:ate(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:ite[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=ate(Ef.BASESIZE,e);return this.size===r&&this.textSize===Ef.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var 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!==Ef.BASESIZE?["sizing","reset-size"+this.size,"size"+Ef.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=brt(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};C1e.BASESIZE=6;var w1e=function(e){return new C1e({style:e.displayMode?jr.DISPLAY:jr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},k1e=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=Ut(n,[e])}return e},Brt=function(e,r,n){var i=w1e(n),a;if(n.output==="mathml")return nte(e,r,i,n.displayMode,!0);if(n.output==="html"){var s=WP(e,i);a=Ut(["katex"],[s])}else{var o=nte(e,r,i,n.displayMode,!1),l=WP(e,i);a=Ut(["katex"],[o,l])}return k1e(a,n)},Frt=function(e,r,n){var i=w1e(n),a=WP(e,i),s=Ut(["katex"],[a]);return k1e(s,n)},$rt={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":"="},Hk=function(e){var r=new Wt("mo",[new ia($rt[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},zrt={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]},Urt=new Set(["widehat","widecheck","widetilde","utilde"]),Vk=function(e,r){function n(){var o=4e5,l=e.label.slice(1);if(Urt.has(l)){var u=e,d=u.base.type==="ordgroup"?u.base.body.length:1,h,f,p;if(d>5)l==="widehat"||l==="widecheck"?(h=420,o=2364,p=.42,f=l+"4"):(h=312,o=2340,p=.34,f="tilde4");else{var g=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][g],h=[0,239,300,360,420][g],p=[0,.24,.3,.3,.36,.42][g],f=l+g):(o=[0,600,1033,2339,2340][g],h=[0,260,286,306,312][g],p=[0,.26,.286,.3,.306,.34][g],f="tilde"+g)}var m=new uh(f),y=new w0([m],{width:"100%",height:er(p),viewBox:"0 0 "+o+" "+h,preserveAspectRatio:"none"});return{span:dh([],[y],r),minWidth:0,height:p}}else{var v=[],b=zrt[l],[_,E,x]=b,C=x/1e3,T=_.length,w,N;if(T===1){var O=b[3];w=["hide-tail"],N=[O]}else if(T===2)w=["halfarrow-left","halfarrow-right"],N=["xMinYMin","xMaxYMin"];else if(T===3)w=["brace-left","brace-center","brace-right"],N=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+T+" children.");for(var M=0;M0&&(i.style.minWidth=er(a)),i},Grt=function(e,r,n,i,a){var s,o=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=Ut(["stretchy",r],[],a),r==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new UP({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new UP({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new w0(u,{width:"100%",height:er(o)});s=dh([],[d],a)}return s.height=o,s.style.height=er(o),s};function en(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Wk(t){var e=Kk(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Kk(t){return t&&(t.type==="atom"||Srt.hasOwnProperty(t.type))?t:null}var BG=(t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=en(t.base,"accent"),r=n.base,t.base=r,i=vrt(En(t,e)),t.base=n):(n=en(t,"accent"),r=n.base);var a=En(r,e.havingCrampedStyle()),s=n.isShifty&&V0(r),o=0;if(s){var l=ZE(r),u=En(l,e.havingCrampedStyle());o=jee(u).skew}var d=n.label==="\\c",h=d?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=Vk(n,e),f=wn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+er(2*o)+")",marginLeft:er(2*o)}:void 0}]});else{var p,g;n.label==="\\vec"?(p=b1e("vec",e),g=_1e.vec[1]):(p=Yk({mode:n.mode,text:n.label},e,"textord"),p=jee(p),p.italic=0,g=p.width,d&&(h+=p.depth)),f=Ut(["accent-body"],[p]);var m=n.label==="\\textcircled";m&&(f.classes.push("accent-full"),h=a.height);var y=o;m||(y-=g/2),f.style.left=er(y),n.label==="\\textcircled"&&(f.style.top=".2em"),f=wn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:f}]})}var v=Ut(["mord","accent"],[f],e);return i?(i.children[0]=v,i.height=Math.max(v.height,i.height),i.classes[0]="mord",i):v},A1e=(t,e)=>{var r=t.isStretchy?Hk(t.label):new Wt("mo",[Nl(t.label,t.mode)]),n=new Wt("mover",[zn(t.base,e),r]);return n.setAttribute("accent","true"),n},qrt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));or({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:(t,e)=>{var r=u6(e[0]),n=!qrt.test(t.funcName),i=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:BG,mathmlBuilder:A1e});or({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:BG,mathmlBuilder:A1e});or({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(t,e)=>{var r=En(t.base,e),n=Vk(t,e),i=t.label==="\\utilde"?.12:0,a=wn({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return Ut(["mord","accentunder"],[a],e)},mathmlBuilder:(t,e)=>{var r=Hk(t.label),n=new Wt("munder",[zn(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var $x=t=>{var e=new Wt("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};or({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(t,e,r){var{parser:n,funcName:i}=t;return{type:"xArrow",mode:n.mode,label:i,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),i=ib(En(t.body,n,e),e),a=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=ib(En(t.below,n,e),e),s.classes.push(a+"-arrow-pad"));var o=Vk(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(u-=i.depth);var d;if(s){var h=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=wn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:h}]})}else d=wn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l}]});return d.children[0].children[0].children[1].classes.push("svg-align"),Ut(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var r=Hk(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var i=$x(zn(t.body,e));if(t.below){var a=$x(zn(t.below,e));n=new Wt("munderover",[r,a,i])}else n=new Wt("mover",[r,i])}else if(t.below){var s=$x(zn(t.below,e));n=new Wt("munder",[r,s])}else n=$x(),n=new Wt("mover",[r,n]);return n}});function R1e(t,e){var r=wa(t.body,e,!0);return Ut([t.mclass],r,e)}function N1e(t,e){var r,n=Vo(t.body,e);return t.mclass==="minner"?r=new Wt("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new Wt("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new Wt("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):t.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}or({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:na(i),isCharacterBox:V0(i)}},htmlBuilder:R1e,mathmlBuilder:N1e});var Xk=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};or({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:Xk(e[0]),body:na(e[1]),isCharacterBox:V0(e[1])}}});or({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,i=e[1],a=e[0],s;n!=="\\stackrel"?s=Xk(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:na(i)},l={type:"supsub",mode:a.mode,base:o,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:V0(l)}},htmlBuilder:R1e,mathmlBuilder:N1e});or({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:Xk(e[0]),body:na(e[0])}},htmlBuilder(t,e){var r=wa(t.body,e,!0),n=Ut([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=Vo(t.body,e),n=new Wt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Yrt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ste=()=>({type:"styling",body:[],mode:"math",style:"display"}),ote=t=>t.type==="textord"&&t.text==="@",Hrt=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function Vrt(t,e,r){var n=Yrt[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[e[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Wrt(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new jt("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],i=[n],a=0;aAV".includes(u))for(var h=0;h<2;h++){for(var f=!0,p=l+1;pAV=|." after @',s[l]);var g=Vrt(u,d,t),m={type:"styling",body:[g],mode:"math",style:"display"};n.push(m),o=ste()}a%2===0?n.push(o):n.shift(),n=[],i.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var y=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:y,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}or({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=ib(En(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=er(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new Wt("mrow",[zn(t.label,e)]);return r=new Wt("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Wt("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});or({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:r}=t;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=ib(En(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Wt("mrow",[zn(t.fragment,e)])}});or({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=en(e[0],"ordgroup"),i=n.body,a="",s=0;s=1114111)throw new jt("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var I1e=(t,e)=>{var r=wa(t.body,e.withColor(t.color),!1);return K0(r)},O1e=(t,e)=>{var r=Vo(t.body,e.withColor(t.color)),n=new Wt("mstyle",r);return n.setAttribute("mathcolor",t.color),n};or({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:r}=t,n=en(e[0],"color-token").color,i=e[1];return{type:"color",mode:r.mode,color:n,body:na(i)}},htmlBuilder:I1e,mathmlBuilder:O1e});or({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,i=en(e[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:I1e,mathmlBuilder:O1e});or({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&en(i,"size").value}},htmlBuilder(t,e){var r=Ut(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=er(ki(t.size,e)))),r},mathmlBuilder(t,e){var r=new Wt("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",er(ki(t.size,e)))),r}});var KP={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},D1e=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new jt("Expected a control sequence",t);return e},Krt=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},L1e=(t,e,r,n)=>{var i=t.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,i,n)};or({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:r}=t;e.consumeSpaces();var n=e.fetch();if(KP[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=KP[n.text]),en(e.parseFunction(),"internal");throw new jt("Invalid token after macro prefix",n)}});or({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=e.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new jt("Expected a control sequence",n);for(var a=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[a].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new jt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new jt('Argument number "'+n.text+'" out of order');a++,o.push([])}else{if(n.text==="EOF")throw new jt("Expected a macro definition");o[a].push(n.text)}var{tokens:l}=e.gullet.consumeArg();return s&&l.unshift(s),(r==="\\edef"||r==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},r===KP[r]),{type:"internal",mode:e.mode}}});or({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=D1e(e.gullet.popToken());e.gullet.consumeSpaces();var i=Krt(e);return L1e(e,n,i,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});or({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=D1e(e.gullet.popToken()),i=e.gullet.popToken(),a=e.gullet.popToken();return L1e(e,n,a,r==="\\\\globalfuture"),e.gullet.pushToken(a),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var pE=function(e,r,n){var i=hi.math[e]&&hi.math[e].replace,a=OG(i||e,r,n);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return a},FG=function(e,r,n,i){var a=n.havingBaseStyle(r),s=Ut(i.concat(a.sizingClasses(n)),[e],n),o=a.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},M1e=function(e,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=er(a),e.height-=a,e.depth+=a},Xrt=function(e,r,n,i,a,s){var o=As(e,"Main-Regular",a,i),l=FG(o,r,i,s);return M1e(l,i,r),l},jrt=function(e,r,n,i){return As(e,"Size"+r+"-Regular",n,i)},P1e=function(e,r,n,i,a,s){var o=jrt(e,r,a,i),l=FG(Ut(["delimsizing","size"+r],[o],i),jr.TEXT,i,s);return n&&M1e(l,i,jr.TEXT),l},d9=function(e,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Ut(["delimsizinginner",i],[Ut([],[As(e,r,n)])]);return{type:"elem",elem:a}},h9=function(e,r,n){var i=Vc["Size4-Regular"][e.charCodeAt(0)]?Vc["Size4-Regular"][e.charCodeAt(0)][4]:Vc["Size1-Regular"][e.charCodeAt(0)][4],a=new uh("inner",hrt(e,Math.round(1e3*r))),s=new w0([a],{width:er(i),height:er(r),style:"width:"+er(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=dh([],[s],n);return o.height=r,o.style.height=er(r),o.style.width=er(i),{type:"elem",elem:o}},XP=.008,zx={type:"kern",size:-1*XP},Qrt=new Set(["|","\\lvert","\\rvert","\\vert"]),Zrt=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),B1e=function(e,r,n,i,a,s){var o,l,u,d,h="",f=0;o=u=d=e,l=null;var p="Size1-Regular";e==="\\uparrow"?u=d="⏐":e==="\\Uparrow"?u=d="‖":e==="\\downarrow"?o=u="⏐":e==="\\Downarrow"?o=u="‖":e==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):Qrt.has(e)?(u="∣",h="vert",f=333):Zrt.has(e)?(u="∥",h="doublevert",f=556):e==="["||e==="\\lbrack"?(o="⎡",u="⎢",d="⎣",p="Size4-Regular",h="lbrack",f=667):e==="]"||e==="\\rbrack"?(o="⎤",u="⎥",d="⎦",p="Size4-Regular",h="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(u=o="⎢",d="⎣",p="Size4-Regular",h="lfloor",f=667):e==="\\lceil"||e==="⌈"?(o="⎡",u=d="⎢",p="Size4-Regular",h="lceil",f=667):e==="\\rfloor"||e==="⌋"?(u=o="⎥",d="⎦",p="Size4-Regular",h="rfloor",f=667):e==="\\rceil"||e==="⌉"?(o="⎤",u=d="⎥",p="Size4-Regular",h="rceil",f=667):e==="("||e==="\\lparen"?(o="⎛",u="⎜",d="⎝",p="Size4-Regular",h="lparen",f=875):e===")"||e==="\\rparen"?(o="⎞",u="⎟",d="⎠",p="Size4-Regular",h="rparen",f=875):e==="\\{"||e==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",p="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",d="⎩",u="⎪",p="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",d="⎭",u="⎪",p="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",d="⎩",u="⎪",p="Size4-Regular");var g=pE(o,p,a),m=g.height+g.depth,y=pE(u,p,a),v=y.height+y.depth,b=pE(d,p,a),_=b.height+b.depth,E=0,x=1;if(l!==null){var C=pE(l,p,a);E=C.height+C.depth,x=2}var T=m+_+E,w=Math.max(0,Math.ceil((r-T)/(x*v))),N=T+w*x*v,O=i.fontMetrics().axisHeight;n&&(O*=i.sizeMultiplier);var M=N/2-O,$=[];if(h.length>0){var F=N-m-_,A=Math.round(N*1e3),I=frt(h,Math.round(F*1e3)),D=new uh(h,I),L=(f/1e3).toFixed(3)+"em",R=(A/1e3).toFixed(3)+"em",P=new w0([D],{width:L,height:R,viewBox:"0 0 "+f+" "+A}),z=dh([],[P],i);z.height=A/1e3,z.style.width=L,z.style.height=R,$.push({type:"elem",elem:z})}else{if($.push(d9(d,p,a)),$.push(zx),l===null){var B=N-m-_+2*XP;$.push(h9(u,B,i))}else{var q=(N-m-_-E)/2+2*XP;$.push(h9(u,q,i)),$.push(zx),$.push(d9(l,p,a)),$.push(zx),$.push(h9(u,q,i))}$.push(zx),$.push(d9(o,p,a))}var Y=i.havingBaseStyle(jr.TEXT),Q=wn({positionType:"bottom",positionData:M,children:$});return FG(Ut(["delimsizing","mult"],[Q],Y),jr.TEXT,i,s)},f9=80,p9=.08,g9=function(e,r,n,i,a){var s=drt(e,i,n),o=new uh(e,s),l=new w0([o],{width:"400em",height:er(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return dh(["hide-tail"],[l],a)},Jrt=function(e,r){var n=r.havingBaseSizing(),i=G1e("\\surd",e*n.sizeMultiplier,U1e,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,h;return i.type==="small"?(d=1e3+1e3*s+f9,e<1?a=1:e<1.4&&(a=.7),l=(1+s+p9)/a,u=(1+s)/a,o=g9("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",h=.833/a):i.type==="large"?(d=(1e3+f9)*JE[i.size],u=(JE[i.size]+s)/a,l=(JE[i.size]+s+p9)/a,o=g9("sqrtSize"+i.size,l,d,s,r),o.style.minWidth="1.02em",h=1/a):(l=e+s+p9,u=e+s,d=Math.floor(1e3*e+s)+f9,o=g9("sqrtTall",l,d,s,r),o.style.minWidth="0.742em",h=1.056),o.height=u,o.style.height=er(l),{span:o,advanceWidth:h,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},F1e=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),ent=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),$1e=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),JE=[0,1.2,1.8,2.4,3],z1e=function(e,r,n,i,a){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),F1e.has(e)||$1e.has(e))return P1e(e,r,!1,n,i,a);if(ent.has(e))return B1e(e,JE[r],!1,n,i,a);throw new jt("Illegal delimiter: '"+e+"'")},tnt=[{type:"small",style:jr.SCRIPTSCRIPT},{type:"small",style:jr.SCRIPT},{type:"small",style:jr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],rnt=[{type:"small",style:jr.SCRIPTSCRIPT},{type:"small",style:jr.SCRIPT},{type:"small",style:jr.TEXT},{type:"stack"}],U1e=[{type:"small",style:jr.SCRIPTSCRIPT},{type:"small",style:jr.SCRIPT},{type:"small",style:jr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],nnt=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},G1e=function(e,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;sr)return o}return n[n.length-1]},jP=function(e,r,n,i,a,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;$1e.has(e)?o=tnt:F1e.has(e)?o=U1e:o=rnt;var l=G1e(e,r,o,i);return l.type==="small"?Xrt(e,l.style,n,i,a,s):l.type==="large"?P1e(e,l.size,n,i,a,s):B1e(e,r,n,i,a,s)},m9=function(e,r,n,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),h=Math.max(d/500*l,2*d-u);return jP(e,h,!0,i,a,s)},lte={"\\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}},int=new Set(["(","\\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 jk(t,e){var r=Kk(t);if(r&&int.has(r.text))return r;throw r?new jt("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new jt("Invalid delimiter type '"+t.type+"'",t)}or({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:(t,e)=>{var r=jk(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:lte[t.funcName].size,mclass:lte[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?Ut([t.mclass]):z1e(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Nl(t.delim,t.mode));var r=new Wt("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=er(JE[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function cte(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}or({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new jt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:jk(e[0],t).text,color:r}}});or({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=jk(e[0],t),n=t.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=en(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(t,e)=>{cte(t);for(var r=wa(t.body,e,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s{cte(t);var r=Vo(t.body,e);if(t.left!=="."){var n=new Wt("mo",[Nl(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var i=new Wt("mo",[Nl(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),r.push(i)}return MG(r)}});or({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=jk(e[0],t);if(!t.parser.leftrightDepth)throw new jt("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;if(t.delim===".")r=QS(e,[]);else{r=z1e(t.delim,1,e,t.mode,[]);var n={delim:t.delim,options:e};r.isMiddle=n}return r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?Nl("|","text"):Nl(t.delim,t.mode),n=new Wt("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var $G=(t,e)=>{var r=ib(En(t.body,e),e),n=t.label.slice(1),i=e.sizeMultiplier,a,s=0,o=V0(t.body);if(n==="sout")a=Ut(["stretchy","sout"]),a.height=e.fontMetrics().defaultRuleThickness/i,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=ki({number:.6,unit:"pt"},e),u=ki({number:.35,unit:"ex"},e),d=e.havingBaseSizing();i=i/d.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=er(h/2+l);var f=Math.floor(1e3*h*i),p=crt(f),g=new w0([new uh("phase",p)],{width:"400em",height:er(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=dh(["hide-tail"],[g],e),a.style.height=er(h),s=r.depth+l+u}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var m=0,y=0,v=0;/box/.test(n)?(v=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(n==="colorbox"?0:v),y=m):n==="angl"?(v=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*v,y=Math.max(0,.25-r.depth)):(m=o?.2:0,y=m),a=Grt(r,n,m,y,e),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=er(v)):n==="angl"&&v!==.049&&(a.style.borderTopWidth=er(v),a.style.borderRightWidth=er(v)),s=r.depth+y,t.backgroundColor&&(a.style.backgroundColor=t.backgroundColor,t.borderColor&&(a.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=wn({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]});else{var _=/cancel|phase/.test(n)?["svg-align"]:[];b=wn({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:_}]})}return/cancel/.test(n)&&(b.height=r.height,b.depth=r.depth),/cancel/.test(n)&&!o?Ut(["mord","cancel-lap"],[b],e):Ut(["mord"],[b],e)},zG=(t,e)=>{var r=0,n=new Wt(t.label.includes("colorbox")?"mpadded":"menclose",[zn(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(t.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};or({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=en(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:$G,mathmlBuilder:zG});or({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=en(e[0],"color-token").color,s=en(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:$G,mathmlBuilder:zG});or({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});or({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:$G,mathmlBuilder:zG});or({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var q1e={};function yu(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var e=t.parser.settings;if(!e.displayMode)throw new jt("{"+t.envName+"} can be used only in display mode.")},ant=new Set(["gather","gather*"]);function UG(t){if(!t.includes("ed"))return!t.includes("*")}function Ih(t,e,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:h,leqno:f}=e;if(t.gullet.beginGroup(),u||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=t.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new jt("Invalid \\arraystretch: "+p)}t.gullet.beginGroup();var g=[],m=[g],y=[],v=[],b=l!=null?[]:void 0;function _(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function E(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new rc("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),v.push(ute(t));;){var x=t.parseExpression(!1,u?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var C={type:"ordgroup",mode:t.mode,body:x};r&&(C={type:"styling",mode:t.mode,style:r,body:[C]}),g.push(C);var T=t.fetch().text;if(T==="&"){if(h&&g.length===h){if(u||o)throw new jt("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(T==="\\end"){E(),g.length===1&&C.type==="styling"&&C.body.length===1&&C.body[0].type==="ordgroup"&&C.body[0].body.length===0&&(m.length>1||!d)&&m.pop(),v.length0&&(_+=.25),u.push({pos:_,isDashed:it[Oe]})}for(E(s[0]),n=0;n0&&(M+=b,Tit))for(n=0;n=o)){var re=void 0;if(i>0||e.hskipBeforeAndAfter){var ce,ae;re=(ce=(ae=Y)==null?void 0:ae.pregap)!=null?ce:f,re!==0&&(I=Ut(["arraycolsep"],[]),I.style.width=er(re),A.push(I))}var se=[];for(n=0;n0){for(var Ne=nb("hline",r,d),ut=nb("hdashline",r,d),De=[{type:"elem",elem:qe,shift:0}];u.length>0;){var Je=u.pop(),st=Je.pos-$;Je.isDashed?De.push({type:"elem",elem:ut,shift:st}):De.push({type:"elem",elem:Ne,shift:st})}qe=wn({positionType:"individualShift",children:De})}if(L.length===0)return Ut(["mord"],[qe],r);var ct=wn({positionType:"individualShift",children:L}),ot=Ut(["tag"],[ct],r);return K0([qe,ot])},snt={c:"center ",l:"left ",r:"right "},_u=function(e,r){for(var n=[],i=new Wt("mtd",[],["mtr-glue"]),a=new Wt("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,m="",y=!1,v=0,b=g.length;g[0].type==="separator"&&(f+="top ",v=1),g[g.length-1].type==="separator"&&(f+="bottom ",b-=1);for(var _=v;_0?"left ":"",f+=N[N.length-1].length>0?"right ":"";for(var O=1;O0&&p&&(y=1),n[g]={type:"align",align:m,pregap:y,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};yu({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=Kk(e[0]),n=r?[e[0]]:en(e[0],"ordgroup").body,i=n.map(function(s){var o=Wk(s),l=o.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new jt("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Ih(t.parser,a,GG(t.envName))},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new jt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=Ih(t.parser,n,GG(t.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[a],left:e[0],right:e[1],rightColor:void 0}:a},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=Ih(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=Kk(e[0]),n=r?[e[0]]:en(e[0],"ordgroup").body,i=n.map(function(o){var l=Wk(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new jt("Unknown column alignment: "+u,o)});if(i.length>1)throw new jt("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},s=Ih(t.parser,a,"script");if(s.body.length>0&&s.body[0].length>1)throw new jt("{subarray} can contain only one column");return s},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Ih(t.parser,e,GG(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:W1e,htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){ant.has(t.envName)&&Qk(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:UG(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Ih(t.parser,e,"display")},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:W1e,htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Qk(t);var e={autoTag:UG(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Ih(t.parser,e,"display")},htmlBuilder:vu,mathmlBuilder:_u});yu({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Qk(t),Wrt(t.parser)},htmlBuilder:vu,mathmlBuilder:_u});ke("\\nonumber","\\gdef\\@eqnsw{0}");ke("\\notag","\\nonumber");or({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new jt(t.funcName+" valid only within array environment")}});var dte=q1e;or({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];if(i.type!=="ordgroup")throw new jt("Invalid environment name",i);for(var a="",s=0;s{var r=t.font,n=e.withFont(r);return En(t.body,n)},X1e=(t,e)=>{var r=t.font,n=e.withFont(r);return zn(t.body,n)},hte={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};or({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=u6(e[0]),a=n;return a in hte&&(a=hte[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:K1e,mathmlBuilder:X1e});or({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"mclass",mode:r.mode,mclass:Xk(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:V0(n)}}});or({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n,breakOnTokenText:i}=t,{mode:a}=r,s=r.parseExpression(!0,i),o="math"+n.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:K1e,mathmlBuilder:X1e});var ont=(t,e)=>{var r=e.style,n=r.fracNum(),i=r.fracDen(),a;a=e.havingStyle(n);var s=En(t.numer,a,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height0?g=3*f:g=7*f,m=e.fontMetrics().denom1):(h>0?(p=e.fontMetrics().num2,g=f):(p=e.fontMetrics().num3,g=3*f),m=e.fontMetrics().denom2);var y;if(d){var b=e.fontMetrics().axisHeight;p-s.depth-(b+.5*h){var r=new Wt("mfrac",[zn(t.numer,e),zn(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=ki(t.barSize,e);r.setAttribute("linethickness",er(n))}if(t.leftDelim!=null||t.rightDelim!=null){var i=[];if(t.leftDelim!=null){var a=new Wt("mo",[new ia(t.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),t.rightDelim!=null){var s=new Wt("mo",[new ia(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}return MG(i)}return r},j1e=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};or({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1],s,o=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var u=n==="\\cfrac",d=null;return u||n.startsWith("\\d")?d="display":n.startsWith("\\t")&&(d="text"),j1e({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},d)},htmlBuilder:ont,mathmlBuilder:lnt});or({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:n}}});var fte=["display","text","script","scriptscript"],pte=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};or({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:r}=t,n=e[4],i=e[5],a=u6(e[0]),s=a.type==="atom"&&a.family==="open"?pte(a.text):null,o=u6(e[1]),l=o.type==="atom"&&o.family==="close"?pte(o.text):null,u=en(e[2],"size"),d,h=null;u.isBlank?d=!0:(h=u.value,d=h.number>0);var f=null,p=e[3];if(p.type==="ordgroup"){if(p.body.length>0){var g=en(p.body[0],"textord");f=fte[Number(g.text)]}}else p=en(p,"textord"),f=fte[Number(p.text)];return j1e({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:d,barSize:h,leftDelim:s,rightDelim:l},f)}});or({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:r,funcName:n,token:i}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:en(e[0],"size").value,token:i}}});or({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=en(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var s=e[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null}}});var Q1e=(t,e)=>{var r=e.style,n,i;t.type==="supsub"?(n=t.sup?En(t.sup,e.havingStyle(r.sup()),e):En(t.sub,e.havingStyle(r.sub()),e),i=en(t.base,"horizBrace")):i=en(t,"horizBrace");var a=En(i.base,e.havingBaseStyle(jr.DISPLAY)),s=Vk(i,e),o;if(i.isOver?(o=wn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]}),o.children[0].children[0].children[1].classes.push("svg-align")):(o=wn({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]}),o.children[0].children[0].children[0].classes.push("svg-align")),n){var l=Ut(["mord",i.isOver?"mover":"munder"],[o],e);i.isOver?o=wn({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=wn({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return Ut(["mord",i.isOver?"mover":"munder"],[o],e)},cnt=(t,e)=>{var r=Hk(t.label);return new Wt(t.isOver?"mover":"munder",[zn(t.base,e),r])};or({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:Q1e,mathmlBuilder:cnt});or({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[1],i=en(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:na(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=wa(t.body,e,!1);return wrt(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=hh(t.body,e);return r instanceof Wt||(r=new Wt("mrow",[r])),r.setAttribute("href",t.href),r}});or({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=en(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:r,funcName:n,token:i}=t,a=en(e[0],"raw").string,s=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(n){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),d=0;d{var r=wa(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var i=Ut(n,r,e);for(var a in t.attributes)a!=="class"&&t.attributes.hasOwnProperty(a)&&i.setAttribute(a,t.attributes[a]);return i},mathmlBuilder:(t,e)=>hh(t.body,e)});or({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"htmlmathml",mode:r.mode,html:na(e[0]),mathml:na(e[1])}},htmlBuilder:(t,e)=>{var r=wa(t.html,e,!1);return K0(r)},mathmlBuilder:(t,e)=>hh(t.mathml,e)});var y9=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new jt("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!h1e(n))throw new jt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};or({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,r)=>{var{parser:n}=t,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=en(r[0],"raw").string,u=l.split(","),d=0;d{var r=ki(t.height,e),n=0;t.totalheight.number>0&&(n=ki(t.totalheight,e)-r);var i=0;t.width.number>0&&(i=ki(t.width,e));var a={height:er(r+n)};i>0&&(a.width=er(i)),n>0&&(a.verticalAlign=er(-n));var s=new mrt(t.src,t.alt,a);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new Wt("mglyph",[]);r.setAttribute("alt",t.alt);var n=ki(t.height,e),i=0;if(t.totalheight.number>0&&(i=ki(t.totalheight,e)-n,r.setAttribute("valign",er(-i))),r.setAttribute("height",er(n+i)),t.width.number>0){var a=ki(t.width,e);r.setAttribute("width",er(a))}return r.setAttribute("src",t.src),r}});or({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=en(e[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(t,e){return v1e(t.dimension,e)},mathmlBuilder(t,e){var r=ki(t.dimension,e);return new x1e(r)}});or({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=Ut([],[En(t.body,e)]),r=Ut(["inner"],[r],e)):r=Ut(["inner"],[En(t.body,e)]);var n=Ut(["fix"],[]),i=Ut([t.alignment],[r,n],e),a=Ut(["strut"]);return a.style.height=er(i.height+i.depth),i.depth&&(a.style.verticalAlign=er(-i.depth)),i.children.unshift(a),i=Ut(["thinbox"],[i],e),Ut(["mord","vbox"],[i],e)},mathmlBuilder:(t,e)=>{var r=new Wt("mpadded",[zn(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});or({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:n}=t,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:s}}});or({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new jt("Mismatched "+t.funcName)}});var gte=(t,e)=>{switch(e.style.size){case jr.DISPLAY.size:return t.display;case jr.TEXT.size:return t.text;case jr.SCRIPT.size:return t.script;case jr.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};or({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:na(e[0]),text:na(e[1]),script:na(e[2]),scriptscript:na(e[3])}},htmlBuilder:(t,e)=>{var r=gte(t,e),n=wa(r,e,!1);return K0(n)},mathmlBuilder:(t,e)=>{var r=gte(t,e);return hh(r,e)}});var Z1e=(t,e,r,n,i,a,s)=>{t=Ut([],[t]);var o=r&&V0(r),l,u;if(e){var d=En(e,n.havingStyle(i.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=En(r,n.havingStyle(i.sub()),n);l={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var f;if(u&&l){var p=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+s;f=wn({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:er(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:er(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var g=t.height-s;f=wn({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:er(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t}]})}else if(u){var m=t.depth+s;f=wn({positionType:"bottom",positionData:m,children:[{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:er(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var y=[f];if(l&&a!==0&&!o){var v=Ut(["mspace"],[],n);v.style.marginRight=er(a),y.unshift(v)}return Ut(["mop","op-limits"],y,n)},J1e=new Set(["\\smallint"]),Wb=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=en(t.base,"op"),i=!0):a=en(t,"op");var s=e.style,o=!1;s.size===jr.DISPLAY.size&&a.symbol&&!J1e.has(a.name)&&(o=!0);var l;if(a.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),l=As(a.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var h=l.italic,f=b1e(d+"Size"+(o?"2":"1"),e);l=wn({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),a.name="\\"+d,l.classes.unshift("mop"),l.italic=h}}else if(a.body){var p=wa(a.body,e,!0);p.length===1&&p[0]instanceof Rl?(l=p[0],l.classes[0]="mop"):l=Ut(["mop"],p,e)}else{for(var g=[],m=1;m{var r;if(t.symbol)r=new Wt("mo",[Nl(t.name,t.mode)]),J1e.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new Wt("mo",Vo(t.body,e));else{r=new Wt("mi",[new ia(t.name.slice(1))]);var n=new Wt("mo",[Nl("⁡","text")]);t.parentIsSupSub?r=new Wt("mrow",[r,n]):r=T1e([r,n])}return r},unt={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};or({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=n;return i.length===1&&(i=unt[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Wb,mathmlBuilder:fT});or({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:na(n)}},htmlBuilder:Wb,mathmlBuilder:fT});var dnt={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};or({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(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Wb,mathmlBuilder:fT});or({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Wb,mathmlBuilder:fT});or({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(t){var{parser:e,funcName:r}=t,n=r;return n.length===1&&(n=dnt[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Wb,mathmlBuilder:fT});var eye=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=en(t.base,"operatorname"),i=!0):a=en(t,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(h=>{var f="text"in h?h.text:void 0;return typeof f=="string"?{type:"textord",mode:h.mode,text:f}:h}),l=wa(o,e.withFont("mathrm"),!0),u=0;u{for(var r=Vo(t.body,e.withFont("mathrm")),n=!0,i=0;id.toText()).join("");r=[new ia(o)]}var l=new Wt("mi",r);l.setAttribute("mathvariant","normal");var u=new Wt("mo",[Nl("⁡","text")]);return t.parentIsSupSub?new Wt("mrow",[l,u]):T1e([l,u])};or({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"operatorname",mode:r.mode,body:na(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:eye,mathmlBuilder:hnt});ke("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");jp({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?K0(wa(t.body,e,!1)):Ut(["mord"],wa(t.body,e,!0),e)},mathmlBuilder(t,e){return hh(t.body,e,!0)}});or({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:r}=t,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=En(t.body,e.havingCrampedStyle()),n=nb("overline-line",e),i=e.fontMetrics().defaultRuleThickness,a=wn({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return Ut(["mord","overline"],[a],e)},mathmlBuilder(t,e){var r=new Wt("mo",[new ia("‾")]);r.setAttribute("stretchy","true");var n=new Wt("mover",[zn(t.body,e),r]);return n.setAttribute("accent","true"),n}});or({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"phantom",mode:r.mode,body:na(n)}},htmlBuilder:(t,e)=>{var r=wa(t.body,e.withPhantom(),!1);return K0(r)},mathmlBuilder:(t,e)=>{var r=Vo(t.body,e);return new Wt("mphantom",r)}});ke("\\hphantom","\\smash{\\phantom{#1}}");or({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=Ut(["inner"],[En(t.body,e.withPhantom())]),n=Ut(["fix"],[]);return Ut(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=Vo(na(t.body),e),n=new Wt("mphantom",r),i=new Wt("mpadded",[n]);return i.setAttribute("width","0px"),i}});or({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t,n=en(e[0],"size").value,i=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(t,e){var r=En(t.body,e),n=ki(t.dy,e);return wn({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Wt("mpadded",[zn(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});or({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});or({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(t,e,r){var{parser:n}=t,i=r[0],a=en(e[0],"size"),s=en(e[1],"size");return{type:"rule",mode:n.mode,shift:i&&en(i,"size").value,width:a.value,height:s.value}},htmlBuilder(t,e){var r=Ut(["mord","rule"],[],e),n=ki(t.width,e),i=ki(t.height,e),a=t.shift?ki(t.shift,e):0;return r.style.borderRightWidth=er(n),r.style.borderTopWidth=er(i),r.style.bottom=er(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=ki(t.width,e),n=ki(t.height,e),i=t.shift?ki(t.shift,e):0,a=e.color&&e.getColor()||"black",s=new Wt("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",er(r)),s.setAttribute("height",er(n));var o=new Wt("mpadded",[s]);return i>=0?o.setAttribute("height",er(i)):(o.setAttribute("height",er(i)),o.setAttribute("depth",er(-i))),o.setAttribute("voffset",er(i)),o}});function tye(t,e,r){for(var n=wa(t,e,!1),i=e.sizeMultiplier/r.sizeMultiplier,a=0;a{var r=e.havingSize(t.size);return tye(t.body,r,e)};or({type:"sizing",names:mte,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:mte.indexOf(n)+1,body:a}},htmlBuilder:fnt,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=Vo(t.body,r),i=new Wt("mstyle",n);return i.setAttribute("mathsize",er(r.sizeMultiplier)),i}});or({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:n}=t,i=!1,a=!1,s=r[0]&&en(r[0],"ordgroup");if(s)for(var o="",l=0;l{var r=Ut([],[En(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return Ut(["mord","smash"],[r],e);if(r.children)for(var n=0;n{var r=new Wt("mpadded",[zn(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});or({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n}=t,i=r[0],a=e[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(t,e){var r=En(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=ib(r,e);var n=e.fontMetrics(),i=n.defaultRuleThickness,a=i;e.style.idr.height+r.depth+s&&(s=(s+h-r.height-r.depth)/2);var f=l.height-r.height-s-u;r.style.paddingLeft=er(d);var p=wn({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]});if(t.index){var g=e.havingStyle(jr.SCRIPTSCRIPT),m=En(t.index,g,e),y=.6*(p.height-p.depth),v=wn({positionType:"shift",positionData:-y,children:[{type:"elem",elem:m}]}),b=Ut(["root"],[v]);return Ut(["mord","sqrt"],[b,p],e)}else return Ut(["mord","sqrt"],[p],e)},mathmlBuilder(t,e){var{body:r,index:n}=t;return n?new Wt("mroot",[zn(r,e),zn(n,e)]):new Wt("msqrt",[zn(r,e)])}});var yte={display:jr.DISPLAY,text:jr.TEXT,script:jr.SCRIPT,scriptscript:jr.SCRIPTSCRIPT};or({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(t,e){var r=yte[t.style],n=e.havingStyle(r).withFont("");return tye(t.body,n,e)},mathmlBuilder(t,e){var r=yte[t.style],n=e.havingStyle(r),i=Vo(t.body,n),a=new Wt("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var pnt=function(e,r){var n=e.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===jr.DISPLAY.size||n.alwaysHandleSupSub);return i?Wb:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===jr.DISPLAY.size||n.limits);return a?eye:null}else{if(n.type==="accent")return V0(n.base)?BG:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Q1e:null}else return null}else return null};jp({type:"supsub",htmlBuilder(t,e){var r=pnt(t,e);if(r)return r(t,e);var{base:n,sup:i,sub:a}=t,s=En(n,e),o,l,u=e.fontMetrics(),d=0,h=0,f=n&&V0(n);if(i){var p=e.havingStyle(e.style.sup());o=En(i,p,e),f||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(a){var g=e.havingStyle(e.style.sub());l=En(a,g,e),f||(h=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}var m;e.style===jr.DISPLAY?m=u.sup1:e.style.cramped?m=u.sup3:m=u.sup2;var y=e.sizeMultiplier,v=er(.5/u.ptPerEm/y),b=null;if(l){var _=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(s instanceof Rl||_)&&(b=er(-s.italic))}var E;if(o&&l){d=Math.max(d,m,o.depth+.25*u.xHeight),h=Math.max(h,u.sub2);var x=u.defaultRuleThickness,C=4*x;if(d-o.depth-(l.height-h)0&&(d+=T,h-=T)}var w=[{type:"elem",elem:l,shift:h,marginRight:v,marginLeft:b},{type:"elem",elem:o,shift:-d,marginRight:v}];E=wn({positionType:"individualShift",children:w})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var N=[{type:"elem",elem:l,marginLeft:b,marginRight:v}];E=wn({positionType:"shift",positionData:h,children:N})}else if(o)d=Math.max(d,m,o.depth+.25*u.xHeight),E=wn({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:v}]});else throw new Error("supsub must have either sup or sub.");var O=VP(s,"right")||"mord";return Ut([O],[s,Ut(["msupsub"],[E])],e)},mathmlBuilder(t,e){var r=!1,n,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var a=[zn(t.base,e)];t.sub&&a.push(zn(t.sub,e)),t.sup&&a.push(zn(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var u=t.base;u&&u.type==="op"&&u.limits&&e.style===jr.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(e.style===jr.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===jr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===jr.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===jr.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===jr.DISPLAY)?s="mover":s="msup"}return new Wt(s,a)}});jp({type:"atom",htmlBuilder(t,e){return DG(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Wt("mo",[Nl(t.text,t.mode)]);if(t.family==="bin"){var n=PG(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var rye={mi:"italic",mn:"normal",mtext:"normal"};jp({type:"mathord",htmlBuilder(t,e){return Yk(t,e,"mathord")},mathmlBuilder(t,e){var r=new Wt("mi",[Nl(t.text,t.mode,e)]),n=PG(t,e)||"italic";return n!==rye[r.type]&&r.setAttribute("mathvariant",n),r}});jp({type:"textord",htmlBuilder(t,e){return Yk(t,e,"textord")},mathmlBuilder(t,e){var r=Nl(t.text,t.mode,e),n=PG(t,e)||"normal",i;return t.mode==="text"?i=new Wt("mtext",[r]):/[0-9]/.test(t.text)?i=new Wt("mn",[r]):t.text==="\\prime"?i=new Wt("mo",[r]):i=new Wt("mi",[r]),n!==rye[i.type]&&i.setAttribute("mathvariant",n),i}});var v9={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},_9={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};jp({type:"spacing",htmlBuilder(t,e){if(_9.hasOwnProperty(t.text)){var r=_9[t.text].className||"";if(t.mode==="text"){var n=Yk(t,e,"textord");return n.classes.push(r),n}else return Ut(["mspace",r],[DG(t.text,t.mode,e)],e)}else{if(v9.hasOwnProperty(t.text))return Ut(["mspace",v9[t.text]],[],e);throw new jt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(_9.hasOwnProperty(t.text))r=new Wt("mtext",[new ia(" ")]);else{if(v9.hasOwnProperty(t.text))return new Wt("mspace");throw new jt('Unknown type of space "'+t.text+'"')}return r}});var vte=()=>{var t=new Wt("mtd",[]);return t.setAttribute("width","50%"),t};jp({type:"tag",mathmlBuilder(t,e){var r=new Wt("mtable",[new Wt("mtr",[vte(),new Wt("mtd",[hh(t.body,e)]),vte(),new Wt("mtd",[hh(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var _te={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},bte={"\\textbf":"textbf","\\textmd":"textmd"},gnt={"\\textit":"textit","\\textup":"textup"},Ete=(t,e)=>{var r=t.font;if(r){if(_te[r])return e.withTextFontFamily(_te[r]);if(bte[r])return e.withTextFontWeight(bte[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(gnt[r])};or({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"text",mode:r.mode,body:na(i),font:n}},htmlBuilder(t,e){var r=Ete(t,e),n=wa(t.body,r,!0);return Ut(["mord","text"],n,r)},mathmlBuilder(t,e){var r=Ete(t,e);return hh(t.body,r)}});or({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=En(t.body,e),n=nb("underline-line",e),i=e.fontMetrics().defaultRuleThickness,a=wn({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return Ut(["mord","underline"],[a],e)},mathmlBuilder(t,e){var r=new Wt("mo",[new ia("‾")]);r.setAttribute("stretchy","true");var n=new Wt("munder",[zn(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});or({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=En(t.body,e),n=e.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return wn({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){return new Wt("mpadded",[zn(t.body,e)],["vcenter"])}});or({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,r){throw new jt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=Ste(t),n=[],i=e.havingStyle(e.style.text()),a=0;at.body.replace(/ /g,t.star?"␣":" "),$d=E1e,nye=`[ \r + ]`,mnt="\\\\[a-zA-Z@]+",ynt="\\\\[^\uD800-\uDFFF]",vnt="("+mnt+")"+nye+"*",_nt=`\\\\( |[ \r ]+ -?)[ \r ]*`,QP="[̀-ͯ]",_nt=new RegExp(QP+"+$"),bnt="("+nye+"+)|"+(vnt+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(QP+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(QP+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+ynt)+("|"+mnt+")");let Tte=class{constructor(e,r){this.input=e,this.settings=r,this.tokenRegex=new RegExp(bnt,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new rc("EOF",new dl(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new jt("Unexpected character: '"+e[r]+"'",new rc(e[r],new dl(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=e.indexOf(` -`,this.tokenRegex.lastIndex);return a===-1?(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=a+1,this.lex()}return new rc(i,new dl(this,r,this.tokenRegex.lastIndex))}},Ent=class{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new jt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}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,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}};var Snt=Y1e;ke("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});ke("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});ke("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});ke("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});ke("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});ke("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");ke("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var xte={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};ke("\\char",function(t){var e=t.popToken(),r,n=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new jt("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=xte[e.text],n==null||n>=r)throw new jt("Invalid base-"+r+" digit "+e.text);for(var i;(i=xte[t.future().text])!=null&&i{var i=t.consumeArg().tokens;if(i.length!==1)throw new jt("\\newcommand's first argument must be a macro name");var a=i[0].text,s=t.isDefined(a);if(s&&!e)throw new jt("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new jt("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=t.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var l="",u=t.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new jt("Invalid number of arguments: "+l);o=parseInt(l),i=t.consumeArg().tokens}return s&&n||t.macros.set(a,{tokens:i,numArgs:o}),""};ke("\\newcommand",t=>qG(t,!1,!0,!1));ke("\\renewcommand",t=>qG(t,!0,!1,!1));ke("\\providecommand",t=>qG(t,!0,!0,!0));ke("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});ke("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});ke("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),$d[r],hi.math[r],hi.text[r]),""});ke("\\bgroup","{");ke("\\egroup","}");ke("~","\\nobreakspace");ke("\\lq","`");ke("\\rq","'");ke("\\aa","\\r a");ke("\\AA","\\r A");ke("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");ke("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");ke("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");ke("ℬ","\\mathscr{B}");ke("ℰ","\\mathscr{E}");ke("ℱ","\\mathscr{F}");ke("ℋ","\\mathscr{H}");ke("ℐ","\\mathscr{I}");ke("ℒ","\\mathscr{L}");ke("ℳ","\\mathscr{M}");ke("ℛ","\\mathscr{R}");ke("ℭ","\\mathfrak{C}");ke("ℌ","\\mathfrak{H}");ke("ℨ","\\mathfrak{Z}");ke("\\Bbbk","\\Bbb{k}");ke("·","\\cdotp");ke("\\llap","\\mathllap{\\textrm{#1}}");ke("\\rlap","\\mathrlap{\\textrm{#1}}");ke("\\clap","\\mathclap{\\textrm{#1}}");ke("\\mathstrut","\\vphantom{(}");ke("\\underbar","\\underline{\\text{#1}}");ke("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');ke("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");ke("\\ne","\\neq");ke("≠","\\neq");ke("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");ke("∉","\\notin");ke("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");ke("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");ke("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");ke("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");ke("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");ke("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");ke("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");ke("⟂","\\perp");ke("‼","\\mathclose{!\\mkern-0.8mu!}");ke("∌","\\notni");ke("⌜","\\ulcorner");ke("⌝","\\urcorner");ke("⌞","\\llcorner");ke("⌟","\\lrcorner");ke("©","\\copyright");ke("®","\\textregistered");ke("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');ke("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');ke("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');ke("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');ke("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");ke("⋮","\\vdots");ke("\\varGamma","\\mathit{\\Gamma}");ke("\\varDelta","\\mathit{\\Delta}");ke("\\varTheta","\\mathit{\\Theta}");ke("\\varLambda","\\mathit{\\Lambda}");ke("\\varXi","\\mathit{\\Xi}");ke("\\varPi","\\mathit{\\Pi}");ke("\\varSigma","\\mathit{\\Sigma}");ke("\\varUpsilon","\\mathit{\\Upsilon}");ke("\\varPhi","\\mathit{\\Phi}");ke("\\varPsi","\\mathit{\\Psi}");ke("\\varOmega","\\mathit{\\Omega}");ke("\\substack","\\begin{subarray}{c}#1\\end{subarray}");ke("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");ke("\\boxed","\\fbox{$\\displaystyle{#1}$}");ke("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");ke("\\implies","\\DOTSB\\;\\Longrightarrow\\;");ke("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");ke("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");ke("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Cte={",":"\\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"},Tnt=new Set(["bin","rel"]);ke("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in Cte?e=Cte[r]:(r.slice(0,4)==="\\not"||r in hi.math&&Tnt.has(hi.math[r].group))&&(e="\\dotsb"),e});var YG={")":!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};ke("\\dotso",function(t){var e=t.future().text;return e in YG?"\\ldots\\,":"\\ldots"});ke("\\dotsc",function(t){var e=t.future().text;return e in YG&&e!==","?"\\ldots\\,":"\\ldots"});ke("\\cdots",function(t){var e=t.future().text;return e in YG?"\\@cdots\\,":"\\@cdots"});ke("\\dotsb","\\cdots");ke("\\dotsm","\\cdots");ke("\\dotsi","\\!\\cdots");ke("\\dotsx","\\ldots\\,");ke("\\DOTSI","\\relax");ke("\\DOTSB","\\relax");ke("\\DOTSX","\\relax");ke("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");ke("\\,","\\tmspace+{3mu}{.1667em}");ke("\\thinspace","\\,");ke("\\>","\\mskip{4mu}");ke("\\:","\\tmspace+{4mu}{.2222em}");ke("\\medspace","\\:");ke("\\;","\\tmspace+{5mu}{.2777em}");ke("\\thickspace","\\;");ke("\\!","\\tmspace-{3mu}{.1667em}");ke("\\negthinspace","\\!");ke("\\negmedspace","\\tmspace-{4mu}{.2222em}");ke("\\negthickspace","\\tmspace-{5mu}{.277em}");ke("\\enspace","\\kern.5em ");ke("\\enskip","\\hskip.5em\\relax");ke("\\quad","\\hskip1em\\relax");ke("\\qquad","\\hskip2em\\relax");ke("\\tag","\\@ifstar\\tag@literal\\tag@paren");ke("\\tag@paren","\\tag@literal{({#1})}");ke("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new jt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});ke("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");ke("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");ke("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");ke("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");ke("\\newline","\\\\\\relax");ke("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var iye=er(Vc["Main-Regular"][84][1]-.7*Vc["Main-Regular"][65][1]);ke("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+iye+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");ke("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+iye+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");ke("\\hspace","\\@ifstar\\@hspacer\\@hspace");ke("\\@hspace","\\hskip #1\\relax");ke("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");ke("\\ordinarycolon",":");ke("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");ke("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');ke("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');ke("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');ke("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');ke("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');ke("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');ke("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');ke("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');ke("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');ke("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');ke("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');ke("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');ke("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');ke("∷","\\dblcolon");ke("∹","\\eqcolon");ke("≔","\\coloneqq");ke("≕","\\eqqcolon");ke("⩴","\\Coloneqq");ke("\\ratio","\\vcentcolon");ke("\\coloncolon","\\dblcolon");ke("\\colonequals","\\coloneqq");ke("\\coloncolonequals","\\Coloneqq");ke("\\equalscolon","\\eqqcolon");ke("\\equalscoloncolon","\\Eqqcolon");ke("\\colonminus","\\coloneq");ke("\\coloncolonminus","\\Coloneq");ke("\\minuscolon","\\eqcolon");ke("\\minuscoloncolon","\\Eqcolon");ke("\\coloncolonapprox","\\Colonapprox");ke("\\coloncolonsim","\\Colonsim");ke("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ke("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");ke("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ke("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");ke("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");ke("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");ke("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");ke("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");ke("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");ke("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");ke("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");ke("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");ke("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");ke("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");ke("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");ke("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");ke("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");ke("\\nleqq","\\html@mathml{\\@nleqq}{≰}");ke("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");ke("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");ke("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");ke("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");ke("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");ke("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");ke("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");ke("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");ke("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");ke("\\imath","\\html@mathml{\\@imath}{ı}");ke("\\jmath","\\html@mathml{\\@jmath}{ȷ}");ke("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");ke("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");ke("⟦","\\llbracket");ke("⟧","\\rrbracket");ke("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");ke("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");ke("⦃","\\lBrace");ke("⦄","\\rBrace");ke("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");ke("⦵","\\minuso");ke("\\darr","\\downarrow");ke("\\dArr","\\Downarrow");ke("\\Darr","\\Downarrow");ke("\\lang","\\langle");ke("\\rang","\\rangle");ke("\\uarr","\\uparrow");ke("\\uArr","\\Uparrow");ke("\\Uarr","\\Uparrow");ke("\\N","\\mathbb{N}");ke("\\R","\\mathbb{R}");ke("\\Z","\\mathbb{Z}");ke("\\alef","\\aleph");ke("\\alefsym","\\aleph");ke("\\Alpha","\\mathrm{A}");ke("\\Beta","\\mathrm{B}");ke("\\bull","\\bullet");ke("\\Chi","\\mathrm{X}");ke("\\clubs","\\clubsuit");ke("\\cnums","\\mathbb{C}");ke("\\Complex","\\mathbb{C}");ke("\\Dagger","\\ddagger");ke("\\diamonds","\\diamondsuit");ke("\\empty","\\emptyset");ke("\\Epsilon","\\mathrm{E}");ke("\\Eta","\\mathrm{H}");ke("\\exist","\\exists");ke("\\harr","\\leftrightarrow");ke("\\hArr","\\Leftrightarrow");ke("\\Harr","\\Leftrightarrow");ke("\\hearts","\\heartsuit");ke("\\image","\\Im");ke("\\infin","\\infty");ke("\\Iota","\\mathrm{I}");ke("\\isin","\\in");ke("\\Kappa","\\mathrm{K}");ke("\\larr","\\leftarrow");ke("\\lArr","\\Leftarrow");ke("\\Larr","\\Leftarrow");ke("\\lrarr","\\leftrightarrow");ke("\\lrArr","\\Leftrightarrow");ke("\\Lrarr","\\Leftrightarrow");ke("\\Mu","\\mathrm{M}");ke("\\natnums","\\mathbb{N}");ke("\\Nu","\\mathrm{N}");ke("\\Omicron","\\mathrm{O}");ke("\\plusmn","\\pm");ke("\\rarr","\\rightarrow");ke("\\rArr","\\Rightarrow");ke("\\Rarr","\\Rightarrow");ke("\\real","\\Re");ke("\\reals","\\mathbb{R}");ke("\\Reals","\\mathbb{R}");ke("\\Rho","\\mathrm{P}");ke("\\sdot","\\cdot");ke("\\sect","\\S");ke("\\spades","\\spadesuit");ke("\\sub","\\subset");ke("\\sube","\\subseteq");ke("\\supe","\\supseteq");ke("\\Tau","\\mathrm{T}");ke("\\thetasym","\\vartheta");ke("\\weierp","\\wp");ke("\\Zeta","\\mathrm{Z}");ke("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");ke("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");ke("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");ke("\\bra","\\mathinner{\\langle{#1}|}");ke("\\ket","\\mathinner{|{#1}\\rangle}");ke("\\braket","\\mathinner{\\langle{#1}\\rangle}");ke("\\Bra","\\left\\langle#1\\right|");ke("\\Ket","\\left|#1\\right\\rangle");var aye=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,i=e.consumeArg().tokens,a=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=h=>f=>{t&&(f.macros.set("|",s),i.length&&f.macros.set("\\|",o));var p=h;if(!h&&i.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?i:n,numArgs:0}};e.macros.set("|",l(!1)),i.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...a,...u,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};ke("\\bra@ket",aye(!1));ke("\\bra@set",aye(!0));ke("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");ke("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");ke("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");ke("\\angln","{\\angl n}");ke("\\blue","\\textcolor{##6495ed}{#1}");ke("\\orange","\\textcolor{##ffa500}{#1}");ke("\\pink","\\textcolor{##ff00af}{#1}");ke("\\red","\\textcolor{##df0030}{#1}");ke("\\green","\\textcolor{##28ae7b}{#1}");ke("\\gray","\\textcolor{gray}{#1}");ke("\\purple","\\textcolor{##9d38bd}{#1}");ke("\\blueA","\\textcolor{##ccfaff}{#1}");ke("\\blueB","\\textcolor{##80f6ff}{#1}");ke("\\blueC","\\textcolor{##63d9ea}{#1}");ke("\\blueD","\\textcolor{##11accd}{#1}");ke("\\blueE","\\textcolor{##0c7f99}{#1}");ke("\\tealA","\\textcolor{##94fff5}{#1}");ke("\\tealB","\\textcolor{##26edd5}{#1}");ke("\\tealC","\\textcolor{##01d1c1}{#1}");ke("\\tealD","\\textcolor{##01a995}{#1}");ke("\\tealE","\\textcolor{##208170}{#1}");ke("\\greenA","\\textcolor{##b6ffb0}{#1}");ke("\\greenB","\\textcolor{##8af281}{#1}");ke("\\greenC","\\textcolor{##74cf70}{#1}");ke("\\greenD","\\textcolor{##1fab54}{#1}");ke("\\greenE","\\textcolor{##0d923f}{#1}");ke("\\goldA","\\textcolor{##ffd0a9}{#1}");ke("\\goldB","\\textcolor{##ffbb71}{#1}");ke("\\goldC","\\textcolor{##ff9c39}{#1}");ke("\\goldD","\\textcolor{##e07d10}{#1}");ke("\\goldE","\\textcolor{##a75a05}{#1}");ke("\\redA","\\textcolor{##fca9a9}{#1}");ke("\\redB","\\textcolor{##ff8482}{#1}");ke("\\redC","\\textcolor{##f9685d}{#1}");ke("\\redD","\\textcolor{##e84d39}{#1}");ke("\\redE","\\textcolor{##bc2612}{#1}");ke("\\maroonA","\\textcolor{##ffbde0}{#1}");ke("\\maroonB","\\textcolor{##ff92c6}{#1}");ke("\\maroonC","\\textcolor{##ed5fa6}{#1}");ke("\\maroonD","\\textcolor{##ca337c}{#1}");ke("\\maroonE","\\textcolor{##9e034e}{#1}");ke("\\purpleA","\\textcolor{##ddd7ff}{#1}");ke("\\purpleB","\\textcolor{##c6b9fc}{#1}");ke("\\purpleC","\\textcolor{##aa87ff}{#1}");ke("\\purpleD","\\textcolor{##7854ab}{#1}");ke("\\purpleE","\\textcolor{##543b78}{#1}");ke("\\mintA","\\textcolor{##f5f9e8}{#1}");ke("\\mintB","\\textcolor{##edf2df}{#1}");ke("\\mintC","\\textcolor{##e0e5cc}{#1}");ke("\\grayA","\\textcolor{##f6f7f7}{#1}");ke("\\grayB","\\textcolor{##f0f1f2}{#1}");ke("\\grayC","\\textcolor{##e3e5e6}{#1}");ke("\\grayD","\\textcolor{##d6d8da}{#1}");ke("\\grayE","\\textcolor{##babec2}{#1}");ke("\\grayF","\\textcolor{##888d93}{#1}");ke("\\grayG","\\textcolor{##626569}{#1}");ke("\\grayH","\\textcolor{##3b3e40}{#1}");ke("\\grayI","\\textcolor{##21242c}{#1}");ke("\\kaBlue","\\textcolor{##314453}{#1}");ke("\\kaGreen","\\textcolor{##71B307}{#1}");var sye={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};let xnt=class{constructor(e,r,n){this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new Ent(Snt,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Tte(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&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){var r,n,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new rc("EOF",n.loc)),this.pushTokens(i),new rc("",dl.range(r,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new jt("Extra }",a)}else if(a.text==="EOF")throw new jt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",a);if(e&&n)if((s===0||s===1&&e[o]==="{")&&a.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new jt("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;ithis.settings.maxExpand)throw new jt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||e&&i.unexpandable){if(e&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new jt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new jt("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new jt("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new rc(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var s=i.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var o=new Tte(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(e){return this.macros.has(e)||$d.hasOwnProperty(e)||hi.math.hasOwnProperty(e)||hi.text.hasOwnProperty(e)||sye.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:$d.hasOwnProperty(e)&&!$d[e].primitive}};var wte=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ux=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),b9={"́":{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"}},kte={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let oye=class lye{constructor(e,r){this.mode="math",this.gullet=new xnt(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new jt("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(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{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new rc("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(lye.endOfExpression.has(i.text)||r&&i.text===r||e&&$d[i.text]&&$d[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,i=0;i=128)this.settings.strict&&(d1e(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:dl.range(e),text:r};else return null;if(this.consume(),a)for(var h=0;h$/.test(a.content))return!1;const s=t.pos+r.length,o=Ont(n,t.src,s);if(o===-1||o===s)return!1;if(!e){const l=t.push("math_inline","math",0);l.markup=r,l.content=t.src.slice(s,o)}return t.pos=o+n.length,!0}function Lnt(t,e){if(t.src[t.pos]!=="$")return!1;const r=t.tokens.at(-1);if(r?.type==="html_inline"&&/^<\w+.+[^/]>$/.test(r.content))return!1;let n=Ate(t,t.pos);if(!n.can_open)return e||(t.pending+="$"),t.pos+=1,!0;let i=t.pos+1,a=i,s;for(;(a=t.src.indexOf("$",a))!==-1;){for(s=a-1;t.src[s]==="\\";)s-=1;if((a-s)%2==1)break;a+=1}if(a===-1)return e||(t.pending+="$"),t.pos=i,!0;if(a-i===0)return e||(t.pending+="$$"),t.pos=i+1,!0;if(n=Ate(t,a),!n.can_close)return e||(t.pending+="$"),t.pos=i,!0;if(!e){const o=t.push("math_inline","math",0);o.markup="$",o.content=t.src.slice(i,a)}return t.pos=a+1,!0}function Mnt(t,e,r,n,i,a){let s=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(s+i.length>o||t.src.slice(s,s+i.length)!==i)return!1;s+=i.length;let u=t.src.slice(s,o);if(u.includes(a)){const m=u.indexOf(a),y=u.slice(m+a.length);if(/^\s*$/.test(y)){if(u=u.slice(0,m).replace(/^\s+/,""),n)return!0;const v=t.push("math_block","math",0);return v.block=!0,v.content=u+` +?)[ \r ]*`,QP="[̀-ͯ]",bnt=new RegExp(QP+"+$"),Ent="("+nye+"+)|"+(_nt+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(QP+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(QP+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+vnt)+("|"+ynt+")");let Tte=class{constructor(e,r){this.input=e,this.settings=r,this.tokenRegex=new RegExp(Ent,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new rc("EOF",new dl(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new jt("Unexpected character: '"+e[r]+"'",new rc(e[r],new dl(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=e.indexOf(` +`,this.tokenRegex.lastIndex);return a===-1?(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=a+1,this.lex()}return new rc(i,new dl(this,r,this.tokenRegex.lastIndex))}},Snt=class{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new jt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}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,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}};var Tnt=Y1e;ke("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});ke("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});ke("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});ke("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});ke("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});ke("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");ke("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var xte={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};ke("\\char",function(t){var e=t.popToken(),r,n=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new jt("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=xte[e.text],n==null||n>=r)throw new jt("Invalid base-"+r+" digit "+e.text);for(var i;(i=xte[t.future().text])!=null&&i{var i=t.consumeArg().tokens;if(i.length!==1)throw new jt("\\newcommand's first argument must be a macro name");var a=i[0].text,s=t.isDefined(a);if(s&&!e)throw new jt("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new jt("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=t.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var l="",u=t.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new jt("Invalid number of arguments: "+l);o=parseInt(l),i=t.consumeArg().tokens}return s&&n||t.macros.set(a,{tokens:i,numArgs:o}),""};ke("\\newcommand",t=>qG(t,!1,!0,!1));ke("\\renewcommand",t=>qG(t,!0,!1,!1));ke("\\providecommand",t=>qG(t,!0,!0,!0));ke("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});ke("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});ke("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),$d[r],hi.math[r],hi.text[r]),""});ke("\\bgroup","{");ke("\\egroup","}");ke("~","\\nobreakspace");ke("\\lq","`");ke("\\rq","'");ke("\\aa","\\r a");ke("\\AA","\\r A");ke("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");ke("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");ke("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");ke("ℬ","\\mathscr{B}");ke("ℰ","\\mathscr{E}");ke("ℱ","\\mathscr{F}");ke("ℋ","\\mathscr{H}");ke("ℐ","\\mathscr{I}");ke("ℒ","\\mathscr{L}");ke("ℳ","\\mathscr{M}");ke("ℛ","\\mathscr{R}");ke("ℭ","\\mathfrak{C}");ke("ℌ","\\mathfrak{H}");ke("ℨ","\\mathfrak{Z}");ke("\\Bbbk","\\Bbb{k}");ke("·","\\cdotp");ke("\\llap","\\mathllap{\\textrm{#1}}");ke("\\rlap","\\mathrlap{\\textrm{#1}}");ke("\\clap","\\mathclap{\\textrm{#1}}");ke("\\mathstrut","\\vphantom{(}");ke("\\underbar","\\underline{\\text{#1}}");ke("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');ke("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");ke("\\ne","\\neq");ke("≠","\\neq");ke("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");ke("∉","\\notin");ke("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");ke("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");ke("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");ke("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");ke("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");ke("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");ke("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");ke("⟂","\\perp");ke("‼","\\mathclose{!\\mkern-0.8mu!}");ke("∌","\\notni");ke("⌜","\\ulcorner");ke("⌝","\\urcorner");ke("⌞","\\llcorner");ke("⌟","\\lrcorner");ke("©","\\copyright");ke("®","\\textregistered");ke("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');ke("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');ke("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');ke("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');ke("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");ke("⋮","\\vdots");ke("\\varGamma","\\mathit{\\Gamma}");ke("\\varDelta","\\mathit{\\Delta}");ke("\\varTheta","\\mathit{\\Theta}");ke("\\varLambda","\\mathit{\\Lambda}");ke("\\varXi","\\mathit{\\Xi}");ke("\\varPi","\\mathit{\\Pi}");ke("\\varSigma","\\mathit{\\Sigma}");ke("\\varUpsilon","\\mathit{\\Upsilon}");ke("\\varPhi","\\mathit{\\Phi}");ke("\\varPsi","\\mathit{\\Psi}");ke("\\varOmega","\\mathit{\\Omega}");ke("\\substack","\\begin{subarray}{c}#1\\end{subarray}");ke("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");ke("\\boxed","\\fbox{$\\displaystyle{#1}$}");ke("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");ke("\\implies","\\DOTSB\\;\\Longrightarrow\\;");ke("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");ke("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");ke("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Cte={",":"\\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"},xnt=new Set(["bin","rel"]);ke("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in Cte?e=Cte[r]:(r.slice(0,4)==="\\not"||r in hi.math&&xnt.has(hi.math[r].group))&&(e="\\dotsb"),e});var YG={")":!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};ke("\\dotso",function(t){var e=t.future().text;return e in YG?"\\ldots\\,":"\\ldots"});ke("\\dotsc",function(t){var e=t.future().text;return e in YG&&e!==","?"\\ldots\\,":"\\ldots"});ke("\\cdots",function(t){var e=t.future().text;return e in YG?"\\@cdots\\,":"\\@cdots"});ke("\\dotsb","\\cdots");ke("\\dotsm","\\cdots");ke("\\dotsi","\\!\\cdots");ke("\\dotsx","\\ldots\\,");ke("\\DOTSI","\\relax");ke("\\DOTSB","\\relax");ke("\\DOTSX","\\relax");ke("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");ke("\\,","\\tmspace+{3mu}{.1667em}");ke("\\thinspace","\\,");ke("\\>","\\mskip{4mu}");ke("\\:","\\tmspace+{4mu}{.2222em}");ke("\\medspace","\\:");ke("\\;","\\tmspace+{5mu}{.2777em}");ke("\\thickspace","\\;");ke("\\!","\\tmspace-{3mu}{.1667em}");ke("\\negthinspace","\\!");ke("\\negmedspace","\\tmspace-{4mu}{.2222em}");ke("\\negthickspace","\\tmspace-{5mu}{.277em}");ke("\\enspace","\\kern.5em ");ke("\\enskip","\\hskip.5em\\relax");ke("\\quad","\\hskip1em\\relax");ke("\\qquad","\\hskip2em\\relax");ke("\\tag","\\@ifstar\\tag@literal\\tag@paren");ke("\\tag@paren","\\tag@literal{({#1})}");ke("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new jt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});ke("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");ke("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");ke("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");ke("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");ke("\\newline","\\\\\\relax");ke("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var iye=er(Vc["Main-Regular"][84][1]-.7*Vc["Main-Regular"][65][1]);ke("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+iye+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");ke("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+iye+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");ke("\\hspace","\\@ifstar\\@hspacer\\@hspace");ke("\\@hspace","\\hskip #1\\relax");ke("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");ke("\\ordinarycolon",":");ke("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");ke("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');ke("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');ke("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');ke("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');ke("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');ke("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');ke("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');ke("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');ke("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');ke("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');ke("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');ke("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');ke("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');ke("∷","\\dblcolon");ke("∹","\\eqcolon");ke("≔","\\coloneqq");ke("≕","\\eqqcolon");ke("⩴","\\Coloneqq");ke("\\ratio","\\vcentcolon");ke("\\coloncolon","\\dblcolon");ke("\\colonequals","\\coloneqq");ke("\\coloncolonequals","\\Coloneqq");ke("\\equalscolon","\\eqqcolon");ke("\\equalscoloncolon","\\Eqqcolon");ke("\\colonminus","\\coloneq");ke("\\coloncolonminus","\\Coloneq");ke("\\minuscolon","\\eqcolon");ke("\\minuscoloncolon","\\Eqcolon");ke("\\coloncolonapprox","\\Colonapprox");ke("\\coloncolonsim","\\Colonsim");ke("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ke("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");ke("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ke("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");ke("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");ke("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");ke("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");ke("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");ke("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");ke("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");ke("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");ke("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");ke("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");ke("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");ke("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");ke("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");ke("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");ke("\\nleqq","\\html@mathml{\\@nleqq}{≰}");ke("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");ke("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");ke("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");ke("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");ke("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");ke("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");ke("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");ke("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");ke("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");ke("\\imath","\\html@mathml{\\@imath}{ı}");ke("\\jmath","\\html@mathml{\\@jmath}{ȷ}");ke("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");ke("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");ke("⟦","\\llbracket");ke("⟧","\\rrbracket");ke("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");ke("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");ke("⦃","\\lBrace");ke("⦄","\\rBrace");ke("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");ke("⦵","\\minuso");ke("\\darr","\\downarrow");ke("\\dArr","\\Downarrow");ke("\\Darr","\\Downarrow");ke("\\lang","\\langle");ke("\\rang","\\rangle");ke("\\uarr","\\uparrow");ke("\\uArr","\\Uparrow");ke("\\Uarr","\\Uparrow");ke("\\N","\\mathbb{N}");ke("\\R","\\mathbb{R}");ke("\\Z","\\mathbb{Z}");ke("\\alef","\\aleph");ke("\\alefsym","\\aleph");ke("\\Alpha","\\mathrm{A}");ke("\\Beta","\\mathrm{B}");ke("\\bull","\\bullet");ke("\\Chi","\\mathrm{X}");ke("\\clubs","\\clubsuit");ke("\\cnums","\\mathbb{C}");ke("\\Complex","\\mathbb{C}");ke("\\Dagger","\\ddagger");ke("\\diamonds","\\diamondsuit");ke("\\empty","\\emptyset");ke("\\Epsilon","\\mathrm{E}");ke("\\Eta","\\mathrm{H}");ke("\\exist","\\exists");ke("\\harr","\\leftrightarrow");ke("\\hArr","\\Leftrightarrow");ke("\\Harr","\\Leftrightarrow");ke("\\hearts","\\heartsuit");ke("\\image","\\Im");ke("\\infin","\\infty");ke("\\Iota","\\mathrm{I}");ke("\\isin","\\in");ke("\\Kappa","\\mathrm{K}");ke("\\larr","\\leftarrow");ke("\\lArr","\\Leftarrow");ke("\\Larr","\\Leftarrow");ke("\\lrarr","\\leftrightarrow");ke("\\lrArr","\\Leftrightarrow");ke("\\Lrarr","\\Leftrightarrow");ke("\\Mu","\\mathrm{M}");ke("\\natnums","\\mathbb{N}");ke("\\Nu","\\mathrm{N}");ke("\\Omicron","\\mathrm{O}");ke("\\plusmn","\\pm");ke("\\rarr","\\rightarrow");ke("\\rArr","\\Rightarrow");ke("\\Rarr","\\Rightarrow");ke("\\real","\\Re");ke("\\reals","\\mathbb{R}");ke("\\Reals","\\mathbb{R}");ke("\\Rho","\\mathrm{P}");ke("\\sdot","\\cdot");ke("\\sect","\\S");ke("\\spades","\\spadesuit");ke("\\sub","\\subset");ke("\\sube","\\subseteq");ke("\\supe","\\supseteq");ke("\\Tau","\\mathrm{T}");ke("\\thetasym","\\vartheta");ke("\\weierp","\\wp");ke("\\Zeta","\\mathrm{Z}");ke("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");ke("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");ke("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");ke("\\bra","\\mathinner{\\langle{#1}|}");ke("\\ket","\\mathinner{|{#1}\\rangle}");ke("\\braket","\\mathinner{\\langle{#1}\\rangle}");ke("\\Bra","\\left\\langle#1\\right|");ke("\\Ket","\\left|#1\\right\\rangle");var aye=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,i=e.consumeArg().tokens,a=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=h=>f=>{t&&(f.macros.set("|",s),i.length&&f.macros.set("\\|",o));var p=h;if(!h&&i.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?i:n,numArgs:0}};e.macros.set("|",l(!1)),i.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...a,...u,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};ke("\\bra@ket",aye(!1));ke("\\bra@set",aye(!0));ke("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");ke("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");ke("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");ke("\\angln","{\\angl n}");ke("\\blue","\\textcolor{##6495ed}{#1}");ke("\\orange","\\textcolor{##ffa500}{#1}");ke("\\pink","\\textcolor{##ff00af}{#1}");ke("\\red","\\textcolor{##df0030}{#1}");ke("\\green","\\textcolor{##28ae7b}{#1}");ke("\\gray","\\textcolor{gray}{#1}");ke("\\purple","\\textcolor{##9d38bd}{#1}");ke("\\blueA","\\textcolor{##ccfaff}{#1}");ke("\\blueB","\\textcolor{##80f6ff}{#1}");ke("\\blueC","\\textcolor{##63d9ea}{#1}");ke("\\blueD","\\textcolor{##11accd}{#1}");ke("\\blueE","\\textcolor{##0c7f99}{#1}");ke("\\tealA","\\textcolor{##94fff5}{#1}");ke("\\tealB","\\textcolor{##26edd5}{#1}");ke("\\tealC","\\textcolor{##01d1c1}{#1}");ke("\\tealD","\\textcolor{##01a995}{#1}");ke("\\tealE","\\textcolor{##208170}{#1}");ke("\\greenA","\\textcolor{##b6ffb0}{#1}");ke("\\greenB","\\textcolor{##8af281}{#1}");ke("\\greenC","\\textcolor{##74cf70}{#1}");ke("\\greenD","\\textcolor{##1fab54}{#1}");ke("\\greenE","\\textcolor{##0d923f}{#1}");ke("\\goldA","\\textcolor{##ffd0a9}{#1}");ke("\\goldB","\\textcolor{##ffbb71}{#1}");ke("\\goldC","\\textcolor{##ff9c39}{#1}");ke("\\goldD","\\textcolor{##e07d10}{#1}");ke("\\goldE","\\textcolor{##a75a05}{#1}");ke("\\redA","\\textcolor{##fca9a9}{#1}");ke("\\redB","\\textcolor{##ff8482}{#1}");ke("\\redC","\\textcolor{##f9685d}{#1}");ke("\\redD","\\textcolor{##e84d39}{#1}");ke("\\redE","\\textcolor{##bc2612}{#1}");ke("\\maroonA","\\textcolor{##ffbde0}{#1}");ke("\\maroonB","\\textcolor{##ff92c6}{#1}");ke("\\maroonC","\\textcolor{##ed5fa6}{#1}");ke("\\maroonD","\\textcolor{##ca337c}{#1}");ke("\\maroonE","\\textcolor{##9e034e}{#1}");ke("\\purpleA","\\textcolor{##ddd7ff}{#1}");ke("\\purpleB","\\textcolor{##c6b9fc}{#1}");ke("\\purpleC","\\textcolor{##aa87ff}{#1}");ke("\\purpleD","\\textcolor{##7854ab}{#1}");ke("\\purpleE","\\textcolor{##543b78}{#1}");ke("\\mintA","\\textcolor{##f5f9e8}{#1}");ke("\\mintB","\\textcolor{##edf2df}{#1}");ke("\\mintC","\\textcolor{##e0e5cc}{#1}");ke("\\grayA","\\textcolor{##f6f7f7}{#1}");ke("\\grayB","\\textcolor{##f0f1f2}{#1}");ke("\\grayC","\\textcolor{##e3e5e6}{#1}");ke("\\grayD","\\textcolor{##d6d8da}{#1}");ke("\\grayE","\\textcolor{##babec2}{#1}");ke("\\grayF","\\textcolor{##888d93}{#1}");ke("\\grayG","\\textcolor{##626569}{#1}");ke("\\grayH","\\textcolor{##3b3e40}{#1}");ke("\\grayI","\\textcolor{##21242c}{#1}");ke("\\kaBlue","\\textcolor{##314453}{#1}");ke("\\kaGreen","\\textcolor{##71B307}{#1}");var sye={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};let Cnt=class{constructor(e,r,n){this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new Snt(Tnt,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Tte(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&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){var r,n,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new rc("EOF",n.loc)),this.pushTokens(i),new rc("",dl.range(r,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new jt("Extra }",a)}else if(a.text==="EOF")throw new jt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",a);if(e&&n)if((s===0||s===1&&e[o]==="{")&&a.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new jt("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;ithis.settings.maxExpand)throw new jt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||e&&i.unexpandable){if(e&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new jt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new jt("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new jt("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new rc(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var s=i.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var o=new Tte(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(e){return this.macros.has(e)||$d.hasOwnProperty(e)||hi.math.hasOwnProperty(e)||hi.text.hasOwnProperty(e)||sye.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:$d.hasOwnProperty(e)&&!$d[e].primitive}};var wte=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ux=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),b9={"́":{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"}},kte={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let oye=class lye{constructor(e,r){this.mode="math",this.gullet=new Cnt(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new jt("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(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{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new rc("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(lye.endOfExpression.has(i.text)||r&&i.text===r||e&&$d[i.text]&&$d[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,i=0;i=128)this.settings.strict&&(d1e(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:dl.range(e),text:r};else return null;if(this.consume(),a)for(var h=0;h$/.test(a.content))return!1;const s=t.pos+r.length,o=Dnt(n,t.src,s);if(o===-1||o===s)return!1;if(!e){const l=t.push("math_inline","math",0);l.markup=r,l.content=t.src.slice(s,o)}return t.pos=o+n.length,!0}function Mnt(t,e){if(t.src[t.pos]!=="$")return!1;const r=t.tokens.at(-1);if(r?.type==="html_inline"&&/^<\w+.+[^/]>$/.test(r.content))return!1;let n=Ate(t,t.pos);if(!n.can_open)return e||(t.pending+="$"),t.pos+=1,!0;let i=t.pos+1,a=i,s;for(;(a=t.src.indexOf("$",a))!==-1;){for(s=a-1;t.src[s]==="\\";)s-=1;if((a-s)%2==1)break;a+=1}if(a===-1)return e||(t.pending+="$"),t.pos=i,!0;if(a-i===0)return e||(t.pending+="$$"),t.pos=i+1,!0;if(n=Ate(t,a),!n.can_close)return e||(t.pending+="$"),t.pos=i,!0;if(!e){const o=t.push("math_inline","math",0);o.markup="$",o.content=t.src.slice(i,a)}return t.pos=a+1,!0}function Pnt(t,e,r,n,i,a){let s=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(s+i.length>o||t.src.slice(s,s+i.length)!==i)return!1;s+=i.length;let u=t.src.slice(s,o);if(u.includes(a)){const m=u.indexOf(a),y=u.slice(m+a.length);if(/^\s*$/.test(y)){if(u=u.slice(0,m).replace(/^\s+/,""),n)return!0;const v=t.push("math_block","math",0);return v.block=!0,v.content=u+` `,v.map=[e,e+1],v.markup=i,t.line=e+1,!0}else return!1}if(n)return!0;let d=e,h,f=!1;for(d=e;!f&&(d++,!(d>=r||(s=t.bMarks[d]+t.tShift[d],o=t.eMarks[d],ss||t.src.slice(a,a+2)!=="$$")return!1;a+=2;let o=t.src.slice(a,s);const l=[...o.matchAll(/\$\$/g)],u=o.replace(/\s+$/,"").length;if(l.length===1&&l[0].index===u-2)o=o.trim().slice(0,-2),i=!0;else if(l.length>1)return!1;if(n)return!0;let d,h,f;for(h=e;!i&&(h++,!(h>=r||(a=t.bMarks[h]+t.tShift[h],s=t.eMarks[h],a0){const p=t.bMarks[e-1]+t.tShift[e-1],g=t.eMarks[e-1],m=t.src.slice(p,g);if(!/^\s*$/.test(m))return!1}if(n)return!0;const l=[];let u=e,d,h=!1;e:for(;!h&&!(u>=r);u++){const p=t.bMarks[u]+t.tShift[u],g=t.eMarks[u];if(p"u")return!1;const o=n.slice(0,i+1).reduce((u,d)=>u+d.length,0)+i+1,l=t.push("math_inline_bare_block","math",0);return l.block=!0,l.markup="$$",l.content=r.slice(1,o),t.pos=t.pos+o,!0}function Ote(t,e,r,n){const i=t.tokens;for(let a=i.length-1;a>=0;a--){const s=i[a],o=[];if(s.type!=="html_block")continue;const l=s.content;for(const u of l.matchAll(n)){if(!u.groups)continue;const d=u.groups.html_before_math,h=u.groups.math,f=u.groups.html_after_math;d&&o.push({...s,type:"html_block",map:null,content:d}),h&&o.push({...s,type:e,map:null,content:h,markup:r,block:!0,tag:"math"}),f&&o.push({...s,type:"html_block",map:null,content:f})}o.length>0&&i.splice(a,1,...o)}return!0}function Gx(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function znt(t,e){const r=e?.katex??Nnt,n=e?.enableBareBlocks,i=e?.enableMathBlockInHtml,a=e?.enableMathInlineInHtml,s=e?.enableFencedBlocks,l=[...e?.delimiters??Int].sort((b,_)=>_.left.length-b.left.length),u=l.some(b=>!b.display&&b.left==="$"),d=l.some(b=>b.display&&b.left==="$$");let h=0;for(const b of l)if(!(b.left==="$"&&!b.display||b.left==="$$"&&b.display)&&!b.display){const _=`math_inline_delim_${h++}`;t.inline.ruler.before("escape",_,(E,x)=>Dnt(E,x,b.left,b.right))}u&&t.inline.ruler.after("escape","math_inline",Lnt),d&&t.inline.ruler.after("escape","math_inline_block",Fnt),n&&t.inline.ruler.before("text","math_inline_bare_block",$nt),t.block.ruler.after("blockquote","math_block",(b,_,E,x)=>{if(n&&Bnt(b,_,E,x))return!0;for(const C of l)if(!(C.left==="$$"&&C.display)&&C.display&&Mnt(b,_,E,x,C.left,C.right))return!0;return d?Pnt(b,_,E,x):!1},{alt:["paragraph","reference","blockquote","list"]});const f=/(?[\s\S]*?)\$\$(?[\s\S]+?)\$\$(?(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,p=/(?[\s\S]*?)\$(?.*?)\$(?(?:(?!\$.*?\$)[\s\S])*)/gm;i&&t.core.ruler.push("math_block_in_html_block",b=>Ote(b,"math_block","$$",f)),a&&t.core.ruler.push("math_inline_in_html_block",b=>Ote(b,"math_inline","$",p));const g=b=>{const _=/\\begin\{(align|equation|gather|cd|alignat)\}/ig.test(b);try{return r.renderToString(b,{...e,displayMode:_})}catch(E){return e?.throwOnError&&console.log(E),`${Gx(E+"")}`}},m=(b,_)=>{const E=b[_].content,C=E.length>2&&E[0]==="`"&&E[E.length-1]==="`"?E.slice(1,-1):E;return g(C)},y=b=>{try{return`

${r.renderToString(b,{...e,displayMode:!0})}

`}catch(_){return e?.throwOnError&&console.log(_),`

${Gx(_+"")}

`}},v=(b,_)=>y(b[_].content)+` +`),p.content=g+t.getLines(e+1,d,t.tShift[e],!0)+(h&&h.trim()?h:""),p.map=[e,t.line],p.markup=i,!0}function Bnt(t,e,r,n){let i=!1,a=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];if(a+2>s||t.src.slice(a,a+2)!=="$$")return!1;a+=2;let o=t.src.slice(a,s);const l=[...o.matchAll(/\$\$/g)],u=o.replace(/\s+$/,"").length;if(l.length===1&&l[0].index===u-2)o=o.trim().slice(0,-2),i=!0;else if(l.length>1)return!1;if(n)return!0;let d,h,f;for(h=e;!i&&(h++,!(h>=r||(a=t.bMarks[h]+t.tShift[h],s=t.eMarks[h],a0){const p=t.bMarks[e-1]+t.tShift[e-1],g=t.eMarks[e-1],m=t.src.slice(p,g);if(!/^\s*$/.test(m))return!1}if(n)return!0;const l=[];let u=e,d,h=!1;e:for(;!h&&!(u>=r);u++){const p=t.bMarks[u]+t.tShift[u],g=t.eMarks[u];if(p"u")return!1;const o=n.slice(0,i+1).reduce((u,d)=>u+d.length,0)+i+1,l=t.push("math_inline_bare_block","math",0);return l.block=!0,l.markup="$$",l.content=r.slice(1,o),t.pos=t.pos+o,!0}function Ote(t,e,r,n){const i=t.tokens;for(let a=i.length-1;a>=0;a--){const s=i[a],o=[];if(s.type!=="html_block")continue;const l=s.content;for(const u of l.matchAll(n)){if(!u.groups)continue;const d=u.groups.html_before_math,h=u.groups.math,f=u.groups.html_after_math;d&&o.push({...s,type:"html_block",map:null,content:d}),h&&o.push({...s,type:e,map:null,content:h,markup:r,block:!0,tag:"math"}),f&&o.push({...s,type:"html_block",map:null,content:f})}o.length>0&&i.splice(a,1,...o)}return!0}function Gx(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Unt(t,e){const r=e?.katex??Int,n=e?.enableBareBlocks,i=e?.enableMathBlockInHtml,a=e?.enableMathInlineInHtml,s=e?.enableFencedBlocks,l=[...e?.delimiters??Ont].sort((b,_)=>_.left.length-b.left.length),u=l.some(b=>!b.display&&b.left==="$"),d=l.some(b=>b.display&&b.left==="$$");let h=0;for(const b of l)if(!(b.left==="$"&&!b.display||b.left==="$$"&&b.display)&&!b.display){const _=`math_inline_delim_${h++}`;t.inline.ruler.before("escape",_,(E,x)=>Lnt(E,x,b.left,b.right))}u&&t.inline.ruler.after("escape","math_inline",Mnt),d&&t.inline.ruler.after("escape","math_inline_block",$nt),n&&t.inline.ruler.before("text","math_inline_bare_block",znt),t.block.ruler.after("blockquote","math_block",(b,_,E,x)=>{if(n&&Fnt(b,_,E,x))return!0;for(const C of l)if(!(C.left==="$$"&&C.display)&&C.display&&Pnt(b,_,E,x,C.left,C.right))return!0;return d?Bnt(b,_,E,x):!1},{alt:["paragraph","reference","blockquote","list"]});const f=/(?[\s\S]*?)\$\$(?[\s\S]+?)\$\$(?(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,p=/(?[\s\S]*?)\$(?.*?)\$(?(?:(?!\$.*?\$)[\s\S])*)/gm;i&&t.core.ruler.push("math_block_in_html_block",b=>Ote(b,"math_block","$$",f)),a&&t.core.ruler.push("math_inline_in_html_block",b=>Ote(b,"math_inline","$",p));const g=b=>{const _=/\\begin\{(align|equation|gather|cd|alignat)\}/ig.test(b);try{return r.renderToString(b,{...e,displayMode:_})}catch(E){return e?.throwOnError&&console.log(E),`${Gx(E+"")}`}},m=(b,_)=>{const E=b[_].content,C=E.length>2&&E[0]==="`"&&E[E.length-1]==="`"?E.slice(1,-1):E;return g(C)},y=b=>{try{return`

${r.renderToString(b,{...e,displayMode:!0})}

`}catch(_){return e?.throwOnError&&console.log(_),`

${Gx(_+"")}

`}},v=(b,_)=>y(b[_].content)+` `;if(t.renderer.rules.math_inline=m,t.renderer.rules.math_inline_block=v,t.renderer.rules.math_inline_bare_block=v,t.renderer.rules.math_block=v,s){const b="math",_=t.renderer.rules.fence;t.renderer.rules.fence=function(E,x,C,T,w){const N=E[x];return N.info.trim().toLowerCase()===b&&s?y(N.content)+` -`:_?.call(this,E,x,C,T,w)||""}}}const Unt=Object.freeze(Object.defineProperty({__proto__:null,default:znt},Symbol.toStringTag,{value:"Module"}));class Yt extends Error{constructor(e,r){var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var d;a+15t.replace(Gnt,"-$1").toLowerCase(),qnt={"&":"&",">":">","<":"<",'"':""","'":"'"},Ynt=/[&><"']/g,ds=t=>String(t).replace(Ynt,e=>qnt[e]),s5=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?s5(t.body[0]):t:t.type==="font"?s5(t.body):t,Hnt=new Set(["mathord","textord","atom"]),X0=t=>Hnt.has(s5(t).type),Vnt=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},d6={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 "},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 ",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:t=>"#"+t},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),cli:"--min-rule-thickness ",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:t=>Math.max(0,t),cli:"-s, --max-size ",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:t=>Math.max(0,t),cli:"-e, --max-expand ",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function Wnt(t){if("default"in t)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class KG{constructor(e){e===void 0&&(e={}),e=e||{};for(var r of Object.keys(d6)){var n=d6[r],i=e[r];this[r]=i!==void 0?n.processor?n.processor(i):i:Wnt(n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Yt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=Vnt(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class gd{constructor(e,r,n){this.id=e,this.size=r,this.cramped=n}sup(){return $c[Knt[this.id]]}sub(){return $c[Xnt[this.id]]}fracNum(){return $c[jnt[this.id]]}fracDen(){return $c[Qnt[this.id]]}cramp(){return $c[Znt[this.id]]}text(){return $c[Jnt[this.id]]}isTight(){return this.size>=2}}var XG=0,h6=1,Xm=2,v0=3,ZS=4,_l=5,ab=6,Ps=7,$c=[new gd(XG,0,!1),new gd(h6,0,!0),new gd(Xm,1,!1),new gd(v0,1,!0),new gd(ZS,2,!1),new gd(_l,2,!0),new gd(ab,3,!1),new gd(Ps,3,!0)],Knt=[ZS,_l,ZS,_l,ab,Ps,ab,Ps],Xnt=[_l,_l,_l,_l,Ps,Ps,Ps,Ps],jnt=[Xm,v0,ZS,_l,ab,Ps,ab,Ps],Qnt=[v0,v0,_l,_l,Ps,Ps,Ps,Ps],Znt=[h6,h6,v0,v0,_l,_l,Ps,Ps],Jnt=[XG,h6,Xm,v0,Xm,v0,Xm,v0],Qr={DISPLAY:$c[XG],TEXT:$c[Xm],SCRIPT:$c[ZS],SCRIPTSCRIPT:$c[ab]},ZP=[{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]]}];function eit(t){for(var e=0;e=i[0]&&t<=i[1])return r.name}return null}var o5=[];ZP.forEach(t=>t.blocks.forEach(e=>o5.push(...e)));function dye(t){for(var e=0;e=o5[e]&&t<=o5[e+1])return!0;return!1}var Bg=80,tit=function(e,r){return"M95,"+(622+e+r)+` +`:_?.call(this,E,x,C,T,w)||""}}}const Gnt=Object.freeze(Object.defineProperty({__proto__:null,default:Unt},Symbol.toStringTag,{value:"Module"}));class Yt extends Error{constructor(e,r){var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var d;a+15t.replace(qnt,"-$1").toLowerCase(),Ynt={"&":"&",">":">","<":"<",'"':""","'":"'"},Hnt=/[&><"']/g,ds=t=>String(t).replace(Hnt,e=>Ynt[e]),s5=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?s5(t.body[0]):t:t.type==="font"?s5(t.body):t,Vnt=new Set(["mathord","textord","atom"]),X0=t=>Vnt.has(s5(t).type),Wnt=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},d6={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 "},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 ",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:t=>"#"+t},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),cli:"--min-rule-thickness ",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:t=>Math.max(0,t),cli:"-s, --max-size ",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:t=>Math.max(0,t),cli:"-e, --max-expand ",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function Knt(t){if("default"in t)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class KG{constructor(e){e===void 0&&(e={}),e=e||{};for(var r of Object.keys(d6)){var n=d6[r],i=e[r];this[r]=i!==void 0?n.processor?n.processor(i):i:Knt(n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Yt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=Wnt(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class gd{constructor(e,r,n){this.id=e,this.size=r,this.cramped=n}sup(){return $c[Xnt[this.id]]}sub(){return $c[jnt[this.id]]}fracNum(){return $c[Qnt[this.id]]}fracDen(){return $c[Znt[this.id]]}cramp(){return $c[Jnt[this.id]]}text(){return $c[eit[this.id]]}isTight(){return this.size>=2}}var XG=0,h6=1,Xm=2,v0=3,ZS=4,_l=5,ab=6,Ps=7,$c=[new gd(XG,0,!1),new gd(h6,0,!0),new gd(Xm,1,!1),new gd(v0,1,!0),new gd(ZS,2,!1),new gd(_l,2,!0),new gd(ab,3,!1),new gd(Ps,3,!0)],Xnt=[ZS,_l,ZS,_l,ab,Ps,ab,Ps],jnt=[_l,_l,_l,_l,Ps,Ps,Ps,Ps],Qnt=[Xm,v0,ZS,_l,ab,Ps,ab,Ps],Znt=[v0,v0,_l,_l,Ps,Ps,Ps,Ps],Jnt=[h6,h6,v0,v0,_l,_l,Ps,Ps],eit=[XG,h6,Xm,v0,Xm,v0,Xm,v0],Qr={DISPLAY:$c[XG],TEXT:$c[Xm],SCRIPT:$c[ZS],SCRIPTSCRIPT:$c[ab]},ZP=[{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]]}];function tit(t){for(var e=0;e=i[0]&&t<=i[1])return r.name}return null}var o5=[];ZP.forEach(t=>t.blocks.forEach(e=>o5.push(...e)));function dye(t){for(var e=0;e=o5[e]&&t<=o5[e+1])return!0;return!1}var Bg=80,rit=function(e,r){return"M95,"+(622+e+r)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.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 @@ -4399,7 +4399,7 @@ c5.3,-9.3,12,-14,20,-14 H400000v`+(40+e)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},rit=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119 +M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},nit=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+e/2.084+" -"+e+` @@ -4409,7 +4409,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5, c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},nit=function(e,r){return"M983 "+(10+e+r)+` +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},iit=function(e,r){return"M983 "+(10+e+r)+` l`+e/3.13+" -"+e+` c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 @@ -4418,7 +4418,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},iit=function(e,r){return"M424,"+(2398+e+r)+` +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},ait=function(e,r){return"M424,"+(2398+e+r)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-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 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 @@ -4428,18 +4428,18 @@ v`+(40+e)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+` -h400000v`+(40+e)+"h-400000z"},ait=function(e,r){return"M473,"+(2713+e+r)+` +h400000v`+(40+e)+"h-400000z"},sit=function(e,r){return"M473,"+(2713+e+r)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-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 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},sit=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},oit=function(e,r,n){var i=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` +606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},oit=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},lit=function(e,r,n){var i=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` H742v`+i+`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 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},lit=function(e,r,n){r=1e3*r;var i="";switch(e){case"sqrtMain":i=tit(r,Bg);break;case"sqrtSize1":i=rit(r,Bg);break;case"sqrtSize2":i=nit(r,Bg);break;case"sqrtSize3":i=iit(r,Bg);break;case"sqrtSize4":i=ait(r,Bg);break;case"sqrtTall":i=oit(r,Bg,n)}return i},cit=function(e,r){switch(e){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},Dte={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},cit=function(e,r,n){r=1e3*r;var i="";switch(e){case"sqrtMain":i=rit(r,Bg);break;case"sqrtSize1":i=nit(r,Bg);break;case"sqrtSize2":i=iit(r,Bg);break;case"sqrtSize3":i=ait(r,Bg);break;case"sqrtSize4":i=sit(r,Bg);break;case"sqrtTall":i=lit(r,Bg,n)}return i},uit=function(e,r){switch(e){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},Dte={doubleleftarrow:`M262 157 l10-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 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 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 @@ -4614,7 +4614,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z` c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -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 c-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 -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},uit=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},dit=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -4642,38 +4642,38 @@ c-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 c0,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 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --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.")}};class Kb{constructor(e){this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),r=0;rr.toText();return this.children.map(e).join("")}}var JP={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},dit={ex:!0,em:!0,mu:!0},hye=function(e){return typeof e!="string"&&(e=e.unit),e in JP||e in dit||e==="ex"},Ai=function(e,r){var n;if(e.unit in JP)n=JP[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,e.unit==="ex")n=i.fontMetrics().xHeight;else if(e.unit==="em")n=i.fontMetrics().quad;else throw new Yt("Invalid unit: '"+e.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},tr=function(e){return+e.toFixed(4)+"em"},fh=function(e){return e.filter(r=>r).join(" ")},fye=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},pye=function(e){var r=document.createElement(e);r.className=fh(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,gye=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+ds(fh(this.classes))+'"');var n="";for(var i of Object.keys(this.style))n+=WG(i)+":"+this.style[i]+";";n&&(r+=' style="'+ds(n)+'"');for(var a of Object.keys(this.attributes)){if(hit.test(a))throw new Yt("Invalid attribute name '"+a+"'");r+=" "+a+'="'+ds(this.attributes[a])+'"'}r+=">";for(var s=0;s",r};class Xb{constructor(e,r,n,i){fye.call(this,e,n,i),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return pye.call(this,"span")}toMarkup(){return gye.call(this,"span")}}let Zk=class{constructor(e,r,n,i){fye.call(this,r,i),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return pye.call(this,"a")}toMarkup(){return gye.call(this,"a")}};class fit{constructor(e,r,n){this.alt=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var r of Object.keys(this.style))e.style[r]=this.style[r];return e}toMarkup(){var e=''+ds(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=tr(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=fh(this.classes));for(var n of Object.keys(this.style))r=r||document.createElement("span"),r.style[n]=this.style[n];return r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="0&&(n+="margin-right:"+this.italic+"em;");for(var i of Object.keys(this.style))n+=WG(i)+":"+this.style[i]+";";n&&(e=!0,r+=' style="'+ds(n)+'"');var a=ds(this.text);return e?(r+=">",r+=a,r+="",r):a}}class k0{constructor(e,r){this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i':''}}class eB{constructor(e){this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e=" but got "+String(t)+".")}var yit=t=>t instanceof Xb||t instanceof Zk||t instanceof Kb,Wc={"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]}},qx={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]},Lte={Å:"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 mye(t,e){Wc[t]=e}function jG(t,e,r){if(!Wc[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),i=Wc[e][n];if(!i&&t[0]in Lte&&(n=Lte[t[0]].charCodeAt(0),i=Wc[e][n]),!i&&r==="text"&&dye(n)&&(i=Wc[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var E9={};function vit(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!E9[e]){var r=E9[e]={cssEmPerMu:qx.quad[e]/18};for(var n in qx)qx.hasOwnProperty(n)&&(r[n]=qx[n][e])}return E9[e]}var _it={bin:1,close:1,inner:1,open:1,punct:1,rel:1},bit={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},fi={math:{},text:{}};function K(t,e,r,n,i,a){fi[t][i]={font:e,group:r,replace:n},a&&n&&(fi[t][n]=fi[t][i])}var te="math",Bt="text",Ee="main",We="ams",Ei="accent-token",dr="bin",eo="close",jb="inner",Nr="mathord",ha="op-token",Wo="open",pT="punct",Ze="rel",j0="spacing",rt="textord";K(te,Ee,Ze,"≡","\\equiv",!0);K(te,Ee,Ze,"≺","\\prec",!0);K(te,Ee,Ze,"≻","\\succ",!0);K(te,Ee,Ze,"∼","\\sim",!0);K(te,Ee,Ze,"⊥","\\perp");K(te,Ee,Ze,"⪯","\\preceq",!0);K(te,Ee,Ze,"⪰","\\succeq",!0);K(te,Ee,Ze,"≃","\\simeq",!0);K(te,Ee,Ze,"∣","\\mid",!0);K(te,Ee,Ze,"≪","\\ll",!0);K(te,Ee,Ze,"≫","\\gg",!0);K(te,Ee,Ze,"≍","\\asymp",!0);K(te,Ee,Ze,"∥","\\parallel");K(te,Ee,Ze,"⋈","\\bowtie",!0);K(te,Ee,Ze,"⌣","\\smile",!0);K(te,Ee,Ze,"⊑","\\sqsubseteq",!0);K(te,Ee,Ze,"⊒","\\sqsupseteq",!0);K(te,Ee,Ze,"≐","\\doteq",!0);K(te,Ee,Ze,"⌢","\\frown",!0);K(te,Ee,Ze,"∋","\\ni",!0);K(te,Ee,Ze,"∝","\\propto",!0);K(te,Ee,Ze,"⊢","\\vdash",!0);K(te,Ee,Ze,"⊣","\\dashv",!0);K(te,Ee,Ze,"∋","\\owns");K(te,Ee,pT,".","\\ldotp");K(te,Ee,pT,"⋅","\\cdotp");K(te,Ee,pT,"⋅","·");K(Bt,Ee,rt,"⋅","·");K(te,Ee,rt,"#","\\#");K(Bt,Ee,rt,"#","\\#");K(te,Ee,rt,"&","\\&");K(Bt,Ee,rt,"&","\\&");K(te,Ee,rt,"ℵ","\\aleph",!0);K(te,Ee,rt,"∀","\\forall",!0);K(te,Ee,rt,"ℏ","\\hbar",!0);K(te,Ee,rt,"∃","\\exists",!0);K(te,Ee,rt,"∇","\\nabla",!0);K(te,Ee,rt,"♭","\\flat",!0);K(te,Ee,rt,"ℓ","\\ell",!0);K(te,Ee,rt,"♮","\\natural",!0);K(te,Ee,rt,"♣","\\clubsuit",!0);K(te,Ee,rt,"℘","\\wp",!0);K(te,Ee,rt,"♯","\\sharp",!0);K(te,Ee,rt,"♢","\\diamondsuit",!0);K(te,Ee,rt,"ℜ","\\Re",!0);K(te,Ee,rt,"♡","\\heartsuit",!0);K(te,Ee,rt,"ℑ","\\Im",!0);K(te,Ee,rt,"♠","\\spadesuit",!0);K(te,Ee,rt,"§","\\S",!0);K(Bt,Ee,rt,"§","\\S");K(te,Ee,rt,"¶","\\P",!0);K(Bt,Ee,rt,"¶","\\P");K(te,Ee,rt,"†","\\dag");K(Bt,Ee,rt,"†","\\dag");K(Bt,Ee,rt,"†","\\textdagger");K(te,Ee,rt,"‡","\\ddag");K(Bt,Ee,rt,"‡","\\ddag");K(Bt,Ee,rt,"‡","\\textdaggerdbl");K(te,Ee,eo,"⎱","\\rmoustache",!0);K(te,Ee,Wo,"⎰","\\lmoustache",!0);K(te,Ee,eo,"⟯","\\rgroup",!0);K(te,Ee,Wo,"⟮","\\lgroup",!0);K(te,Ee,dr,"∓","\\mp",!0);K(te,Ee,dr,"⊖","\\ominus",!0);K(te,Ee,dr,"⊎","\\uplus",!0);K(te,Ee,dr,"⊓","\\sqcap",!0);K(te,Ee,dr,"∗","\\ast");K(te,Ee,dr,"⊔","\\sqcup",!0);K(te,Ee,dr,"◯","\\bigcirc",!0);K(te,Ee,dr,"∙","\\bullet",!0);K(te,Ee,dr,"‡","\\ddagger");K(te,Ee,dr,"≀","\\wr",!0);K(te,Ee,dr,"⨿","\\amalg");K(te,Ee,dr,"&","\\And");K(te,Ee,Ze,"⟵","\\longleftarrow",!0);K(te,Ee,Ze,"⇐","\\Leftarrow",!0);K(te,Ee,Ze,"⟸","\\Longleftarrow",!0);K(te,Ee,Ze,"⟶","\\longrightarrow",!0);K(te,Ee,Ze,"⇒","\\Rightarrow",!0);K(te,Ee,Ze,"⟹","\\Longrightarrow",!0);K(te,Ee,Ze,"↔","\\leftrightarrow",!0);K(te,Ee,Ze,"⟷","\\longleftrightarrow",!0);K(te,Ee,Ze,"⇔","\\Leftrightarrow",!0);K(te,Ee,Ze,"⟺","\\Longleftrightarrow",!0);K(te,Ee,Ze,"↦","\\mapsto",!0);K(te,Ee,Ze,"⟼","\\longmapsto",!0);K(te,Ee,Ze,"↗","\\nearrow",!0);K(te,Ee,Ze,"↩","\\hookleftarrow",!0);K(te,Ee,Ze,"↪","\\hookrightarrow",!0);K(te,Ee,Ze,"↘","\\searrow",!0);K(te,Ee,Ze,"↼","\\leftharpoonup",!0);K(te,Ee,Ze,"⇀","\\rightharpoonup",!0);K(te,Ee,Ze,"↙","\\swarrow",!0);K(te,Ee,Ze,"↽","\\leftharpoondown",!0);K(te,Ee,Ze,"⇁","\\rightharpoondown",!0);K(te,Ee,Ze,"↖","\\nwarrow",!0);K(te,Ee,Ze,"⇌","\\rightleftharpoons",!0);K(te,We,Ze,"≮","\\nless",!0);K(te,We,Ze,"","\\@nleqslant");K(te,We,Ze,"","\\@nleqq");K(te,We,Ze,"⪇","\\lneq",!0);K(te,We,Ze,"≨","\\lneqq",!0);K(te,We,Ze,"","\\@lvertneqq");K(te,We,Ze,"⋦","\\lnsim",!0);K(te,We,Ze,"⪉","\\lnapprox",!0);K(te,We,Ze,"⊀","\\nprec",!0);K(te,We,Ze,"⋠","\\npreceq",!0);K(te,We,Ze,"⋨","\\precnsim",!0);K(te,We,Ze,"⪹","\\precnapprox",!0);K(te,We,Ze,"≁","\\nsim",!0);K(te,We,Ze,"","\\@nshortmid");K(te,We,Ze,"∤","\\nmid",!0);K(te,We,Ze,"⊬","\\nvdash",!0);K(te,We,Ze,"⊭","\\nvDash",!0);K(te,We,Ze,"⋪","\\ntriangleleft");K(te,We,Ze,"⋬","\\ntrianglelefteq",!0);K(te,We,Ze,"⊊","\\subsetneq",!0);K(te,We,Ze,"","\\@varsubsetneq");K(te,We,Ze,"⫋","\\subsetneqq",!0);K(te,We,Ze,"","\\@varsubsetneqq");K(te,We,Ze,"≯","\\ngtr",!0);K(te,We,Ze,"","\\@ngeqslant");K(te,We,Ze,"","\\@ngeqq");K(te,We,Ze,"⪈","\\gneq",!0);K(te,We,Ze,"≩","\\gneqq",!0);K(te,We,Ze,"","\\@gvertneqq");K(te,We,Ze,"⋧","\\gnsim",!0);K(te,We,Ze,"⪊","\\gnapprox",!0);K(te,We,Ze,"⊁","\\nsucc",!0);K(te,We,Ze,"⋡","\\nsucceq",!0);K(te,We,Ze,"⋩","\\succnsim",!0);K(te,We,Ze,"⪺","\\succnapprox",!0);K(te,We,Ze,"≆","\\ncong",!0);K(te,We,Ze,"","\\@nshortparallel");K(te,We,Ze,"∦","\\nparallel",!0);K(te,We,Ze,"⊯","\\nVDash",!0);K(te,We,Ze,"⋫","\\ntriangleright");K(te,We,Ze,"⋭","\\ntrianglerighteq",!0);K(te,We,Ze,"","\\@nsupseteqq");K(te,We,Ze,"⊋","\\supsetneq",!0);K(te,We,Ze,"","\\@varsupsetneq");K(te,We,Ze,"⫌","\\supsetneqq",!0);K(te,We,Ze,"","\\@varsupsetneqq");K(te,We,Ze,"⊮","\\nVdash",!0);K(te,We,Ze,"⪵","\\precneqq",!0);K(te,We,Ze,"⪶","\\succneqq",!0);K(te,We,Ze,"","\\@nsubseteqq");K(te,We,dr,"⊴","\\unlhd");K(te,We,dr,"⊵","\\unrhd");K(te,We,Ze,"↚","\\nleftarrow",!0);K(te,We,Ze,"↛","\\nrightarrow",!0);K(te,We,Ze,"⇍","\\nLeftarrow",!0);K(te,We,Ze,"⇏","\\nRightarrow",!0);K(te,We,Ze,"↮","\\nleftrightarrow",!0);K(te,We,Ze,"⇎","\\nLeftrightarrow",!0);K(te,We,Ze,"△","\\vartriangle");K(te,We,rt,"ℏ","\\hslash");K(te,We,rt,"▽","\\triangledown");K(te,We,rt,"◊","\\lozenge");K(te,We,rt,"Ⓢ","\\circledS");K(te,We,rt,"®","\\circledR");K(Bt,We,rt,"®","\\circledR");K(te,We,rt,"∡","\\measuredangle",!0);K(te,We,rt,"∄","\\nexists");K(te,We,rt,"℧","\\mho");K(te,We,rt,"Ⅎ","\\Finv",!0);K(te,We,rt,"⅁","\\Game",!0);K(te,We,rt,"‵","\\backprime");K(te,We,rt,"▲","\\blacktriangle");K(te,We,rt,"▼","\\blacktriangledown");K(te,We,rt,"■","\\blacksquare");K(te,We,rt,"⧫","\\blacklozenge");K(te,We,rt,"★","\\bigstar");K(te,We,rt,"∢","\\sphericalangle",!0);K(te,We,rt,"∁","\\complement",!0);K(te,We,rt,"ð","\\eth",!0);K(Bt,Ee,rt,"ð","ð");K(te,We,rt,"╱","\\diagup");K(te,We,rt,"╲","\\diagdown");K(te,We,rt,"□","\\square");K(te,We,rt,"□","\\Box");K(te,We,rt,"◊","\\Diamond");K(te,We,rt,"¥","\\yen",!0);K(Bt,We,rt,"¥","\\yen",!0);K(te,We,rt,"✓","\\checkmark",!0);K(Bt,We,rt,"✓","\\checkmark");K(te,We,rt,"ℶ","\\beth",!0);K(te,We,rt,"ℸ","\\daleth",!0);K(te,We,rt,"ℷ","\\gimel",!0);K(te,We,rt,"ϝ","\\digamma",!0);K(te,We,rt,"ϰ","\\varkappa");K(te,We,Wo,"┌","\\@ulcorner",!0);K(te,We,eo,"┐","\\@urcorner",!0);K(te,We,Wo,"└","\\@llcorner",!0);K(te,We,eo,"┘","\\@lrcorner",!0);K(te,We,Ze,"≦","\\leqq",!0);K(te,We,Ze,"⩽","\\leqslant",!0);K(te,We,Ze,"⪕","\\eqslantless",!0);K(te,We,Ze,"≲","\\lesssim",!0);K(te,We,Ze,"⪅","\\lessapprox",!0);K(te,We,Ze,"≊","\\approxeq",!0);K(te,We,dr,"⋖","\\lessdot");K(te,We,Ze,"⋘","\\lll",!0);K(te,We,Ze,"≶","\\lessgtr",!0);K(te,We,Ze,"⋚","\\lesseqgtr",!0);K(te,We,Ze,"⪋","\\lesseqqgtr",!0);K(te,We,Ze,"≑","\\doteqdot");K(te,We,Ze,"≓","\\risingdotseq",!0);K(te,We,Ze,"≒","\\fallingdotseq",!0);K(te,We,Ze,"∽","\\backsim",!0);K(te,We,Ze,"⋍","\\backsimeq",!0);K(te,We,Ze,"⫅","\\subseteqq",!0);K(te,We,Ze,"⋐","\\Subset",!0);K(te,We,Ze,"⊏","\\sqsubset",!0);K(te,We,Ze,"≼","\\preccurlyeq",!0);K(te,We,Ze,"⋞","\\curlyeqprec",!0);K(te,We,Ze,"≾","\\precsim",!0);K(te,We,Ze,"⪷","\\precapprox",!0);K(te,We,Ze,"⊲","\\vartriangleleft");K(te,We,Ze,"⊴","\\trianglelefteq");K(te,We,Ze,"⊨","\\vDash",!0);K(te,We,Ze,"⊪","\\Vvdash",!0);K(te,We,Ze,"⌣","\\smallsmile");K(te,We,Ze,"⌢","\\smallfrown");K(te,We,Ze,"≏","\\bumpeq",!0);K(te,We,Ze,"≎","\\Bumpeq",!0);K(te,We,Ze,"≧","\\geqq",!0);K(te,We,Ze,"⩾","\\geqslant",!0);K(te,We,Ze,"⪖","\\eqslantgtr",!0);K(te,We,Ze,"≳","\\gtrsim",!0);K(te,We,Ze,"⪆","\\gtrapprox",!0);K(te,We,dr,"⋗","\\gtrdot");K(te,We,Ze,"⋙","\\ggg",!0);K(te,We,Ze,"≷","\\gtrless",!0);K(te,We,Ze,"⋛","\\gtreqless",!0);K(te,We,Ze,"⪌","\\gtreqqless",!0);K(te,We,Ze,"≖","\\eqcirc",!0);K(te,We,Ze,"≗","\\circeq",!0);K(te,We,Ze,"≜","\\triangleq",!0);K(te,We,Ze,"∼","\\thicksim");K(te,We,Ze,"≈","\\thickapprox");K(te,We,Ze,"⫆","\\supseteqq",!0);K(te,We,Ze,"⋑","\\Supset",!0);K(te,We,Ze,"⊐","\\sqsupset",!0);K(te,We,Ze,"≽","\\succcurlyeq",!0);K(te,We,Ze,"⋟","\\curlyeqsucc",!0);K(te,We,Ze,"≿","\\succsim",!0);K(te,We,Ze,"⪸","\\succapprox",!0);K(te,We,Ze,"⊳","\\vartriangleright");K(te,We,Ze,"⊵","\\trianglerighteq");K(te,We,Ze,"⊩","\\Vdash",!0);K(te,We,Ze,"∣","\\shortmid");K(te,We,Ze,"∥","\\shortparallel");K(te,We,Ze,"≬","\\between",!0);K(te,We,Ze,"⋔","\\pitchfork",!0);K(te,We,Ze,"∝","\\varpropto");K(te,We,Ze,"◀","\\blacktriangleleft");K(te,We,Ze,"∴","\\therefore",!0);K(te,We,Ze,"∍","\\backepsilon");K(te,We,Ze,"▶","\\blacktriangleright");K(te,We,Ze,"∵","\\because",!0);K(te,We,Ze,"⋘","\\llless");K(te,We,Ze,"⋙","\\gggtr");K(te,We,dr,"⊲","\\lhd");K(te,We,dr,"⊳","\\rhd");K(te,We,Ze,"≂","\\eqsim",!0);K(te,Ee,Ze,"⋈","\\Join");K(te,We,Ze,"≑","\\Doteq",!0);K(te,We,dr,"∔","\\dotplus",!0);K(te,We,dr,"∖","\\smallsetminus");K(te,We,dr,"⋒","\\Cap",!0);K(te,We,dr,"⋓","\\Cup",!0);K(te,We,dr,"⩞","\\doublebarwedge",!0);K(te,We,dr,"⊟","\\boxminus",!0);K(te,We,dr,"⊞","\\boxplus",!0);K(te,We,dr,"⋇","\\divideontimes",!0);K(te,We,dr,"⋉","\\ltimes",!0);K(te,We,dr,"⋊","\\rtimes",!0);K(te,We,dr,"⋋","\\leftthreetimes",!0);K(te,We,dr,"⋌","\\rightthreetimes",!0);K(te,We,dr,"⋏","\\curlywedge",!0);K(te,We,dr,"⋎","\\curlyvee",!0);K(te,We,dr,"⊝","\\circleddash",!0);K(te,We,dr,"⊛","\\circledast",!0);K(te,We,dr,"⋅","\\centerdot");K(te,We,dr,"⊺","\\intercal",!0);K(te,We,dr,"⋒","\\doublecap");K(te,We,dr,"⋓","\\doublecup");K(te,We,dr,"⊠","\\boxtimes",!0);K(te,We,Ze,"⇢","\\dashrightarrow",!0);K(te,We,Ze,"⇠","\\dashleftarrow",!0);K(te,We,Ze,"⇇","\\leftleftarrows",!0);K(te,We,Ze,"⇆","\\leftrightarrows",!0);K(te,We,Ze,"⇚","\\Lleftarrow",!0);K(te,We,Ze,"↞","\\twoheadleftarrow",!0);K(te,We,Ze,"↢","\\leftarrowtail",!0);K(te,We,Ze,"↫","\\looparrowleft",!0);K(te,We,Ze,"⇋","\\leftrightharpoons",!0);K(te,We,Ze,"↶","\\curvearrowleft",!0);K(te,We,Ze,"↺","\\circlearrowleft",!0);K(te,We,Ze,"↰","\\Lsh",!0);K(te,We,Ze,"⇈","\\upuparrows",!0);K(te,We,Ze,"↿","\\upharpoonleft",!0);K(te,We,Ze,"⇃","\\downharpoonleft",!0);K(te,Ee,Ze,"⊶","\\origof",!0);K(te,Ee,Ze,"⊷","\\imageof",!0);K(te,We,Ze,"⊸","\\multimap",!0);K(te,We,Ze,"↭","\\leftrightsquigarrow",!0);K(te,We,Ze,"⇉","\\rightrightarrows",!0);K(te,We,Ze,"⇄","\\rightleftarrows",!0);K(te,We,Ze,"↠","\\twoheadrightarrow",!0);K(te,We,Ze,"↣","\\rightarrowtail",!0);K(te,We,Ze,"↬","\\looparrowright",!0);K(te,We,Ze,"↷","\\curvearrowright",!0);K(te,We,Ze,"↻","\\circlearrowright",!0);K(te,We,Ze,"↱","\\Rsh",!0);K(te,We,Ze,"⇊","\\downdownarrows",!0);K(te,We,Ze,"↾","\\upharpoonright",!0);K(te,We,Ze,"⇂","\\downharpoonright",!0);K(te,We,Ze,"⇝","\\rightsquigarrow",!0);K(te,We,Ze,"⇝","\\leadsto");K(te,We,Ze,"⇛","\\Rrightarrow",!0);K(te,We,Ze,"↾","\\restriction");K(te,Ee,rt,"‘","`");K(te,Ee,rt,"$","\\$");K(Bt,Ee,rt,"$","\\$");K(Bt,Ee,rt,"$","\\textdollar");K(te,Ee,rt,"%","\\%");K(Bt,Ee,rt,"%","\\%");K(te,Ee,rt,"_","\\_");K(Bt,Ee,rt,"_","\\_");K(Bt,Ee,rt,"_","\\textunderscore");K(te,Ee,rt,"∠","\\angle",!0);K(te,Ee,rt,"∞","\\infty",!0);K(te,Ee,rt,"′","\\prime");K(te,Ee,rt,"△","\\triangle");K(te,Ee,rt,"Γ","\\Gamma",!0);K(te,Ee,rt,"Δ","\\Delta",!0);K(te,Ee,rt,"Θ","\\Theta",!0);K(te,Ee,rt,"Λ","\\Lambda",!0);K(te,Ee,rt,"Ξ","\\Xi",!0);K(te,Ee,rt,"Π","\\Pi",!0);K(te,Ee,rt,"Σ","\\Sigma",!0);K(te,Ee,rt,"Υ","\\Upsilon",!0);K(te,Ee,rt,"Φ","\\Phi",!0);K(te,Ee,rt,"Ψ","\\Psi",!0);K(te,Ee,rt,"Ω","\\Omega",!0);K(te,Ee,rt,"A","Α");K(te,Ee,rt,"B","Β");K(te,Ee,rt,"E","Ε");K(te,Ee,rt,"Z","Ζ");K(te,Ee,rt,"H","Η");K(te,Ee,rt,"I","Ι");K(te,Ee,rt,"K","Κ");K(te,Ee,rt,"M","Μ");K(te,Ee,rt,"N","Ν");K(te,Ee,rt,"O","Ο");K(te,Ee,rt,"P","Ρ");K(te,Ee,rt,"T","Τ");K(te,Ee,rt,"X","Χ");K(te,Ee,rt,"¬","\\neg",!0);K(te,Ee,rt,"¬","\\lnot");K(te,Ee,rt,"⊤","\\top");K(te,Ee,rt,"⊥","\\bot");K(te,Ee,rt,"∅","\\emptyset");K(te,We,rt,"∅","\\varnothing");K(te,Ee,Nr,"α","\\alpha",!0);K(te,Ee,Nr,"β","\\beta",!0);K(te,Ee,Nr,"γ","\\gamma",!0);K(te,Ee,Nr,"δ","\\delta",!0);K(te,Ee,Nr,"ϵ","\\epsilon",!0);K(te,Ee,Nr,"ζ","\\zeta",!0);K(te,Ee,Nr,"η","\\eta",!0);K(te,Ee,Nr,"θ","\\theta",!0);K(te,Ee,Nr,"ι","\\iota",!0);K(te,Ee,Nr,"κ","\\kappa",!0);K(te,Ee,Nr,"λ","\\lambda",!0);K(te,Ee,Nr,"μ","\\mu",!0);K(te,Ee,Nr,"ν","\\nu",!0);K(te,Ee,Nr,"ξ","\\xi",!0);K(te,Ee,Nr,"ο","\\omicron",!0);K(te,Ee,Nr,"π","\\pi",!0);K(te,Ee,Nr,"ρ","\\rho",!0);K(te,Ee,Nr,"σ","\\sigma",!0);K(te,Ee,Nr,"τ","\\tau",!0);K(te,Ee,Nr,"υ","\\upsilon",!0);K(te,Ee,Nr,"ϕ","\\phi",!0);K(te,Ee,Nr,"χ","\\chi",!0);K(te,Ee,Nr,"ψ","\\psi",!0);K(te,Ee,Nr,"ω","\\omega",!0);K(te,Ee,Nr,"ε","\\varepsilon",!0);K(te,Ee,Nr,"ϑ","\\vartheta",!0);K(te,Ee,Nr,"ϖ","\\varpi",!0);K(te,Ee,Nr,"ϱ","\\varrho",!0);K(te,Ee,Nr,"ς","\\varsigma",!0);K(te,Ee,Nr,"φ","\\varphi",!0);K(te,Ee,dr,"∗","*",!0);K(te,Ee,dr,"+","+");K(te,Ee,dr,"−","-",!0);K(te,Ee,dr,"⋅","\\cdot",!0);K(te,Ee,dr,"∘","\\circ",!0);K(te,Ee,dr,"÷","\\div",!0);K(te,Ee,dr,"±","\\pm",!0);K(te,Ee,dr,"×","\\times",!0);K(te,Ee,dr,"∩","\\cap",!0);K(te,Ee,dr,"∪","\\cup",!0);K(te,Ee,dr,"∖","\\setminus",!0);K(te,Ee,dr,"∧","\\land");K(te,Ee,dr,"∨","\\lor");K(te,Ee,dr,"∧","\\wedge",!0);K(te,Ee,dr,"∨","\\vee",!0);K(te,Ee,rt,"√","\\surd");K(te,Ee,Wo,"⟨","\\langle",!0);K(te,Ee,Wo,"∣","\\lvert");K(te,Ee,Wo,"∥","\\lVert");K(te,Ee,eo,"?","?");K(te,Ee,eo,"!","!");K(te,Ee,eo,"⟩","\\rangle",!0);K(te,Ee,eo,"∣","\\rvert");K(te,Ee,eo,"∥","\\rVert");K(te,Ee,Ze,"=","=");K(te,Ee,Ze,":",":");K(te,Ee,Ze,"≈","\\approx",!0);K(te,Ee,Ze,"≅","\\cong",!0);K(te,Ee,Ze,"≥","\\ge");K(te,Ee,Ze,"≥","\\geq",!0);K(te,Ee,Ze,"←","\\gets");K(te,Ee,Ze,">","\\gt",!0);K(te,Ee,Ze,"∈","\\in",!0);K(te,Ee,Ze,"","\\@not");K(te,Ee,Ze,"⊂","\\subset",!0);K(te,Ee,Ze,"⊃","\\supset",!0);K(te,Ee,Ze,"⊆","\\subseteq",!0);K(te,Ee,Ze,"⊇","\\supseteq",!0);K(te,We,Ze,"⊈","\\nsubseteq",!0);K(te,We,Ze,"⊉","\\nsupseteq",!0);K(te,Ee,Ze,"⊨","\\models");K(te,Ee,Ze,"←","\\leftarrow",!0);K(te,Ee,Ze,"≤","\\le");K(te,Ee,Ze,"≤","\\leq",!0);K(te,Ee,Ze,"<","\\lt",!0);K(te,Ee,Ze,"→","\\rightarrow",!0);K(te,Ee,Ze,"→","\\to");K(te,We,Ze,"≱","\\ngeq",!0);K(te,We,Ze,"≰","\\nleq",!0);K(te,Ee,j0," ","\\ ");K(te,Ee,j0," ","\\space");K(te,Ee,j0," ","\\nobreakspace");K(Bt,Ee,j0," ","\\ ");K(Bt,Ee,j0," "," ");K(Bt,Ee,j0," ","\\space");K(Bt,Ee,j0," ","\\nobreakspace");K(te,Ee,j0,null,"\\nobreak");K(te,Ee,j0,null,"\\allowbreak");K(te,Ee,pT,",",",");K(te,Ee,pT,";",";");K(te,We,dr,"⊼","\\barwedge",!0);K(te,We,dr,"⊻","\\veebar",!0);K(te,Ee,dr,"⊙","\\odot",!0);K(te,Ee,dr,"⊕","\\oplus",!0);K(te,Ee,dr,"⊗","\\otimes",!0);K(te,Ee,rt,"∂","\\partial",!0);K(te,Ee,dr,"⊘","\\oslash",!0);K(te,We,dr,"⊚","\\circledcirc",!0);K(te,We,dr,"⊡","\\boxdot",!0);K(te,Ee,dr,"△","\\bigtriangleup");K(te,Ee,dr,"▽","\\bigtriangledown");K(te,Ee,dr,"†","\\dagger");K(te,Ee,dr,"⋄","\\diamond");K(te,Ee,dr,"⋆","\\star");K(te,Ee,dr,"◃","\\triangleleft");K(te,Ee,dr,"▹","\\triangleright");K(te,Ee,Wo,"{","\\{");K(Bt,Ee,rt,"{","\\{");K(Bt,Ee,rt,"{","\\textbraceleft");K(te,Ee,eo,"}","\\}");K(Bt,Ee,rt,"}","\\}");K(Bt,Ee,rt,"}","\\textbraceright");K(te,Ee,Wo,"{","\\lbrace");K(te,Ee,eo,"}","\\rbrace");K(te,Ee,Wo,"[","\\lbrack",!0);K(Bt,Ee,rt,"[","\\lbrack",!0);K(te,Ee,eo,"]","\\rbrack",!0);K(Bt,Ee,rt,"]","\\rbrack",!0);K(te,Ee,Wo,"(","\\lparen",!0);K(te,Ee,eo,")","\\rparen",!0);K(Bt,Ee,rt,"<","\\textless",!0);K(Bt,Ee,rt,">","\\textgreater",!0);K(te,Ee,Wo,"⌊","\\lfloor",!0);K(te,Ee,eo,"⌋","\\rfloor",!0);K(te,Ee,Wo,"⌈","\\lceil",!0);K(te,Ee,eo,"⌉","\\rceil",!0);K(te,Ee,rt,"\\","\\backslash");K(te,Ee,rt,"∣","|");K(te,Ee,rt,"∣","\\vert");K(Bt,Ee,rt,"|","\\textbar",!0);K(te,Ee,rt,"∥","\\|");K(te,Ee,rt,"∥","\\Vert");K(Bt,Ee,rt,"∥","\\textbardbl");K(Bt,Ee,rt,"~","\\textasciitilde");K(Bt,Ee,rt,"\\","\\textbackslash");K(Bt,Ee,rt,"^","\\textasciicircum");K(te,Ee,Ze,"↑","\\uparrow",!0);K(te,Ee,Ze,"⇑","\\Uparrow",!0);K(te,Ee,Ze,"↓","\\downarrow",!0);K(te,Ee,Ze,"⇓","\\Downarrow",!0);K(te,Ee,Ze,"↕","\\updownarrow",!0);K(te,Ee,Ze,"⇕","\\Updownarrow",!0);K(te,Ee,ha,"∐","\\coprod");K(te,Ee,ha,"⋁","\\bigvee");K(te,Ee,ha,"⋀","\\bigwedge");K(te,Ee,ha,"⨄","\\biguplus");K(te,Ee,ha,"⋂","\\bigcap");K(te,Ee,ha,"⋃","\\bigcup");K(te,Ee,ha,"∫","\\int");K(te,Ee,ha,"∫","\\intop");K(te,Ee,ha,"∬","\\iint");K(te,Ee,ha,"∭","\\iiint");K(te,Ee,ha,"∏","\\prod");K(te,Ee,ha,"∑","\\sum");K(te,Ee,ha,"⨂","\\bigotimes");K(te,Ee,ha,"⨁","\\bigoplus");K(te,Ee,ha,"⨀","\\bigodot");K(te,Ee,ha,"∮","\\oint");K(te,Ee,ha,"∯","\\oiint");K(te,Ee,ha,"∰","\\oiiint");K(te,Ee,ha,"⨆","\\bigsqcup");K(te,Ee,ha,"∫","\\smallint");K(Bt,Ee,jb,"…","\\textellipsis");K(te,Ee,jb,"…","\\mathellipsis");K(Bt,Ee,jb,"…","\\ldots",!0);K(te,Ee,jb,"…","\\ldots",!0);K(te,Ee,jb,"⋯","\\@cdots",!0);K(te,Ee,jb,"⋱","\\ddots",!0);K(te,Ee,rt,"⋮","\\varvdots");K(Bt,Ee,rt,"⋮","\\varvdots");K(te,Ee,Ei,"ˊ","\\acute");K(te,Ee,Ei,"ˋ","\\grave");K(te,Ee,Ei,"¨","\\ddot");K(te,Ee,Ei,"~","\\tilde");K(te,Ee,Ei,"ˉ","\\bar");K(te,Ee,Ei,"˘","\\breve");K(te,Ee,Ei,"ˇ","\\check");K(te,Ee,Ei,"^","\\hat");K(te,Ee,Ei,"⃗","\\vec");K(te,Ee,Ei,"˙","\\dot");K(te,Ee,Ei,"˚","\\mathring");K(te,Ee,Nr,"","\\@imath");K(te,Ee,Nr,"","\\@jmath");K(te,Ee,rt,"ı","ı");K(te,Ee,rt,"ȷ","ȷ");K(Bt,Ee,rt,"ı","\\i",!0);K(Bt,Ee,rt,"ȷ","\\j",!0);K(Bt,Ee,rt,"ß","\\ss",!0);K(Bt,Ee,rt,"æ","\\ae",!0);K(Bt,Ee,rt,"œ","\\oe",!0);K(Bt,Ee,rt,"ø","\\o",!0);K(Bt,Ee,rt,"Æ","\\AE",!0);K(Bt,Ee,rt,"Œ","\\OE",!0);K(Bt,Ee,rt,"Ø","\\O",!0);K(Bt,Ee,Ei,"ˊ","\\'");K(Bt,Ee,Ei,"ˋ","\\`");K(Bt,Ee,Ei,"ˆ","\\^");K(Bt,Ee,Ei,"˜","\\~");K(Bt,Ee,Ei,"ˉ","\\=");K(Bt,Ee,Ei,"˘","\\u");K(Bt,Ee,Ei,"˙","\\.");K(Bt,Ee,Ei,"¸","\\c");K(Bt,Ee,Ei,"˚","\\r");K(Bt,Ee,Ei,"ˇ","\\v");K(Bt,Ee,Ei,"¨",'\\"');K(Bt,Ee,Ei,"˝","\\H");K(Bt,Ee,Ei,"◯","\\textcircled");var yye={"--":!0,"---":!0,"``":!0,"''":!0};K(Bt,Ee,rt,"–","--",!0);K(Bt,Ee,rt,"–","\\textendash");K(Bt,Ee,rt,"—","---",!0);K(Bt,Ee,rt,"—","\\textemdash");K(Bt,Ee,rt,"‘","`",!0);K(Bt,Ee,rt,"‘","\\textquoteleft");K(Bt,Ee,rt,"’","'",!0);K(Bt,Ee,rt,"’","\\textquoteright");K(Bt,Ee,rt,"“","``",!0);K(Bt,Ee,rt,"“","\\textquotedblleft");K(Bt,Ee,rt,"”","''",!0);K(Bt,Ee,rt,"”","\\textquotedblright");K(te,Ee,rt,"°","\\degree",!0);K(Bt,Ee,rt,"°","\\degree");K(Bt,Ee,rt,"°","\\textdegree",!0);K(te,Ee,rt,"£","\\pounds");K(te,Ee,rt,"£","\\mathsterling",!0);K(Bt,Ee,rt,"£","\\pounds");K(Bt,Ee,rt,"£","\\textsterling",!0);K(te,We,rt,"✠","\\maltese");K(Bt,We,rt,"✠","\\maltese");var Mte='0123456789/@."';for(var S9=0;S9{var r=t.charCodeAt(0),n=t.charCodeAt(1),i=(r-55296)*1024+(n-56320)+65536,a=e==="math"?0:1;if(119808<=i&&i<120484){var s=Math.floor((i-119808)/26);return[Vx[s][2],Vx[s][a]]}else if(120782<=i&&i<=120831){var o=Math.floor((i-120782)/10);return[$te[o][2],$te[o][a]]}else{if(i===120485||i===120486)return[Vx[0][2],Vx[0][a]];if(1204860)return Rs(a,u,i,r,s.concat(d));if(l){var h,f;if(l==="boldsymbol"){var p=Sit(a,i,r,s,n);h=p.fontName,f=[p.fontClass]}else o?(h=rB[l].fontName,f=[l]):(h=Wx(l,r.fontWeight,r.fontShape),f=[l,r.fontWeight,r.fontShape]);if(Jk(a,h,i).metrics)return Rs(a,h,i,r,s.concat(f));if(yye.hasOwnProperty(a)&&h.slice(0,10)==="Typewriter"){for(var g=[],m=0;m{if(fh(t.classes)!==fh(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var i of Object.keys(e.style))if(t.style[i]!==e.style[i])return!1;return!0},vye=t=>{for(var e=0;er&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=i},Gt=function(e,r,n,i){var a=new Xb(e,r,n,i);return ZG(a),a},gh=(t,e,r,n)=>new Xb(t,e,r,n),sb=function(e,r,n){var i=Gt([e],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=tr(i.height),i.maxFontSize=1,i},xit=function(e,r,n,i){var a=new Zk(e,r,n,i);return ZG(a),a},Q0=function(e){var r=new Kb(e);return ZG(r),r},ob=function(e,r){return e instanceof Kb?Gt([],[e],r):e},Cit=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s{var r=Gt(["mspace"],[],e),n=Ai(t,e);return r.style.marginRight=tr(n),r},Wx=function(e,r,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},rB={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"}},bye={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Eye=function(e,r){var[n,i,a]=bye[e],s=new ph(n),o=new k0([s],{width:tr(i),height:tr(a),style:"width:"+tr(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=gh(["overlay"],[o],r);return l.height=a,l.style.height=tr(a),l.style.width=tr(i),l},Ci={number:3,unit:"mu"},of={number:4,unit:"mu"},$u={number:5,unit:"mu"},wit={mord:{mop:Ci,mbin:of,mrel:$u,minner:Ci},mop:{mord:Ci,mop:Ci,mrel:$u,minner:Ci},mbin:{mord:of,mop:of,mopen:of,minner:of},mrel:{mord:$u,mop:$u,mopen:$u,minner:$u},mopen:{},mclose:{mop:Ci,mbin:of,mrel:$u,minner:Ci},mpunct:{mord:Ci,mop:Ci,mrel:$u,mopen:Ci,mclose:Ci,mpunct:Ci,minner:Ci},minner:{mord:Ci,mop:Ci,mbin:of,mrel:$u,mopen:Ci,mpunct:Ci,minner:Ci}},kit={mord:{mop:Ci},mop:{mord:Ci,mop:Ci},mbin:{},mrel:{},mopen:{},mclose:{mop:Ci},mpunct:{},minner:{mop:Ci}},Sye={},p6={},g6={};function sr(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},l=0;l{var y=m.classes[0],v=g.classes[0];y==="mbin"&&Rit.has(v)?m.classes[0]="mord":v==="mbin"&&Ait.has(y)&&(g.classes[0]="mord")},{node:h},f,p),nB(a,(g,m)=>{var y,v,b=aB(m),_=aB(g),E=b&&_?g.hasClass("mtight")?(y=kit[b])==null?void 0:y[_]:(v=wit[b])==null?void 0:v[_]:null;if(E)return _ye(E,u)},{node:h},f,p),a},nB=function(e,r,n,i,a){i&&e.push(i);for(var s=0;sf=>{e.splice(h+1,0,f),s++})(s)}i&&e.pop()},Tye=function(e){return e instanceof Kb||e instanceof Zk||e instanceof Xb&&e.hasClass("enclosing")?e:null},iB=function(e,r){var n=Tye(e);if(n){var i=n.children;if(i.length){if(r==="right")return iB(i[i.length-1],"right");if(r==="left")return iB(i[0],"left")}}return e},aB=function(e,r){if(!e)return null;r&&(e=iB(e,r));var n=e.classes[0];return Iit[n]||null},JS=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Gt(r.concat(n))},Rn=function(e,r,n){if(!e)return Gt();if(p6[e.type]){var i=p6[e.type](e,r);if(n&&r.size!==n.size){i=Gt(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Yt("Got group of unknown type: '"+e.type+"'")};function Kx(t,e){var r=Gt(["base"],t,e),n=Gt(["strut"]);return n.style.height=tr(r.height+r.depth),r.depth&&(n.style.verticalAlign=tr(-r.depth)),r.children.unshift(n),r}function sB(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=ka(t,e,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],s=[],o=0;o0&&(a.push(Kx(s,e)),s=[]),a.push(n[o]));s.length>0&&a.push(Kx(s,e));var u;r?(u=Kx(ka(r,e,!0),e),u.classes=["tag"],a.push(u)):i&&a.push(i);var d=Gt(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),u){var h=u.children[0];h.style.height=tr(d.height+d.depth),d.depth&&(h.style.verticalAlign=tr(-d.depth))}return d}function xye(t){return new Kb(t)}class Kt{constructor(e,r,n){this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&e.setAttribute(r,this.attributes[r]);this.classes.length>0&&(e.className=fh(this.classes));for(var n=0;n0&&(e+=' class ="'+ds(fh(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}}class sa{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ds(this.toText())}toText(){return this.text}}class Cye{constructor(e){this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",tr(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Oit=new Set(["\\imath","\\jmath"]),Dit=new Set(["mrow","mtable"]),Il=function(e,r,n){return fi[r][e]&&fi[r][e].replace&&e.charCodeAt(0)!==55349&&!(yye.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=fi[r][e].replace),new sa(e)},JG=function(e){return e.length===1?e[0]:new Kt("mrow",e)},eq=function(e,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=e.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=e.text;if(Oit.has(a))return null;if(fi[i][a]){var s=fi[i][a].replace;s&&(a=s)}var o=rB[n].fontName;return jG(a,o,i)?rB[n].variant:null};function w9(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof sa&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof sa&&r.text===","}else return!1}var Ko=function(e,r,n){if(e.length===1){var i=Un(e[0],r);return n&&i instanceof Kt&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||w9(s))){var u=l.children[0];u instanceof Kt&&u.type==="mn"&&(u.children=[...s.children,...u.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof sa&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof sa&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),a.pop())}}}a.push(l),s=l}return a},mh=function(e,r,n){return JG(Ko(e,r,n))},Un=function(e,r){if(!e)return new Kt("mrow");if(g6[e.type]){var n=g6[e.type](e,r);return n}else throw new Yt("Got group of unknown type: '"+e.type+"'")};function zte(t,e,r,n,i){var a=Ko(t,r),s;a.length===1&&a[0]instanceof Kt&&Dit.has(a[0].type)?s=a[0]:s=new Kt("mrow",a);var o=new Kt("annotation",[new sa(e)]);o.setAttribute("encoding","application/x-tex");var l=new Kt("semantics",[s,o]),u=new Kt("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var d=i?"katex":"katex-mathml";return Gt([d],[u])}var Lit=[[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]],Ute=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Gte=function(e,r){return r.size<2?e:Lit[e-1][r.size-1]};class Qu{constructor(e){this.style=e.style,this.color=e.color,this.size=e.size||Qu.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=Ute[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={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};return Object.assign(r,e),new Qu(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Gte(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:Ute[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=Gte(Qu.BASESIZE,e);return this.size===r&&this.textSize===Qu.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var 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!==Qu.BASESIZE?["sizing","reset-size"+this.size,"size"+Qu.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=vit(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Qu.BASESIZE=6;var wye=function(e){return new Qu({style:e.displayMode?Qr.DISPLAY:Qr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},kye=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=Gt(n,[e])}return e},Mit=function(e,r,n){var i=wye(n),a;if(n.output==="mathml")return zte(e,r,i,n.displayMode,!0);if(n.output==="html"){var s=sB(e,i);a=Gt(["katex"],[s])}else{var o=zte(e,r,i,n.displayMode,!1),l=sB(e,i);a=Gt(["katex"],[o,l])}return kye(a,n)},Pit=function(e,r,n){var i=wye(n),a=sB(e,i),s=Gt(["katex"],[a]);return kye(s,n)},Bit={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":"="},t7=function(e){var r=new Kt("mo",[new sa(Bit[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},Fit={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]},$it=new Set(["widehat","widecheck","widetilde","utilde"]),r7=function(e,r){function n(){var o=4e5,l=e.label.slice(1);if($it.has(l)){var u=e,d=u.base.type==="ordgroup"?u.base.body.length:1,h,f,p;if(d>5)l==="widehat"||l==="widecheck"?(h=420,o=2364,p=.42,f=l+"4"):(h=312,o=2340,p=.34,f="tilde4");else{var g=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][g],h=[0,239,300,360,420][g],p=[0,.24,.3,.3,.36,.42][g],f=l+g):(o=[0,600,1033,2339,2340][g],h=[0,260,286,306,312][g],p=[0,.26,.286,.3,.306,.34][g],f="tilde"+g)}var m=new ph(f),y=new k0([m],{width:"100%",height:tr(p),viewBox:"0 0 "+o+" "+h,preserveAspectRatio:"none"});return{span:gh([],[y],r),minWidth:0,height:p}}else{var v=[],b=Fit[l],[_,E,x]=b,C=x/1e3,T=_.length,w,N;if(T===1){var O=b[3];w=["hide-tail"],N=[O]}else if(T===2)w=["halfarrow-left","halfarrow-right"],N=["xMinYMin","xMaxYMin"];else if(T===3)w=["brace-left","brace-center","brace-right"],N=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+T+" children.");for(var M=0;M0&&(i.style.minWidth=tr(a)),i},zit=function(e,r,n,i,a){var s,o=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=Gt(["stretchy",r],[],a),r==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new eB({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new eB({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new k0(u,{width:"100%",height:tr(o)});s=gh([],[d],a)}return s.height=o,s.style.height=tr(o),s};function tn(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function n7(t){var e=i7(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function i7(t){return t&&(t.type==="atom"||bit.hasOwnProperty(t.type))?t:null}var Aye=t=>{if(t instanceof Fo)return t;if(yit(t)&&t.children.length===1)return Aye(t.children[0])},tq=(t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=tn(t.base,"accent"),r=n.base,t.base=r,i=mit(Rn(t,e)),t.base=n):(n=tn(t,"accent"),r=n.base);var a=Rn(r,e.havingCrampedStyle()),s=n.isShifty&&X0(r),o=0;if(s){var l,u;o=(l=(u=Aye(a))==null?void 0:u.skew)!=null?l:0}var d=n.label==="\\c",h=d?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=r7(n,e),f=kn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+tr(2*o)+")",marginLeft:tr(2*o)}:void 0}]});else{var p,g;n.label==="\\vec"?(p=Eye("vec",e),g=bye.vec[1]):(p=e7({mode:n.mode,text:n.label},e,"textord"),p=git(p),p.italic=0,g=p.width,d&&(h+=p.depth)),f=Gt(["accent-body"],[p]);var m=n.label==="\\textcircled";m&&(f.classes.push("accent-full"),h=a.height);var y=o;m||(y-=g/2),f.style.left=tr(y),n.label==="\\textcircled"&&(f.style.top=".2em"),f=kn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:f}]})}var v=Gt(["mord","accent"],[f],e);return i?(i.children[0]=v,i.height=Math.max(v.height,i.height),i.classes[0]="mord",i):v},Rye=(t,e)=>{var r=t.isStretchy?t7(t.label):new Kt("mo",[Il(t.label,t.mode)]),n=new Kt("mover",[Un(t.base,e),r]);return n.setAttribute("accent","true"),n},Uit=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));sr({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:(t,e)=>{var r=m6(e[0]),n=!Uit.test(t.funcName),i=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:tq,mathmlBuilder:Rye});sr({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:tq,mathmlBuilder:Rye});sr({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(t,e)=>{var r=Rn(t.base,e),n=r7(t,e),i=t.label==="\\utilde"?.12:0,a=kn({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return Gt(["mord","accentunder"],[a],e)},mathmlBuilder:(t,e)=>{var r=t7(t.label),n=new Kt("munder",[Un(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var Xx=t=>{var e=new Kt("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};sr({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(t,e,r){var{parser:n,funcName:i}=t;return{type:"xArrow",mode:n.mode,label:i,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),i=ob(Rn(t.body,n,e),e),a=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=ob(Rn(t.below,n,e),e),s.classes.push(a+"-arrow-pad"));var o=r7(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(u-=i.depth);var d;if(s){var h=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=kn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:h}]})}else d=kn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l}]});return d.children[0].children[0].children[1].classes.push("svg-align"),Gt(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var r=t7(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var i=Xx(Un(t.body,e));if(t.below){var a=Xx(Un(t.below,e));n=new Kt("munderover",[r,a,i])}else n=new Kt("mover",[r,i])}else if(t.below){var s=Xx(Un(t.below,e));n=new Kt("munder",[r,s])}else n=Xx(),n=new Kt("mover",[r,n]);return n}});function Nye(t,e){var r=ka(t.body,e,!0);return Gt([t.mclass],r,e)}function Iye(t,e){var r,n=Ko(t.body,e);return t.mclass==="minner"?r=new Kt("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new Kt("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new Kt("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):t.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}sr({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:aa(i),isCharacterBox:X0(i)}},htmlBuilder:Nye,mathmlBuilder:Iye});var a7=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};sr({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:a7(e[0]),body:aa(e[1]),isCharacterBox:X0(e[1])}}});sr({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,i=e[1],a=e[0],s;n!=="\\stackrel"?s=a7(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:aa(i)},l={type:"supsub",mode:a.mode,base:o,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:X0(l)}},htmlBuilder:Nye,mathmlBuilder:Iye});sr({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:a7(e[0]),body:aa(e[0])}},htmlBuilder(t,e){var r=ka(t.body,e,!0),n=Gt([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=Ko(t.body,e),n=new Kt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Git={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},qte=()=>({type:"styling",body:[],mode:"math",style:"display"}),Yte=t=>t.type==="textord"&&t.text==="@",qit=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function Yit(t,e,r){var n=Git[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[e[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Hit(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new Yt("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],i=[n],a=0;aAV".includes(u))for(var h=0;h<2;h++){for(var f=!0,p=l+1;pAV=|." after @',s[l]);var g=Yit(u,d,t),m={type:"styling",body:[g],mode:"math",style:"display"};n.push(m),o=qte()}a%2===0?n.push(o):n.shift(),n=[],i.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var y=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:y,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}sr({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=ob(Rn(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=tr(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new Kt("mrow",[Un(t.label,e)]);return r=new Kt("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Kt("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});sr({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:r}=t;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=ob(Rn(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Kt("mrow",[Un(t.fragment,e)])}});sr({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=tn(e[0],"ordgroup"),i=n.body,a="",s=0;s=1114111)throw new Yt("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var Oye=(t,e)=>{var r=ka(t.body,e.withColor(t.color),!1);return Q0(r)},Dye=(t,e)=>{var r=Ko(t.body,e.withColor(t.color)),n=new Kt("mstyle",r);return n.setAttribute("mathcolor",t.color),n};sr({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:r}=t,n=tn(e[0],"color-token").color,i=e[1];return{type:"color",mode:r.mode,color:n,body:aa(i)}},htmlBuilder:Oye,mathmlBuilder:Dye});sr({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,i=tn(e[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:Oye,mathmlBuilder:Dye});sr({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&tn(i,"size").value}},htmlBuilder(t,e){var r=Gt(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=tr(Ai(t.size,e)))),r},mathmlBuilder(t,e){var r=new Kt("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",tr(Ai(t.size,e)))),r}});var oB={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Lye=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Yt("Expected a control sequence",t);return e},Vit=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},Mye=(t,e,r,n)=>{var i=t.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,i,n)};sr({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:r}=t;e.consumeSpaces();var n=e.fetch();if(oB[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=oB[n.text]),tn(e.parseFunction(),"internal");throw new Yt("Invalid token after macro prefix",n)}});sr({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=e.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Yt("Expected a control sequence",n);for(var a=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[a].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Yt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new Yt('Argument number "'+n.text+'" out of order');a++,o.push([])}else{if(n.text==="EOF")throw new Yt("Expected a macro definition");o[a].push(n.text)}var{tokens:l}=e.gullet.consumeArg();return s&&l.unshift(s),(r==="\\edef"||r==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},r===oB[r]),{type:"internal",mode:e.mode}}});sr({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=Lye(e.gullet.popToken());e.gullet.consumeSpaces();var i=Vit(e);return Mye(e,n,i,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});sr({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=Lye(e.gullet.popToken()),i=e.gullet.popToken(),a=e.gullet.popToken();return Mye(e,n,a,r==="\\\\globalfuture"),e.gullet.pushToken(a),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var gE=function(e,r,n){var i=fi.math[e]&&fi.math[e].replace,a=jG(i||e,r,n);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return a},rq=function(e,r,n,i){var a=n.havingBaseStyle(r),s=Gt(i.concat(a.sizingClasses(n)),[e],n),o=a.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},Pye=function(e,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=tr(a),e.height-=a,e.depth+=a},Wit=function(e,r,n,i,a,s){var o=Rs(e,"Main-Regular",a,i),l=rq(o,r,i,s);return Pye(l,i,r),l},Kit=function(e,r,n,i){return Rs(e,"Size"+r+"-Regular",n,i)},Bye=function(e,r,n,i,a,s){var o=Kit(e,r,a,i),l=rq(Gt(["delimsizing","size"+r],[o],i),Qr.TEXT,i,s);return n&&Pye(l,i,Qr.TEXT),l},k9=function(e,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Gt(["delimsizinginner",i],[Gt([],[Rs(e,r,n)])]);return{type:"elem",elem:a}},A9=function(e,r,n){var i=Wc["Size4-Regular"][e.charCodeAt(0)]?Wc["Size4-Regular"][e.charCodeAt(0)][4]:Wc["Size1-Regular"][e.charCodeAt(0)][4],a=new ph("inner",cit(e,Math.round(1e3*r))),s=new k0([a],{width:tr(i),height:tr(r),style:"width:"+tr(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=gh([],[s],n);return o.height=r,o.style.height=tr(r),o.style.width=tr(i),{type:"elem",elem:o}},lB=.008,jx={type:"kern",size:-1*lB},Xit=new Set(["|","\\lvert","\\rvert","\\vert"]),jit=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Fye=function(e,r,n,i,a,s){var o,l,u,d,h="",f=0;o=u=d=e,l=null;var p="Size1-Regular";e==="\\uparrow"?u=d="⏐":e==="\\Uparrow"?u=d="‖":e==="\\downarrow"?o=u="⏐":e==="\\Downarrow"?o=u="‖":e==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):Xit.has(e)?(u="∣",h="vert",f=333):jit.has(e)?(u="∥",h="doublevert",f=556):e==="["||e==="\\lbrack"?(o="⎡",u="⎢",d="⎣",p="Size4-Regular",h="lbrack",f=667):e==="]"||e==="\\rbrack"?(o="⎤",u="⎥",d="⎦",p="Size4-Regular",h="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(u=o="⎢",d="⎣",p="Size4-Regular",h="lfloor",f=667):e==="\\lceil"||e==="⌈"?(o="⎡",u=d="⎢",p="Size4-Regular",h="lceil",f=667):e==="\\rfloor"||e==="⌋"?(u=o="⎥",d="⎦",p="Size4-Regular",h="rfloor",f=667):e==="\\rceil"||e==="⌉"?(o="⎤",u=d="⎥",p="Size4-Regular",h="rceil",f=667):e==="("||e==="\\lparen"?(o="⎛",u="⎜",d="⎝",p="Size4-Regular",h="lparen",f=875):e===")"||e==="\\rparen"?(o="⎞",u="⎟",d="⎠",p="Size4-Regular",h="rparen",f=875):e==="\\{"||e==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",p="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",d="⎩",u="⎪",p="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",d="⎭",u="⎪",p="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",d="⎩",u="⎪",p="Size4-Regular");var g=gE(o,p,a),m=g.height+g.depth,y=gE(u,p,a),v=y.height+y.depth,b=gE(d,p,a),_=b.height+b.depth,E=0,x=1;if(l!==null){var C=gE(l,p,a);E=C.height+C.depth,x=2}var T=m+_+E,w=Math.max(0,Math.ceil((r-T)/(x*v))),N=T+w*x*v,O=i.fontMetrics().axisHeight;n&&(O*=i.sizeMultiplier);var M=N/2-O,$=[];if(h.length>0){var F=N-m-_,A=Math.round(N*1e3),I=uit(h,Math.round(F*1e3)),D=new ph(h,I),L=(f/1e3).toFixed(3)+"em",R=(A/1e3).toFixed(3)+"em",P=new k0([D],{width:L,height:R,viewBox:"0 0 "+f+" "+A}),z=gh([],[P],i);z.height=A/1e3,z.style.width=L,z.style.height=R,$.push({type:"elem",elem:z})}else{if($.push(k9(d,p,a)),$.push(jx),l===null){var B=N-m-_+2*lB;$.push(A9(u,B,i))}else{var q=(N-m-_-E)/2+2*lB;$.push(A9(u,q,i)),$.push(jx),$.push(k9(l,p,a)),$.push(jx),$.push(A9(u,q,i))}$.push(jx),$.push(k9(o,p,a))}var Y=i.havingBaseStyle(Qr.TEXT),Q=kn({positionType:"bottom",positionData:M,children:$});return rq(Gt(["delimsizing","mult"],[Q],Y),Qr.TEXT,i,s)},R9=80,N9=.08,I9=function(e,r,n,i,a){var s=lit(e,i,n),o=new ph(e,s),l=new k0([o],{width:"400em",height:tr(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return gh(["hide-tail"],[l],a)},Qit=function(e,r){var n=r.havingBaseSizing(),i=qye("\\surd",e*n.sizeMultiplier,Gye,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,h;return i.type==="small"?(d=1e3+1e3*s+R9,e<1?a=1:e<1.4&&(a=.7),l=(1+s+N9)/a,u=(1+s)/a,o=I9("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",h=.833/a):i.type==="large"?(d=(1e3+R9)*eS[i.size],u=(eS[i.size]+s)/a,l=(eS[i.size]+s+N9)/a,o=I9("sqrtSize"+i.size,l,d,s,r),o.style.minWidth="1.02em",h=1/a):(l=e+s+N9,u=e+s,d=Math.floor(1e3*e+s)+R9,o=I9("sqrtTall",l,d,s,r),o.style.minWidth="0.742em",h=1.056),o.height=u,o.style.height=tr(l),{span:o,advanceWidth:h,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},$ye=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Zit=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),zye=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),eS=[0,1.2,1.8,2.4,3],Uye=function(e,r,n,i,a){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),$ye.has(e)||zye.has(e))return Bye(e,r,!1,n,i,a);if(Zit.has(e))return Fye(e,eS[r],!1,n,i,a);throw new Yt("Illegal delimiter: '"+e+"'")},Jit=[{type:"small",style:Qr.SCRIPTSCRIPT},{type:"small",style:Qr.SCRIPT},{type:"small",style:Qr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],eat=[{type:"small",style:Qr.SCRIPTSCRIPT},{type:"small",style:Qr.SCRIPT},{type:"small",style:Qr.TEXT},{type:"stack"}],Gye=[{type:"small",style:Qr.SCRIPTSCRIPT},{type:"small",style:Qr.SCRIPT},{type:"small",style:Qr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],tat=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},qye=function(e,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;sr)return o}return n[n.length-1]},cB=function(e,r,n,i,a,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;zye.has(e)?o=Jit:$ye.has(e)?o=Gye:o=eat;var l=qye(e,r,o,i);return l.type==="small"?Wit(e,l.style,n,i,a,s):l.type==="large"?Bye(e,l.size,n,i,a,s):Fye(e,r,n,i,a,s)},O9=function(e,r,n,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),h=Math.max(d/500*l,2*d-u);return cB(e,h,!0,i,a,s)},Hte={"\\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}},rat=new Set(["(","\\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 s7(t,e){var r=i7(t);if(r&&rat.has(r.text))return r;throw r?new Yt("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new Yt("Invalid delimiter type '"+t.type+"'",t)}sr({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:(t,e)=>{var r=s7(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:Hte[t.funcName].size,mclass:Hte[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?Gt([t.mclass]):Uye(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Il(t.delim,t.mode));var r=new Kt("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=tr(eS[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Vte(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}sr({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Yt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:s7(e[0],t).text,color:r}}});sr({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=s7(e[0],t),n=t.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=tn(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(t,e)=>{Vte(t);for(var r=ka(t.body,e,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s{Vte(t);var r=Ko(t.body,e);if(t.left!=="."){var n=new Kt("mo",[Il(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var i=new Kt("mo",[Il(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),r.push(i)}return JG(r)}});sr({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=s7(e[0],t);if(!t.parser.leftrightDepth)throw new Yt("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;if(t.delim===".")r=JS(e,[]);else{r=Uye(t.delim,1,e,t.mode,[]);var n={delim:t.delim,options:e};r.isMiddle=n}return r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?Il("|","text"):Il(t.delim,t.mode),n=new Kt("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var nq=(t,e)=>{var r=ob(Rn(t.body,e),e),n=t.label.slice(1),i=e.sizeMultiplier,a,s=0,o=X0(t.body);if(n==="sout")a=Gt(["stretchy","sout"]),a.height=e.fontMetrics().defaultRuleThickness/i,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=Ai({number:.6,unit:"pt"},e),u=Ai({number:.35,unit:"ex"},e),d=e.havingBaseSizing();i=i/d.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=tr(h/2+l);var f=Math.floor(1e3*h*i),p=sit(f),g=new k0([new ph("phase",p)],{width:"400em",height:tr(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=gh(["hide-tail"],[g],e),a.style.height=tr(h),s=r.depth+l+u}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var m=0,y=0,v=0;/box/.test(n)?(v=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(n==="colorbox"?0:v),y=m):n==="angl"?(v=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*v,y=Math.max(0,.25-r.depth)):(m=o?.2:0,y=m),a=zit(r,n,m,y,e),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=tr(v)):n==="angl"&&v!==.049&&(a.style.borderTopWidth=tr(v),a.style.borderRightWidth=tr(v)),s=r.depth+y,t.backgroundColor&&(a.style.backgroundColor=t.backgroundColor,t.borderColor&&(a.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=kn({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]});else{var _=/cancel|phase/.test(n)?["svg-align"]:[];b=kn({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:_}]})}return/cancel/.test(n)&&(b.height=r.height,b.depth=r.depth),/cancel/.test(n)&&!o?Gt(["mord","cancel-lap"],[b],e):Gt(["mord"],[b],e)},iq=(t,e)=>{var r=0,n=new Kt(t.label.includes("colorbox")?"mpadded":"menclose",[Un(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(t.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};sr({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=tn(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:nq,mathmlBuilder:iq});sr({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=tn(e[0],"color-token").color,s=tn(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:nq,mathmlBuilder:iq});sr({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});sr({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:nq,mathmlBuilder:iq});sr({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var Yye={};function bu(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var e=t.parser.settings;if(!e.displayMode)throw new Yt("{"+t.envName+"} can be used only in display mode.")},nat=new Set(["gather","gather*"]);function aq(t){if(!t.includes("ed"))return!t.includes("*")}function Oh(t,e,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:h,leqno:f}=e;if(t.gullet.beginGroup(),u||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=t.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new Yt("Invalid \\arraystretch: "+p)}t.gullet.beginGroup();var g=[],m=[g],y=[],v=[],b=l!=null?[]:void 0;function _(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function E(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new Oo("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),v.push(Wte(t));;){var x=t.parseExpression(!1,u?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var C={type:"ordgroup",mode:t.mode,body:x};r&&(C={type:"styling",mode:t.mode,style:r,body:[C]}),g.push(C);var T=t.fetch().text;if(T==="&"){if(h&&g.length===h){if(u||o)throw new Yt("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(T==="\\end"){E(),g.length===1&&C.type==="styling"&&C.body.length===1&&C.body[0].type==="ordgroup"&&C.body[0].body.length===0&&(m.length>1||!d)&&m.pop(),v.length0&&(_+=.25),u.push({pos:_,isDashed:it[Oe]})}for(E(s[0]),n=0;n0&&(M+=b,Tit))for(n=0;n=o)){var re=void 0;if(i>0||e.hskipBeforeAndAfter){var ce,ae;re=(ce=(ae=Y)==null?void 0:ae.pregap)!=null?ce:f,re!==0&&(I=Gt(["arraycolsep"],[]),I.style.width=tr(re),A.push(I))}var se=[];for(n=0;n0){for(var Ne=sb("hline",r,d),ut=sb("hdashline",r,d),De=[{type:"elem",elem:qe,shift:0}];u.length>0;){var Je=u.pop(),st=Je.pos-$;Je.isDashed?De.push({type:"elem",elem:ut,shift:st}):De.push({type:"elem",elem:Ne,shift:st})}qe=kn({positionType:"individualShift",children:De})}if(L.length===0)return Gt(["mord"],[qe],r);var ct=kn({positionType:"individualShift",children:L}),ot=Gt(["tag"],[ct],r);return Q0([qe,ot])},iat={c:"center ",l:"left ",r:"right "},Su=function(e,r){for(var n=[],i=new Kt("mtd",[],["mtr-glue"]),a=new Kt("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,m="",y=!1,v=0,b=g.length;g[0].type==="separator"&&(f+="top ",v=1),g[g.length-1].type==="separator"&&(f+="bottom ",b-=1);for(var _=v;_0?"left ":"",f+=N[N.length-1].length>0?"right ":"";for(var O=1;O0&&p&&(y=1),n[g]={type:"align",align:m,pregap:y,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};bu({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=i7(e[0]),n=r?[e[0]]:tn(e[0],"ordgroup").body,i=n.map(function(s){var o=n7(s),l=o.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Yt("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Oh(t.parser,a,sq(t.envName))},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new Yt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=Oh(t.parser,n,sq(t.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[a],left:e[0],right:e[1],rightColor:void 0}:a},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=Oh(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=i7(e[0]),n=r?[e[0]]:tn(e[0],"ordgroup").body,i=n.map(function(o){var l=n7(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new Yt("Unknown column alignment: "+u,o)});if(i.length>1)throw new Yt("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},s=Oh(t.parser,a,"script");if(s.body.length>0&&s.body[0].length>1)throw new Yt("{subarray} can contain only one column");return s},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Oh(t.parser,e,sq(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Vye,htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){nat.has(t.envName)&&o7(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:aq(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Oh(t.parser,e,"display")},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Vye,htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){o7(t);var e={autoTag:aq(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Oh(t.parser,e,"display")},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["CD"],props:{numArgs:0},handler(t){return o7(t),Hit(t.parser)},htmlBuilder:Eu,mathmlBuilder:Su});Ae("\\nonumber","\\gdef\\@eqnsw{0}");Ae("\\notag","\\nonumber");sr({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new Yt(t.funcName+" valid only within array environment")}});var Kte=Yye;sr({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];if(i.type!=="ordgroup")throw new Yt("Invalid environment name",i);for(var a="",s=0;s{var r=t.font,n=e.withFont(r);return Rn(t.body,n)},Kye=(t,e)=>{var r=t.font,n=e.withFont(r);return Un(t.body,n)},Xte={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};sr({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=m6(e[0]),a=n;return a in Xte&&(a=Xte[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:Wye,mathmlBuilder:Kye});sr({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"mclass",mode:r.mode,mclass:a7(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:X0(n)}}});sr({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n,breakOnTokenText:i}=t,{mode:a}=r,s=r.parseExpression(!0,i),o="math"+n.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:Wye,mathmlBuilder:Kye});var aat=(t,e)=>{var r=e.style,n=r.fracNum(),i=r.fracDen(),a;a=e.havingStyle(n);var s=Rn(t.numer,a,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height0?g=3*f:g=7*f,m=e.fontMetrics().denom1):(h>0?(p=e.fontMetrics().num2,g=f):(p=e.fontMetrics().num3,g=3*f),m=e.fontMetrics().denom2);var y;if(d){var b=e.fontMetrics().axisHeight;p-s.depth-(b+.5*h){var r=new Kt("mfrac",[Un(t.numer,e),Un(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=Ai(t.barSize,e);r.setAttribute("linethickness",tr(n))}if(t.leftDelim!=null||t.rightDelim!=null){var i=[];if(t.leftDelim!=null){var a=new Kt("mo",[new sa(t.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),t.rightDelim!=null){var s=new Kt("mo",[new sa(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}return JG(i)}return r},Xye=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};sr({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1],s,o=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var u=n==="\\cfrac",d=null;return u||n.startsWith("\\d")?d="display":n.startsWith("\\t")&&(d="text"),Xye({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},d)},htmlBuilder:aat,mathmlBuilder:sat});sr({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:n}}});var jte=["display","text","script","scriptscript"],Qte=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};sr({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:r}=t,n=e[4],i=e[5],a=m6(e[0]),s=a.type==="atom"&&a.family==="open"?Qte(a.text):null,o=m6(e[1]),l=o.type==="atom"&&o.family==="close"?Qte(o.text):null,u=tn(e[2],"size"),d,h=null;u.isBlank?d=!0:(h=u.value,d=h.number>0);var f=null,p=e[3];if(p.type==="ordgroup"){if(p.body.length>0){var g=tn(p.body[0],"textord");f=jte[Number(g.text)]}}else p=tn(p,"textord"),f=jte[Number(p.text)];return Xye({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:d,barSize:h,leftDelim:s,rightDelim:l},f)}});sr({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:r,funcName:n,token:i}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:tn(e[0],"size").value,token:i}}});sr({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=tn(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var s=e[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null}}});var jye=(t,e)=>{var r=e.style,n,i;t.type==="supsub"?(n=t.sup?Rn(t.sup,e.havingStyle(r.sup()),e):Rn(t.sub,e.havingStyle(r.sub()),e),i=tn(t.base,"horizBrace")):i=tn(t,"horizBrace");var a=Rn(i.base,e.havingBaseStyle(Qr.DISPLAY)),s=r7(i,e),o;if(i.isOver?(o=kn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]}),o.children[0].children[0].children[1].classes.push("svg-align")):(o=kn({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]}),o.children[0].children[0].children[0].classes.push("svg-align")),n){var l=Gt(["mord",i.isOver?"mover":"munder"],[o],e);i.isOver?o=kn({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=kn({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return Gt(["mord",i.isOver?"mover":"munder"],[o],e)},oat=(t,e)=>{var r=t7(t.label);return new Kt(t.isOver?"mover":"munder",[Un(t.base,e),r])};sr({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:jye,mathmlBuilder:oat});sr({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[1],i=tn(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:aa(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=ka(t.body,e,!1);return xit(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=mh(t.body,e);return r instanceof Kt||(r=new Kt("mrow",[r])),r.setAttribute("href",t.href),r}});sr({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=tn(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:r,funcName:n,token:i}=t,a=tn(e[0],"raw").string,s=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(n){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),d=0;d{var r=ka(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var i=Gt(n,r,e);for(var a in t.attributes)a!=="class"&&t.attributes.hasOwnProperty(a)&&i.setAttribute(a,t.attributes[a]);return i},mathmlBuilder:(t,e)=>mh(t.body,e)});sr({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"htmlmathml",mode:r.mode,html:aa(e[0]),mathml:aa(e[1])}},htmlBuilder:(t,e)=>{var r=ka(t.html,e,!1);return Q0(r)},mathmlBuilder:(t,e)=>mh(t.mathml,e)});var D9=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new Yt("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!hye(n))throw new Yt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};sr({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,r)=>{var{parser:n}=t,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=tn(r[0],"raw").string,u=l.split(","),d=0;d{var r=Ai(t.height,e),n=0;t.totalheight.number>0&&(n=Ai(t.totalheight,e)-r);var i=0;t.width.number>0&&(i=Ai(t.width,e));var a={height:tr(r+n)};i>0&&(a.width=tr(i)),n>0&&(a.verticalAlign=tr(-n));var s=new fit(t.src,t.alt,a);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new Kt("mglyph",[]);r.setAttribute("alt",t.alt);var n=Ai(t.height,e),i=0;if(t.totalheight.number>0&&(i=Ai(t.totalheight,e)-n,r.setAttribute("valign",tr(-i))),r.setAttribute("height",tr(n+i)),t.width.number>0){var a=Ai(t.width,e);r.setAttribute("width",tr(a))}return r.setAttribute("src",t.src),r}});sr({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=tn(e[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(t,e){return _ye(t.dimension,e)},mathmlBuilder(t,e){var r=Ai(t.dimension,e);return new Cye(r)}});sr({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=Gt([],[Rn(t.body,e)]),r=Gt(["inner"],[r],e)):r=Gt(["inner"],[Rn(t.body,e)]);var n=Gt(["fix"],[]),i=Gt([t.alignment],[r,n],e),a=Gt(["strut"]);return a.style.height=tr(i.height+i.depth),i.depth&&(a.style.verticalAlign=tr(-i.depth)),i.children.unshift(a),i=Gt(["thinbox"],[i],e),Gt(["mord","vbox"],[i],e)},mathmlBuilder:(t,e)=>{var r=new Kt("mpadded",[Un(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});sr({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:n}=t,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:s}}});sr({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new Yt("Mismatched "+t.funcName)}});var Zte=(t,e)=>{switch(e.style.size){case Qr.DISPLAY.size:return t.display;case Qr.TEXT.size:return t.text;case Qr.SCRIPT.size:return t.script;case Qr.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};sr({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:aa(e[0]),text:aa(e[1]),script:aa(e[2]),scriptscript:aa(e[3])}},htmlBuilder:(t,e)=>{var r=Zte(t,e),n=ka(r,e,!1);return Q0(n)},mathmlBuilder:(t,e)=>{var r=Zte(t,e);return mh(r,e)}});var Qye=(t,e,r,n,i,a,s)=>{t=Gt([],[t]);var o=r&&X0(r),l,u;if(e){var d=Rn(e,n.havingStyle(i.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=Rn(r,n.havingStyle(i.sub()),n);l={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var f;if(u&&l){var p=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+s;f=kn({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tr(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:tr(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var g=t.height-s;f=kn({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tr(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t}]})}else if(u){var m=t.depth+s;f=kn({positionType:"bottom",positionData:m,children:[{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:tr(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var y=[f];if(l&&a!==0&&!o){var v=Gt(["mspace"],[],n);v.style.marginRight=tr(a),y.unshift(v)}return Gt(["mop","op-limits"],y,n)},Zye=new Set(["\\smallint"]),Qb=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=tn(t.base,"op"),i=!0):a=tn(t,"op");var s=e.style,o=!1;s.size===Qr.DISPLAY.size&&a.symbol&&!Zye.has(a.name)&&(o=!0);var l;if(a.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),l=Rs(a.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var h=l.italic,f=Eye(d+"Size"+(o?"2":"1"),e);l=kn({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),a.name="\\"+d,l.classes.unshift("mop"),l.italic=h}}else if(a.body){var p=ka(a.body,e,!0);p.length===1&&p[0]instanceof Fo?(l=p[0],l.classes[0]="mop"):l=Gt(["mop"],p,e)}else{for(var g=[],m=1;m{var r;if(t.symbol)r=new Kt("mo",[Il(t.name,t.mode)]),Zye.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new Kt("mo",Ko(t.body,e));else{r=new Kt("mi",[new sa(t.name.slice(1))]);var n=new Kt("mo",[Il("⁡","text")]);t.parentIsSupSub?r=new Kt("mrow",[r,n]):r=xye([r,n])}return r},lat={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};sr({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=n;return i.length===1&&(i=lat[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Qb,mathmlBuilder:gT});sr({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:aa(n)}},htmlBuilder:Qb,mathmlBuilder:gT});var cat={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};sr({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(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Qb,mathmlBuilder:gT});sr({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Qb,mathmlBuilder:gT});sr({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(t){var{parser:e,funcName:r}=t,n=r;return n.length===1&&(n=cat[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Qb,mathmlBuilder:gT});var Jye=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=tn(t.base,"operatorname"),i=!0):a=tn(t,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(h=>{var f="text"in h?h.text:void 0;return typeof f=="string"?{type:"textord",mode:h.mode,text:f}:h}),l=ka(o,e.withFont("mathrm"),!0),u=0;u{for(var r=Ko(t.body,e.withFont("mathrm")),n=!0,i=0;id.toText()).join("");r=[new sa(o)]}var l=new Kt("mi",r);l.setAttribute("mathvariant","normal");var u=new Kt("mo",[Il("⁡","text")]);return t.parentIsSupSub?new Kt("mrow",[l,u]):xye([l,u])};sr({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"operatorname",mode:r.mode,body:aa(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Jye,mathmlBuilder:uat});Ae("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Qp({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?Q0(ka(t.body,e,!1)):Gt(["mord"],ka(t.body,e,!0),e)},mathmlBuilder(t,e){return mh(t.body,e,!0)}});sr({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:r}=t,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=Rn(t.body,e.havingCrampedStyle()),n=sb("overline-line",e),i=e.fontMetrics().defaultRuleThickness,a=kn({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return Gt(["mord","overline"],[a],e)},mathmlBuilder(t,e){var r=new Kt("mo",[new sa("‾")]);r.setAttribute("stretchy","true");var n=new Kt("mover",[Un(t.body,e),r]);return n.setAttribute("accent","true"),n}});sr({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"phantom",mode:r.mode,body:aa(n)}},htmlBuilder:(t,e)=>{var r=ka(t.body,e.withPhantom(),!1);return Q0(r)},mathmlBuilder:(t,e)=>{var r=Ko(t.body,e);return new Kt("mphantom",r)}});Ae("\\hphantom","\\smash{\\phantom{#1}}");sr({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=Gt(["inner"],[Rn(t.body,e.withPhantom())]),n=Gt(["fix"],[]);return Gt(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=Ko(aa(t.body),e),n=new Kt("mphantom",r),i=new Kt("mpadded",[n]);return i.setAttribute("width","0px"),i}});sr({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t,n=tn(e[0],"size").value,i=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(t,e){var r=Rn(t.body,e),n=Ai(t.dy,e);return kn({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Kt("mpadded",[Un(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});sr({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});sr({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(t,e,r){var{parser:n}=t,i=r[0],a=tn(e[0],"size"),s=tn(e[1],"size");return{type:"rule",mode:n.mode,shift:i&&tn(i,"size").value,width:a.value,height:s.value}},htmlBuilder(t,e){var r=Gt(["mord","rule"],[],e),n=Ai(t.width,e),i=Ai(t.height,e),a=t.shift?Ai(t.shift,e):0;return r.style.borderRightWidth=tr(n),r.style.borderTopWidth=tr(i),r.style.bottom=tr(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=Ai(t.width,e),n=Ai(t.height,e),i=t.shift?Ai(t.shift,e):0,a=e.color&&e.getColor()||"black",s=new Kt("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",tr(r)),s.setAttribute("height",tr(n));var o=new Kt("mpadded",[s]);return i>=0?o.setAttribute("height",tr(i)):(o.setAttribute("height",tr(i)),o.setAttribute("depth",tr(-i))),o.setAttribute("voffset",tr(i)),o}});function eve(t,e,r){for(var n=ka(t,e,!1),i=e.sizeMultiplier/r.sizeMultiplier,a=0;a{var r=e.havingSize(t.size);return eve(t.body,r,e)};sr({type:"sizing",names:Jte,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:Jte.indexOf(n)+1,body:a}},htmlBuilder:dat,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=Ko(t.body,r),i=new Kt("mstyle",n);return i.setAttribute("mathsize",tr(r.sizeMultiplier)),i}});sr({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:n}=t,i=!1,a=!1,s=r[0]&&tn(r[0],"ordgroup");if(s)for(var o="",l=0;l{var r=Gt([],[Rn(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return Gt(["mord","smash"],[r],e);if(r.children)for(var n=0;n{var r=new Kt("mpadded",[Un(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});sr({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n}=t,i=r[0],a=e[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(t,e){var r=Rn(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=ob(r,e);var n=e.fontMetrics(),i=n.defaultRuleThickness,a=i;e.style.idr.height+r.depth+s&&(s=(s+h-r.height-r.depth)/2);var f=l.height-r.height-s-u;r.style.paddingLeft=tr(d);var p=kn({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]});if(t.index){var g=e.havingStyle(Qr.SCRIPTSCRIPT),m=Rn(t.index,g,e),y=.6*(p.height-p.depth),v=kn({positionType:"shift",positionData:-y,children:[{type:"elem",elem:m}]}),b=Gt(["root"],[v]);return Gt(["mord","sqrt"],[b,p],e)}else return Gt(["mord","sqrt"],[p],e)},mathmlBuilder(t,e){var{body:r,index:n}=t;return n?new Kt("mroot",[Un(r,e),Un(n,e)]):new Kt("msqrt",[Un(r,e)])}});var ere={display:Qr.DISPLAY,text:Qr.TEXT,script:Qr.SCRIPT,scriptscript:Qr.SCRIPTSCRIPT};sr({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(t,e){var r=ere[t.style],n=e.havingStyle(r).withFont("");return eve(t.body,n,e)},mathmlBuilder(t,e){var r=ere[t.style],n=e.havingStyle(r),i=Ko(t.body,n),a=new Kt("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var hat=function(e,r){var n=e.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===Qr.DISPLAY.size||n.alwaysHandleSupSub);return i?Qb:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===Qr.DISPLAY.size||n.limits);return a?Jye:null}else{if(n.type==="accent")return X0(n.base)?tq:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?jye:null}else return null}else return null};Qp({type:"supsub",htmlBuilder(t,e){var r=hat(t,e);if(r)return r(t,e);var{base:n,sup:i,sub:a}=t,s=Rn(n,e),o,l,u=e.fontMetrics(),d=0,h=0,f=n&&X0(n);if(i){var p=e.havingStyle(e.style.sup());o=Rn(i,p,e),f||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(a){var g=e.havingStyle(e.style.sub());l=Rn(a,g,e),f||(h=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}var m;e.style===Qr.DISPLAY?m=u.sup1:e.style.cramped?m=u.sup3:m=u.sup2;var y=e.sizeMultiplier,v=tr(.5/u.ptPerEm/y),b=null;if(l){var _=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(s instanceof Fo||_)&&(b=tr(-s.italic))}var E;if(o&&l){d=Math.max(d,m,o.depth+.25*u.xHeight),h=Math.max(h,u.sub2);var x=u.defaultRuleThickness,C=4*x;if(d-o.depth-(l.height-h)0&&(d+=T,h-=T)}var w=[{type:"elem",elem:l,shift:h,marginRight:v,marginLeft:b},{type:"elem",elem:o,shift:-d,marginRight:v}];E=kn({positionType:"individualShift",children:w})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var N=[{type:"elem",elem:l,marginLeft:b,marginRight:v}];E=kn({positionType:"shift",positionData:h,children:N})}else if(o)d=Math.max(d,m,o.depth+.25*u.xHeight),E=kn({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:v}]});else throw new Error("supsub must have either sup or sub.");var O=aB(s,"right")||"mord";return Gt([O],[s,Gt(["msupsub"],[E])],e)},mathmlBuilder(t,e){var r=!1,n,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var a=[Un(t.base,e)];t.sub&&a.push(Un(t.sub,e)),t.sup&&a.push(Un(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var u=t.base;u&&u.type==="op"&&u.limits&&e.style===Qr.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(e.style===Qr.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===Qr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===Qr.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===Qr.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===Qr.DISPLAY)?s="mover":s="msup"}return new Kt(s,a)}});Qp({type:"atom",htmlBuilder(t,e){return QG(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Kt("mo",[Il(t.text,t.mode)]);if(t.family==="bin"){var n=eq(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var tve={mi:"italic",mn:"normal",mtext:"normal"};Qp({type:"mathord",htmlBuilder(t,e){return e7(t,e,"mathord")},mathmlBuilder(t,e){var r=new Kt("mi",[Il(t.text,t.mode,e)]),n=eq(t,e)||"italic";return n!==tve[r.type]&&r.setAttribute("mathvariant",n),r}});Qp({type:"textord",htmlBuilder(t,e){return e7(t,e,"textord")},mathmlBuilder(t,e){var r=Il(t.text,t.mode,e),n=eq(t,e)||"normal",i;return t.mode==="text"?i=new Kt("mtext",[r]):/[0-9]/.test(t.text)?i=new Kt("mn",[r]):t.text==="\\prime"?i=new Kt("mo",[r]):i=new Kt("mi",[r]),n!==tve[i.type]&&i.setAttribute("mathvariant",n),i}});var L9={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},M9={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Qp({type:"spacing",htmlBuilder(t,e){if(M9.hasOwnProperty(t.text)){var r=M9[t.text].className||"";if(t.mode==="text"){var n=e7(t,e,"textord");return n.classes.push(r),n}else return Gt(["mspace",r],[QG(t.text,t.mode,e)],e)}else{if(L9.hasOwnProperty(t.text))return Gt(["mspace",L9[t.text]],[],e);throw new Yt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(M9.hasOwnProperty(t.text))r=new Kt("mtext",[new sa(" ")]);else{if(L9.hasOwnProperty(t.text))return new Kt("mspace");throw new Yt('Unknown type of space "'+t.text+'"')}return r}});var tre=()=>{var t=new Kt("mtd",[]);return t.setAttribute("width","50%"),t};Qp({type:"tag",mathmlBuilder(t,e){var r=new Kt("mtable",[new Kt("mtr",[tre(),new Kt("mtd",[mh(t.body,e)]),tre(),new Kt("mtd",[mh(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var rre={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},nre={"\\textbf":"textbf","\\textmd":"textmd"},fat={"\\textit":"textit","\\textup":"textup"},ire=(t,e)=>{var r=t.font;if(r){if(rre[r])return e.withTextFontFamily(rre[r]);if(nre[r])return e.withTextFontWeight(nre[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(fat[r])};sr({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"text",mode:r.mode,body:aa(i),font:n}},htmlBuilder(t,e){var r=ire(t,e),n=ka(t.body,r,!0);return Gt(["mord","text"],n,r)},mathmlBuilder(t,e){var r=ire(t,e);return mh(t.body,r)}});sr({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Rn(t.body,e),n=sb("underline-line",e),i=e.fontMetrics().defaultRuleThickness,a=kn({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return Gt(["mord","underline"],[a],e)},mathmlBuilder(t,e){var r=new Kt("mo",[new sa("‾")]);r.setAttribute("stretchy","true");var n=new Kt("munder",[Un(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});sr({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Rn(t.body,e),n=e.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return kn({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){return new Kt("mpadded",[Un(t.body,e)],["vcenter"])}});sr({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,r){throw new Yt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=are(t),n=[],i=e.havingStyle(e.style.text()),a=0;at.body.replace(/ /g,t.star?"␣":" "),zd=Sye,rve=`[ \r - ]`,pat="\\\\[a-zA-Z@]+",gat="\\\\[^\uD800-\uDFFF]",mat="("+pat+")"+rve+"*",yat=`\\\\( +-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.")}};class Kb{constructor(e){this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),r=0;rr.toText();return this.children.map(e).join("")}}var JP={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},hit={ex:!0,em:!0,mu:!0},hye=function(e){return typeof e!="string"&&(e=e.unit),e in JP||e in hit||e==="ex"},Ai=function(e,r){var n;if(e.unit in JP)n=JP[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,e.unit==="ex")n=i.fontMetrics().xHeight;else if(e.unit==="em")n=i.fontMetrics().quad;else throw new Yt("Invalid unit: '"+e.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},tr=function(e){return+e.toFixed(4)+"em"},fh=function(e){return e.filter(r=>r).join(" ")},fye=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},pye=function(e){var r=document.createElement(e);r.className=fh(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,gye=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+ds(fh(this.classes))+'"');var n="";for(var i of Object.keys(this.style))n+=WG(i)+":"+this.style[i]+";";n&&(r+=' style="'+ds(n)+'"');for(var a of Object.keys(this.attributes)){if(fit.test(a))throw new Yt("Invalid attribute name '"+a+"'");r+=" "+a+'="'+ds(this.attributes[a])+'"'}r+=">";for(var s=0;s",r};class Xb{constructor(e,r,n,i){fye.call(this,e,n,i),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return pye.call(this,"span")}toMarkup(){return gye.call(this,"span")}}let Zk=class{constructor(e,r,n,i){fye.call(this,r,i),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return pye.call(this,"a")}toMarkup(){return gye.call(this,"a")}};class pit{constructor(e,r,n){this.alt=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var r of Object.keys(this.style))e.style[r]=this.style[r];return e}toMarkup(){var e=''+ds(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=tr(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=fh(this.classes));for(var n of Object.keys(this.style))r=r||document.createElement("span"),r.style[n]=this.style[n];return r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="0&&(n+="margin-right:"+this.italic+"em;");for(var i of Object.keys(this.style))n+=WG(i)+":"+this.style[i]+";";n&&(e=!0,r+=' style="'+ds(n)+'"');var a=ds(this.text);return e?(r+=">",r+=a,r+="",r):a}}class k0{constructor(e,r){this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i':''}}class eB{constructor(e){this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e=" but got "+String(t)+".")}var vit=t=>t instanceof Xb||t instanceof Zk||t instanceof Kb,Wc={"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]}},qx={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]},Lte={Å:"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 mye(t,e){Wc[t]=e}function jG(t,e,r){if(!Wc[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),i=Wc[e][n];if(!i&&t[0]in Lte&&(n=Lte[t[0]].charCodeAt(0),i=Wc[e][n]),!i&&r==="text"&&dye(n)&&(i=Wc[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var E9={};function _it(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!E9[e]){var r=E9[e]={cssEmPerMu:qx.quad[e]/18};for(var n in qx)qx.hasOwnProperty(n)&&(r[n]=qx[n][e])}return E9[e]}var bit={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Eit={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},fi={math:{},text:{}};function K(t,e,r,n,i,a){fi[t][i]={font:e,group:r,replace:n},a&&n&&(fi[t][n]=fi[t][i])}var te="math",Bt="text",Ee="main",We="ams",Ei="accent-token",dr="bin",eo="close",jb="inner",Nr="mathord",ha="op-token",Wo="open",pT="punct",Ze="rel",j0="spacing",rt="textord";K(te,Ee,Ze,"≡","\\equiv",!0);K(te,Ee,Ze,"≺","\\prec",!0);K(te,Ee,Ze,"≻","\\succ",!0);K(te,Ee,Ze,"∼","\\sim",!0);K(te,Ee,Ze,"⊥","\\perp");K(te,Ee,Ze,"⪯","\\preceq",!0);K(te,Ee,Ze,"⪰","\\succeq",!0);K(te,Ee,Ze,"≃","\\simeq",!0);K(te,Ee,Ze,"∣","\\mid",!0);K(te,Ee,Ze,"≪","\\ll",!0);K(te,Ee,Ze,"≫","\\gg",!0);K(te,Ee,Ze,"≍","\\asymp",!0);K(te,Ee,Ze,"∥","\\parallel");K(te,Ee,Ze,"⋈","\\bowtie",!0);K(te,Ee,Ze,"⌣","\\smile",!0);K(te,Ee,Ze,"⊑","\\sqsubseteq",!0);K(te,Ee,Ze,"⊒","\\sqsupseteq",!0);K(te,Ee,Ze,"≐","\\doteq",!0);K(te,Ee,Ze,"⌢","\\frown",!0);K(te,Ee,Ze,"∋","\\ni",!0);K(te,Ee,Ze,"∝","\\propto",!0);K(te,Ee,Ze,"⊢","\\vdash",!0);K(te,Ee,Ze,"⊣","\\dashv",!0);K(te,Ee,Ze,"∋","\\owns");K(te,Ee,pT,".","\\ldotp");K(te,Ee,pT,"⋅","\\cdotp");K(te,Ee,pT,"⋅","·");K(Bt,Ee,rt,"⋅","·");K(te,Ee,rt,"#","\\#");K(Bt,Ee,rt,"#","\\#");K(te,Ee,rt,"&","\\&");K(Bt,Ee,rt,"&","\\&");K(te,Ee,rt,"ℵ","\\aleph",!0);K(te,Ee,rt,"∀","\\forall",!0);K(te,Ee,rt,"ℏ","\\hbar",!0);K(te,Ee,rt,"∃","\\exists",!0);K(te,Ee,rt,"∇","\\nabla",!0);K(te,Ee,rt,"♭","\\flat",!0);K(te,Ee,rt,"ℓ","\\ell",!0);K(te,Ee,rt,"♮","\\natural",!0);K(te,Ee,rt,"♣","\\clubsuit",!0);K(te,Ee,rt,"℘","\\wp",!0);K(te,Ee,rt,"♯","\\sharp",!0);K(te,Ee,rt,"♢","\\diamondsuit",!0);K(te,Ee,rt,"ℜ","\\Re",!0);K(te,Ee,rt,"♡","\\heartsuit",!0);K(te,Ee,rt,"ℑ","\\Im",!0);K(te,Ee,rt,"♠","\\spadesuit",!0);K(te,Ee,rt,"§","\\S",!0);K(Bt,Ee,rt,"§","\\S");K(te,Ee,rt,"¶","\\P",!0);K(Bt,Ee,rt,"¶","\\P");K(te,Ee,rt,"†","\\dag");K(Bt,Ee,rt,"†","\\dag");K(Bt,Ee,rt,"†","\\textdagger");K(te,Ee,rt,"‡","\\ddag");K(Bt,Ee,rt,"‡","\\ddag");K(Bt,Ee,rt,"‡","\\textdaggerdbl");K(te,Ee,eo,"⎱","\\rmoustache",!0);K(te,Ee,Wo,"⎰","\\lmoustache",!0);K(te,Ee,eo,"⟯","\\rgroup",!0);K(te,Ee,Wo,"⟮","\\lgroup",!0);K(te,Ee,dr,"∓","\\mp",!0);K(te,Ee,dr,"⊖","\\ominus",!0);K(te,Ee,dr,"⊎","\\uplus",!0);K(te,Ee,dr,"⊓","\\sqcap",!0);K(te,Ee,dr,"∗","\\ast");K(te,Ee,dr,"⊔","\\sqcup",!0);K(te,Ee,dr,"◯","\\bigcirc",!0);K(te,Ee,dr,"∙","\\bullet",!0);K(te,Ee,dr,"‡","\\ddagger");K(te,Ee,dr,"≀","\\wr",!0);K(te,Ee,dr,"⨿","\\amalg");K(te,Ee,dr,"&","\\And");K(te,Ee,Ze,"⟵","\\longleftarrow",!0);K(te,Ee,Ze,"⇐","\\Leftarrow",!0);K(te,Ee,Ze,"⟸","\\Longleftarrow",!0);K(te,Ee,Ze,"⟶","\\longrightarrow",!0);K(te,Ee,Ze,"⇒","\\Rightarrow",!0);K(te,Ee,Ze,"⟹","\\Longrightarrow",!0);K(te,Ee,Ze,"↔","\\leftrightarrow",!0);K(te,Ee,Ze,"⟷","\\longleftrightarrow",!0);K(te,Ee,Ze,"⇔","\\Leftrightarrow",!0);K(te,Ee,Ze,"⟺","\\Longleftrightarrow",!0);K(te,Ee,Ze,"↦","\\mapsto",!0);K(te,Ee,Ze,"⟼","\\longmapsto",!0);K(te,Ee,Ze,"↗","\\nearrow",!0);K(te,Ee,Ze,"↩","\\hookleftarrow",!0);K(te,Ee,Ze,"↪","\\hookrightarrow",!0);K(te,Ee,Ze,"↘","\\searrow",!0);K(te,Ee,Ze,"↼","\\leftharpoonup",!0);K(te,Ee,Ze,"⇀","\\rightharpoonup",!0);K(te,Ee,Ze,"↙","\\swarrow",!0);K(te,Ee,Ze,"↽","\\leftharpoondown",!0);K(te,Ee,Ze,"⇁","\\rightharpoondown",!0);K(te,Ee,Ze,"↖","\\nwarrow",!0);K(te,Ee,Ze,"⇌","\\rightleftharpoons",!0);K(te,We,Ze,"≮","\\nless",!0);K(te,We,Ze,"","\\@nleqslant");K(te,We,Ze,"","\\@nleqq");K(te,We,Ze,"⪇","\\lneq",!0);K(te,We,Ze,"≨","\\lneqq",!0);K(te,We,Ze,"","\\@lvertneqq");K(te,We,Ze,"⋦","\\lnsim",!0);K(te,We,Ze,"⪉","\\lnapprox",!0);K(te,We,Ze,"⊀","\\nprec",!0);K(te,We,Ze,"⋠","\\npreceq",!0);K(te,We,Ze,"⋨","\\precnsim",!0);K(te,We,Ze,"⪹","\\precnapprox",!0);K(te,We,Ze,"≁","\\nsim",!0);K(te,We,Ze,"","\\@nshortmid");K(te,We,Ze,"∤","\\nmid",!0);K(te,We,Ze,"⊬","\\nvdash",!0);K(te,We,Ze,"⊭","\\nvDash",!0);K(te,We,Ze,"⋪","\\ntriangleleft");K(te,We,Ze,"⋬","\\ntrianglelefteq",!0);K(te,We,Ze,"⊊","\\subsetneq",!0);K(te,We,Ze,"","\\@varsubsetneq");K(te,We,Ze,"⫋","\\subsetneqq",!0);K(te,We,Ze,"","\\@varsubsetneqq");K(te,We,Ze,"≯","\\ngtr",!0);K(te,We,Ze,"","\\@ngeqslant");K(te,We,Ze,"","\\@ngeqq");K(te,We,Ze,"⪈","\\gneq",!0);K(te,We,Ze,"≩","\\gneqq",!0);K(te,We,Ze,"","\\@gvertneqq");K(te,We,Ze,"⋧","\\gnsim",!0);K(te,We,Ze,"⪊","\\gnapprox",!0);K(te,We,Ze,"⊁","\\nsucc",!0);K(te,We,Ze,"⋡","\\nsucceq",!0);K(te,We,Ze,"⋩","\\succnsim",!0);K(te,We,Ze,"⪺","\\succnapprox",!0);K(te,We,Ze,"≆","\\ncong",!0);K(te,We,Ze,"","\\@nshortparallel");K(te,We,Ze,"∦","\\nparallel",!0);K(te,We,Ze,"⊯","\\nVDash",!0);K(te,We,Ze,"⋫","\\ntriangleright");K(te,We,Ze,"⋭","\\ntrianglerighteq",!0);K(te,We,Ze,"","\\@nsupseteqq");K(te,We,Ze,"⊋","\\supsetneq",!0);K(te,We,Ze,"","\\@varsupsetneq");K(te,We,Ze,"⫌","\\supsetneqq",!0);K(te,We,Ze,"","\\@varsupsetneqq");K(te,We,Ze,"⊮","\\nVdash",!0);K(te,We,Ze,"⪵","\\precneqq",!0);K(te,We,Ze,"⪶","\\succneqq",!0);K(te,We,Ze,"","\\@nsubseteqq");K(te,We,dr,"⊴","\\unlhd");K(te,We,dr,"⊵","\\unrhd");K(te,We,Ze,"↚","\\nleftarrow",!0);K(te,We,Ze,"↛","\\nrightarrow",!0);K(te,We,Ze,"⇍","\\nLeftarrow",!0);K(te,We,Ze,"⇏","\\nRightarrow",!0);K(te,We,Ze,"↮","\\nleftrightarrow",!0);K(te,We,Ze,"⇎","\\nLeftrightarrow",!0);K(te,We,Ze,"△","\\vartriangle");K(te,We,rt,"ℏ","\\hslash");K(te,We,rt,"▽","\\triangledown");K(te,We,rt,"◊","\\lozenge");K(te,We,rt,"Ⓢ","\\circledS");K(te,We,rt,"®","\\circledR");K(Bt,We,rt,"®","\\circledR");K(te,We,rt,"∡","\\measuredangle",!0);K(te,We,rt,"∄","\\nexists");K(te,We,rt,"℧","\\mho");K(te,We,rt,"Ⅎ","\\Finv",!0);K(te,We,rt,"⅁","\\Game",!0);K(te,We,rt,"‵","\\backprime");K(te,We,rt,"▲","\\blacktriangle");K(te,We,rt,"▼","\\blacktriangledown");K(te,We,rt,"■","\\blacksquare");K(te,We,rt,"⧫","\\blacklozenge");K(te,We,rt,"★","\\bigstar");K(te,We,rt,"∢","\\sphericalangle",!0);K(te,We,rt,"∁","\\complement",!0);K(te,We,rt,"ð","\\eth",!0);K(Bt,Ee,rt,"ð","ð");K(te,We,rt,"╱","\\diagup");K(te,We,rt,"╲","\\diagdown");K(te,We,rt,"□","\\square");K(te,We,rt,"□","\\Box");K(te,We,rt,"◊","\\Diamond");K(te,We,rt,"¥","\\yen",!0);K(Bt,We,rt,"¥","\\yen",!0);K(te,We,rt,"✓","\\checkmark",!0);K(Bt,We,rt,"✓","\\checkmark");K(te,We,rt,"ℶ","\\beth",!0);K(te,We,rt,"ℸ","\\daleth",!0);K(te,We,rt,"ℷ","\\gimel",!0);K(te,We,rt,"ϝ","\\digamma",!0);K(te,We,rt,"ϰ","\\varkappa");K(te,We,Wo,"┌","\\@ulcorner",!0);K(te,We,eo,"┐","\\@urcorner",!0);K(te,We,Wo,"└","\\@llcorner",!0);K(te,We,eo,"┘","\\@lrcorner",!0);K(te,We,Ze,"≦","\\leqq",!0);K(te,We,Ze,"⩽","\\leqslant",!0);K(te,We,Ze,"⪕","\\eqslantless",!0);K(te,We,Ze,"≲","\\lesssim",!0);K(te,We,Ze,"⪅","\\lessapprox",!0);K(te,We,Ze,"≊","\\approxeq",!0);K(te,We,dr,"⋖","\\lessdot");K(te,We,Ze,"⋘","\\lll",!0);K(te,We,Ze,"≶","\\lessgtr",!0);K(te,We,Ze,"⋚","\\lesseqgtr",!0);K(te,We,Ze,"⪋","\\lesseqqgtr",!0);K(te,We,Ze,"≑","\\doteqdot");K(te,We,Ze,"≓","\\risingdotseq",!0);K(te,We,Ze,"≒","\\fallingdotseq",!0);K(te,We,Ze,"∽","\\backsim",!0);K(te,We,Ze,"⋍","\\backsimeq",!0);K(te,We,Ze,"⫅","\\subseteqq",!0);K(te,We,Ze,"⋐","\\Subset",!0);K(te,We,Ze,"⊏","\\sqsubset",!0);K(te,We,Ze,"≼","\\preccurlyeq",!0);K(te,We,Ze,"⋞","\\curlyeqprec",!0);K(te,We,Ze,"≾","\\precsim",!0);K(te,We,Ze,"⪷","\\precapprox",!0);K(te,We,Ze,"⊲","\\vartriangleleft");K(te,We,Ze,"⊴","\\trianglelefteq");K(te,We,Ze,"⊨","\\vDash",!0);K(te,We,Ze,"⊪","\\Vvdash",!0);K(te,We,Ze,"⌣","\\smallsmile");K(te,We,Ze,"⌢","\\smallfrown");K(te,We,Ze,"≏","\\bumpeq",!0);K(te,We,Ze,"≎","\\Bumpeq",!0);K(te,We,Ze,"≧","\\geqq",!0);K(te,We,Ze,"⩾","\\geqslant",!0);K(te,We,Ze,"⪖","\\eqslantgtr",!0);K(te,We,Ze,"≳","\\gtrsim",!0);K(te,We,Ze,"⪆","\\gtrapprox",!0);K(te,We,dr,"⋗","\\gtrdot");K(te,We,Ze,"⋙","\\ggg",!0);K(te,We,Ze,"≷","\\gtrless",!0);K(te,We,Ze,"⋛","\\gtreqless",!0);K(te,We,Ze,"⪌","\\gtreqqless",!0);K(te,We,Ze,"≖","\\eqcirc",!0);K(te,We,Ze,"≗","\\circeq",!0);K(te,We,Ze,"≜","\\triangleq",!0);K(te,We,Ze,"∼","\\thicksim");K(te,We,Ze,"≈","\\thickapprox");K(te,We,Ze,"⫆","\\supseteqq",!0);K(te,We,Ze,"⋑","\\Supset",!0);K(te,We,Ze,"⊐","\\sqsupset",!0);K(te,We,Ze,"≽","\\succcurlyeq",!0);K(te,We,Ze,"⋟","\\curlyeqsucc",!0);K(te,We,Ze,"≿","\\succsim",!0);K(te,We,Ze,"⪸","\\succapprox",!0);K(te,We,Ze,"⊳","\\vartriangleright");K(te,We,Ze,"⊵","\\trianglerighteq");K(te,We,Ze,"⊩","\\Vdash",!0);K(te,We,Ze,"∣","\\shortmid");K(te,We,Ze,"∥","\\shortparallel");K(te,We,Ze,"≬","\\between",!0);K(te,We,Ze,"⋔","\\pitchfork",!0);K(te,We,Ze,"∝","\\varpropto");K(te,We,Ze,"◀","\\blacktriangleleft");K(te,We,Ze,"∴","\\therefore",!0);K(te,We,Ze,"∍","\\backepsilon");K(te,We,Ze,"▶","\\blacktriangleright");K(te,We,Ze,"∵","\\because",!0);K(te,We,Ze,"⋘","\\llless");K(te,We,Ze,"⋙","\\gggtr");K(te,We,dr,"⊲","\\lhd");K(te,We,dr,"⊳","\\rhd");K(te,We,Ze,"≂","\\eqsim",!0);K(te,Ee,Ze,"⋈","\\Join");K(te,We,Ze,"≑","\\Doteq",!0);K(te,We,dr,"∔","\\dotplus",!0);K(te,We,dr,"∖","\\smallsetminus");K(te,We,dr,"⋒","\\Cap",!0);K(te,We,dr,"⋓","\\Cup",!0);K(te,We,dr,"⩞","\\doublebarwedge",!0);K(te,We,dr,"⊟","\\boxminus",!0);K(te,We,dr,"⊞","\\boxplus",!0);K(te,We,dr,"⋇","\\divideontimes",!0);K(te,We,dr,"⋉","\\ltimes",!0);K(te,We,dr,"⋊","\\rtimes",!0);K(te,We,dr,"⋋","\\leftthreetimes",!0);K(te,We,dr,"⋌","\\rightthreetimes",!0);K(te,We,dr,"⋏","\\curlywedge",!0);K(te,We,dr,"⋎","\\curlyvee",!0);K(te,We,dr,"⊝","\\circleddash",!0);K(te,We,dr,"⊛","\\circledast",!0);K(te,We,dr,"⋅","\\centerdot");K(te,We,dr,"⊺","\\intercal",!0);K(te,We,dr,"⋒","\\doublecap");K(te,We,dr,"⋓","\\doublecup");K(te,We,dr,"⊠","\\boxtimes",!0);K(te,We,Ze,"⇢","\\dashrightarrow",!0);K(te,We,Ze,"⇠","\\dashleftarrow",!0);K(te,We,Ze,"⇇","\\leftleftarrows",!0);K(te,We,Ze,"⇆","\\leftrightarrows",!0);K(te,We,Ze,"⇚","\\Lleftarrow",!0);K(te,We,Ze,"↞","\\twoheadleftarrow",!0);K(te,We,Ze,"↢","\\leftarrowtail",!0);K(te,We,Ze,"↫","\\looparrowleft",!0);K(te,We,Ze,"⇋","\\leftrightharpoons",!0);K(te,We,Ze,"↶","\\curvearrowleft",!0);K(te,We,Ze,"↺","\\circlearrowleft",!0);K(te,We,Ze,"↰","\\Lsh",!0);K(te,We,Ze,"⇈","\\upuparrows",!0);K(te,We,Ze,"↿","\\upharpoonleft",!0);K(te,We,Ze,"⇃","\\downharpoonleft",!0);K(te,Ee,Ze,"⊶","\\origof",!0);K(te,Ee,Ze,"⊷","\\imageof",!0);K(te,We,Ze,"⊸","\\multimap",!0);K(te,We,Ze,"↭","\\leftrightsquigarrow",!0);K(te,We,Ze,"⇉","\\rightrightarrows",!0);K(te,We,Ze,"⇄","\\rightleftarrows",!0);K(te,We,Ze,"↠","\\twoheadrightarrow",!0);K(te,We,Ze,"↣","\\rightarrowtail",!0);K(te,We,Ze,"↬","\\looparrowright",!0);K(te,We,Ze,"↷","\\curvearrowright",!0);K(te,We,Ze,"↻","\\circlearrowright",!0);K(te,We,Ze,"↱","\\Rsh",!0);K(te,We,Ze,"⇊","\\downdownarrows",!0);K(te,We,Ze,"↾","\\upharpoonright",!0);K(te,We,Ze,"⇂","\\downharpoonright",!0);K(te,We,Ze,"⇝","\\rightsquigarrow",!0);K(te,We,Ze,"⇝","\\leadsto");K(te,We,Ze,"⇛","\\Rrightarrow",!0);K(te,We,Ze,"↾","\\restriction");K(te,Ee,rt,"‘","`");K(te,Ee,rt,"$","\\$");K(Bt,Ee,rt,"$","\\$");K(Bt,Ee,rt,"$","\\textdollar");K(te,Ee,rt,"%","\\%");K(Bt,Ee,rt,"%","\\%");K(te,Ee,rt,"_","\\_");K(Bt,Ee,rt,"_","\\_");K(Bt,Ee,rt,"_","\\textunderscore");K(te,Ee,rt,"∠","\\angle",!0);K(te,Ee,rt,"∞","\\infty",!0);K(te,Ee,rt,"′","\\prime");K(te,Ee,rt,"△","\\triangle");K(te,Ee,rt,"Γ","\\Gamma",!0);K(te,Ee,rt,"Δ","\\Delta",!0);K(te,Ee,rt,"Θ","\\Theta",!0);K(te,Ee,rt,"Λ","\\Lambda",!0);K(te,Ee,rt,"Ξ","\\Xi",!0);K(te,Ee,rt,"Π","\\Pi",!0);K(te,Ee,rt,"Σ","\\Sigma",!0);K(te,Ee,rt,"Υ","\\Upsilon",!0);K(te,Ee,rt,"Φ","\\Phi",!0);K(te,Ee,rt,"Ψ","\\Psi",!0);K(te,Ee,rt,"Ω","\\Omega",!0);K(te,Ee,rt,"A","Α");K(te,Ee,rt,"B","Β");K(te,Ee,rt,"E","Ε");K(te,Ee,rt,"Z","Ζ");K(te,Ee,rt,"H","Η");K(te,Ee,rt,"I","Ι");K(te,Ee,rt,"K","Κ");K(te,Ee,rt,"M","Μ");K(te,Ee,rt,"N","Ν");K(te,Ee,rt,"O","Ο");K(te,Ee,rt,"P","Ρ");K(te,Ee,rt,"T","Τ");K(te,Ee,rt,"X","Χ");K(te,Ee,rt,"¬","\\neg",!0);K(te,Ee,rt,"¬","\\lnot");K(te,Ee,rt,"⊤","\\top");K(te,Ee,rt,"⊥","\\bot");K(te,Ee,rt,"∅","\\emptyset");K(te,We,rt,"∅","\\varnothing");K(te,Ee,Nr,"α","\\alpha",!0);K(te,Ee,Nr,"β","\\beta",!0);K(te,Ee,Nr,"γ","\\gamma",!0);K(te,Ee,Nr,"δ","\\delta",!0);K(te,Ee,Nr,"ϵ","\\epsilon",!0);K(te,Ee,Nr,"ζ","\\zeta",!0);K(te,Ee,Nr,"η","\\eta",!0);K(te,Ee,Nr,"θ","\\theta",!0);K(te,Ee,Nr,"ι","\\iota",!0);K(te,Ee,Nr,"κ","\\kappa",!0);K(te,Ee,Nr,"λ","\\lambda",!0);K(te,Ee,Nr,"μ","\\mu",!0);K(te,Ee,Nr,"ν","\\nu",!0);K(te,Ee,Nr,"ξ","\\xi",!0);K(te,Ee,Nr,"ο","\\omicron",!0);K(te,Ee,Nr,"π","\\pi",!0);K(te,Ee,Nr,"ρ","\\rho",!0);K(te,Ee,Nr,"σ","\\sigma",!0);K(te,Ee,Nr,"τ","\\tau",!0);K(te,Ee,Nr,"υ","\\upsilon",!0);K(te,Ee,Nr,"ϕ","\\phi",!0);K(te,Ee,Nr,"χ","\\chi",!0);K(te,Ee,Nr,"ψ","\\psi",!0);K(te,Ee,Nr,"ω","\\omega",!0);K(te,Ee,Nr,"ε","\\varepsilon",!0);K(te,Ee,Nr,"ϑ","\\vartheta",!0);K(te,Ee,Nr,"ϖ","\\varpi",!0);K(te,Ee,Nr,"ϱ","\\varrho",!0);K(te,Ee,Nr,"ς","\\varsigma",!0);K(te,Ee,Nr,"φ","\\varphi",!0);K(te,Ee,dr,"∗","*",!0);K(te,Ee,dr,"+","+");K(te,Ee,dr,"−","-",!0);K(te,Ee,dr,"⋅","\\cdot",!0);K(te,Ee,dr,"∘","\\circ",!0);K(te,Ee,dr,"÷","\\div",!0);K(te,Ee,dr,"±","\\pm",!0);K(te,Ee,dr,"×","\\times",!0);K(te,Ee,dr,"∩","\\cap",!0);K(te,Ee,dr,"∪","\\cup",!0);K(te,Ee,dr,"∖","\\setminus",!0);K(te,Ee,dr,"∧","\\land");K(te,Ee,dr,"∨","\\lor");K(te,Ee,dr,"∧","\\wedge",!0);K(te,Ee,dr,"∨","\\vee",!0);K(te,Ee,rt,"√","\\surd");K(te,Ee,Wo,"⟨","\\langle",!0);K(te,Ee,Wo,"∣","\\lvert");K(te,Ee,Wo,"∥","\\lVert");K(te,Ee,eo,"?","?");K(te,Ee,eo,"!","!");K(te,Ee,eo,"⟩","\\rangle",!0);K(te,Ee,eo,"∣","\\rvert");K(te,Ee,eo,"∥","\\rVert");K(te,Ee,Ze,"=","=");K(te,Ee,Ze,":",":");K(te,Ee,Ze,"≈","\\approx",!0);K(te,Ee,Ze,"≅","\\cong",!0);K(te,Ee,Ze,"≥","\\ge");K(te,Ee,Ze,"≥","\\geq",!0);K(te,Ee,Ze,"←","\\gets");K(te,Ee,Ze,">","\\gt",!0);K(te,Ee,Ze,"∈","\\in",!0);K(te,Ee,Ze,"","\\@not");K(te,Ee,Ze,"⊂","\\subset",!0);K(te,Ee,Ze,"⊃","\\supset",!0);K(te,Ee,Ze,"⊆","\\subseteq",!0);K(te,Ee,Ze,"⊇","\\supseteq",!0);K(te,We,Ze,"⊈","\\nsubseteq",!0);K(te,We,Ze,"⊉","\\nsupseteq",!0);K(te,Ee,Ze,"⊨","\\models");K(te,Ee,Ze,"←","\\leftarrow",!0);K(te,Ee,Ze,"≤","\\le");K(te,Ee,Ze,"≤","\\leq",!0);K(te,Ee,Ze,"<","\\lt",!0);K(te,Ee,Ze,"→","\\rightarrow",!0);K(te,Ee,Ze,"→","\\to");K(te,We,Ze,"≱","\\ngeq",!0);K(te,We,Ze,"≰","\\nleq",!0);K(te,Ee,j0," ","\\ ");K(te,Ee,j0," ","\\space");K(te,Ee,j0," ","\\nobreakspace");K(Bt,Ee,j0," ","\\ ");K(Bt,Ee,j0," "," ");K(Bt,Ee,j0," ","\\space");K(Bt,Ee,j0," ","\\nobreakspace");K(te,Ee,j0,null,"\\nobreak");K(te,Ee,j0,null,"\\allowbreak");K(te,Ee,pT,",",",");K(te,Ee,pT,";",";");K(te,We,dr,"⊼","\\barwedge",!0);K(te,We,dr,"⊻","\\veebar",!0);K(te,Ee,dr,"⊙","\\odot",!0);K(te,Ee,dr,"⊕","\\oplus",!0);K(te,Ee,dr,"⊗","\\otimes",!0);K(te,Ee,rt,"∂","\\partial",!0);K(te,Ee,dr,"⊘","\\oslash",!0);K(te,We,dr,"⊚","\\circledcirc",!0);K(te,We,dr,"⊡","\\boxdot",!0);K(te,Ee,dr,"△","\\bigtriangleup");K(te,Ee,dr,"▽","\\bigtriangledown");K(te,Ee,dr,"†","\\dagger");K(te,Ee,dr,"⋄","\\diamond");K(te,Ee,dr,"⋆","\\star");K(te,Ee,dr,"◃","\\triangleleft");K(te,Ee,dr,"▹","\\triangleright");K(te,Ee,Wo,"{","\\{");K(Bt,Ee,rt,"{","\\{");K(Bt,Ee,rt,"{","\\textbraceleft");K(te,Ee,eo,"}","\\}");K(Bt,Ee,rt,"}","\\}");K(Bt,Ee,rt,"}","\\textbraceright");K(te,Ee,Wo,"{","\\lbrace");K(te,Ee,eo,"}","\\rbrace");K(te,Ee,Wo,"[","\\lbrack",!0);K(Bt,Ee,rt,"[","\\lbrack",!0);K(te,Ee,eo,"]","\\rbrack",!0);K(Bt,Ee,rt,"]","\\rbrack",!0);K(te,Ee,Wo,"(","\\lparen",!0);K(te,Ee,eo,")","\\rparen",!0);K(Bt,Ee,rt,"<","\\textless",!0);K(Bt,Ee,rt,">","\\textgreater",!0);K(te,Ee,Wo,"⌊","\\lfloor",!0);K(te,Ee,eo,"⌋","\\rfloor",!0);K(te,Ee,Wo,"⌈","\\lceil",!0);K(te,Ee,eo,"⌉","\\rceil",!0);K(te,Ee,rt,"\\","\\backslash");K(te,Ee,rt,"∣","|");K(te,Ee,rt,"∣","\\vert");K(Bt,Ee,rt,"|","\\textbar",!0);K(te,Ee,rt,"∥","\\|");K(te,Ee,rt,"∥","\\Vert");K(Bt,Ee,rt,"∥","\\textbardbl");K(Bt,Ee,rt,"~","\\textasciitilde");K(Bt,Ee,rt,"\\","\\textbackslash");K(Bt,Ee,rt,"^","\\textasciicircum");K(te,Ee,Ze,"↑","\\uparrow",!0);K(te,Ee,Ze,"⇑","\\Uparrow",!0);K(te,Ee,Ze,"↓","\\downarrow",!0);K(te,Ee,Ze,"⇓","\\Downarrow",!0);K(te,Ee,Ze,"↕","\\updownarrow",!0);K(te,Ee,Ze,"⇕","\\Updownarrow",!0);K(te,Ee,ha,"∐","\\coprod");K(te,Ee,ha,"⋁","\\bigvee");K(te,Ee,ha,"⋀","\\bigwedge");K(te,Ee,ha,"⨄","\\biguplus");K(te,Ee,ha,"⋂","\\bigcap");K(te,Ee,ha,"⋃","\\bigcup");K(te,Ee,ha,"∫","\\int");K(te,Ee,ha,"∫","\\intop");K(te,Ee,ha,"∬","\\iint");K(te,Ee,ha,"∭","\\iiint");K(te,Ee,ha,"∏","\\prod");K(te,Ee,ha,"∑","\\sum");K(te,Ee,ha,"⨂","\\bigotimes");K(te,Ee,ha,"⨁","\\bigoplus");K(te,Ee,ha,"⨀","\\bigodot");K(te,Ee,ha,"∮","\\oint");K(te,Ee,ha,"∯","\\oiint");K(te,Ee,ha,"∰","\\oiiint");K(te,Ee,ha,"⨆","\\bigsqcup");K(te,Ee,ha,"∫","\\smallint");K(Bt,Ee,jb,"…","\\textellipsis");K(te,Ee,jb,"…","\\mathellipsis");K(Bt,Ee,jb,"…","\\ldots",!0);K(te,Ee,jb,"…","\\ldots",!0);K(te,Ee,jb,"⋯","\\@cdots",!0);K(te,Ee,jb,"⋱","\\ddots",!0);K(te,Ee,rt,"⋮","\\varvdots");K(Bt,Ee,rt,"⋮","\\varvdots");K(te,Ee,Ei,"ˊ","\\acute");K(te,Ee,Ei,"ˋ","\\grave");K(te,Ee,Ei,"¨","\\ddot");K(te,Ee,Ei,"~","\\tilde");K(te,Ee,Ei,"ˉ","\\bar");K(te,Ee,Ei,"˘","\\breve");K(te,Ee,Ei,"ˇ","\\check");K(te,Ee,Ei,"^","\\hat");K(te,Ee,Ei,"⃗","\\vec");K(te,Ee,Ei,"˙","\\dot");K(te,Ee,Ei,"˚","\\mathring");K(te,Ee,Nr,"","\\@imath");K(te,Ee,Nr,"","\\@jmath");K(te,Ee,rt,"ı","ı");K(te,Ee,rt,"ȷ","ȷ");K(Bt,Ee,rt,"ı","\\i",!0);K(Bt,Ee,rt,"ȷ","\\j",!0);K(Bt,Ee,rt,"ß","\\ss",!0);K(Bt,Ee,rt,"æ","\\ae",!0);K(Bt,Ee,rt,"œ","\\oe",!0);K(Bt,Ee,rt,"ø","\\o",!0);K(Bt,Ee,rt,"Æ","\\AE",!0);K(Bt,Ee,rt,"Œ","\\OE",!0);K(Bt,Ee,rt,"Ø","\\O",!0);K(Bt,Ee,Ei,"ˊ","\\'");K(Bt,Ee,Ei,"ˋ","\\`");K(Bt,Ee,Ei,"ˆ","\\^");K(Bt,Ee,Ei,"˜","\\~");K(Bt,Ee,Ei,"ˉ","\\=");K(Bt,Ee,Ei,"˘","\\u");K(Bt,Ee,Ei,"˙","\\.");K(Bt,Ee,Ei,"¸","\\c");K(Bt,Ee,Ei,"˚","\\r");K(Bt,Ee,Ei,"ˇ","\\v");K(Bt,Ee,Ei,"¨",'\\"');K(Bt,Ee,Ei,"˝","\\H");K(Bt,Ee,Ei,"◯","\\textcircled");var yye={"--":!0,"---":!0,"``":!0,"''":!0};K(Bt,Ee,rt,"–","--",!0);K(Bt,Ee,rt,"–","\\textendash");K(Bt,Ee,rt,"—","---",!0);K(Bt,Ee,rt,"—","\\textemdash");K(Bt,Ee,rt,"‘","`",!0);K(Bt,Ee,rt,"‘","\\textquoteleft");K(Bt,Ee,rt,"’","'",!0);K(Bt,Ee,rt,"’","\\textquoteright");K(Bt,Ee,rt,"“","``",!0);K(Bt,Ee,rt,"“","\\textquotedblleft");K(Bt,Ee,rt,"”","''",!0);K(Bt,Ee,rt,"”","\\textquotedblright");K(te,Ee,rt,"°","\\degree",!0);K(Bt,Ee,rt,"°","\\degree");K(Bt,Ee,rt,"°","\\textdegree",!0);K(te,Ee,rt,"£","\\pounds");K(te,Ee,rt,"£","\\mathsterling",!0);K(Bt,Ee,rt,"£","\\pounds");K(Bt,Ee,rt,"£","\\textsterling",!0);K(te,We,rt,"✠","\\maltese");K(Bt,We,rt,"✠","\\maltese");var Mte='0123456789/@."';for(var S9=0;S9{var r=t.charCodeAt(0),n=t.charCodeAt(1),i=(r-55296)*1024+(n-56320)+65536,a=e==="math"?0:1;if(119808<=i&&i<120484){var s=Math.floor((i-119808)/26);return[Vx[s][2],Vx[s][a]]}else if(120782<=i&&i<=120831){var o=Math.floor((i-120782)/10);return[$te[o][2],$te[o][a]]}else{if(i===120485||i===120486)return[Vx[0][2],Vx[0][a]];if(1204860)return Rs(a,u,i,r,s.concat(d));if(l){var h,f;if(l==="boldsymbol"){var p=Tit(a,i,r,s,n);h=p.fontName,f=[p.fontClass]}else o?(h=rB[l].fontName,f=[l]):(h=Wx(l,r.fontWeight,r.fontShape),f=[l,r.fontWeight,r.fontShape]);if(Jk(a,h,i).metrics)return Rs(a,h,i,r,s.concat(f));if(yye.hasOwnProperty(a)&&h.slice(0,10)==="Typewriter"){for(var g=[],m=0;m{if(fh(t.classes)!==fh(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var i of Object.keys(e.style))if(t.style[i]!==e.style[i])return!1;return!0},vye=t=>{for(var e=0;er&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=i},Gt=function(e,r,n,i){var a=new Xb(e,r,n,i);return ZG(a),a},gh=(t,e,r,n)=>new Xb(t,e,r,n),sb=function(e,r,n){var i=Gt([e],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=tr(i.height),i.maxFontSize=1,i},Cit=function(e,r,n,i){var a=new Zk(e,r,n,i);return ZG(a),a},Q0=function(e){var r=new Kb(e);return ZG(r),r},ob=function(e,r){return e instanceof Kb?Gt([],[e],r):e},wit=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s{var r=Gt(["mspace"],[],e),n=Ai(t,e);return r.style.marginRight=tr(n),r},Wx=function(e,r,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},rB={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"}},bye={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Eye=function(e,r){var[n,i,a]=bye[e],s=new ph(n),o=new k0([s],{width:tr(i),height:tr(a),style:"width:"+tr(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=gh(["overlay"],[o],r);return l.height=a,l.style.height=tr(a),l.style.width=tr(i),l},Ci={number:3,unit:"mu"},of={number:4,unit:"mu"},$u={number:5,unit:"mu"},kit={mord:{mop:Ci,mbin:of,mrel:$u,minner:Ci},mop:{mord:Ci,mop:Ci,mrel:$u,minner:Ci},mbin:{mord:of,mop:of,mopen:of,minner:of},mrel:{mord:$u,mop:$u,mopen:$u,minner:$u},mopen:{},mclose:{mop:Ci,mbin:of,mrel:$u,minner:Ci},mpunct:{mord:Ci,mop:Ci,mrel:$u,mopen:Ci,mclose:Ci,mpunct:Ci,minner:Ci},minner:{mord:Ci,mop:Ci,mbin:of,mrel:$u,mopen:Ci,mpunct:Ci,minner:Ci}},Ait={mord:{mop:Ci},mop:{mord:Ci,mop:Ci},mbin:{},mrel:{},mopen:{},mclose:{mop:Ci},mpunct:{},minner:{mop:Ci}},Sye={},p6={},g6={};function sr(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},l=0;l{var y=m.classes[0],v=g.classes[0];y==="mbin"&&Nit.has(v)?m.classes[0]="mord":v==="mbin"&&Rit.has(y)&&(g.classes[0]="mord")},{node:h},f,p),nB(a,(g,m)=>{var y,v,b=aB(m),_=aB(g),E=b&&_?g.hasClass("mtight")?(y=Ait[b])==null?void 0:y[_]:(v=kit[b])==null?void 0:v[_]:null;if(E)return _ye(E,u)},{node:h},f,p),a},nB=function(e,r,n,i,a){i&&e.push(i);for(var s=0;sf=>{e.splice(h+1,0,f),s++})(s)}i&&e.pop()},Tye=function(e){return e instanceof Kb||e instanceof Zk||e instanceof Xb&&e.hasClass("enclosing")?e:null},iB=function(e,r){var n=Tye(e);if(n){var i=n.children;if(i.length){if(r==="right")return iB(i[i.length-1],"right");if(r==="left")return iB(i[0],"left")}}return e},aB=function(e,r){if(!e)return null;r&&(e=iB(e,r));var n=e.classes[0];return Oit[n]||null},JS=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Gt(r.concat(n))},Rn=function(e,r,n){if(!e)return Gt();if(p6[e.type]){var i=p6[e.type](e,r);if(n&&r.size!==n.size){i=Gt(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Yt("Got group of unknown type: '"+e.type+"'")};function Kx(t,e){var r=Gt(["base"],t,e),n=Gt(["strut"]);return n.style.height=tr(r.height+r.depth),r.depth&&(n.style.verticalAlign=tr(-r.depth)),r.children.unshift(n),r}function sB(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=ka(t,e,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],s=[],o=0;o0&&(a.push(Kx(s,e)),s=[]),a.push(n[o]));s.length>0&&a.push(Kx(s,e));var u;r?(u=Kx(ka(r,e,!0),e),u.classes=["tag"],a.push(u)):i&&a.push(i);var d=Gt(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),u){var h=u.children[0];h.style.height=tr(d.height+d.depth),d.depth&&(h.style.verticalAlign=tr(-d.depth))}return d}function xye(t){return new Kb(t)}class Kt{constructor(e,r,n){this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&e.setAttribute(r,this.attributes[r]);this.classes.length>0&&(e.className=fh(this.classes));for(var n=0;n0&&(e+=' class ="'+ds(fh(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}}class sa{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ds(this.toText())}toText(){return this.text}}class Cye{constructor(e){this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",tr(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Dit=new Set(["\\imath","\\jmath"]),Lit=new Set(["mrow","mtable"]),Il=function(e,r,n){return fi[r][e]&&fi[r][e].replace&&e.charCodeAt(0)!==55349&&!(yye.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=fi[r][e].replace),new sa(e)},JG=function(e){return e.length===1?e[0]:new Kt("mrow",e)},eq=function(e,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=e.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=e.text;if(Dit.has(a))return null;if(fi[i][a]){var s=fi[i][a].replace;s&&(a=s)}var o=rB[n].fontName;return jG(a,o,i)?rB[n].variant:null};function w9(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof sa&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof sa&&r.text===","}else return!1}var Ko=function(e,r,n){if(e.length===1){var i=Un(e[0],r);return n&&i instanceof Kt&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||w9(s))){var u=l.children[0];u instanceof Kt&&u.type==="mn"&&(u.children=[...s.children,...u.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof sa&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof sa&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),a.pop())}}}a.push(l),s=l}return a},mh=function(e,r,n){return JG(Ko(e,r,n))},Un=function(e,r){if(!e)return new Kt("mrow");if(g6[e.type]){var n=g6[e.type](e,r);return n}else throw new Yt("Got group of unknown type: '"+e.type+"'")};function zte(t,e,r,n,i){var a=Ko(t,r),s;a.length===1&&a[0]instanceof Kt&&Lit.has(a[0].type)?s=a[0]:s=new Kt("mrow",a);var o=new Kt("annotation",[new sa(e)]);o.setAttribute("encoding","application/x-tex");var l=new Kt("semantics",[s,o]),u=new Kt("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var d=i?"katex":"katex-mathml";return Gt([d],[u])}var Mit=[[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]],Ute=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Gte=function(e,r){return r.size<2?e:Mit[e-1][r.size-1]};class Qu{constructor(e){this.style=e.style,this.color=e.color,this.size=e.size||Qu.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=Ute[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={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};return Object.assign(r,e),new Qu(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Gte(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:Ute[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=Gte(Qu.BASESIZE,e);return this.size===r&&this.textSize===Qu.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var 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!==Qu.BASESIZE?["sizing","reset-size"+this.size,"size"+Qu.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=_it(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Qu.BASESIZE=6;var wye=function(e){return new Qu({style:e.displayMode?Qr.DISPLAY:Qr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},kye=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=Gt(n,[e])}return e},Pit=function(e,r,n){var i=wye(n),a;if(n.output==="mathml")return zte(e,r,i,n.displayMode,!0);if(n.output==="html"){var s=sB(e,i);a=Gt(["katex"],[s])}else{var o=zte(e,r,i,n.displayMode,!1),l=sB(e,i);a=Gt(["katex"],[o,l])}return kye(a,n)},Bit=function(e,r,n){var i=wye(n),a=sB(e,i),s=Gt(["katex"],[a]);return kye(s,n)},Fit={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":"="},t7=function(e){var r=new Kt("mo",[new sa(Fit[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},$it={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]},zit=new Set(["widehat","widecheck","widetilde","utilde"]),r7=function(e,r){function n(){var o=4e5,l=e.label.slice(1);if(zit.has(l)){var u=e,d=u.base.type==="ordgroup"?u.base.body.length:1,h,f,p;if(d>5)l==="widehat"||l==="widecheck"?(h=420,o=2364,p=.42,f=l+"4"):(h=312,o=2340,p=.34,f="tilde4");else{var g=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][g],h=[0,239,300,360,420][g],p=[0,.24,.3,.3,.36,.42][g],f=l+g):(o=[0,600,1033,2339,2340][g],h=[0,260,286,306,312][g],p=[0,.26,.286,.3,.306,.34][g],f="tilde"+g)}var m=new ph(f),y=new k0([m],{width:"100%",height:tr(p),viewBox:"0 0 "+o+" "+h,preserveAspectRatio:"none"});return{span:gh([],[y],r),minWidth:0,height:p}}else{var v=[],b=$it[l],[_,E,x]=b,C=x/1e3,T=_.length,w,N;if(T===1){var O=b[3];w=["hide-tail"],N=[O]}else if(T===2)w=["halfarrow-left","halfarrow-right"],N=["xMinYMin","xMaxYMin"];else if(T===3)w=["brace-left","brace-center","brace-right"],N=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+T+" children.");for(var M=0;M0&&(i.style.minWidth=tr(a)),i},Uit=function(e,r,n,i,a){var s,o=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=Gt(["stretchy",r],[],a),r==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new eB({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new eB({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new k0(u,{width:"100%",height:tr(o)});s=gh([],[d],a)}return s.height=o,s.style.height=tr(o),s};function tn(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function n7(t){var e=i7(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function i7(t){return t&&(t.type==="atom"||Eit.hasOwnProperty(t.type))?t:null}var Aye=t=>{if(t instanceof Fo)return t;if(vit(t)&&t.children.length===1)return Aye(t.children[0])},tq=(t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=tn(t.base,"accent"),r=n.base,t.base=r,i=yit(Rn(t,e)),t.base=n):(n=tn(t,"accent"),r=n.base);var a=Rn(r,e.havingCrampedStyle()),s=n.isShifty&&X0(r),o=0;if(s){var l,u;o=(l=(u=Aye(a))==null?void 0:u.skew)!=null?l:0}var d=n.label==="\\c",h=d?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=r7(n,e),f=kn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+tr(2*o)+")",marginLeft:tr(2*o)}:void 0}]});else{var p,g;n.label==="\\vec"?(p=Eye("vec",e),g=bye.vec[1]):(p=e7({mode:n.mode,text:n.label},e,"textord"),p=mit(p),p.italic=0,g=p.width,d&&(h+=p.depth)),f=Gt(["accent-body"],[p]);var m=n.label==="\\textcircled";m&&(f.classes.push("accent-full"),h=a.height);var y=o;m||(y-=g/2),f.style.left=tr(y),n.label==="\\textcircled"&&(f.style.top=".2em"),f=kn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:f}]})}var v=Gt(["mord","accent"],[f],e);return i?(i.children[0]=v,i.height=Math.max(v.height,i.height),i.classes[0]="mord",i):v},Rye=(t,e)=>{var r=t.isStretchy?t7(t.label):new Kt("mo",[Il(t.label,t.mode)]),n=new Kt("mover",[Un(t.base,e),r]);return n.setAttribute("accent","true"),n},Git=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));sr({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:(t,e)=>{var r=m6(e[0]),n=!Git.test(t.funcName),i=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:tq,mathmlBuilder:Rye});sr({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:tq,mathmlBuilder:Rye});sr({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(t,e)=>{var r=Rn(t.base,e),n=r7(t,e),i=t.label==="\\utilde"?.12:0,a=kn({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return Gt(["mord","accentunder"],[a],e)},mathmlBuilder:(t,e)=>{var r=t7(t.label),n=new Kt("munder",[Un(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var Xx=t=>{var e=new Kt("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};sr({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(t,e,r){var{parser:n,funcName:i}=t;return{type:"xArrow",mode:n.mode,label:i,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),i=ob(Rn(t.body,n,e),e),a=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=ob(Rn(t.below,n,e),e),s.classes.push(a+"-arrow-pad"));var o=r7(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(u-=i.depth);var d;if(s){var h=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=kn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:h}]})}else d=kn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l}]});return d.children[0].children[0].children[1].classes.push("svg-align"),Gt(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var r=t7(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var i=Xx(Un(t.body,e));if(t.below){var a=Xx(Un(t.below,e));n=new Kt("munderover",[r,a,i])}else n=new Kt("mover",[r,i])}else if(t.below){var s=Xx(Un(t.below,e));n=new Kt("munder",[r,s])}else n=Xx(),n=new Kt("mover",[r,n]);return n}});function Nye(t,e){var r=ka(t.body,e,!0);return Gt([t.mclass],r,e)}function Iye(t,e){var r,n=Ko(t.body,e);return t.mclass==="minner"?r=new Kt("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new Kt("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new Kt("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):t.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}sr({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:aa(i),isCharacterBox:X0(i)}},htmlBuilder:Nye,mathmlBuilder:Iye});var a7=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};sr({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:a7(e[0]),body:aa(e[1]),isCharacterBox:X0(e[1])}}});sr({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,i=e[1],a=e[0],s;n!=="\\stackrel"?s=a7(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:aa(i)},l={type:"supsub",mode:a.mode,base:o,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:X0(l)}},htmlBuilder:Nye,mathmlBuilder:Iye});sr({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:a7(e[0]),body:aa(e[0])}},htmlBuilder(t,e){var r=ka(t.body,e,!0),n=Gt([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=Ko(t.body,e),n=new Kt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var qit={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},qte=()=>({type:"styling",body:[],mode:"math",style:"display"}),Yte=t=>t.type==="textord"&&t.text==="@",Yit=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function Hit(t,e,r){var n=qit[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[e[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Vit(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new Yt("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],i=[n],a=0;aAV".includes(u))for(var h=0;h<2;h++){for(var f=!0,p=l+1;pAV=|." after @',s[l]);var g=Hit(u,d,t),m={type:"styling",body:[g],mode:"math",style:"display"};n.push(m),o=qte()}a%2===0?n.push(o):n.shift(),n=[],i.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var y=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:y,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}sr({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=ob(Rn(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=tr(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new Kt("mrow",[Un(t.label,e)]);return r=new Kt("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Kt("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});sr({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:r}=t;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=ob(Rn(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Kt("mrow",[Un(t.fragment,e)])}});sr({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=tn(e[0],"ordgroup"),i=n.body,a="",s=0;s=1114111)throw new Yt("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var Oye=(t,e)=>{var r=ka(t.body,e.withColor(t.color),!1);return Q0(r)},Dye=(t,e)=>{var r=Ko(t.body,e.withColor(t.color)),n=new Kt("mstyle",r);return n.setAttribute("mathcolor",t.color),n};sr({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:r}=t,n=tn(e[0],"color-token").color,i=e[1];return{type:"color",mode:r.mode,color:n,body:aa(i)}},htmlBuilder:Oye,mathmlBuilder:Dye});sr({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,i=tn(e[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:Oye,mathmlBuilder:Dye});sr({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&tn(i,"size").value}},htmlBuilder(t,e){var r=Gt(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=tr(Ai(t.size,e)))),r},mathmlBuilder(t,e){var r=new Kt("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",tr(Ai(t.size,e)))),r}});var oB={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Lye=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Yt("Expected a control sequence",t);return e},Wit=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},Mye=(t,e,r,n)=>{var i=t.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,i,n)};sr({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:r}=t;e.consumeSpaces();var n=e.fetch();if(oB[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=oB[n.text]),tn(e.parseFunction(),"internal");throw new Yt("Invalid token after macro prefix",n)}});sr({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=e.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Yt("Expected a control sequence",n);for(var a=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[a].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Yt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new Yt('Argument number "'+n.text+'" out of order');a++,o.push([])}else{if(n.text==="EOF")throw new Yt("Expected a macro definition");o[a].push(n.text)}var{tokens:l}=e.gullet.consumeArg();return s&&l.unshift(s),(r==="\\edef"||r==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},r===oB[r]),{type:"internal",mode:e.mode}}});sr({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=Lye(e.gullet.popToken());e.gullet.consumeSpaces();var i=Wit(e);return Mye(e,n,i,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});sr({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=Lye(e.gullet.popToken()),i=e.gullet.popToken(),a=e.gullet.popToken();return Mye(e,n,a,r==="\\\\globalfuture"),e.gullet.pushToken(a),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var gE=function(e,r,n){var i=fi.math[e]&&fi.math[e].replace,a=jG(i||e,r,n);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return a},rq=function(e,r,n,i){var a=n.havingBaseStyle(r),s=Gt(i.concat(a.sizingClasses(n)),[e],n),o=a.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},Pye=function(e,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=tr(a),e.height-=a,e.depth+=a},Kit=function(e,r,n,i,a,s){var o=Rs(e,"Main-Regular",a,i),l=rq(o,r,i,s);return Pye(l,i,r),l},Xit=function(e,r,n,i){return Rs(e,"Size"+r+"-Regular",n,i)},Bye=function(e,r,n,i,a,s){var o=Xit(e,r,a,i),l=rq(Gt(["delimsizing","size"+r],[o],i),Qr.TEXT,i,s);return n&&Pye(l,i,Qr.TEXT),l},k9=function(e,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Gt(["delimsizinginner",i],[Gt([],[Rs(e,r,n)])]);return{type:"elem",elem:a}},A9=function(e,r,n){var i=Wc["Size4-Regular"][e.charCodeAt(0)]?Wc["Size4-Regular"][e.charCodeAt(0)][4]:Wc["Size1-Regular"][e.charCodeAt(0)][4],a=new ph("inner",uit(e,Math.round(1e3*r))),s=new k0([a],{width:tr(i),height:tr(r),style:"width:"+tr(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=gh([],[s],n);return o.height=r,o.style.height=tr(r),o.style.width=tr(i),{type:"elem",elem:o}},lB=.008,jx={type:"kern",size:-1*lB},jit=new Set(["|","\\lvert","\\rvert","\\vert"]),Qit=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Fye=function(e,r,n,i,a,s){var o,l,u,d,h="",f=0;o=u=d=e,l=null;var p="Size1-Regular";e==="\\uparrow"?u=d="⏐":e==="\\Uparrow"?u=d="‖":e==="\\downarrow"?o=u="⏐":e==="\\Downarrow"?o=u="‖":e==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):jit.has(e)?(u="∣",h="vert",f=333):Qit.has(e)?(u="∥",h="doublevert",f=556):e==="["||e==="\\lbrack"?(o="⎡",u="⎢",d="⎣",p="Size4-Regular",h="lbrack",f=667):e==="]"||e==="\\rbrack"?(o="⎤",u="⎥",d="⎦",p="Size4-Regular",h="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(u=o="⎢",d="⎣",p="Size4-Regular",h="lfloor",f=667):e==="\\lceil"||e==="⌈"?(o="⎡",u=d="⎢",p="Size4-Regular",h="lceil",f=667):e==="\\rfloor"||e==="⌋"?(u=o="⎥",d="⎦",p="Size4-Regular",h="rfloor",f=667):e==="\\rceil"||e==="⌉"?(o="⎤",u=d="⎥",p="Size4-Regular",h="rceil",f=667):e==="("||e==="\\lparen"?(o="⎛",u="⎜",d="⎝",p="Size4-Regular",h="lparen",f=875):e===")"||e==="\\rparen"?(o="⎞",u="⎟",d="⎠",p="Size4-Regular",h="rparen",f=875):e==="\\{"||e==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",p="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",d="⎩",u="⎪",p="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",d="⎭",u="⎪",p="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",d="⎩",u="⎪",p="Size4-Regular");var g=gE(o,p,a),m=g.height+g.depth,y=gE(u,p,a),v=y.height+y.depth,b=gE(d,p,a),_=b.height+b.depth,E=0,x=1;if(l!==null){var C=gE(l,p,a);E=C.height+C.depth,x=2}var T=m+_+E,w=Math.max(0,Math.ceil((r-T)/(x*v))),N=T+w*x*v,O=i.fontMetrics().axisHeight;n&&(O*=i.sizeMultiplier);var M=N/2-O,$=[];if(h.length>0){var F=N-m-_,A=Math.round(N*1e3),I=dit(h,Math.round(F*1e3)),D=new ph(h,I),L=(f/1e3).toFixed(3)+"em",R=(A/1e3).toFixed(3)+"em",P=new k0([D],{width:L,height:R,viewBox:"0 0 "+f+" "+A}),z=gh([],[P],i);z.height=A/1e3,z.style.width=L,z.style.height=R,$.push({type:"elem",elem:z})}else{if($.push(k9(d,p,a)),$.push(jx),l===null){var B=N-m-_+2*lB;$.push(A9(u,B,i))}else{var q=(N-m-_-E)/2+2*lB;$.push(A9(u,q,i)),$.push(jx),$.push(k9(l,p,a)),$.push(jx),$.push(A9(u,q,i))}$.push(jx),$.push(k9(o,p,a))}var Y=i.havingBaseStyle(Qr.TEXT),Q=kn({positionType:"bottom",positionData:M,children:$});return rq(Gt(["delimsizing","mult"],[Q],Y),Qr.TEXT,i,s)},R9=80,N9=.08,I9=function(e,r,n,i,a){var s=cit(e,i,n),o=new ph(e,s),l=new k0([o],{width:"400em",height:tr(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return gh(["hide-tail"],[l],a)},Zit=function(e,r){var n=r.havingBaseSizing(),i=qye("\\surd",e*n.sizeMultiplier,Gye,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,h;return i.type==="small"?(d=1e3+1e3*s+R9,e<1?a=1:e<1.4&&(a=.7),l=(1+s+N9)/a,u=(1+s)/a,o=I9("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",h=.833/a):i.type==="large"?(d=(1e3+R9)*eS[i.size],u=(eS[i.size]+s)/a,l=(eS[i.size]+s+N9)/a,o=I9("sqrtSize"+i.size,l,d,s,r),o.style.minWidth="1.02em",h=1/a):(l=e+s+N9,u=e+s,d=Math.floor(1e3*e+s)+R9,o=I9("sqrtTall",l,d,s,r),o.style.minWidth="0.742em",h=1.056),o.height=u,o.style.height=tr(l),{span:o,advanceWidth:h,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},$ye=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Jit=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),zye=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),eS=[0,1.2,1.8,2.4,3],Uye=function(e,r,n,i,a){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),$ye.has(e)||zye.has(e))return Bye(e,r,!1,n,i,a);if(Jit.has(e))return Fye(e,eS[r],!1,n,i,a);throw new Yt("Illegal delimiter: '"+e+"'")},eat=[{type:"small",style:Qr.SCRIPTSCRIPT},{type:"small",style:Qr.SCRIPT},{type:"small",style:Qr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],tat=[{type:"small",style:Qr.SCRIPTSCRIPT},{type:"small",style:Qr.SCRIPT},{type:"small",style:Qr.TEXT},{type:"stack"}],Gye=[{type:"small",style:Qr.SCRIPTSCRIPT},{type:"small",style:Qr.SCRIPT},{type:"small",style:Qr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],rat=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},qye=function(e,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;sr)return o}return n[n.length-1]},cB=function(e,r,n,i,a,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;zye.has(e)?o=eat:$ye.has(e)?o=Gye:o=tat;var l=qye(e,r,o,i);return l.type==="small"?Kit(e,l.style,n,i,a,s):l.type==="large"?Bye(e,l.size,n,i,a,s):Fye(e,r,n,i,a,s)},O9=function(e,r,n,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),h=Math.max(d/500*l,2*d-u);return cB(e,h,!0,i,a,s)},Hte={"\\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}},nat=new Set(["(","\\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 s7(t,e){var r=i7(t);if(r&&nat.has(r.text))return r;throw r?new Yt("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new Yt("Invalid delimiter type '"+t.type+"'",t)}sr({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:(t,e)=>{var r=s7(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:Hte[t.funcName].size,mclass:Hte[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?Gt([t.mclass]):Uye(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Il(t.delim,t.mode));var r=new Kt("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=tr(eS[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Vte(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}sr({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Yt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:s7(e[0],t).text,color:r}}});sr({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=s7(e[0],t),n=t.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=tn(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(t,e)=>{Vte(t);for(var r=ka(t.body,e,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s{Vte(t);var r=Ko(t.body,e);if(t.left!=="."){var n=new Kt("mo",[Il(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var i=new Kt("mo",[Il(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),r.push(i)}return JG(r)}});sr({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=s7(e[0],t);if(!t.parser.leftrightDepth)throw new Yt("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;if(t.delim===".")r=JS(e,[]);else{r=Uye(t.delim,1,e,t.mode,[]);var n={delim:t.delim,options:e};r.isMiddle=n}return r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?Il("|","text"):Il(t.delim,t.mode),n=new Kt("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var nq=(t,e)=>{var r=ob(Rn(t.body,e),e),n=t.label.slice(1),i=e.sizeMultiplier,a,s=0,o=X0(t.body);if(n==="sout")a=Gt(["stretchy","sout"]),a.height=e.fontMetrics().defaultRuleThickness/i,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=Ai({number:.6,unit:"pt"},e),u=Ai({number:.35,unit:"ex"},e),d=e.havingBaseSizing();i=i/d.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=tr(h/2+l);var f=Math.floor(1e3*h*i),p=oit(f),g=new k0([new ph("phase",p)],{width:"400em",height:tr(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=gh(["hide-tail"],[g],e),a.style.height=tr(h),s=r.depth+l+u}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var m=0,y=0,v=0;/box/.test(n)?(v=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(n==="colorbox"?0:v),y=m):n==="angl"?(v=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*v,y=Math.max(0,.25-r.depth)):(m=o?.2:0,y=m),a=Uit(r,n,m,y,e),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=tr(v)):n==="angl"&&v!==.049&&(a.style.borderTopWidth=tr(v),a.style.borderRightWidth=tr(v)),s=r.depth+y,t.backgroundColor&&(a.style.backgroundColor=t.backgroundColor,t.borderColor&&(a.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=kn({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]});else{var _=/cancel|phase/.test(n)?["svg-align"]:[];b=kn({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:_}]})}return/cancel/.test(n)&&(b.height=r.height,b.depth=r.depth),/cancel/.test(n)&&!o?Gt(["mord","cancel-lap"],[b],e):Gt(["mord"],[b],e)},iq=(t,e)=>{var r=0,n=new Kt(t.label.includes("colorbox")?"mpadded":"menclose",[Un(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(t.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};sr({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=tn(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:nq,mathmlBuilder:iq});sr({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=tn(e[0],"color-token").color,s=tn(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:nq,mathmlBuilder:iq});sr({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});sr({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:nq,mathmlBuilder:iq});sr({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var Yye={};function bu(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var e=t.parser.settings;if(!e.displayMode)throw new Yt("{"+t.envName+"} can be used only in display mode.")},iat=new Set(["gather","gather*"]);function aq(t){if(!t.includes("ed"))return!t.includes("*")}function Oh(t,e,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:h,leqno:f}=e;if(t.gullet.beginGroup(),u||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=t.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new Yt("Invalid \\arraystretch: "+p)}t.gullet.beginGroup();var g=[],m=[g],y=[],v=[],b=l!=null?[]:void 0;function _(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function E(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new Oo("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),v.push(Wte(t));;){var x=t.parseExpression(!1,u?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var C={type:"ordgroup",mode:t.mode,body:x};r&&(C={type:"styling",mode:t.mode,style:r,body:[C]}),g.push(C);var T=t.fetch().text;if(T==="&"){if(h&&g.length===h){if(u||o)throw new Yt("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(T==="\\end"){E(),g.length===1&&C.type==="styling"&&C.body.length===1&&C.body[0].type==="ordgroup"&&C.body[0].body.length===0&&(m.length>1||!d)&&m.pop(),v.length0&&(_+=.25),u.push({pos:_,isDashed:it[Oe]})}for(E(s[0]),n=0;n0&&(M+=b,Tit))for(n=0;n=o)){var re=void 0;if(i>0||e.hskipBeforeAndAfter){var ce,ae;re=(ce=(ae=Y)==null?void 0:ae.pregap)!=null?ce:f,re!==0&&(I=Gt(["arraycolsep"],[]),I.style.width=tr(re),A.push(I))}var se=[];for(n=0;n0){for(var Ne=sb("hline",r,d),ut=sb("hdashline",r,d),De=[{type:"elem",elem:qe,shift:0}];u.length>0;){var Je=u.pop(),st=Je.pos-$;Je.isDashed?De.push({type:"elem",elem:ut,shift:st}):De.push({type:"elem",elem:Ne,shift:st})}qe=kn({positionType:"individualShift",children:De})}if(L.length===0)return Gt(["mord"],[qe],r);var ct=kn({positionType:"individualShift",children:L}),ot=Gt(["tag"],[ct],r);return Q0([qe,ot])},aat={c:"center ",l:"left ",r:"right "},Su=function(e,r){for(var n=[],i=new Kt("mtd",[],["mtr-glue"]),a=new Kt("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,m="",y=!1,v=0,b=g.length;g[0].type==="separator"&&(f+="top ",v=1),g[g.length-1].type==="separator"&&(f+="bottom ",b-=1);for(var _=v;_0?"left ":"",f+=N[N.length-1].length>0?"right ":"";for(var O=1;O0&&p&&(y=1),n[g]={type:"align",align:m,pregap:y,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};bu({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=i7(e[0]),n=r?[e[0]]:tn(e[0],"ordgroup").body,i=n.map(function(s){var o=n7(s),l=o.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Yt("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Oh(t.parser,a,sq(t.envName))},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new Yt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=Oh(t.parser,n,sq(t.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[a],left:e[0],right:e[1],rightColor:void 0}:a},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=Oh(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=i7(e[0]),n=r?[e[0]]:tn(e[0],"ordgroup").body,i=n.map(function(o){var l=n7(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new Yt("Unknown column alignment: "+u,o)});if(i.length>1)throw new Yt("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},s=Oh(t.parser,a,"script");if(s.body.length>0&&s.body[0].length>1)throw new Yt("{subarray} can contain only one column");return s},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Oh(t.parser,e,sq(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Vye,htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){iat.has(t.envName)&&o7(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:aq(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Oh(t.parser,e,"display")},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Vye,htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){o7(t);var e={autoTag:aq(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Oh(t.parser,e,"display")},htmlBuilder:Eu,mathmlBuilder:Su});bu({type:"array",names:["CD"],props:{numArgs:0},handler(t){return o7(t),Vit(t.parser)},htmlBuilder:Eu,mathmlBuilder:Su});Ae("\\nonumber","\\gdef\\@eqnsw{0}");Ae("\\notag","\\nonumber");sr({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new Yt(t.funcName+" valid only within array environment")}});var Kte=Yye;sr({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];if(i.type!=="ordgroup")throw new Yt("Invalid environment name",i);for(var a="",s=0;s{var r=t.font,n=e.withFont(r);return Rn(t.body,n)},Kye=(t,e)=>{var r=t.font,n=e.withFont(r);return Un(t.body,n)},Xte={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};sr({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=m6(e[0]),a=n;return a in Xte&&(a=Xte[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:Wye,mathmlBuilder:Kye});sr({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"mclass",mode:r.mode,mclass:a7(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:X0(n)}}});sr({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n,breakOnTokenText:i}=t,{mode:a}=r,s=r.parseExpression(!0,i),o="math"+n.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:Wye,mathmlBuilder:Kye});var sat=(t,e)=>{var r=e.style,n=r.fracNum(),i=r.fracDen(),a;a=e.havingStyle(n);var s=Rn(t.numer,a,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height0?g=3*f:g=7*f,m=e.fontMetrics().denom1):(h>0?(p=e.fontMetrics().num2,g=f):(p=e.fontMetrics().num3,g=3*f),m=e.fontMetrics().denom2);var y;if(d){var b=e.fontMetrics().axisHeight;p-s.depth-(b+.5*h){var r=new Kt("mfrac",[Un(t.numer,e),Un(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=Ai(t.barSize,e);r.setAttribute("linethickness",tr(n))}if(t.leftDelim!=null||t.rightDelim!=null){var i=[];if(t.leftDelim!=null){var a=new Kt("mo",[new sa(t.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),t.rightDelim!=null){var s=new Kt("mo",[new sa(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}return JG(i)}return r},Xye=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};sr({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1],s,o=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var u=n==="\\cfrac",d=null;return u||n.startsWith("\\d")?d="display":n.startsWith("\\t")&&(d="text"),Xye({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},d)},htmlBuilder:sat,mathmlBuilder:oat});sr({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:n}}});var jte=["display","text","script","scriptscript"],Qte=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};sr({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:r}=t,n=e[4],i=e[5],a=m6(e[0]),s=a.type==="atom"&&a.family==="open"?Qte(a.text):null,o=m6(e[1]),l=o.type==="atom"&&o.family==="close"?Qte(o.text):null,u=tn(e[2],"size"),d,h=null;u.isBlank?d=!0:(h=u.value,d=h.number>0);var f=null,p=e[3];if(p.type==="ordgroup"){if(p.body.length>0){var g=tn(p.body[0],"textord");f=jte[Number(g.text)]}}else p=tn(p,"textord"),f=jte[Number(p.text)];return Xye({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:d,barSize:h,leftDelim:s,rightDelim:l},f)}});sr({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:r,funcName:n,token:i}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:tn(e[0],"size").value,token:i}}});sr({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=tn(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var s=e[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null}}});var jye=(t,e)=>{var r=e.style,n,i;t.type==="supsub"?(n=t.sup?Rn(t.sup,e.havingStyle(r.sup()),e):Rn(t.sub,e.havingStyle(r.sub()),e),i=tn(t.base,"horizBrace")):i=tn(t,"horizBrace");var a=Rn(i.base,e.havingBaseStyle(Qr.DISPLAY)),s=r7(i,e),o;if(i.isOver?(o=kn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]}),o.children[0].children[0].children[1].classes.push("svg-align")):(o=kn({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]}),o.children[0].children[0].children[0].classes.push("svg-align")),n){var l=Gt(["mord",i.isOver?"mover":"munder"],[o],e);i.isOver?o=kn({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=kn({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return Gt(["mord",i.isOver?"mover":"munder"],[o],e)},lat=(t,e)=>{var r=t7(t.label);return new Kt(t.isOver?"mover":"munder",[Un(t.base,e),r])};sr({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:jye,mathmlBuilder:lat});sr({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[1],i=tn(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:aa(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=ka(t.body,e,!1);return Cit(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=mh(t.body,e);return r instanceof Kt||(r=new Kt("mrow",[r])),r.setAttribute("href",t.href),r}});sr({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=tn(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:r,funcName:n,token:i}=t,a=tn(e[0],"raw").string,s=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(n){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),d=0;d{var r=ka(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var i=Gt(n,r,e);for(var a in t.attributes)a!=="class"&&t.attributes.hasOwnProperty(a)&&i.setAttribute(a,t.attributes[a]);return i},mathmlBuilder:(t,e)=>mh(t.body,e)});sr({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"htmlmathml",mode:r.mode,html:aa(e[0]),mathml:aa(e[1])}},htmlBuilder:(t,e)=>{var r=ka(t.html,e,!1);return Q0(r)},mathmlBuilder:(t,e)=>mh(t.mathml,e)});var D9=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new Yt("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!hye(n))throw new Yt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};sr({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,r)=>{var{parser:n}=t,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=tn(r[0],"raw").string,u=l.split(","),d=0;d{var r=Ai(t.height,e),n=0;t.totalheight.number>0&&(n=Ai(t.totalheight,e)-r);var i=0;t.width.number>0&&(i=Ai(t.width,e));var a={height:tr(r+n)};i>0&&(a.width=tr(i)),n>0&&(a.verticalAlign=tr(-n));var s=new pit(t.src,t.alt,a);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new Kt("mglyph",[]);r.setAttribute("alt",t.alt);var n=Ai(t.height,e),i=0;if(t.totalheight.number>0&&(i=Ai(t.totalheight,e)-n,r.setAttribute("valign",tr(-i))),r.setAttribute("height",tr(n+i)),t.width.number>0){var a=Ai(t.width,e);r.setAttribute("width",tr(a))}return r.setAttribute("src",t.src),r}});sr({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=tn(e[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(t,e){return _ye(t.dimension,e)},mathmlBuilder(t,e){var r=Ai(t.dimension,e);return new Cye(r)}});sr({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=Gt([],[Rn(t.body,e)]),r=Gt(["inner"],[r],e)):r=Gt(["inner"],[Rn(t.body,e)]);var n=Gt(["fix"],[]),i=Gt([t.alignment],[r,n],e),a=Gt(["strut"]);return a.style.height=tr(i.height+i.depth),i.depth&&(a.style.verticalAlign=tr(-i.depth)),i.children.unshift(a),i=Gt(["thinbox"],[i],e),Gt(["mord","vbox"],[i],e)},mathmlBuilder:(t,e)=>{var r=new Kt("mpadded",[Un(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});sr({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:n}=t,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:s}}});sr({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new Yt("Mismatched "+t.funcName)}});var Zte=(t,e)=>{switch(e.style.size){case Qr.DISPLAY.size:return t.display;case Qr.TEXT.size:return t.text;case Qr.SCRIPT.size:return t.script;case Qr.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};sr({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:aa(e[0]),text:aa(e[1]),script:aa(e[2]),scriptscript:aa(e[3])}},htmlBuilder:(t,e)=>{var r=Zte(t,e),n=ka(r,e,!1);return Q0(n)},mathmlBuilder:(t,e)=>{var r=Zte(t,e);return mh(r,e)}});var Qye=(t,e,r,n,i,a,s)=>{t=Gt([],[t]);var o=r&&X0(r),l,u;if(e){var d=Rn(e,n.havingStyle(i.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=Rn(r,n.havingStyle(i.sub()),n);l={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var f;if(u&&l){var p=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+s;f=kn({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tr(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:tr(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var g=t.height-s;f=kn({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tr(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t}]})}else if(u){var m=t.depth+s;f=kn({positionType:"bottom",positionData:m,children:[{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:tr(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var y=[f];if(l&&a!==0&&!o){var v=Gt(["mspace"],[],n);v.style.marginRight=tr(a),y.unshift(v)}return Gt(["mop","op-limits"],y,n)},Zye=new Set(["\\smallint"]),Qb=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=tn(t.base,"op"),i=!0):a=tn(t,"op");var s=e.style,o=!1;s.size===Qr.DISPLAY.size&&a.symbol&&!Zye.has(a.name)&&(o=!0);var l;if(a.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),l=Rs(a.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var h=l.italic,f=Eye(d+"Size"+(o?"2":"1"),e);l=kn({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),a.name="\\"+d,l.classes.unshift("mop"),l.italic=h}}else if(a.body){var p=ka(a.body,e,!0);p.length===1&&p[0]instanceof Fo?(l=p[0],l.classes[0]="mop"):l=Gt(["mop"],p,e)}else{for(var g=[],m=1;m{var r;if(t.symbol)r=new Kt("mo",[Il(t.name,t.mode)]),Zye.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new Kt("mo",Ko(t.body,e));else{r=new Kt("mi",[new sa(t.name.slice(1))]);var n=new Kt("mo",[Il("⁡","text")]);t.parentIsSupSub?r=new Kt("mrow",[r,n]):r=xye([r,n])}return r},cat={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};sr({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=n;return i.length===1&&(i=cat[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Qb,mathmlBuilder:gT});sr({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:aa(n)}},htmlBuilder:Qb,mathmlBuilder:gT});var uat={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};sr({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(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Qb,mathmlBuilder:gT});sr({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Qb,mathmlBuilder:gT});sr({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(t){var{parser:e,funcName:r}=t,n=r;return n.length===1&&(n=uat[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Qb,mathmlBuilder:gT});var Jye=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=tn(t.base,"operatorname"),i=!0):a=tn(t,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(h=>{var f="text"in h?h.text:void 0;return typeof f=="string"?{type:"textord",mode:h.mode,text:f}:h}),l=ka(o,e.withFont("mathrm"),!0),u=0;u{for(var r=Ko(t.body,e.withFont("mathrm")),n=!0,i=0;id.toText()).join("");r=[new sa(o)]}var l=new Kt("mi",r);l.setAttribute("mathvariant","normal");var u=new Kt("mo",[Il("⁡","text")]);return t.parentIsSupSub?new Kt("mrow",[l,u]):xye([l,u])};sr({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"operatorname",mode:r.mode,body:aa(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Jye,mathmlBuilder:dat});Ae("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Qp({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?Q0(ka(t.body,e,!1)):Gt(["mord"],ka(t.body,e,!0),e)},mathmlBuilder(t,e){return mh(t.body,e,!0)}});sr({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:r}=t,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=Rn(t.body,e.havingCrampedStyle()),n=sb("overline-line",e),i=e.fontMetrics().defaultRuleThickness,a=kn({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return Gt(["mord","overline"],[a],e)},mathmlBuilder(t,e){var r=new Kt("mo",[new sa("‾")]);r.setAttribute("stretchy","true");var n=new Kt("mover",[Un(t.body,e),r]);return n.setAttribute("accent","true"),n}});sr({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"phantom",mode:r.mode,body:aa(n)}},htmlBuilder:(t,e)=>{var r=ka(t.body,e.withPhantom(),!1);return Q0(r)},mathmlBuilder:(t,e)=>{var r=Ko(t.body,e);return new Kt("mphantom",r)}});Ae("\\hphantom","\\smash{\\phantom{#1}}");sr({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=Gt(["inner"],[Rn(t.body,e.withPhantom())]),n=Gt(["fix"],[]);return Gt(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=Ko(aa(t.body),e),n=new Kt("mphantom",r),i=new Kt("mpadded",[n]);return i.setAttribute("width","0px"),i}});sr({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t,n=tn(e[0],"size").value,i=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(t,e){var r=Rn(t.body,e),n=Ai(t.dy,e);return kn({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Kt("mpadded",[Un(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});sr({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});sr({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(t,e,r){var{parser:n}=t,i=r[0],a=tn(e[0],"size"),s=tn(e[1],"size");return{type:"rule",mode:n.mode,shift:i&&tn(i,"size").value,width:a.value,height:s.value}},htmlBuilder(t,e){var r=Gt(["mord","rule"],[],e),n=Ai(t.width,e),i=Ai(t.height,e),a=t.shift?Ai(t.shift,e):0;return r.style.borderRightWidth=tr(n),r.style.borderTopWidth=tr(i),r.style.bottom=tr(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=Ai(t.width,e),n=Ai(t.height,e),i=t.shift?Ai(t.shift,e):0,a=e.color&&e.getColor()||"black",s=new Kt("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",tr(r)),s.setAttribute("height",tr(n));var o=new Kt("mpadded",[s]);return i>=0?o.setAttribute("height",tr(i)):(o.setAttribute("height",tr(i)),o.setAttribute("depth",tr(-i))),o.setAttribute("voffset",tr(i)),o}});function eve(t,e,r){for(var n=ka(t,e,!1),i=e.sizeMultiplier/r.sizeMultiplier,a=0;a{var r=e.havingSize(t.size);return eve(t.body,r,e)};sr({type:"sizing",names:Jte,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:Jte.indexOf(n)+1,body:a}},htmlBuilder:hat,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=Ko(t.body,r),i=new Kt("mstyle",n);return i.setAttribute("mathsize",tr(r.sizeMultiplier)),i}});sr({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:n}=t,i=!1,a=!1,s=r[0]&&tn(r[0],"ordgroup");if(s)for(var o="",l=0;l{var r=Gt([],[Rn(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return Gt(["mord","smash"],[r],e);if(r.children)for(var n=0;n{var r=new Kt("mpadded",[Un(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});sr({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n}=t,i=r[0],a=e[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(t,e){var r=Rn(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=ob(r,e);var n=e.fontMetrics(),i=n.defaultRuleThickness,a=i;e.style.idr.height+r.depth+s&&(s=(s+h-r.height-r.depth)/2);var f=l.height-r.height-s-u;r.style.paddingLeft=tr(d);var p=kn({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]});if(t.index){var g=e.havingStyle(Qr.SCRIPTSCRIPT),m=Rn(t.index,g,e),y=.6*(p.height-p.depth),v=kn({positionType:"shift",positionData:-y,children:[{type:"elem",elem:m}]}),b=Gt(["root"],[v]);return Gt(["mord","sqrt"],[b,p],e)}else return Gt(["mord","sqrt"],[p],e)},mathmlBuilder(t,e){var{body:r,index:n}=t;return n?new Kt("mroot",[Un(r,e),Un(n,e)]):new Kt("msqrt",[Un(r,e)])}});var ere={display:Qr.DISPLAY,text:Qr.TEXT,script:Qr.SCRIPT,scriptscript:Qr.SCRIPTSCRIPT};sr({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(t,e){var r=ere[t.style],n=e.havingStyle(r).withFont("");return eve(t.body,n,e)},mathmlBuilder(t,e){var r=ere[t.style],n=e.havingStyle(r),i=Ko(t.body,n),a=new Kt("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var fat=function(e,r){var n=e.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===Qr.DISPLAY.size||n.alwaysHandleSupSub);return i?Qb:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===Qr.DISPLAY.size||n.limits);return a?Jye:null}else{if(n.type==="accent")return X0(n.base)?tq:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?jye:null}else return null}else return null};Qp({type:"supsub",htmlBuilder(t,e){var r=fat(t,e);if(r)return r(t,e);var{base:n,sup:i,sub:a}=t,s=Rn(n,e),o,l,u=e.fontMetrics(),d=0,h=0,f=n&&X0(n);if(i){var p=e.havingStyle(e.style.sup());o=Rn(i,p,e),f||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(a){var g=e.havingStyle(e.style.sub());l=Rn(a,g,e),f||(h=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}var m;e.style===Qr.DISPLAY?m=u.sup1:e.style.cramped?m=u.sup3:m=u.sup2;var y=e.sizeMultiplier,v=tr(.5/u.ptPerEm/y),b=null;if(l){var _=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(s instanceof Fo||_)&&(b=tr(-s.italic))}var E;if(o&&l){d=Math.max(d,m,o.depth+.25*u.xHeight),h=Math.max(h,u.sub2);var x=u.defaultRuleThickness,C=4*x;if(d-o.depth-(l.height-h)0&&(d+=T,h-=T)}var w=[{type:"elem",elem:l,shift:h,marginRight:v,marginLeft:b},{type:"elem",elem:o,shift:-d,marginRight:v}];E=kn({positionType:"individualShift",children:w})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var N=[{type:"elem",elem:l,marginLeft:b,marginRight:v}];E=kn({positionType:"shift",positionData:h,children:N})}else if(o)d=Math.max(d,m,o.depth+.25*u.xHeight),E=kn({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:v}]});else throw new Error("supsub must have either sup or sub.");var O=aB(s,"right")||"mord";return Gt([O],[s,Gt(["msupsub"],[E])],e)},mathmlBuilder(t,e){var r=!1,n,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var a=[Un(t.base,e)];t.sub&&a.push(Un(t.sub,e)),t.sup&&a.push(Un(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var u=t.base;u&&u.type==="op"&&u.limits&&e.style===Qr.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(e.style===Qr.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===Qr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===Qr.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===Qr.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===Qr.DISPLAY)?s="mover":s="msup"}return new Kt(s,a)}});Qp({type:"atom",htmlBuilder(t,e){return QG(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Kt("mo",[Il(t.text,t.mode)]);if(t.family==="bin"){var n=eq(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var tve={mi:"italic",mn:"normal",mtext:"normal"};Qp({type:"mathord",htmlBuilder(t,e){return e7(t,e,"mathord")},mathmlBuilder(t,e){var r=new Kt("mi",[Il(t.text,t.mode,e)]),n=eq(t,e)||"italic";return n!==tve[r.type]&&r.setAttribute("mathvariant",n),r}});Qp({type:"textord",htmlBuilder(t,e){return e7(t,e,"textord")},mathmlBuilder(t,e){var r=Il(t.text,t.mode,e),n=eq(t,e)||"normal",i;return t.mode==="text"?i=new Kt("mtext",[r]):/[0-9]/.test(t.text)?i=new Kt("mn",[r]):t.text==="\\prime"?i=new Kt("mo",[r]):i=new Kt("mi",[r]),n!==tve[i.type]&&i.setAttribute("mathvariant",n),i}});var L9={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},M9={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Qp({type:"spacing",htmlBuilder(t,e){if(M9.hasOwnProperty(t.text)){var r=M9[t.text].className||"";if(t.mode==="text"){var n=e7(t,e,"textord");return n.classes.push(r),n}else return Gt(["mspace",r],[QG(t.text,t.mode,e)],e)}else{if(L9.hasOwnProperty(t.text))return Gt(["mspace",L9[t.text]],[],e);throw new Yt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(M9.hasOwnProperty(t.text))r=new Kt("mtext",[new sa(" ")]);else{if(L9.hasOwnProperty(t.text))return new Kt("mspace");throw new Yt('Unknown type of space "'+t.text+'"')}return r}});var tre=()=>{var t=new Kt("mtd",[]);return t.setAttribute("width","50%"),t};Qp({type:"tag",mathmlBuilder(t,e){var r=new Kt("mtable",[new Kt("mtr",[tre(),new Kt("mtd",[mh(t.body,e)]),tre(),new Kt("mtd",[mh(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var rre={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},nre={"\\textbf":"textbf","\\textmd":"textmd"},pat={"\\textit":"textit","\\textup":"textup"},ire=(t,e)=>{var r=t.font;if(r){if(rre[r])return e.withTextFontFamily(rre[r]);if(nre[r])return e.withTextFontWeight(nre[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(pat[r])};sr({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"text",mode:r.mode,body:aa(i),font:n}},htmlBuilder(t,e){var r=ire(t,e),n=ka(t.body,r,!0);return Gt(["mord","text"],n,r)},mathmlBuilder(t,e){var r=ire(t,e);return mh(t.body,r)}});sr({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Rn(t.body,e),n=sb("underline-line",e),i=e.fontMetrics().defaultRuleThickness,a=kn({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return Gt(["mord","underline"],[a],e)},mathmlBuilder(t,e){var r=new Kt("mo",[new sa("‾")]);r.setAttribute("stretchy","true");var n=new Kt("munder",[Un(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});sr({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Rn(t.body,e),n=e.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return kn({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){return new Kt("mpadded",[Un(t.body,e)],["vcenter"])}});sr({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,r){throw new Yt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=are(t),n=[],i=e.havingStyle(e.style.text()),a=0;at.body.replace(/ /g,t.star?"␣":" "),zd=Sye,rve=`[ \r + ]`,gat="\\\\[a-zA-Z@]+",mat="\\\\[^\uD800-\uDFFF]",yat="("+gat+")"+rve+"*",vat=`\\\\( |[ \r ]+ -?)[ \r ]*`,uB="[̀-ͯ]",vat=new RegExp(uB+"+$"),_at="("+rve+"+)|"+(yat+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(uB+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(uB+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+mat)+("|"+gat+")");let sre=class{constructor(e,r){this.input=e,this.settings=r,this.tokenRegex=new RegExp(_at,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new Oo("EOF",new co(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new Yt("Unexpected character: '"+e[r]+"'",new Oo(e[r],new co(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=e.indexOf(` -`,this.tokenRegex.lastIndex);return a===-1?(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=a+1,this.lex()}return new Oo(i,new co(this,r,this.tokenRegex.lastIndex))}};class bat{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Yt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}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,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}}var Eat=Hye;Ae("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});Ae("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});Ae("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});Ae("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});Ae("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});Ae("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Ae("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var ore={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};Ae("\\char",function(t){var e=t.popToken(),r,n=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new Yt("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=ore[e.text],n==null||n>=r)throw new Yt("Invalid base-"+r+" digit "+e.text);for(var i;(i=ore[t.future().text])!=null&&i{var i=t.consumeArg().tokens;if(i.length!==1)throw new Yt("\\newcommand's first argument must be a macro name");var a=i[0].text,s=t.isDefined(a);if(s&&!e)throw new Yt("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new Yt("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=t.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var l="",u=t.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Yt("Invalid number of arguments: "+l);o=parseInt(l),i=t.consumeArg().tokens}return s&&n||t.macros.set(a,{tokens:i,numArgs:o}),""};Ae("\\newcommand",t=>oq(t,!1,!0,!1));Ae("\\renewcommand",t=>oq(t,!0,!1,!1));Ae("\\providecommand",t=>oq(t,!0,!0,!0));Ae("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});Ae("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});Ae("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),zd[r],fi.math[r],fi.text[r]),""});Ae("\\bgroup","{");Ae("\\egroup","}");Ae("~","\\nobreakspace");Ae("\\lq","`");Ae("\\rq","'");Ae("\\aa","\\r a");Ae("\\AA","\\r A");Ae("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Ae("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Ae("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Ae("ℬ","\\mathscr{B}");Ae("ℰ","\\mathscr{E}");Ae("ℱ","\\mathscr{F}");Ae("ℋ","\\mathscr{H}");Ae("ℐ","\\mathscr{I}");Ae("ℒ","\\mathscr{L}");Ae("ℳ","\\mathscr{M}");Ae("ℛ","\\mathscr{R}");Ae("ℭ","\\mathfrak{C}");Ae("ℌ","\\mathfrak{H}");Ae("ℨ","\\mathfrak{Z}");Ae("\\Bbbk","\\Bbb{k}");Ae("\\llap","\\mathllap{\\textrm{#1}}");Ae("\\rlap","\\mathrlap{\\textrm{#1}}");Ae("\\clap","\\mathclap{\\textrm{#1}}");Ae("\\mathstrut","\\vphantom{(}");Ae("\\underbar","\\underline{\\text{#1}}");Ae("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Ae("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Ae("\\ne","\\neq");Ae("≠","\\neq");Ae("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");Ae("∉","\\notin");Ae("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");Ae("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Ae("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Ae("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");Ae("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");Ae("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");Ae("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Ae("⟂","\\perp");Ae("‼","\\mathclose{!\\mkern-0.8mu!}");Ae("∌","\\notni");Ae("⌜","\\ulcorner");Ae("⌝","\\urcorner");Ae("⌞","\\llcorner");Ae("⌟","\\lrcorner");Ae("©","\\copyright");Ae("®","\\textregistered");Ae("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Ae("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Ae("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Ae("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Ae("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Ae("⋮","\\vdots");Ae("\\varGamma","\\mathit{\\Gamma}");Ae("\\varDelta","\\mathit{\\Delta}");Ae("\\varTheta","\\mathit{\\Theta}");Ae("\\varLambda","\\mathit{\\Lambda}");Ae("\\varXi","\\mathit{\\Xi}");Ae("\\varPi","\\mathit{\\Pi}");Ae("\\varSigma","\\mathit{\\Sigma}");Ae("\\varUpsilon","\\mathit{\\Upsilon}");Ae("\\varPhi","\\mathit{\\Phi}");Ae("\\varPsi","\\mathit{\\Psi}");Ae("\\varOmega","\\mathit{\\Omega}");Ae("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Ae("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Ae("\\boxed","\\fbox{$\\displaystyle{#1}$}");Ae("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Ae("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Ae("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Ae("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Ae("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var lre={",":"\\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"},Sat=new Set(["bin","rel"]);Ae("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in lre?e=lre[r]:(r.slice(0,4)==="\\not"||r in fi.math&&Sat.has(fi.math[r].group))&&(e="\\dotsb"),e});var lq={")":!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};Ae("\\dotso",function(t){var e=t.future().text;return e in lq?"\\ldots\\,":"\\ldots"});Ae("\\dotsc",function(t){var e=t.future().text;return e in lq&&e!==","?"\\ldots\\,":"\\ldots"});Ae("\\cdots",function(t){var e=t.future().text;return e in lq?"\\@cdots\\,":"\\@cdots"});Ae("\\dotsb","\\cdots");Ae("\\dotsm","\\cdots");Ae("\\dotsi","\\!\\cdots");Ae("\\dotsx","\\ldots\\,");Ae("\\DOTSI","\\relax");Ae("\\DOTSB","\\relax");Ae("\\DOTSX","\\relax");Ae("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Ae("\\,","\\tmspace+{3mu}{.1667em}");Ae("\\thinspace","\\,");Ae("\\>","\\mskip{4mu}");Ae("\\:","\\tmspace+{4mu}{.2222em}");Ae("\\medspace","\\:");Ae("\\;","\\tmspace+{5mu}{.2777em}");Ae("\\thickspace","\\;");Ae("\\!","\\tmspace-{3mu}{.1667em}");Ae("\\negthinspace","\\!");Ae("\\negmedspace","\\tmspace-{4mu}{.2222em}");Ae("\\negthickspace","\\tmspace-{5mu}{.277em}");Ae("\\enspace","\\kern.5em ");Ae("\\enskip","\\hskip.5em\\relax");Ae("\\quad","\\hskip1em\\relax");Ae("\\qquad","\\hskip2em\\relax");Ae("\\tag","\\@ifstar\\tag@literal\\tag@paren");Ae("\\tag@paren","\\tag@literal{({#1})}");Ae("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new Yt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Ae("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Ae("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Ae("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Ae("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Ae("\\newline","\\\\\\relax");Ae("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var nve=tr(Wc["Main-Regular"][84][1]-.7*Wc["Main-Regular"][65][1]);Ae("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+nve+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Ae("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+nve+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Ae("\\hspace","\\@ifstar\\@hspacer\\@hspace");Ae("\\@hspace","\\hskip #1\\relax");Ae("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Ae("\\ordinarycolon",":");Ae("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Ae("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Ae("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Ae("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Ae("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Ae("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Ae("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Ae("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Ae("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Ae("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Ae("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Ae("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Ae("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Ae("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Ae("∷","\\dblcolon");Ae("∹","\\eqcolon");Ae("≔","\\coloneqq");Ae("≕","\\eqqcolon");Ae("⩴","\\Coloneqq");Ae("\\ratio","\\vcentcolon");Ae("\\coloncolon","\\dblcolon");Ae("\\colonequals","\\coloneqq");Ae("\\coloncolonequals","\\Coloneqq");Ae("\\equalscolon","\\eqqcolon");Ae("\\equalscoloncolon","\\Eqqcolon");Ae("\\colonminus","\\coloneq");Ae("\\coloncolonminus","\\Coloneq");Ae("\\minuscolon","\\eqcolon");Ae("\\minuscoloncolon","\\Eqcolon");Ae("\\coloncolonapprox","\\Colonapprox");Ae("\\coloncolonsim","\\Colonsim");Ae("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ae("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ae("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ae("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ae("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Ae("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Ae("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Ae("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Ae("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Ae("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Ae("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Ae("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Ae("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Ae("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Ae("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Ae("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Ae("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Ae("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Ae("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Ae("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Ae("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Ae("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Ae("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Ae("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Ae("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Ae("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Ae("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Ae("\\imath","\\html@mathml{\\@imath}{ı}");Ae("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Ae("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");Ae("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");Ae("⟦","\\llbracket");Ae("⟧","\\rrbracket");Ae("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");Ae("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");Ae("⦃","\\lBrace");Ae("⦄","\\rBrace");Ae("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");Ae("⦵","\\minuso");Ae("\\darr","\\downarrow");Ae("\\dArr","\\Downarrow");Ae("\\Darr","\\Downarrow");Ae("\\lang","\\langle");Ae("\\rang","\\rangle");Ae("\\uarr","\\uparrow");Ae("\\uArr","\\Uparrow");Ae("\\Uarr","\\Uparrow");Ae("\\N","\\mathbb{N}");Ae("\\R","\\mathbb{R}");Ae("\\Z","\\mathbb{Z}");Ae("\\alef","\\aleph");Ae("\\alefsym","\\aleph");Ae("\\Alpha","\\mathrm{A}");Ae("\\Beta","\\mathrm{B}");Ae("\\bull","\\bullet");Ae("\\Chi","\\mathrm{X}");Ae("\\clubs","\\clubsuit");Ae("\\cnums","\\mathbb{C}");Ae("\\Complex","\\mathbb{C}");Ae("\\Dagger","\\ddagger");Ae("\\diamonds","\\diamondsuit");Ae("\\empty","\\emptyset");Ae("\\Epsilon","\\mathrm{E}");Ae("\\Eta","\\mathrm{H}");Ae("\\exist","\\exists");Ae("\\harr","\\leftrightarrow");Ae("\\hArr","\\Leftrightarrow");Ae("\\Harr","\\Leftrightarrow");Ae("\\hearts","\\heartsuit");Ae("\\image","\\Im");Ae("\\infin","\\infty");Ae("\\Iota","\\mathrm{I}");Ae("\\isin","\\in");Ae("\\Kappa","\\mathrm{K}");Ae("\\larr","\\leftarrow");Ae("\\lArr","\\Leftarrow");Ae("\\Larr","\\Leftarrow");Ae("\\lrarr","\\leftrightarrow");Ae("\\lrArr","\\Leftrightarrow");Ae("\\Lrarr","\\Leftrightarrow");Ae("\\Mu","\\mathrm{M}");Ae("\\natnums","\\mathbb{N}");Ae("\\Nu","\\mathrm{N}");Ae("\\Omicron","\\mathrm{O}");Ae("\\plusmn","\\pm");Ae("\\rarr","\\rightarrow");Ae("\\rArr","\\Rightarrow");Ae("\\Rarr","\\Rightarrow");Ae("\\real","\\Re");Ae("\\reals","\\mathbb{R}");Ae("\\Reals","\\mathbb{R}");Ae("\\Rho","\\mathrm{P}");Ae("\\sdot","\\cdot");Ae("\\sect","\\S");Ae("\\spades","\\spadesuit");Ae("\\sub","\\subset");Ae("\\sube","\\subseteq");Ae("\\supe","\\supseteq");Ae("\\Tau","\\mathrm{T}");Ae("\\thetasym","\\vartheta");Ae("\\weierp","\\wp");Ae("\\Zeta","\\mathrm{Z}");Ae("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Ae("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Ae("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Ae("\\bra","\\mathinner{\\langle{#1}|}");Ae("\\ket","\\mathinner{|{#1}\\rangle}");Ae("\\braket","\\mathinner{\\langle{#1}\\rangle}");Ae("\\Bra","\\left\\langle#1\\right|");Ae("\\Ket","\\left|#1\\right\\rangle");var ive=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,i=e.consumeArg().tokens,a=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=h=>f=>{t&&(f.macros.set("|",s),i.length&&f.macros.set("\\|",o));var p=h;if(!h&&i.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?i:n,numArgs:0}};e.macros.set("|",l(!1)),i.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...a,...u,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};Ae("\\bra@ket",ive(!1));Ae("\\bra@set",ive(!0));Ae("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Ae("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Ae("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Ae("\\angln","{\\angl n}");Ae("\\blue","\\textcolor{##6495ed}{#1}");Ae("\\orange","\\textcolor{##ffa500}{#1}");Ae("\\pink","\\textcolor{##ff00af}{#1}");Ae("\\red","\\textcolor{##df0030}{#1}");Ae("\\green","\\textcolor{##28ae7b}{#1}");Ae("\\gray","\\textcolor{gray}{#1}");Ae("\\purple","\\textcolor{##9d38bd}{#1}");Ae("\\blueA","\\textcolor{##ccfaff}{#1}");Ae("\\blueB","\\textcolor{##80f6ff}{#1}");Ae("\\blueC","\\textcolor{##63d9ea}{#1}");Ae("\\blueD","\\textcolor{##11accd}{#1}");Ae("\\blueE","\\textcolor{##0c7f99}{#1}");Ae("\\tealA","\\textcolor{##94fff5}{#1}");Ae("\\tealB","\\textcolor{##26edd5}{#1}");Ae("\\tealC","\\textcolor{##01d1c1}{#1}");Ae("\\tealD","\\textcolor{##01a995}{#1}");Ae("\\tealE","\\textcolor{##208170}{#1}");Ae("\\greenA","\\textcolor{##b6ffb0}{#1}");Ae("\\greenB","\\textcolor{##8af281}{#1}");Ae("\\greenC","\\textcolor{##74cf70}{#1}");Ae("\\greenD","\\textcolor{##1fab54}{#1}");Ae("\\greenE","\\textcolor{##0d923f}{#1}");Ae("\\goldA","\\textcolor{##ffd0a9}{#1}");Ae("\\goldB","\\textcolor{##ffbb71}{#1}");Ae("\\goldC","\\textcolor{##ff9c39}{#1}");Ae("\\goldD","\\textcolor{##e07d10}{#1}");Ae("\\goldE","\\textcolor{##a75a05}{#1}");Ae("\\redA","\\textcolor{##fca9a9}{#1}");Ae("\\redB","\\textcolor{##ff8482}{#1}");Ae("\\redC","\\textcolor{##f9685d}{#1}");Ae("\\redD","\\textcolor{##e84d39}{#1}");Ae("\\redE","\\textcolor{##bc2612}{#1}");Ae("\\maroonA","\\textcolor{##ffbde0}{#1}");Ae("\\maroonB","\\textcolor{##ff92c6}{#1}");Ae("\\maroonC","\\textcolor{##ed5fa6}{#1}");Ae("\\maroonD","\\textcolor{##ca337c}{#1}");Ae("\\maroonE","\\textcolor{##9e034e}{#1}");Ae("\\purpleA","\\textcolor{##ddd7ff}{#1}");Ae("\\purpleB","\\textcolor{##c6b9fc}{#1}");Ae("\\purpleC","\\textcolor{##aa87ff}{#1}");Ae("\\purpleD","\\textcolor{##7854ab}{#1}");Ae("\\purpleE","\\textcolor{##543b78}{#1}");Ae("\\mintA","\\textcolor{##f5f9e8}{#1}");Ae("\\mintB","\\textcolor{##edf2df}{#1}");Ae("\\mintC","\\textcolor{##e0e5cc}{#1}");Ae("\\grayA","\\textcolor{##f6f7f7}{#1}");Ae("\\grayB","\\textcolor{##f0f1f2}{#1}");Ae("\\grayC","\\textcolor{##e3e5e6}{#1}");Ae("\\grayD","\\textcolor{##d6d8da}{#1}");Ae("\\grayE","\\textcolor{##babec2}{#1}");Ae("\\grayF","\\textcolor{##888d93}{#1}");Ae("\\grayG","\\textcolor{##626569}{#1}");Ae("\\grayH","\\textcolor{##3b3e40}{#1}");Ae("\\grayI","\\textcolor{##21242c}{#1}");Ae("\\kaBlue","\\textcolor{##314453}{#1}");Ae("\\kaGreen","\\textcolor{##71B307}{#1}");var ave={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Tat{constructor(e,r,n){this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new bat(Eat,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new sre(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&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){var r,n,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Oo("EOF",n.loc)),this.pushTokens(i),new Oo("",co.range(r,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Yt("Extra }",a)}else if(a.text==="EOF")throw new Yt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",a);if(e&&n)if((s===0||s===1&&e[o]==="{")&&a.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new Yt("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;ithis.settings.maxExpand)throw new Yt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||e&&i.unexpandable){if(e&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new Yt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Yt("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Yt("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Oo(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var s=i.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var o=new sre(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(e){return this.macros.has(e)||zd.hasOwnProperty(e)||fi.math.hasOwnProperty(e)||fi.text.hasOwnProperty(e)||ave.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:zd.hasOwnProperty(e)&&!zd[e].primitive}}var cre=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Qx=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),P9={"́":{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"}},ure={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let sve=class ove{constructor(e,r){this.mode="math",this.gullet=new Tat(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new Yt("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(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{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Oo("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(ove.endOfExpression.has(i.text)||r&&i.text===r||e&&zd[i.text]&&zd[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,i=0;i=128)this.settings.strict&&(dye(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:co.range(e),text:r};else return null;if(this.consume(),a)for(var h=0;h0){if(++e>=hst)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function wm(t){return function(){return t}}var y6=(function(){try{var t=tg(Object,"defineProperty");return t({},"",{}),t}catch{}})(),mst=y6?function(t,e){return y6(t,"toString",{configurable:!0,enumerable:!1,value:wm(e),writable:!0})}:Jp,vve=gst(mst);function _ve(t,e){for(var r=-1,n=t==null?0:t.length;++r-1}var Est=9007199254740991,Sst=/^(?:0|[1-9]\d*)$/;function c7(t,e){var r=typeof t;return e=e??Est,!!e&&(r=="number"||r!="symbol"&&Sst.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=Cst}function Dh(t){return t!=null&&dq(t.length)&&!e4(t)}function t4(t,e,r){if(!$o(r))return!1;var n=typeof e;return(n=="number"?Dh(r)&&c7(e,r.length):n=="string"&&e in r)?Zb(r[e],t):!1}function wst(t){return h7(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&t4(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n-1}function Mot(t,e){var r=this.__data__,n=m7(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Z0(t){var e=-1,r=t==null?0:t.length;for(this.clear();++eo))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&zct?new i4:void 0;for(a.set(t,e),a.set(e,t);++h2?e[2]:void 0;for(i&&t4(e[0],e[1],i)&&(n=1);++r-1?i[a?e[s]:s]:void 0}}var Rut=Math.max;function Nut(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:Vat(r);return i<0&&(i=Rut(n+i,0)),bve(t,Lh(e),i)}var xq=Aut(Nut);function jve(t,e){var r=-1,n=Dh(t)?Array(t.length):[];return b7(t,function(i,a,s){n[++r]=e(i,a,s)}),n}function oa(t,e){var r=la(t)?jm:jve;return r(t,Lh(e))}function Iut(t,e){return t==null?t:Eq(t,Tq(e),rg)}function Out(t,e){return t&&Sq(t,Tq(e))}function Dut(t,e){return t>e}var Lut=Object.prototype,Mut=Lut.hasOwnProperty;function Put(t,e){return t!=null&&Mut.call(t,e)}function Qve(t,e){return t!=null&&Hve(t,e,Put)}function But(t,e){return jm(e,function(r){return t[r]})}function _0(t){return t==null?[]:But(t,Io(t))}var Fut="[object Map]",$ut="[object Set]",zut=Object.prototype,Uut=zut.hasOwnProperty;function Ure(t){if(t==null)return!0;if(Dh(t)&&(la(t)||typeof t=="string"||typeof t.splice=="function"||cb(t)||g7(t)||lb(t)))return!t.length;var e=fl(t);if(e==Fut||e==$ut)return!t.size;if(f7(t))return!kve(t).length;for(var r in t)if(Uut.call(t,r))return!1;return!0}function Ki(t){return t===void 0}function Zve(t,e){return te||a&&s&&l&&!o&&!u||n&&s&&l||!r&&l||!i)return 1;if(!n&&!a&&!u&&t=o)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return t.index-e.index}function Wut(t,e,r){e.length?e=jm(e,function(a){return la(a)?function(s){return _7(s,a.length===1?a[0]:a)}:a}):e=[Jp];var n=-1;e=jm(e,p7(Lh));var i=jve(t,function(a,s,o){var l=jm(e,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return Yut(i,function(a,s){return Vut(a,s,r)})}function Kut(t,e){return qut(t,e,function(r,n){return Vve(t,n)})}var b6=jot(function(t,e){return t==null?{}:Kut(t,e)}),Xut=Math.ceil,jut=Math.max;function Qut(t,e,r,n){for(var i=-1,a=jut(Xut((e-t)/(r||1)),0),s=Array(a);a--;)s[++i]=t,t+=r;return s}function Zut(t){return function(e,r,n){return n&&typeof n!="number"&&t4(e,r,n)&&(r=n=void 0),e=l5(e),r===void 0?(r=e,e=0):r=l5(r),n=n===void 0?e1&&t4(t,e[0],e[1])?e=[]:r>2&&t4(e[0],e[1],e[2])&&(e=[e[0]]),Wut(t,gq(e),[])}),e0t=1/0,t0t=Qm&&1/_q(new Qm([,-0]))[1]==e0t?function(t){return new Qm(t)}:dst,r0t=200;function n0t(t,e,r){var n=-1,i=bst,a=t.length,s=!0,o=[],l=o;if(a>=r0t){var u=t0t(t);if(u)return _q(u);s=!1,i=Uve,l=new i4}else l=o;e:for(;++n1?i.setNode(a,r):i.setNode(a)}),this}setNode(e,r){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=lf,this._children[e]={},this._children[lf][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var r=n=>this.removeEdge(this._edgeObjs[n]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],Rt(this.children(e),n=>{this.setParent(n)}),delete this._children[e]),Rt(Io(this._in[e]),r),delete this._in[e],delete this._preds[e],Rt(Io(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Ki(r))r=lf;else{r+="";for(var n=r;!Ki(n);n=this.parent(n))if(n===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==lf)return r}}children(e){if(Ki(e)&&(e=lf),this._isCompound){var r=this._children[e];if(r)return Io(r)}else{if(e===lf)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return Io(r)}successors(e){var r=this._sucs[e];if(r)return Io(r)}neighbors(e){var r=this.predecessors(e);if(r)return i0t(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;Rt(this._nodes,function(s,o){e(o)&&r.setNode(o,s)}),Rt(this._edgeObjs,function(s){r.hasNode(s.v)&&r.hasNode(s.w)&&r.setEdge(s,n.edge(s))});var i={};function a(s){var o=n.parent(s);return o===void 0||r.hasNode(o)?(i[s]=o,o):o in i?i[o]:a(o)}return this._isCompound&&Rt(r.nodes(),function(s){r.setParent(s,a(s))}),r}setDefaultEdgeLabel(e){return e4(e)||(e=wm(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return _0(this._edgeObjs)}setPath(e,r){var n=this,i=arguments;return vT(e,function(a,s){return i.length>1?n.setEdge(a,s,r):n.setEdge(a,s),s}),this}setEdge(){var e,r,n,i,a=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(e=s.v,r=s.w,n=s.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=s,r=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,r=""+r,Ki(n)||(n=""+n);var o=mE(this._isDirected,e,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return a&&(this._edgeLabels[o]=i),this;if(!Ki(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[o]=a?i:this._defaultEdgeLabelFn(e,r,n);var l=c0t(this._isDirected,e,r,n);return e=l.v,r=l.w,Object.freeze(l),this._edgeObjs[o]=l,qre(this._preds[r],e),qre(this._sucs[e],r),this._in[r][o]=l,this._out[e][o]=l,this._edgeCount++,this}edge(e,r,n){var i=arguments.length===1?z9(this._isDirected,arguments[0]):mE(this._isDirected,e,r,n);return this._edgeLabels[i]}hasEdge(e,r,n){var i=arguments.length===1?z9(this._isDirected,arguments[0]):mE(this._isDirected,e,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,r,n){var i=arguments.length===1?z9(this._isDirected,arguments[0]):mE(this._isDirected,e,r,n),a=this._edgeObjs[i];return a&&(e=a.v,r=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Yre(this._preds[r],e),Yre(this._sucs[e],r),delete this._in[r][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,r){var n=this._in[e];if(n){var i=_0(n);return r?o0(i,function(a){return a.v===r}):i}}outEdges(e,r){var n=this._out[e];if(n){var i=_0(n);return r?o0(i,function(a){return a.w===r}):i}}nodeEdges(e,r){var n=this.inEdges(e,r);if(n)return n.concat(this.outEdges(e,r))}}xo.prototype._nodeCount=0;xo.prototype._edgeCount=0;function qre(t,e){t[e]?t[e]++:t[e]=1}function Yre(t,e){--t[e]||delete t[e]}function mE(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var s=i;i=a,a=s}return i+Gre+a+Gre+(Ki(n)?l0t:n)}function c0t(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var s=i;i=a,a=s}var o={v:i,w:a};return n&&(o.name=n),o}function z9(t,e){return mE(t,e.v,e.w,e.name)}class u0t{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return Hre(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&Hre(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,n=r._prev;n!==r;)e.push(JSON.stringify(n,d0t)),n=n._prev;return"["+e.join(", ")+"]"}}function Hre(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function d0t(t,e){if(t!=="_next"&&t!=="_prev")return e}var h0t=wm(1);function f0t(t,e){if(t.nodeCount()<=1)return[];var r=g0t(t,e||h0t),n=p0t(r.graph,r.buckets,r.zeroIdx);return Jb(oa(n,function(i){return t.outEdges(i.v,i.w)}))}function p0t(t,e,r){for(var n=[],i=e[e.length-1],a=e[0],s;t.nodeCount();){for(;s=a.dequeue();)U9(t,e,r,s);for(;s=i.dequeue();)U9(t,e,r,s);if(t.nodeCount()){for(var o=e.length-2;o>0;--o)if(s=e[o].dequeue(),s){n=n.concat(U9(t,e,r,s,!0));break}}}return n}function U9(t,e,r,n,i){var a=i?[]:void 0;return Rt(t.inEdges(n.v),function(s){var o=t.edge(s),l=t.node(s.v);i&&a.push({v:s.v,w:s.w}),l.out-=o,vB(e,r,l)}),Rt(t.outEdges(n.v),function(s){var o=t.edge(s),l=s.w,u=t.node(l);u.in-=o,vB(e,r,u)}),t.removeNode(n.v),a}function g0t(t,e){var r=new xo,n=0,i=0;Rt(t.nodes(),function(o){r.setNode(o,{v:o,in:0,out:0})}),Rt(t.edges(),function(o){var l=r.edge(o.v,o.w)||0,u=e(o),d=l+u;r.setEdge(o.v,o.w,d),i=Math.max(i,r.node(o.v).out+=u),n=Math.max(n,r.node(o.w).in+=u)});var a=db(i+n+3).map(function(){return new u0t}),s=n+1;return Rt(r.nodes(),function(o){vB(a,s,r.node(o))}),{graph:r,buckets:a,zeroIdx:s}}function vB(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}function m0t(t){var e=t.graph().acyclicer==="greedy"?f0t(t,r(t)):y0t(t);Rt(e,function(n){var i=t.edge(n);t.removeEdge(n),i.forwardName=n.name,i.reversed=!0,t.setEdge(n.w,n.v,i,kq("rev"))});function r(n){return function(i){return n.edge(i).weight}}}function y0t(t){var e=[],r={},n={};function i(a){Object.prototype.hasOwnProperty.call(n,a)||(n[a]=!0,r[a]=!0,Rt(t.outEdges(a),function(s){Object.prototype.hasOwnProperty.call(r,s.w)?e.push(s):i(s.w)}),delete r[a])}return Rt(t.nodes(),i),e}function v0t(t){Rt(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}})}function e2(t,e,r,n){var i;do i=kq(n);while(t.hasNode(i));return r.dummy=e,t.setNode(i,r),i}function _0t(t){var e=new xo().setGraph(t.graph());return Rt(t.nodes(),function(r){e.setNode(r,t.node(r))}),Rt(t.edges(),function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},i=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),e}function Jve(t){var e=new xo({multigraph:t.isMultigraph()}).setGraph(t.graph());return Rt(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),Rt(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e}function Vre(t,e){var r=t.x,n=t.y,i=e.x-r,a=e.y-n,s=t.width/2,o=t.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var l,u;return Math.abs(a)*s>Math.abs(i)*o?(a<0&&(o=-o),l=o*i/a,u=o):(i<0&&(s=-s),l=s,u=s*a/i),{x:r+l,y:n+u}}function S7(t){var e=oa(db(e_e(t)+1),function(){return[]});return Rt(t.nodes(),function(r){var n=t.node(r),i=n.rank;Ki(i)||(e[i][n.order]=r)}),e}function b0t(t){var e=a4(oa(t.nodes(),function(r){return t.node(r).rank}));Rt(t.nodes(),function(r){var n=t.node(r);Qve(n,"rank")&&(n.rank-=e)})}function E0t(t){var e=a4(oa(t.nodes(),function(a){return t.node(a).rank})),r=[];Rt(t.nodes(),function(a){var s=t.node(a).rank-e;r[s]||(r[s]=[]),r[s].push(a)});var n=0,i=t.graph().nodeRankFactor;Rt(r,function(a,s){Ki(a)&&s%i!==0?--n:n&&Rt(a,function(o){t.node(o).rank+=n})})}function Wre(t,e,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),e2(t,"border",i,e)}function e_e(t){return Ip(oa(t.nodes(),function(e){var r=t.node(e).rank;if(!Ki(r))return r}))}function S0t(t,e){var r={lhs:[],rhs:[]};return Rt(t,function(n){e(n)?r.lhs.push(n):r.rhs.push(n)}),r}function T0t(t,e){return e()}function x0t(t){function e(r){var n=t.children(r),i=t.node(r);if(n.length&&Rt(n,e),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,s=i.maxRank+1;as.lim&&(o=s,l=!0);var u=o0(e.edges(),function(d){return l===jre(t,t.node(d.v),o)&&l!==jre(t,t.node(d.w),o)});return wq(u,function(d){return s4(e,d)})}function c_e(t,e,r,n){var i=r.v,a=r.w;t.removeEdge(i,a),t.setEdge(n.v,n.w,{}),Nq(t),Rq(t,e),$0t(t,e)}function $0t(t,e){var r=xq(t.nodes(),function(i){return!e.node(i).parent}),n=B0t(t,r);n=n.slice(1),Rt(n,function(i){var a=t.node(i).parent,s=e.edge(i,a),o=!1;s||(s=e.edge(a,i),o=!0),e.node(i).rank=e.node(a).rank+(o?s.minlen:-s.minlen)})}function z0t(t,e,r){return t.hasEdge(e,r)}function jre(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}function U0t(t){switch(t.graph().ranker){case"network-simplex":Qre(t);break;case"tight-tree":q0t(t);break;case"longest-path":G0t(t);break;default:Qre(t)}}var G0t=Aq;function q0t(t){Aq(t),r_e(t)}function Qre(t){ng(t)}function Y0t(t){var e=e2(t,"root",{},"_root"),r=H0t(t),n=Ip(_0(r))-1,i=2*n+1;t.graph().nestingRoot=e,Rt(t.edges(),function(s){t.edge(s).minlen*=i});var a=V0t(t)+1;Rt(t.children(),function(s){u_e(t,e,i,a,n,r,s)}),t.graph().nodeRankFactor=i}function u_e(t,e,r,n,i,a,s){var o=t.children(s);if(!o.length){s!==e&&t.setEdge(e,s,{weight:0,minlen:r});return}var l=Wre(t,"_bt"),u=Wre(t,"_bb"),d=t.node(s);t.setParent(l,s),d.borderTop=l,t.setParent(u,s),d.borderBottom=u,Rt(o,function(h){u_e(t,e,r,n,i,a,h);var f=t.node(h),p=f.borderTop?f.borderTop:h,g=f.borderBottom?f.borderBottom:h,m=f.borderTop?n:2*n,y=p!==g?1:i-a[s]+1;t.setEdge(l,p,{weight:m,minlen:y,nestingEdge:!0}),t.setEdge(g,u,{weight:m,minlen:y,nestingEdge:!0})}),t.parent(s)||t.setEdge(e,l,{weight:0,minlen:i+a[s]})}function H0t(t){var e={};function r(n,i){var a=t.children(n);a&&a.length&&Rt(a,function(s){r(s,i+1)}),e[n]=i}return Rt(t.children(),function(n){r(n,1)}),e}function V0t(t){return vT(t.edges(),function(e,r){return e+t.edge(r).weight},0)}function W0t(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,Rt(t.edges(),function(r){var n=t.edge(r);n.nestingEdge&&t.removeEdge(r)})}function K0t(t,e,r){var n={},i;Rt(r,function(a){for(var s=t.parent(a),o,l;s;){if(o=t.parent(s),o?(l=n[o],n[o]=s):(l=i,i=s),l&&l!==s){e.setEdge(l,s);return}s=o}})}function X0t(t,e,r){var n=j0t(t),i=new xo({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(a){return t.node(a)});return Rt(t.nodes(),function(a){var s=t.node(a),o=t.parent(a);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(i.setNode(a),i.setParent(a,o||n),Rt(t[r](a),function(l){var u=l.v===a?l.w:l.v,d=i.edge(u,a),h=Ki(d)?0:d.weight;i.setEdge(u,a,{weight:t.edge(l).weight+h})}),Object.prototype.hasOwnProperty.call(s,"minRank")&&i.setNode(a,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),i}function j0t(t){for(var e;t.hasNode(e=kq("_root")););return e}function Q0t(t,e){for(var r=0,n=1;n0;)d%2&&(h+=o[d+1]),d=d-1>>1,o[d]+=u.weight;l+=u.weight*h})),l}function J0t(t){var e={},r=o0(t.nodes(),function(o){return!t.children(o).length}),n=Ip(oa(r,function(o){return t.node(o).rank})),i=oa(db(n+1),function(){return[]});function a(o){if(!Qve(e,o)){e[o]=!0;var l=t.node(o);i[l.rank].push(o),Rt(t.successors(o),a)}}var s=_T(r,function(o){return t.node(o).rank});return Rt(s,a),i}function edt(t,e){return oa(e,function(r){var n=t.inEdges(r);if(n.length){var i=vT(n,function(a,s){var o=t.edge(s),l=t.node(s.v);return{sum:a.sum+o.weight*l.order,weight:a.weight+o.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function tdt(t,e){var r={};Rt(t,function(i,a){var s=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};Ki(i.barycenter)||(s.barycenter=i.barycenter,s.weight=i.weight)}),Rt(e.edges(),function(i){var a=r[i.v],s=r[i.w];!Ki(a)&&!Ki(s)&&(s.indegree++,a.out.push(r[i.w]))});var n=o0(r,function(i){return!i.indegree});return rdt(n)}function rdt(t){var e=[];function r(a){return function(s){s.merged||(Ki(s.barycenter)||Ki(a.barycenter)||s.barycenter>=a.barycenter)&&ndt(a,s)}}function n(a){return function(s){s.in.push(a),--s.indegree===0&&t.push(s)}}for(;t.length;){var i=t.pop();e.push(i),Rt(i.in.reverse(),r(i)),Rt(i.out,n(i))}return oa(o0(e,function(a){return!a.merged}),function(a){return b6(a,["vs","i","barycenter","weight"])})}function ndt(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}function idt(t,e){var r=S0t(t,function(d){return Object.prototype.hasOwnProperty.call(d,"barycenter")}),n=r.lhs,i=_T(r.rhs,function(d){return-d.i}),a=[],s=0,o=0,l=0;n.sort(adt(!!e)),l=Zre(a,i,l),Rt(n,function(d){l+=d.vs.length,a.push(d.vs),s+=d.barycenter*d.weight,o+=d.weight,l=Zre(a,i,l)});var u={vs:Jb(a)};return o&&(u.barycenter=s/o,u.weight=o),u}function Zre(t,e,r){for(var n;e.length&&(n=_6(e)).i<=r;)e.pop(),t.push(n.vs),r++;return r}function adt(t){return function(e,r){return e.barycenterr.barycenter?1:t?r.i-e.i:e.i-r.i}}function d_e(t,e,r,n){var i=t.children(e),a=t.node(e),s=a?a.borderLeft:void 0,o=a?a.borderRight:void 0,l={};s&&(i=o0(i,function(g){return g!==s&&g!==o}));var u=edt(t,i);Rt(u,function(g){if(t.children(g.v).length){var m=d_e(t,g.v,r,n);l[g.v]=m,Object.prototype.hasOwnProperty.call(m,"barycenter")&&odt(g,m)}});var d=tdt(u,r);sdt(d,l);var h=idt(d,n);if(s&&(h.vs=Jb([s,h.vs,o]),t.predecessors(s).length)){var f=t.node(t.predecessors(s)[0]),p=t.node(t.predecessors(o)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+f.order+p.order)/(h.weight+2),h.weight+=2}return h}function sdt(t,e){Rt(t,function(r){r.vs=Jb(r.vs.map(function(n){return e[n]?e[n].vs:n}))})}function odt(t,e){Ki(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}function ldt(t){var e=e_e(t),r=Jre(t,db(1,e+1),"inEdges"),n=Jre(t,db(e-1,-1,-1),"outEdges"),i=J0t(t);ene(t,i);for(var a=Number.POSITIVE_INFINITY,s,o=0,l=0;l<4;++o,++l){cdt(o%2?r:n,o%4>=2),i=S7(t);var u=Q0t(t,i);us||o>e[l].lim));for(u=l,l=n;(l=t.parent(l))!==u;)a.push(l);return{path:i.concat(a.reverse()),lca:u}}function hdt(t){var e={},r=0;function n(i){var a=r;Rt(t.children(i),n),e[i]={low:a,lim:r++}}return Rt(t.children(),n),e}function fdt(t,e){var r={};function n(i,a){var s=0,o=0,l=i.length,u=_6(a);return Rt(a,function(d,h){var f=gdt(t,d),p=f?t.node(f).order:l;(f||d===u)&&(Rt(a.slice(o,h+1),function(g){Rt(t.predecessors(g),function(m){var y=t.node(m),v=y.order;(vu)&&h_e(r,f,d)})})}function i(a,s){var o=-1,l,u=0;return Rt(s,function(d,h){if(t.node(d).dummy==="border"){var f=t.predecessors(d);f.length&&(l=t.node(f[0]).order,n(s,u,h,o,l),u=h,o=l)}n(s,u,s.length,l,a.length)}),s}return vT(e,i),r}function gdt(t,e){if(t.node(e).dummy)return xq(t.predecessors(e),function(r){return t.node(r).dummy})}function h_e(t,e,r){if(e>r){var n=e;e=r,r=n}Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=t[e];Object.defineProperty(i,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function mdt(t,e,r){if(e>r){var n=e;e=r,r=n}return!!t[e]&&Object.prototype.hasOwnProperty.call(t[e],r)}function ydt(t,e,r,n){var i={},a={},s={};return Rt(e,function(o){Rt(o,function(l,u){i[l]=l,a[l]=l,s[l]=u})}),Rt(e,function(o){var l=-1;Rt(o,function(u){var d=n(u);if(d.length){d=_T(d,function(m){return s[m]});for(var h=(d.length-1)/2,f=Math.floor(h),p=Math.ceil(h);f<=p;++f){var g=d[f];a[u]===u&&l{var n=r(" buildLayoutGraph",()=>Fdt(t));r(" runLayout",()=>Adt(n,r)),r(" updateInputGraph",()=>Rdt(t,n))})}function Adt(t,e){e(" makeSpaceForEdgeLabels",()=>$dt(t)),e(" removeSelfEdges",()=>Kdt(t)),e(" acyclic",()=>m0t(t)),e(" nestingGraph.run",()=>Y0t(t)),e(" rank",()=>U0t(Jve(t))),e(" injectEdgeLabelProxies",()=>zdt(t)),e(" removeEmptyRanks",()=>E0t(t)),e(" nestingGraph.cleanup",()=>W0t(t)),e(" normalizeRanks",()=>b0t(t)),e(" assignRankMinMax",()=>Udt(t)),e(" removeEdgeLabelProxies",()=>Gdt(t)),e(" normalize.run",()=>R0t(t)),e(" parentDummyChains",()=>udt(t)),e(" addBorderSegments",()=>x0t(t)),e(" order",()=>ldt(t)),e(" insertSelfEdges",()=>Xdt(t)),e(" adjustCoordinateSystem",()=>C0t(t)),e(" position",()=>wdt(t)),e(" positionSelfEdges",()=>jdt(t)),e(" removeBorderNodes",()=>Wdt(t)),e(" normalize.undo",()=>I0t(t)),e(" fixupEdgeLabelCoords",()=>Hdt(t)),e(" undoCoordinateSystem",()=>w0t(t)),e(" translateGraph",()=>qdt(t)),e(" assignNodeIntersects",()=>Ydt(t)),e(" reversePoints",()=>Vdt(t)),e(" acyclic.undo",()=>v0t(t))}function Rdt(t,e){Rt(t.nodes(),function(r){var n=t.node(r),i=e.node(r);n&&(n.x=i.x,n.y=i.y,e.children(r).length&&(n.width=i.width,n.height=i.height))}),Rt(t.edges(),function(r){var n=t.edge(r),i=e.edge(r);n.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(n.x=i.x,n.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}var Ndt=["nodesep","edgesep","ranksep","marginx","marginy"],Idt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Odt=["acyclicer","ranker","rankdir","align"],Ddt=["width","height"],Ldt={width:0,height:0},Mdt=["minlen","weight","width","height","labeloffset"],Pdt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Bdt=["labelpos"];function Fdt(t){var e=new xo({multigraph:!0,compound:!0}),r=H9(t.graph());return e.setGraph(yB({},Idt,Y9(r,Ndt),b6(r,Odt))),Rt(t.nodes(),function(n){var i=H9(t.node(n));e.setNode(n,xut(Y9(i,Ddt),Ldt)),e.setParent(n,t.parent(n))}),Rt(t.edges(),function(n){var i=H9(t.edge(n));e.setEdge(n,yB({},Pdt,Y9(i,Mdt),b6(i,Bdt)))}),e}function $dt(t){var e=t.graph();e.ranksep/=2,Rt(t.edges(),function(r){var n=t.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function zdt(t){Rt(t.edges(),function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),i=t.node(e.w),a={rank:(i.rank-n.rank)/2+n.rank,e};e2(t,"edge-proxy",a,"_ep")}})}function Udt(t){var e=0;Rt(t.nodes(),function(r){var n=t.node(r);n.borderTop&&(n.minRank=t.node(n.borderTop).rank,n.maxRank=t.node(n.borderBottom).rank,e=Ip(e,n.maxRank))}),t.graph().maxRank=e}function Gdt(t){Rt(t.nodes(),function(e){var r=t.node(e);r.dummy==="edge-proxy"&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))})}function qdt(t){var e=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,i=0,a=t.graph(),s=a.marginx||0,o=a.marginy||0;function l(u){var d=u.x,h=u.y,f=u.width,p=u.height;e=Math.min(e,d-f/2),r=Math.max(r,d+f/2),n=Math.min(n,h-p/2),i=Math.max(i,h+p/2)}Rt(t.nodes(),function(u){l(t.node(u))}),Rt(t.edges(),function(u){var d=t.edge(u);Object.prototype.hasOwnProperty.call(d,"x")&&l(d)}),e-=s,n-=o,Rt(t.nodes(),function(u){var d=t.node(u);d.x-=e,d.y-=n}),Rt(t.edges(),function(u){var d=t.edge(u);Rt(d.points,function(h){h.x-=e,h.y-=n}),Object.prototype.hasOwnProperty.call(d,"x")&&(d.x-=e),Object.prototype.hasOwnProperty.call(d,"y")&&(d.y-=n)}),a.width=r-e+s,a.height=i-n+o}function Ydt(t){Rt(t.edges(),function(e){var r=t.edge(e),n=t.node(e.v),i=t.node(e.w),a,s;r.points?(a=r.points[0],s=r.points[r.points.length-1]):(r.points=[],a=i,s=n),r.points.unshift(Vre(n,a)),r.points.push(Vre(i,s))})}function Hdt(t){Rt(t.edges(),function(e){var r=t.edge(e);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Vdt(t){Rt(t.edges(),function(e){var r=t.edge(e);r.reversed&&r.points.reverse()})}function Wdt(t){Rt(t.nodes(),function(e){if(t.children(e).length){var r=t.node(e),n=t.node(r.borderTop),i=t.node(r.borderBottom),a=t.node(_6(r.borderLeft)),s=t.node(_6(r.borderRight));r.width=Math.abs(s.x-a.x),r.height=Math.abs(i.y-n.y),r.x=a.x+r.width/2,r.y=n.y+r.height/2}}),Rt(t.nodes(),function(e){t.node(e).dummy==="border"&&t.removeNode(e)})}function Kdt(t){Rt(t.edges(),function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}function Xdt(t){var e=S7(t);Rt(e,function(r){var n=0;Rt(r,function(i,a){var s=t.node(i);s.order=a+n,Rt(s.selfEdges,function(o){e2(t,"selfedge",{width:o.label.width,height:o.label.height,rank:s.rank,order:a+ ++n,e:o.e,label:o.label},"_se")}),delete s.selfEdges})})}function jdt(t){Rt(t.nodes(),function(e){var r=t.node(e);if(r.dummy==="selfedge"){var n=t.node(r.e.v),i=n.x+n.width/2,a=n.y,s=r.x-i,o=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:i+2*s/3,y:a-o},{x:i+5*s/6,y:a-o},{x:i+s,y:a},{x:i+5*s/6,y:a+o},{x:i+2*s/3,y:a+o}],r.label.x=r.x,r.label.y=r.y}})}function Y9(t,e){return E7(b6(t,e),Number)}function H9(t){var e={};return Rt(t,function(r,n){e[n.toLowerCase()]=r}),e}function Kc(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:Qdt(t),edges:Zdt(t)};return Ki(t.graph())||(e.value=Ict(t.graph())),e}function Qdt(t){return oa(t.nodes(),function(e){var r=t.node(e),n=t.parent(e),i={v:e};return Ki(r)||(i.value=r),Ki(n)||(i.parent=n),i})}function Zdt(t){return oa(t.edges(),function(e){var r=t.edge(e),n={v:e.v,w:e.w};return Ki(e.name)||(n.name=e.name),Ki(r)||(n.value=r),n})}var nn=new Map,rp=new Map,p_e=new Map,Jdt=S(()=>{rp.clear(),p_e.clear(),nn.clear()},"clear"),E6=S((t,e)=>{const r=rp.get(e)||[];return ge.trace("In isDescendant",e," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),eht=S((t,e)=>{const r=rp.get(e)||[];return ge.info("Descendants of ",e," is ",r),ge.info("Edge is ",t),t.v===e||t.w===e?!1:r?r.includes(t.v)||E6(t.v,e)||E6(t.w,e)||r.includes(t.w):(ge.debug("Tilt, ",e,",not in descendants"),!1)},"edgeInCluster"),g_e=S((t,e,r,n)=>{ge.warn("Copying children of ",t,"root",n,"data",e.node(t),n);const i=e.children(t)||[];t!==n&&i.push(t),ge.warn("Copying (nodes) clusterId",t,"nodes",i),i.forEach(a=>{if(e.children(a).length>0)g_e(a,e,r,n);else{const s=e.node(a);ge.info("cp ",a," to ",n," with parent ",t),r.setNode(a,s),n!==e.parent(a)&&(ge.warn("Setting parent",a,e.parent(a)),r.setParent(a,e.parent(a))),t!==n&&a!==t?(ge.debug("Setting parent",a,t),r.setParent(a,t)):(ge.info("In copy ",t,"root",n,"data",e.node(t),n),ge.debug("Not Setting parent for node=",a,"cluster!==rootId",t!==n,"node!==clusterId",a!==t));const o=e.edges(a);ge.debug("Copying Edges",o),o.forEach(l=>{ge.info("Edge",l);const u=e.edge(l.v,l.w,l.name);ge.info("Edge data",u,n);try{eht(l,n)?(ge.info("Copying as ",l.v,l.w,u,l.name),r.setEdge(l.v,l.w,u,l.name),ge.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):ge.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",n," clusterId:",t)}catch(d){ge.error(d)}})}ge.debug("Removing node",a),e.removeNode(a)})},"copy"),m_e=S((t,e)=>{const r=e.children(t);let n=[...r];for(const i of r)p_e.set(i,t),n=[...n,...m_e(i,e)];return n},"extractDescendants"),tht=S((t,e,r)=>{const n=t.edges().filter(l=>l.v===e||l.w===e),i=t.edges().filter(l=>l.v===r||l.w===r),a=n.map(l=>({v:l.v===e?r:l.v,w:l.w===e?e:l.w})),s=i.map(l=>({v:l.v,w:l.w}));return a.filter(l=>s.some(u=>l.v===u.v&&l.w===u.w))},"findCommonEdges"),o4=S((t,e,r)=>{const n=e.children(t);if(ge.trace("Searching children of id ",t,n),n.length<1)return t;let i;for(const a of n){const s=o4(a,e,r),o=tht(e,r,s);if(s)if(o.length>0)i=s;else return s}return i},"findNonClusterChild"),tne=S(t=>!nn.has(t)||!nn.get(t).externalConnections?t:nn.has(t)?nn.get(t).id:t,"getAnchorId"),rht=S((t,e)=>{if(!t||e>10){ge.debug("Opting out, no graph ");return}else ge.debug("Opting in, graph ");t.nodes().forEach(function(r){t.children(r).length>0&&(ge.warn("Cluster identified",r," Replacement id in edges: ",o4(r,t,r)),rp.set(r,m_e(r,t)),nn.set(r,{id:o4(r,t,r),clusterData:t.node(r)}))}),t.nodes().forEach(function(r){const n=t.children(r),i=t.edges();n.length>0?(ge.debug("Cluster identified",r,rp),i.forEach(a=>{const s=E6(a.v,r),o=E6(a.w,r);s^o&&(ge.warn("Edge: ",a," leaves cluster ",r),ge.warn("Descendants of XXX ",r,": ",rp.get(r)),nn.get(r).externalConnections=!0)})):ge.debug("Not a cluster ",r,rp)});for(let r of nn.keys()){const n=nn.get(r).id,i=t.parent(n);i!==r&&nn.has(i)&&!nn.get(i).externalConnections&&(nn.get(r).id=i)}t.edges().forEach(function(r){const n=t.edge(r);ge.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),ge.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));let i=r.v,a=r.w;if(ge.warn("Fix XXX",nn,"ids:",r.v,r.w,"Translating: ",nn.get(r.v)," --- ",nn.get(r.w)),nn.get(r.v)||nn.get(r.w)){if(ge.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),i=tne(r.v),a=tne(r.w),t.removeEdge(r.v,r.w,r.name),i!==r.v){const s=t.parent(i);nn.get(s).externalConnections=!0,n.fromCluster=r.v}if(a!==r.w){const s=t.parent(a);nn.get(s).externalConnections=!0,n.toCluster=r.w}ge.warn("Fix Replacing with XXX",i,a,r.name),t.setEdge(i,a,n,r.name)}}),ge.warn("Adjusted Graph",Kc(t)),y_e(t,0),ge.trace(nn)},"adjustClustersAndEdges"),y_e=S((t,e)=>{if(ge.warn("extractor - ",e,Kc(t),t.children("D")),e>10){ge.error("Bailing out");return}let r=t.nodes(),n=!1;for(const i of r){const a=t.children(i);n=n||a.length>0}if(!n){ge.debug("Done, no node has children",t.nodes());return}ge.debug("Nodes = ",r,e);for(const i of r)if(ge.debug("Extracting node",i,nn,nn.has(i)&&!nn.get(i).externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",e),!nn.has(i))ge.debug("Not a cluster",i,e);else if(!nn.get(i).externalConnections&&t.children(i)&&t.children(i).length>0){ge.warn("Cluster without external connections, without a parent and with children",i,e);let s=t.graph().rankdir==="TB"?"LR":"TB";nn.get(i)?.clusterData?.dir&&(s=nn.get(i).clusterData.dir,ge.warn("Fixing dir",nn.get(i).clusterData.dir,s));const o=new xo({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});ge.warn("Old graph before copy",Kc(t)),g_e(i,t,o,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:nn.get(i).clusterData,label:nn.get(i).label,graph:o}),ge.warn("New graph after copy node: (",i,")",Kc(o)),ge.debug("Old graph after copy",Kc(t))}else ge.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!nn.get(i).externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),e),ge.debug(nn);r=t.nodes(),ge.warn("New list of nodes",r);for(const i of r){const a=t.node(i);ge.warn(" Now next level",i,a),a?.clusterNode&&y_e(a.graph,e+1)}},"extractor"),v_e=S((t,e)=>{if(e.length===0)return[];let r=Object.assign([],e);return e.forEach(n=>{const i=t.children(n),a=v_e(t,i);r=[...r,...a]}),r},"sorter"),nht=S(t=>v_e(t,t.children()),"sortNodesByHierarchy"),__e=S(async(t,e,r,n,i,a)=>{ge.warn("Graph in recursive render:XAX",Kc(e),i);const s=e.graph().rankdir;ge.trace("Dir in recursive render - dir:",s);const o=t.insert("g").attr("class","root");e.nodes()?ge.info("Recursive render XXX",e.nodes()):ge.info("No nodes found for",e),e.edges().length>0&&ge.info("Recursive edges",e.edge(e.edges()[0]));const l=o.insert("g").attr("class","clusters"),u=o.insert("g").attr("class","edgePaths"),d=o.insert("g").attr("class","edgeLabels"),h=o.insert("g").attr("class","nodes");await Promise.all(e.nodes().map(async function(m){const y=e.node(m);if(i!==void 0){const v=JSON.parse(JSON.stringify(i.clusterData));ge.trace(`Setting data for parent cluster XXX +?)[ \r ]*`,uB="[̀-ͯ]",_at=new RegExp(uB+"+$"),bat="("+rve+"+)|"+(vat+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(uB+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(uB+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+yat)+("|"+mat+")");let sre=class{constructor(e,r){this.input=e,this.settings=r,this.tokenRegex=new RegExp(bat,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new Oo("EOF",new co(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new Yt("Unexpected character: '"+e[r]+"'",new Oo(e[r],new co(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=e.indexOf(` +`,this.tokenRegex.lastIndex);return a===-1?(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=a+1,this.lex()}return new Oo(i,new co(this,r,this.tokenRegex.lastIndex))}};class Eat{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Yt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}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,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}}var Sat=Hye;Ae("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});Ae("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});Ae("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});Ae("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});Ae("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});Ae("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Ae("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var ore={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};Ae("\\char",function(t){var e=t.popToken(),r,n=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new Yt("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=ore[e.text],n==null||n>=r)throw new Yt("Invalid base-"+r+" digit "+e.text);for(var i;(i=ore[t.future().text])!=null&&i{var i=t.consumeArg().tokens;if(i.length!==1)throw new Yt("\\newcommand's first argument must be a macro name");var a=i[0].text,s=t.isDefined(a);if(s&&!e)throw new Yt("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new Yt("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=t.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var l="",u=t.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Yt("Invalid number of arguments: "+l);o=parseInt(l),i=t.consumeArg().tokens}return s&&n||t.macros.set(a,{tokens:i,numArgs:o}),""};Ae("\\newcommand",t=>oq(t,!1,!0,!1));Ae("\\renewcommand",t=>oq(t,!0,!1,!1));Ae("\\providecommand",t=>oq(t,!0,!0,!0));Ae("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});Ae("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});Ae("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),zd[r],fi.math[r],fi.text[r]),""});Ae("\\bgroup","{");Ae("\\egroup","}");Ae("~","\\nobreakspace");Ae("\\lq","`");Ae("\\rq","'");Ae("\\aa","\\r a");Ae("\\AA","\\r A");Ae("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Ae("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Ae("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Ae("ℬ","\\mathscr{B}");Ae("ℰ","\\mathscr{E}");Ae("ℱ","\\mathscr{F}");Ae("ℋ","\\mathscr{H}");Ae("ℐ","\\mathscr{I}");Ae("ℒ","\\mathscr{L}");Ae("ℳ","\\mathscr{M}");Ae("ℛ","\\mathscr{R}");Ae("ℭ","\\mathfrak{C}");Ae("ℌ","\\mathfrak{H}");Ae("ℨ","\\mathfrak{Z}");Ae("\\Bbbk","\\Bbb{k}");Ae("\\llap","\\mathllap{\\textrm{#1}}");Ae("\\rlap","\\mathrlap{\\textrm{#1}}");Ae("\\clap","\\mathclap{\\textrm{#1}}");Ae("\\mathstrut","\\vphantom{(}");Ae("\\underbar","\\underline{\\text{#1}}");Ae("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Ae("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Ae("\\ne","\\neq");Ae("≠","\\neq");Ae("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");Ae("∉","\\notin");Ae("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");Ae("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Ae("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Ae("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");Ae("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");Ae("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");Ae("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Ae("⟂","\\perp");Ae("‼","\\mathclose{!\\mkern-0.8mu!}");Ae("∌","\\notni");Ae("⌜","\\ulcorner");Ae("⌝","\\urcorner");Ae("⌞","\\llcorner");Ae("⌟","\\lrcorner");Ae("©","\\copyright");Ae("®","\\textregistered");Ae("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Ae("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Ae("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Ae("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Ae("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Ae("⋮","\\vdots");Ae("\\varGamma","\\mathit{\\Gamma}");Ae("\\varDelta","\\mathit{\\Delta}");Ae("\\varTheta","\\mathit{\\Theta}");Ae("\\varLambda","\\mathit{\\Lambda}");Ae("\\varXi","\\mathit{\\Xi}");Ae("\\varPi","\\mathit{\\Pi}");Ae("\\varSigma","\\mathit{\\Sigma}");Ae("\\varUpsilon","\\mathit{\\Upsilon}");Ae("\\varPhi","\\mathit{\\Phi}");Ae("\\varPsi","\\mathit{\\Psi}");Ae("\\varOmega","\\mathit{\\Omega}");Ae("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Ae("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Ae("\\boxed","\\fbox{$\\displaystyle{#1}$}");Ae("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Ae("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Ae("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Ae("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Ae("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var lre={",":"\\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"},Tat=new Set(["bin","rel"]);Ae("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in lre?e=lre[r]:(r.slice(0,4)==="\\not"||r in fi.math&&Tat.has(fi.math[r].group))&&(e="\\dotsb"),e});var lq={")":!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};Ae("\\dotso",function(t){var e=t.future().text;return e in lq?"\\ldots\\,":"\\ldots"});Ae("\\dotsc",function(t){var e=t.future().text;return e in lq&&e!==","?"\\ldots\\,":"\\ldots"});Ae("\\cdots",function(t){var e=t.future().text;return e in lq?"\\@cdots\\,":"\\@cdots"});Ae("\\dotsb","\\cdots");Ae("\\dotsm","\\cdots");Ae("\\dotsi","\\!\\cdots");Ae("\\dotsx","\\ldots\\,");Ae("\\DOTSI","\\relax");Ae("\\DOTSB","\\relax");Ae("\\DOTSX","\\relax");Ae("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Ae("\\,","\\tmspace+{3mu}{.1667em}");Ae("\\thinspace","\\,");Ae("\\>","\\mskip{4mu}");Ae("\\:","\\tmspace+{4mu}{.2222em}");Ae("\\medspace","\\:");Ae("\\;","\\tmspace+{5mu}{.2777em}");Ae("\\thickspace","\\;");Ae("\\!","\\tmspace-{3mu}{.1667em}");Ae("\\negthinspace","\\!");Ae("\\negmedspace","\\tmspace-{4mu}{.2222em}");Ae("\\negthickspace","\\tmspace-{5mu}{.277em}");Ae("\\enspace","\\kern.5em ");Ae("\\enskip","\\hskip.5em\\relax");Ae("\\quad","\\hskip1em\\relax");Ae("\\qquad","\\hskip2em\\relax");Ae("\\tag","\\@ifstar\\tag@literal\\tag@paren");Ae("\\tag@paren","\\tag@literal{({#1})}");Ae("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new Yt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Ae("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Ae("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Ae("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Ae("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Ae("\\newline","\\\\\\relax");Ae("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var nve=tr(Wc["Main-Regular"][84][1]-.7*Wc["Main-Regular"][65][1]);Ae("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+nve+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Ae("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+nve+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Ae("\\hspace","\\@ifstar\\@hspacer\\@hspace");Ae("\\@hspace","\\hskip #1\\relax");Ae("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Ae("\\ordinarycolon",":");Ae("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Ae("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Ae("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Ae("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Ae("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Ae("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Ae("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Ae("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Ae("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Ae("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Ae("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Ae("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Ae("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Ae("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Ae("∷","\\dblcolon");Ae("∹","\\eqcolon");Ae("≔","\\coloneqq");Ae("≕","\\eqqcolon");Ae("⩴","\\Coloneqq");Ae("\\ratio","\\vcentcolon");Ae("\\coloncolon","\\dblcolon");Ae("\\colonequals","\\coloneqq");Ae("\\coloncolonequals","\\Coloneqq");Ae("\\equalscolon","\\eqqcolon");Ae("\\equalscoloncolon","\\Eqqcolon");Ae("\\colonminus","\\coloneq");Ae("\\coloncolonminus","\\Coloneq");Ae("\\minuscolon","\\eqcolon");Ae("\\minuscoloncolon","\\Eqcolon");Ae("\\coloncolonapprox","\\Colonapprox");Ae("\\coloncolonsim","\\Colonsim");Ae("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ae("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ae("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ae("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ae("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Ae("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Ae("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Ae("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Ae("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Ae("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Ae("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Ae("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Ae("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Ae("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Ae("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Ae("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Ae("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Ae("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Ae("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Ae("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Ae("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Ae("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Ae("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Ae("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Ae("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Ae("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Ae("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Ae("\\imath","\\html@mathml{\\@imath}{ı}");Ae("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Ae("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");Ae("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");Ae("⟦","\\llbracket");Ae("⟧","\\rrbracket");Ae("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");Ae("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");Ae("⦃","\\lBrace");Ae("⦄","\\rBrace");Ae("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");Ae("⦵","\\minuso");Ae("\\darr","\\downarrow");Ae("\\dArr","\\Downarrow");Ae("\\Darr","\\Downarrow");Ae("\\lang","\\langle");Ae("\\rang","\\rangle");Ae("\\uarr","\\uparrow");Ae("\\uArr","\\Uparrow");Ae("\\Uarr","\\Uparrow");Ae("\\N","\\mathbb{N}");Ae("\\R","\\mathbb{R}");Ae("\\Z","\\mathbb{Z}");Ae("\\alef","\\aleph");Ae("\\alefsym","\\aleph");Ae("\\Alpha","\\mathrm{A}");Ae("\\Beta","\\mathrm{B}");Ae("\\bull","\\bullet");Ae("\\Chi","\\mathrm{X}");Ae("\\clubs","\\clubsuit");Ae("\\cnums","\\mathbb{C}");Ae("\\Complex","\\mathbb{C}");Ae("\\Dagger","\\ddagger");Ae("\\diamonds","\\diamondsuit");Ae("\\empty","\\emptyset");Ae("\\Epsilon","\\mathrm{E}");Ae("\\Eta","\\mathrm{H}");Ae("\\exist","\\exists");Ae("\\harr","\\leftrightarrow");Ae("\\hArr","\\Leftrightarrow");Ae("\\Harr","\\Leftrightarrow");Ae("\\hearts","\\heartsuit");Ae("\\image","\\Im");Ae("\\infin","\\infty");Ae("\\Iota","\\mathrm{I}");Ae("\\isin","\\in");Ae("\\Kappa","\\mathrm{K}");Ae("\\larr","\\leftarrow");Ae("\\lArr","\\Leftarrow");Ae("\\Larr","\\Leftarrow");Ae("\\lrarr","\\leftrightarrow");Ae("\\lrArr","\\Leftrightarrow");Ae("\\Lrarr","\\Leftrightarrow");Ae("\\Mu","\\mathrm{M}");Ae("\\natnums","\\mathbb{N}");Ae("\\Nu","\\mathrm{N}");Ae("\\Omicron","\\mathrm{O}");Ae("\\plusmn","\\pm");Ae("\\rarr","\\rightarrow");Ae("\\rArr","\\Rightarrow");Ae("\\Rarr","\\Rightarrow");Ae("\\real","\\Re");Ae("\\reals","\\mathbb{R}");Ae("\\Reals","\\mathbb{R}");Ae("\\Rho","\\mathrm{P}");Ae("\\sdot","\\cdot");Ae("\\sect","\\S");Ae("\\spades","\\spadesuit");Ae("\\sub","\\subset");Ae("\\sube","\\subseteq");Ae("\\supe","\\supseteq");Ae("\\Tau","\\mathrm{T}");Ae("\\thetasym","\\vartheta");Ae("\\weierp","\\wp");Ae("\\Zeta","\\mathrm{Z}");Ae("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Ae("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Ae("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Ae("\\bra","\\mathinner{\\langle{#1}|}");Ae("\\ket","\\mathinner{|{#1}\\rangle}");Ae("\\braket","\\mathinner{\\langle{#1}\\rangle}");Ae("\\Bra","\\left\\langle#1\\right|");Ae("\\Ket","\\left|#1\\right\\rangle");var ive=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,i=e.consumeArg().tokens,a=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=h=>f=>{t&&(f.macros.set("|",s),i.length&&f.macros.set("\\|",o));var p=h;if(!h&&i.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?i:n,numArgs:0}};e.macros.set("|",l(!1)),i.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...a,...u,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};Ae("\\bra@ket",ive(!1));Ae("\\bra@set",ive(!0));Ae("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Ae("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Ae("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Ae("\\angln","{\\angl n}");Ae("\\blue","\\textcolor{##6495ed}{#1}");Ae("\\orange","\\textcolor{##ffa500}{#1}");Ae("\\pink","\\textcolor{##ff00af}{#1}");Ae("\\red","\\textcolor{##df0030}{#1}");Ae("\\green","\\textcolor{##28ae7b}{#1}");Ae("\\gray","\\textcolor{gray}{#1}");Ae("\\purple","\\textcolor{##9d38bd}{#1}");Ae("\\blueA","\\textcolor{##ccfaff}{#1}");Ae("\\blueB","\\textcolor{##80f6ff}{#1}");Ae("\\blueC","\\textcolor{##63d9ea}{#1}");Ae("\\blueD","\\textcolor{##11accd}{#1}");Ae("\\blueE","\\textcolor{##0c7f99}{#1}");Ae("\\tealA","\\textcolor{##94fff5}{#1}");Ae("\\tealB","\\textcolor{##26edd5}{#1}");Ae("\\tealC","\\textcolor{##01d1c1}{#1}");Ae("\\tealD","\\textcolor{##01a995}{#1}");Ae("\\tealE","\\textcolor{##208170}{#1}");Ae("\\greenA","\\textcolor{##b6ffb0}{#1}");Ae("\\greenB","\\textcolor{##8af281}{#1}");Ae("\\greenC","\\textcolor{##74cf70}{#1}");Ae("\\greenD","\\textcolor{##1fab54}{#1}");Ae("\\greenE","\\textcolor{##0d923f}{#1}");Ae("\\goldA","\\textcolor{##ffd0a9}{#1}");Ae("\\goldB","\\textcolor{##ffbb71}{#1}");Ae("\\goldC","\\textcolor{##ff9c39}{#1}");Ae("\\goldD","\\textcolor{##e07d10}{#1}");Ae("\\goldE","\\textcolor{##a75a05}{#1}");Ae("\\redA","\\textcolor{##fca9a9}{#1}");Ae("\\redB","\\textcolor{##ff8482}{#1}");Ae("\\redC","\\textcolor{##f9685d}{#1}");Ae("\\redD","\\textcolor{##e84d39}{#1}");Ae("\\redE","\\textcolor{##bc2612}{#1}");Ae("\\maroonA","\\textcolor{##ffbde0}{#1}");Ae("\\maroonB","\\textcolor{##ff92c6}{#1}");Ae("\\maroonC","\\textcolor{##ed5fa6}{#1}");Ae("\\maroonD","\\textcolor{##ca337c}{#1}");Ae("\\maroonE","\\textcolor{##9e034e}{#1}");Ae("\\purpleA","\\textcolor{##ddd7ff}{#1}");Ae("\\purpleB","\\textcolor{##c6b9fc}{#1}");Ae("\\purpleC","\\textcolor{##aa87ff}{#1}");Ae("\\purpleD","\\textcolor{##7854ab}{#1}");Ae("\\purpleE","\\textcolor{##543b78}{#1}");Ae("\\mintA","\\textcolor{##f5f9e8}{#1}");Ae("\\mintB","\\textcolor{##edf2df}{#1}");Ae("\\mintC","\\textcolor{##e0e5cc}{#1}");Ae("\\grayA","\\textcolor{##f6f7f7}{#1}");Ae("\\grayB","\\textcolor{##f0f1f2}{#1}");Ae("\\grayC","\\textcolor{##e3e5e6}{#1}");Ae("\\grayD","\\textcolor{##d6d8da}{#1}");Ae("\\grayE","\\textcolor{##babec2}{#1}");Ae("\\grayF","\\textcolor{##888d93}{#1}");Ae("\\grayG","\\textcolor{##626569}{#1}");Ae("\\grayH","\\textcolor{##3b3e40}{#1}");Ae("\\grayI","\\textcolor{##21242c}{#1}");Ae("\\kaBlue","\\textcolor{##314453}{#1}");Ae("\\kaGreen","\\textcolor{##71B307}{#1}");var ave={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class xat{constructor(e,r,n){this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new Eat(Sat,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new sre(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&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){var r,n,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Oo("EOF",n.loc)),this.pushTokens(i),new Oo("",co.range(r,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Yt("Extra }",a)}else if(a.text==="EOF")throw new Yt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",a);if(e&&n)if((s===0||s===1&&e[o]==="{")&&a.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new Yt("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;ithis.settings.maxExpand)throw new Yt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||e&&i.unexpandable){if(e&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new Yt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Yt("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Yt("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Oo(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var s=i.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var o=new sre(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(e){return this.macros.has(e)||zd.hasOwnProperty(e)||fi.math.hasOwnProperty(e)||fi.text.hasOwnProperty(e)||ave.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:zd.hasOwnProperty(e)&&!zd[e].primitive}}var cre=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Qx=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),P9={"́":{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"}},ure={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let sve=class ove{constructor(e,r){this.mode="math",this.gullet=new xat(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new Yt("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(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{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Oo("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(ove.endOfExpression.has(i.text)||r&&i.text===r||e&&zd[i.text]&&zd[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,i=0;i=128)this.settings.strict&&(dye(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:co.range(e),text:r};else return null;if(this.consume(),a)for(var h=0;h0){if(++e>=fst)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function wm(t){return function(){return t}}var y6=(function(){try{var t=tg(Object,"defineProperty");return t({},"",{}),t}catch{}})(),yst=y6?function(t,e){return y6(t,"toString",{configurable:!0,enumerable:!1,value:wm(e),writable:!0})}:Jp,vve=mst(yst);function _ve(t,e){for(var r=-1,n=t==null?0:t.length;++r-1}var Sst=9007199254740991,Tst=/^(?:0|[1-9]\d*)$/;function c7(t,e){var r=typeof t;return e=e??Sst,!!e&&(r=="number"||r!="symbol"&&Tst.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=wst}function Dh(t){return t!=null&&dq(t.length)&&!e4(t)}function t4(t,e,r){if(!$o(r))return!1;var n=typeof e;return(n=="number"?Dh(r)&&c7(e,r.length):n=="string"&&e in r)?Zb(r[e],t):!1}function kst(t){return h7(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&t4(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n-1}function Pot(t,e){var r=this.__data__,n=m7(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Z0(t){var e=-1,r=t==null?0:t.length;for(this.clear();++eo))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&Uct?new i4:void 0;for(a.set(t,e),a.set(e,t);++h2?e[2]:void 0;for(i&&t4(e[0],e[1],i)&&(n=1);++r-1?i[a?e[s]:s]:void 0}}var Nut=Math.max;function Iut(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:Wat(r);return i<0&&(i=Nut(n+i,0)),bve(t,Lh(e),i)}var xq=Rut(Iut);function jve(t,e){var r=-1,n=Dh(t)?Array(t.length):[];return b7(t,function(i,a,s){n[++r]=e(i,a,s)}),n}function oa(t,e){var r=la(t)?jm:jve;return r(t,Lh(e))}function Out(t,e){return t==null?t:Eq(t,Tq(e),rg)}function Dut(t,e){return t&&Sq(t,Tq(e))}function Lut(t,e){return t>e}var Mut=Object.prototype,Put=Mut.hasOwnProperty;function But(t,e){return t!=null&&Put.call(t,e)}function Qve(t,e){return t!=null&&Hve(t,e,But)}function Fut(t,e){return jm(e,function(r){return t[r]})}function _0(t){return t==null?[]:Fut(t,Io(t))}var $ut="[object Map]",zut="[object Set]",Uut=Object.prototype,Gut=Uut.hasOwnProperty;function Ure(t){if(t==null)return!0;if(Dh(t)&&(la(t)||typeof t=="string"||typeof t.splice=="function"||cb(t)||g7(t)||lb(t)))return!t.length;var e=fl(t);if(e==$ut||e==zut)return!t.size;if(f7(t))return!kve(t).length;for(var r in t)if(Gut.call(t,r))return!1;return!0}function Ki(t){return t===void 0}function Zve(t,e){return te||a&&s&&l&&!o&&!u||n&&s&&l||!r&&l||!i)return 1;if(!n&&!a&&!u&&t=o)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return t.index-e.index}function Kut(t,e,r){e.length?e=jm(e,function(a){return la(a)?function(s){return _7(s,a.length===1?a[0]:a)}:a}):e=[Jp];var n=-1;e=jm(e,p7(Lh));var i=jve(t,function(a,s,o){var l=jm(e,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return Hut(i,function(a,s){return Wut(a,s,r)})}function Xut(t,e){return Yut(t,e,function(r,n){return Vve(t,n)})}var b6=Qot(function(t,e){return t==null?{}:Xut(t,e)}),jut=Math.ceil,Qut=Math.max;function Zut(t,e,r,n){for(var i=-1,a=Qut(jut((e-t)/(r||1)),0),s=Array(a);a--;)s[++i]=t,t+=r;return s}function Jut(t){return function(e,r,n){return n&&typeof n!="number"&&t4(e,r,n)&&(r=n=void 0),e=l5(e),r===void 0?(r=e,e=0):r=l5(r),n=n===void 0?e1&&t4(t,e[0],e[1])?e=[]:r>2&&t4(e[0],e[1],e[2])&&(e=[e[0]]),Kut(t,gq(e),[])}),t0t=1/0,r0t=Qm&&1/_q(new Qm([,-0]))[1]==t0t?function(t){return new Qm(t)}:hst,n0t=200;function i0t(t,e,r){var n=-1,i=Est,a=t.length,s=!0,o=[],l=o;if(a>=n0t){var u=r0t(t);if(u)return _q(u);s=!1,i=Uve,l=new i4}else l=o;e:for(;++n1?i.setNode(a,r):i.setNode(a)}),this}setNode(e,r){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=lf,this._children[e]={},this._children[lf][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var r=n=>this.removeEdge(this._edgeObjs[n]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],Rt(this.children(e),n=>{this.setParent(n)}),delete this._children[e]),Rt(Io(this._in[e]),r),delete this._in[e],delete this._preds[e],Rt(Io(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Ki(r))r=lf;else{r+="";for(var n=r;!Ki(n);n=this.parent(n))if(n===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==lf)return r}}children(e){if(Ki(e)&&(e=lf),this._isCompound){var r=this._children[e];if(r)return Io(r)}else{if(e===lf)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return Io(r)}successors(e){var r=this._sucs[e];if(r)return Io(r)}neighbors(e){var r=this.predecessors(e);if(r)return a0t(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;Rt(this._nodes,function(s,o){e(o)&&r.setNode(o,s)}),Rt(this._edgeObjs,function(s){r.hasNode(s.v)&&r.hasNode(s.w)&&r.setEdge(s,n.edge(s))});var i={};function a(s){var o=n.parent(s);return o===void 0||r.hasNode(o)?(i[s]=o,o):o in i?i[o]:a(o)}return this._isCompound&&Rt(r.nodes(),function(s){r.setParent(s,a(s))}),r}setDefaultEdgeLabel(e){return e4(e)||(e=wm(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return _0(this._edgeObjs)}setPath(e,r){var n=this,i=arguments;return vT(e,function(a,s){return i.length>1?n.setEdge(a,s,r):n.setEdge(a,s),s}),this}setEdge(){var e,r,n,i,a=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(e=s.v,r=s.w,n=s.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=s,r=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,r=""+r,Ki(n)||(n=""+n);var o=mE(this._isDirected,e,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return a&&(this._edgeLabels[o]=i),this;if(!Ki(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[o]=a?i:this._defaultEdgeLabelFn(e,r,n);var l=u0t(this._isDirected,e,r,n);return e=l.v,r=l.w,Object.freeze(l),this._edgeObjs[o]=l,qre(this._preds[r],e),qre(this._sucs[e],r),this._in[r][o]=l,this._out[e][o]=l,this._edgeCount++,this}edge(e,r,n){var i=arguments.length===1?z9(this._isDirected,arguments[0]):mE(this._isDirected,e,r,n);return this._edgeLabels[i]}hasEdge(e,r,n){var i=arguments.length===1?z9(this._isDirected,arguments[0]):mE(this._isDirected,e,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,r,n){var i=arguments.length===1?z9(this._isDirected,arguments[0]):mE(this._isDirected,e,r,n),a=this._edgeObjs[i];return a&&(e=a.v,r=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Yre(this._preds[r],e),Yre(this._sucs[e],r),delete this._in[r][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,r){var n=this._in[e];if(n){var i=_0(n);return r?o0(i,function(a){return a.v===r}):i}}outEdges(e,r){var n=this._out[e];if(n){var i=_0(n);return r?o0(i,function(a){return a.w===r}):i}}nodeEdges(e,r){var n=this.inEdges(e,r);if(n)return n.concat(this.outEdges(e,r))}}xo.prototype._nodeCount=0;xo.prototype._edgeCount=0;function qre(t,e){t[e]?t[e]++:t[e]=1}function Yre(t,e){--t[e]||delete t[e]}function mE(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var s=i;i=a,a=s}return i+Gre+a+Gre+(Ki(n)?c0t:n)}function u0t(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var s=i;i=a,a=s}var o={v:i,w:a};return n&&(o.name=n),o}function z9(t,e){return mE(t,e.v,e.w,e.name)}class d0t{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return Hre(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&Hre(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,n=r._prev;n!==r;)e.push(JSON.stringify(n,h0t)),n=n._prev;return"["+e.join(", ")+"]"}}function Hre(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function h0t(t,e){if(t!=="_next"&&t!=="_prev")return e}var f0t=wm(1);function p0t(t,e){if(t.nodeCount()<=1)return[];var r=m0t(t,e||f0t),n=g0t(r.graph,r.buckets,r.zeroIdx);return Jb(oa(n,function(i){return t.outEdges(i.v,i.w)}))}function g0t(t,e,r){for(var n=[],i=e[e.length-1],a=e[0],s;t.nodeCount();){for(;s=a.dequeue();)U9(t,e,r,s);for(;s=i.dequeue();)U9(t,e,r,s);if(t.nodeCount()){for(var o=e.length-2;o>0;--o)if(s=e[o].dequeue(),s){n=n.concat(U9(t,e,r,s,!0));break}}}return n}function U9(t,e,r,n,i){var a=i?[]:void 0;return Rt(t.inEdges(n.v),function(s){var o=t.edge(s),l=t.node(s.v);i&&a.push({v:s.v,w:s.w}),l.out-=o,vB(e,r,l)}),Rt(t.outEdges(n.v),function(s){var o=t.edge(s),l=s.w,u=t.node(l);u.in-=o,vB(e,r,u)}),t.removeNode(n.v),a}function m0t(t,e){var r=new xo,n=0,i=0;Rt(t.nodes(),function(o){r.setNode(o,{v:o,in:0,out:0})}),Rt(t.edges(),function(o){var l=r.edge(o.v,o.w)||0,u=e(o),d=l+u;r.setEdge(o.v,o.w,d),i=Math.max(i,r.node(o.v).out+=u),n=Math.max(n,r.node(o.w).in+=u)});var a=db(i+n+3).map(function(){return new d0t}),s=n+1;return Rt(r.nodes(),function(o){vB(a,s,r.node(o))}),{graph:r,buckets:a,zeroIdx:s}}function vB(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}function y0t(t){var e=t.graph().acyclicer==="greedy"?p0t(t,r(t)):v0t(t);Rt(e,function(n){var i=t.edge(n);t.removeEdge(n),i.forwardName=n.name,i.reversed=!0,t.setEdge(n.w,n.v,i,kq("rev"))});function r(n){return function(i){return n.edge(i).weight}}}function v0t(t){var e=[],r={},n={};function i(a){Object.prototype.hasOwnProperty.call(n,a)||(n[a]=!0,r[a]=!0,Rt(t.outEdges(a),function(s){Object.prototype.hasOwnProperty.call(r,s.w)?e.push(s):i(s.w)}),delete r[a])}return Rt(t.nodes(),i),e}function _0t(t){Rt(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}})}function e2(t,e,r,n){var i;do i=kq(n);while(t.hasNode(i));return r.dummy=e,t.setNode(i,r),i}function b0t(t){var e=new xo().setGraph(t.graph());return Rt(t.nodes(),function(r){e.setNode(r,t.node(r))}),Rt(t.edges(),function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},i=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),e}function Jve(t){var e=new xo({multigraph:t.isMultigraph()}).setGraph(t.graph());return Rt(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),Rt(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e}function Vre(t,e){var r=t.x,n=t.y,i=e.x-r,a=e.y-n,s=t.width/2,o=t.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var l,u;return Math.abs(a)*s>Math.abs(i)*o?(a<0&&(o=-o),l=o*i/a,u=o):(i<0&&(s=-s),l=s,u=s*a/i),{x:r+l,y:n+u}}function S7(t){var e=oa(db(e_e(t)+1),function(){return[]});return Rt(t.nodes(),function(r){var n=t.node(r),i=n.rank;Ki(i)||(e[i][n.order]=r)}),e}function E0t(t){var e=a4(oa(t.nodes(),function(r){return t.node(r).rank}));Rt(t.nodes(),function(r){var n=t.node(r);Qve(n,"rank")&&(n.rank-=e)})}function S0t(t){var e=a4(oa(t.nodes(),function(a){return t.node(a).rank})),r=[];Rt(t.nodes(),function(a){var s=t.node(a).rank-e;r[s]||(r[s]=[]),r[s].push(a)});var n=0,i=t.graph().nodeRankFactor;Rt(r,function(a,s){Ki(a)&&s%i!==0?--n:n&&Rt(a,function(o){t.node(o).rank+=n})})}function Wre(t,e,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),e2(t,"border",i,e)}function e_e(t){return Ip(oa(t.nodes(),function(e){var r=t.node(e).rank;if(!Ki(r))return r}))}function T0t(t,e){var r={lhs:[],rhs:[]};return Rt(t,function(n){e(n)?r.lhs.push(n):r.rhs.push(n)}),r}function x0t(t,e){return e()}function C0t(t){function e(r){var n=t.children(r),i=t.node(r);if(n.length&&Rt(n,e),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,s=i.maxRank+1;as.lim&&(o=s,l=!0);var u=o0(e.edges(),function(d){return l===jre(t,t.node(d.v),o)&&l!==jre(t,t.node(d.w),o)});return wq(u,function(d){return s4(e,d)})}function c_e(t,e,r,n){var i=r.v,a=r.w;t.removeEdge(i,a),t.setEdge(n.v,n.w,{}),Nq(t),Rq(t,e),z0t(t,e)}function z0t(t,e){var r=xq(t.nodes(),function(i){return!e.node(i).parent}),n=F0t(t,r);n=n.slice(1),Rt(n,function(i){var a=t.node(i).parent,s=e.edge(i,a),o=!1;s||(s=e.edge(a,i),o=!0),e.node(i).rank=e.node(a).rank+(o?s.minlen:-s.minlen)})}function U0t(t,e,r){return t.hasEdge(e,r)}function jre(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}function G0t(t){switch(t.graph().ranker){case"network-simplex":Qre(t);break;case"tight-tree":Y0t(t);break;case"longest-path":q0t(t);break;default:Qre(t)}}var q0t=Aq;function Y0t(t){Aq(t),r_e(t)}function Qre(t){ng(t)}function H0t(t){var e=e2(t,"root",{},"_root"),r=V0t(t),n=Ip(_0(r))-1,i=2*n+1;t.graph().nestingRoot=e,Rt(t.edges(),function(s){t.edge(s).minlen*=i});var a=W0t(t)+1;Rt(t.children(),function(s){u_e(t,e,i,a,n,r,s)}),t.graph().nodeRankFactor=i}function u_e(t,e,r,n,i,a,s){var o=t.children(s);if(!o.length){s!==e&&t.setEdge(e,s,{weight:0,minlen:r});return}var l=Wre(t,"_bt"),u=Wre(t,"_bb"),d=t.node(s);t.setParent(l,s),d.borderTop=l,t.setParent(u,s),d.borderBottom=u,Rt(o,function(h){u_e(t,e,r,n,i,a,h);var f=t.node(h),p=f.borderTop?f.borderTop:h,g=f.borderBottom?f.borderBottom:h,m=f.borderTop?n:2*n,y=p!==g?1:i-a[s]+1;t.setEdge(l,p,{weight:m,minlen:y,nestingEdge:!0}),t.setEdge(g,u,{weight:m,minlen:y,nestingEdge:!0})}),t.parent(s)||t.setEdge(e,l,{weight:0,minlen:i+a[s]})}function V0t(t){var e={};function r(n,i){var a=t.children(n);a&&a.length&&Rt(a,function(s){r(s,i+1)}),e[n]=i}return Rt(t.children(),function(n){r(n,1)}),e}function W0t(t){return vT(t.edges(),function(e,r){return e+t.edge(r).weight},0)}function K0t(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,Rt(t.edges(),function(r){var n=t.edge(r);n.nestingEdge&&t.removeEdge(r)})}function X0t(t,e,r){var n={},i;Rt(r,function(a){for(var s=t.parent(a),o,l;s;){if(o=t.parent(s),o?(l=n[o],n[o]=s):(l=i,i=s),l&&l!==s){e.setEdge(l,s);return}s=o}})}function j0t(t,e,r){var n=Q0t(t),i=new xo({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(a){return t.node(a)});return Rt(t.nodes(),function(a){var s=t.node(a),o=t.parent(a);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(i.setNode(a),i.setParent(a,o||n),Rt(t[r](a),function(l){var u=l.v===a?l.w:l.v,d=i.edge(u,a),h=Ki(d)?0:d.weight;i.setEdge(u,a,{weight:t.edge(l).weight+h})}),Object.prototype.hasOwnProperty.call(s,"minRank")&&i.setNode(a,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),i}function Q0t(t){for(var e;t.hasNode(e=kq("_root")););return e}function Z0t(t,e){for(var r=0,n=1;n0;)d%2&&(h+=o[d+1]),d=d-1>>1,o[d]+=u.weight;l+=u.weight*h})),l}function edt(t){var e={},r=o0(t.nodes(),function(o){return!t.children(o).length}),n=Ip(oa(r,function(o){return t.node(o).rank})),i=oa(db(n+1),function(){return[]});function a(o){if(!Qve(e,o)){e[o]=!0;var l=t.node(o);i[l.rank].push(o),Rt(t.successors(o),a)}}var s=_T(r,function(o){return t.node(o).rank});return Rt(s,a),i}function tdt(t,e){return oa(e,function(r){var n=t.inEdges(r);if(n.length){var i=vT(n,function(a,s){var o=t.edge(s),l=t.node(s.v);return{sum:a.sum+o.weight*l.order,weight:a.weight+o.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function rdt(t,e){var r={};Rt(t,function(i,a){var s=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};Ki(i.barycenter)||(s.barycenter=i.barycenter,s.weight=i.weight)}),Rt(e.edges(),function(i){var a=r[i.v],s=r[i.w];!Ki(a)&&!Ki(s)&&(s.indegree++,a.out.push(r[i.w]))});var n=o0(r,function(i){return!i.indegree});return ndt(n)}function ndt(t){var e=[];function r(a){return function(s){s.merged||(Ki(s.barycenter)||Ki(a.barycenter)||s.barycenter>=a.barycenter)&&idt(a,s)}}function n(a){return function(s){s.in.push(a),--s.indegree===0&&t.push(s)}}for(;t.length;){var i=t.pop();e.push(i),Rt(i.in.reverse(),r(i)),Rt(i.out,n(i))}return oa(o0(e,function(a){return!a.merged}),function(a){return b6(a,["vs","i","barycenter","weight"])})}function idt(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}function adt(t,e){var r=T0t(t,function(d){return Object.prototype.hasOwnProperty.call(d,"barycenter")}),n=r.lhs,i=_T(r.rhs,function(d){return-d.i}),a=[],s=0,o=0,l=0;n.sort(sdt(!!e)),l=Zre(a,i,l),Rt(n,function(d){l+=d.vs.length,a.push(d.vs),s+=d.barycenter*d.weight,o+=d.weight,l=Zre(a,i,l)});var u={vs:Jb(a)};return o&&(u.barycenter=s/o,u.weight=o),u}function Zre(t,e,r){for(var n;e.length&&(n=_6(e)).i<=r;)e.pop(),t.push(n.vs),r++;return r}function sdt(t){return function(e,r){return e.barycenterr.barycenter?1:t?r.i-e.i:e.i-r.i}}function d_e(t,e,r,n){var i=t.children(e),a=t.node(e),s=a?a.borderLeft:void 0,o=a?a.borderRight:void 0,l={};s&&(i=o0(i,function(g){return g!==s&&g!==o}));var u=tdt(t,i);Rt(u,function(g){if(t.children(g.v).length){var m=d_e(t,g.v,r,n);l[g.v]=m,Object.prototype.hasOwnProperty.call(m,"barycenter")&&ldt(g,m)}});var d=rdt(u,r);odt(d,l);var h=adt(d,n);if(s&&(h.vs=Jb([s,h.vs,o]),t.predecessors(s).length)){var f=t.node(t.predecessors(s)[0]),p=t.node(t.predecessors(o)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+f.order+p.order)/(h.weight+2),h.weight+=2}return h}function odt(t,e){Rt(t,function(r){r.vs=Jb(r.vs.map(function(n){return e[n]?e[n].vs:n}))})}function ldt(t,e){Ki(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}function cdt(t){var e=e_e(t),r=Jre(t,db(1,e+1),"inEdges"),n=Jre(t,db(e-1,-1,-1),"outEdges"),i=edt(t);ene(t,i);for(var a=Number.POSITIVE_INFINITY,s,o=0,l=0;l<4;++o,++l){udt(o%2?r:n,o%4>=2),i=S7(t);var u=Z0t(t,i);us||o>e[l].lim));for(u=l,l=n;(l=t.parent(l))!==u;)a.push(l);return{path:i.concat(a.reverse()),lca:u}}function fdt(t){var e={},r=0;function n(i){var a=r;Rt(t.children(i),n),e[i]={low:a,lim:r++}}return Rt(t.children(),n),e}function pdt(t,e){var r={};function n(i,a){var s=0,o=0,l=i.length,u=_6(a);return Rt(a,function(d,h){var f=mdt(t,d),p=f?t.node(f).order:l;(f||d===u)&&(Rt(a.slice(o,h+1),function(g){Rt(t.predecessors(g),function(m){var y=t.node(m),v=y.order;(vu)&&h_e(r,f,d)})})}function i(a,s){var o=-1,l,u=0;return Rt(s,function(d,h){if(t.node(d).dummy==="border"){var f=t.predecessors(d);f.length&&(l=t.node(f[0]).order,n(s,u,h,o,l),u=h,o=l)}n(s,u,s.length,l,a.length)}),s}return vT(e,i),r}function mdt(t,e){if(t.node(e).dummy)return xq(t.predecessors(e),function(r){return t.node(r).dummy})}function h_e(t,e,r){if(e>r){var n=e;e=r,r=n}Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=t[e];Object.defineProperty(i,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function ydt(t,e,r){if(e>r){var n=e;e=r,r=n}return!!t[e]&&Object.prototype.hasOwnProperty.call(t[e],r)}function vdt(t,e,r,n){var i={},a={},s={};return Rt(e,function(o){Rt(o,function(l,u){i[l]=l,a[l]=l,s[l]=u})}),Rt(e,function(o){var l=-1;Rt(o,function(u){var d=n(u);if(d.length){d=_T(d,function(m){return s[m]});for(var h=(d.length-1)/2,f=Math.floor(h),p=Math.ceil(h);f<=p;++f){var g=d[f];a[u]===u&&l{var n=r(" buildLayoutGraph",()=>$dt(t));r(" runLayout",()=>Rdt(n,r)),r(" updateInputGraph",()=>Ndt(t,n))})}function Rdt(t,e){e(" makeSpaceForEdgeLabels",()=>zdt(t)),e(" removeSelfEdges",()=>Xdt(t)),e(" acyclic",()=>y0t(t)),e(" nestingGraph.run",()=>H0t(t)),e(" rank",()=>G0t(Jve(t))),e(" injectEdgeLabelProxies",()=>Udt(t)),e(" removeEmptyRanks",()=>S0t(t)),e(" nestingGraph.cleanup",()=>K0t(t)),e(" normalizeRanks",()=>E0t(t)),e(" assignRankMinMax",()=>Gdt(t)),e(" removeEdgeLabelProxies",()=>qdt(t)),e(" normalize.run",()=>N0t(t)),e(" parentDummyChains",()=>ddt(t)),e(" addBorderSegments",()=>C0t(t)),e(" order",()=>cdt(t)),e(" insertSelfEdges",()=>jdt(t)),e(" adjustCoordinateSystem",()=>w0t(t)),e(" position",()=>kdt(t)),e(" positionSelfEdges",()=>Qdt(t)),e(" removeBorderNodes",()=>Kdt(t)),e(" normalize.undo",()=>O0t(t)),e(" fixupEdgeLabelCoords",()=>Vdt(t)),e(" undoCoordinateSystem",()=>k0t(t)),e(" translateGraph",()=>Ydt(t)),e(" assignNodeIntersects",()=>Hdt(t)),e(" reversePoints",()=>Wdt(t)),e(" acyclic.undo",()=>_0t(t))}function Ndt(t,e){Rt(t.nodes(),function(r){var n=t.node(r),i=e.node(r);n&&(n.x=i.x,n.y=i.y,e.children(r).length&&(n.width=i.width,n.height=i.height))}),Rt(t.edges(),function(r){var n=t.edge(r),i=e.edge(r);n.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(n.x=i.x,n.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}var Idt=["nodesep","edgesep","ranksep","marginx","marginy"],Odt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Ddt=["acyclicer","ranker","rankdir","align"],Ldt=["width","height"],Mdt={width:0,height:0},Pdt=["minlen","weight","width","height","labeloffset"],Bdt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Fdt=["labelpos"];function $dt(t){var e=new xo({multigraph:!0,compound:!0}),r=H9(t.graph());return e.setGraph(yB({},Odt,Y9(r,Idt),b6(r,Ddt))),Rt(t.nodes(),function(n){var i=H9(t.node(n));e.setNode(n,Cut(Y9(i,Ldt),Mdt)),e.setParent(n,t.parent(n))}),Rt(t.edges(),function(n){var i=H9(t.edge(n));e.setEdge(n,yB({},Bdt,Y9(i,Pdt),b6(i,Fdt)))}),e}function zdt(t){var e=t.graph();e.ranksep/=2,Rt(t.edges(),function(r){var n=t.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function Udt(t){Rt(t.edges(),function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),i=t.node(e.w),a={rank:(i.rank-n.rank)/2+n.rank,e};e2(t,"edge-proxy",a,"_ep")}})}function Gdt(t){var e=0;Rt(t.nodes(),function(r){var n=t.node(r);n.borderTop&&(n.minRank=t.node(n.borderTop).rank,n.maxRank=t.node(n.borderBottom).rank,e=Ip(e,n.maxRank))}),t.graph().maxRank=e}function qdt(t){Rt(t.nodes(),function(e){var r=t.node(e);r.dummy==="edge-proxy"&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))})}function Ydt(t){var e=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,i=0,a=t.graph(),s=a.marginx||0,o=a.marginy||0;function l(u){var d=u.x,h=u.y,f=u.width,p=u.height;e=Math.min(e,d-f/2),r=Math.max(r,d+f/2),n=Math.min(n,h-p/2),i=Math.max(i,h+p/2)}Rt(t.nodes(),function(u){l(t.node(u))}),Rt(t.edges(),function(u){var d=t.edge(u);Object.prototype.hasOwnProperty.call(d,"x")&&l(d)}),e-=s,n-=o,Rt(t.nodes(),function(u){var d=t.node(u);d.x-=e,d.y-=n}),Rt(t.edges(),function(u){var d=t.edge(u);Rt(d.points,function(h){h.x-=e,h.y-=n}),Object.prototype.hasOwnProperty.call(d,"x")&&(d.x-=e),Object.prototype.hasOwnProperty.call(d,"y")&&(d.y-=n)}),a.width=r-e+s,a.height=i-n+o}function Hdt(t){Rt(t.edges(),function(e){var r=t.edge(e),n=t.node(e.v),i=t.node(e.w),a,s;r.points?(a=r.points[0],s=r.points[r.points.length-1]):(r.points=[],a=i,s=n),r.points.unshift(Vre(n,a)),r.points.push(Vre(i,s))})}function Vdt(t){Rt(t.edges(),function(e){var r=t.edge(e);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Wdt(t){Rt(t.edges(),function(e){var r=t.edge(e);r.reversed&&r.points.reverse()})}function Kdt(t){Rt(t.nodes(),function(e){if(t.children(e).length){var r=t.node(e),n=t.node(r.borderTop),i=t.node(r.borderBottom),a=t.node(_6(r.borderLeft)),s=t.node(_6(r.borderRight));r.width=Math.abs(s.x-a.x),r.height=Math.abs(i.y-n.y),r.x=a.x+r.width/2,r.y=n.y+r.height/2}}),Rt(t.nodes(),function(e){t.node(e).dummy==="border"&&t.removeNode(e)})}function Xdt(t){Rt(t.edges(),function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}function jdt(t){var e=S7(t);Rt(e,function(r){var n=0;Rt(r,function(i,a){var s=t.node(i);s.order=a+n,Rt(s.selfEdges,function(o){e2(t,"selfedge",{width:o.label.width,height:o.label.height,rank:s.rank,order:a+ ++n,e:o.e,label:o.label},"_se")}),delete s.selfEdges})})}function Qdt(t){Rt(t.nodes(),function(e){var r=t.node(e);if(r.dummy==="selfedge"){var n=t.node(r.e.v),i=n.x+n.width/2,a=n.y,s=r.x-i,o=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:i+2*s/3,y:a-o},{x:i+5*s/6,y:a-o},{x:i+s,y:a},{x:i+5*s/6,y:a+o},{x:i+2*s/3,y:a+o}],r.label.x=r.x,r.label.y=r.y}})}function Y9(t,e){return E7(b6(t,e),Number)}function H9(t){var e={};return Rt(t,function(r,n){e[n.toLowerCase()]=r}),e}function Kc(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:Zdt(t),edges:Jdt(t)};return Ki(t.graph())||(e.value=Oct(t.graph())),e}function Zdt(t){return oa(t.nodes(),function(e){var r=t.node(e),n=t.parent(e),i={v:e};return Ki(r)||(i.value=r),Ki(n)||(i.parent=n),i})}function Jdt(t){return oa(t.edges(),function(e){var r=t.edge(e),n={v:e.v,w:e.w};return Ki(e.name)||(n.name=e.name),Ki(r)||(n.value=r),n})}var nn=new Map,rp=new Map,p_e=new Map,eht=S(()=>{rp.clear(),p_e.clear(),nn.clear()},"clear"),E6=S((t,e)=>{const r=rp.get(e)||[];return ge.trace("In isDescendant",e," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),tht=S((t,e)=>{const r=rp.get(e)||[];return ge.info("Descendants of ",e," is ",r),ge.info("Edge is ",t),t.v===e||t.w===e?!1:r?r.includes(t.v)||E6(t.v,e)||E6(t.w,e)||r.includes(t.w):(ge.debug("Tilt, ",e,",not in descendants"),!1)},"edgeInCluster"),g_e=S((t,e,r,n)=>{ge.warn("Copying children of ",t,"root",n,"data",e.node(t),n);const i=e.children(t)||[];t!==n&&i.push(t),ge.warn("Copying (nodes) clusterId",t,"nodes",i),i.forEach(a=>{if(e.children(a).length>0)g_e(a,e,r,n);else{const s=e.node(a);ge.info("cp ",a," to ",n," with parent ",t),r.setNode(a,s),n!==e.parent(a)&&(ge.warn("Setting parent",a,e.parent(a)),r.setParent(a,e.parent(a))),t!==n&&a!==t?(ge.debug("Setting parent",a,t),r.setParent(a,t)):(ge.info("In copy ",t,"root",n,"data",e.node(t),n),ge.debug("Not Setting parent for node=",a,"cluster!==rootId",t!==n,"node!==clusterId",a!==t));const o=e.edges(a);ge.debug("Copying Edges",o),o.forEach(l=>{ge.info("Edge",l);const u=e.edge(l.v,l.w,l.name);ge.info("Edge data",u,n);try{tht(l,n)?(ge.info("Copying as ",l.v,l.w,u,l.name),r.setEdge(l.v,l.w,u,l.name),ge.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):ge.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",n," clusterId:",t)}catch(d){ge.error(d)}})}ge.debug("Removing node",a),e.removeNode(a)})},"copy"),m_e=S((t,e)=>{const r=e.children(t);let n=[...r];for(const i of r)p_e.set(i,t),n=[...n,...m_e(i,e)];return n},"extractDescendants"),rht=S((t,e,r)=>{const n=t.edges().filter(l=>l.v===e||l.w===e),i=t.edges().filter(l=>l.v===r||l.w===r),a=n.map(l=>({v:l.v===e?r:l.v,w:l.w===e?e:l.w})),s=i.map(l=>({v:l.v,w:l.w}));return a.filter(l=>s.some(u=>l.v===u.v&&l.w===u.w))},"findCommonEdges"),o4=S((t,e,r)=>{const n=e.children(t);if(ge.trace("Searching children of id ",t,n),n.length<1)return t;let i;for(const a of n){const s=o4(a,e,r),o=rht(e,r,s);if(s)if(o.length>0)i=s;else return s}return i},"findNonClusterChild"),tne=S(t=>!nn.has(t)||!nn.get(t).externalConnections?t:nn.has(t)?nn.get(t).id:t,"getAnchorId"),nht=S((t,e)=>{if(!t||e>10){ge.debug("Opting out, no graph ");return}else ge.debug("Opting in, graph ");t.nodes().forEach(function(r){t.children(r).length>0&&(ge.warn("Cluster identified",r," Replacement id in edges: ",o4(r,t,r)),rp.set(r,m_e(r,t)),nn.set(r,{id:o4(r,t,r),clusterData:t.node(r)}))}),t.nodes().forEach(function(r){const n=t.children(r),i=t.edges();n.length>0?(ge.debug("Cluster identified",r,rp),i.forEach(a=>{const s=E6(a.v,r),o=E6(a.w,r);s^o&&(ge.warn("Edge: ",a," leaves cluster ",r),ge.warn("Descendants of XXX ",r,": ",rp.get(r)),nn.get(r).externalConnections=!0)})):ge.debug("Not a cluster ",r,rp)});for(let r of nn.keys()){const n=nn.get(r).id,i=t.parent(n);i!==r&&nn.has(i)&&!nn.get(i).externalConnections&&(nn.get(r).id=i)}t.edges().forEach(function(r){const n=t.edge(r);ge.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),ge.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));let i=r.v,a=r.w;if(ge.warn("Fix XXX",nn,"ids:",r.v,r.w,"Translating: ",nn.get(r.v)," --- ",nn.get(r.w)),nn.get(r.v)||nn.get(r.w)){if(ge.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),i=tne(r.v),a=tne(r.w),t.removeEdge(r.v,r.w,r.name),i!==r.v){const s=t.parent(i);nn.get(s).externalConnections=!0,n.fromCluster=r.v}if(a!==r.w){const s=t.parent(a);nn.get(s).externalConnections=!0,n.toCluster=r.w}ge.warn("Fix Replacing with XXX",i,a,r.name),t.setEdge(i,a,n,r.name)}}),ge.warn("Adjusted Graph",Kc(t)),y_e(t,0),ge.trace(nn)},"adjustClustersAndEdges"),y_e=S((t,e)=>{if(ge.warn("extractor - ",e,Kc(t),t.children("D")),e>10){ge.error("Bailing out");return}let r=t.nodes(),n=!1;for(const i of r){const a=t.children(i);n=n||a.length>0}if(!n){ge.debug("Done, no node has children",t.nodes());return}ge.debug("Nodes = ",r,e);for(const i of r)if(ge.debug("Extracting node",i,nn,nn.has(i)&&!nn.get(i).externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",e),!nn.has(i))ge.debug("Not a cluster",i,e);else if(!nn.get(i).externalConnections&&t.children(i)&&t.children(i).length>0){ge.warn("Cluster without external connections, without a parent and with children",i,e);let s=t.graph().rankdir==="TB"?"LR":"TB";nn.get(i)?.clusterData?.dir&&(s=nn.get(i).clusterData.dir,ge.warn("Fixing dir",nn.get(i).clusterData.dir,s));const o=new xo({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});ge.warn("Old graph before copy",Kc(t)),g_e(i,t,o,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:nn.get(i).clusterData,label:nn.get(i).label,graph:o}),ge.warn("New graph after copy node: (",i,")",Kc(o)),ge.debug("Old graph after copy",Kc(t))}else ge.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!nn.get(i).externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),e),ge.debug(nn);r=t.nodes(),ge.warn("New list of nodes",r);for(const i of r){const a=t.node(i);ge.warn(" Now next level",i,a),a?.clusterNode&&y_e(a.graph,e+1)}},"extractor"),v_e=S((t,e)=>{if(e.length===0)return[];let r=Object.assign([],e);return e.forEach(n=>{const i=t.children(n),a=v_e(t,i);r=[...r,...a]}),r},"sorter"),iht=S(t=>v_e(t,t.children()),"sortNodesByHierarchy"),__e=S(async(t,e,r,n,i,a)=>{ge.warn("Graph in recursive render:XAX",Kc(e),i);const s=e.graph().rankdir;ge.trace("Dir in recursive render - dir:",s);const o=t.insert("g").attr("class","root");e.nodes()?ge.info("Recursive render XXX",e.nodes()):ge.info("No nodes found for",e),e.edges().length>0&&ge.info("Recursive edges",e.edge(e.edges()[0]));const l=o.insert("g").attr("class","clusters"),u=o.insert("g").attr("class","edgePaths"),d=o.insert("g").attr("class","edgeLabels"),h=o.insert("g").attr("class","nodes");await Promise.all(e.nodes().map(async function(m){const y=e.node(m);if(i!==void 0){const v=JSON.parse(JSON.stringify(i.clusterData));ge.trace(`Setting data for parent cluster XXX Node.id = `,m,` data=`,v.height,` -Parent cluster`,i.height),e.setNode(i.id,v),e.parent(m)||(ge.trace("Setting parent",m,i.id),e.setParent(m,i.id,v))}if(ge.info("(Insert) Node XXX"+m+": "+JSON.stringify(e.node(m))),y?.clusterNode){ge.info("Cluster identified XBX",m,y.width,e.node(m));const{ranksep:v,nodesep:b}=e.graph();y.graph.setGraph({...y.graph.graph(),ranksep:v+25,nodesep:b});const _=await __e(h,y.graph,r,n,e.node(m),a),E=_.elem;yr(y,E),y.diff=_.diff||0,ge.info("New compound node after recursive render XAX",m,"width",y.width,"height",y.height),tKe(E,y)}else e.children(m).length>0?(ge.trace("Cluster - the non recursive path XBX",m,y.id,y,y.width,"Graph:",e),ge.trace(o4(y.id,e)),nn.set(y.id,{id:o4(y.id,e),node:y})):(ge.trace("Node - the non recursive path XAX",m,h,e.node(m),s),await Fk(h,e.node(m),{config:a,dir:s}))})),await S(async()=>{const m=e.edges().map(async function(y){const v=e.edge(y.v,y.w,y.name);ge.info("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(y)),ge.info("Edge "+y.v+" -> "+y.w+": ",y," ",JSON.stringify(e.edge(y))),ge.info("Fix",nn,"ids:",y.v,y.w,"Translating: ",nn.get(y.v),nn.get(y.w)),await tme(d,v)});await Promise.all(m)},"processEdges")(),ge.info("Graph before layout:",JSON.stringify(Kc(e))),ge.info("############################################# XXX"),ge.info("### Layout ### XXX"),ge.info("############################################# XXX"),f_e(e),ge.info("Graph after layout:",JSON.stringify(Kc(e)));let p=0,{subGraphTitleTotalMargin:g}=oT(a);return await Promise.all(nht(e).map(async function(m){const y=e.node(m);if(ge.info("Position XBX => "+m+": ("+y.x,","+y.y,") width: ",y.width," height: ",y.height),y?.clusterNode)y.y+=g,ge.info("A tainted cluster node XBX1",m,y.id,y.width,y.height,y.x,y.y,e.parent(m)),nn.get(y.id).node=y,IP(y);else if(e.children(m).length>0){ge.info("A pure cluster node XBX1",m,y.id,y.x,y.y,y.width,y.height,e.parent(m)),y.height+=g,e.node(y.parentId);const v=y?.padding/2||0,b=y?.labelBBox?.height||0,_=b-v||0;ge.debug("OffsetY",_,"labelHeight",b,"halfPadding",v),await bG(l,y),nn.get(y.id).node=y}else{const v=e.node(y.parentId);y.y+=g/2,ge.info("A regular node XBX1 - using the padding",y.id,"parent",y.parentId,y.width,y.height,y.x,y.y,"offsetY",y.offsetY,"parent",v,v?.offsetY,y),IP(y)}})),e.edges().forEach(function(m){const y=e.edge(m);ge.info("Edge "+m.v+" -> "+m.w+": "+JSON.stringify(y),y),y.points.forEach(E=>E.y+=g/2);const v=e.node(m.v);var b=e.node(m.w);const _=ime(u,y,nn,r,v,b,n);rme(y,_)}),e.nodes().forEach(function(m){const y=e.node(m);ge.info(m,y.type,y.diff),y.isGroup&&(p=y.diff)}),ge.warn("Returning from recursive render XAX",o,p),{elem:o,diff:p}},"recursiveRender"),iht=S(async(t,e)=>{const r=new xo({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.config?.flowchart?.nodeSpacing||t.nodeSpacing,ranksep:t.config?.rankSpacing||t.config?.flowchart?.rankSpacing||t.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=e.select("g");ome(n,t.markers,t.type,t.diagramId),rKe(),oKe(),MWe(),Jdt(),t.nodes.forEach(a=>{r.setNode(a.id,{...a}),a.parentId&&r.setParent(a.id,a.parentId)}),ge.debug("Edges:",t.edges),t.edges.forEach(a=>{if(a.start===a.end){const s=a.start,o=s+"---"+s+"---1",l=s+"---"+s+"---2",u=r.node(s);r.setNode(o,{domId:o,id:o,parentId:u.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(o,u.parentId),r.setNode(l,{domId:l,id:l,parentId:u.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(l,u.parentId);const d=structuredClone(a),h=structuredClone(a),f=structuredClone(a);d.label="",d.arrowTypeEnd="none",d.endLabelLeft="",d.endLabelRight="",d.startLabelLeft="",d.id=s+"-cyclic-special-1",h.startLabelRight="",h.startLabelLeft="",h.endLabelLeft="",h.endLabelRight="",h.arrowTypeStart="none",h.arrowTypeEnd="none",h.id=s+"-cyclic-special-mid",f.label="",f.startLabelRight="",f.startLabelLeft="",f.arrowTypeStart="none",u.isGroup&&(d.fromCluster=s,f.toCluster=s),f.id=s+"-cyclic-special-2",f.arrowTypeStart="none",r.setEdge(s,o,d,s+"-cyclic-special-0"),r.setEdge(o,l,h,s+"-cyclic-special-1"),r.setEdge(l,s,f,s+"-cyct.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return s=l.done,l},e:function(l){o=!0,a=l},f:function(){try{s||r.return==null||r.return()}finally{if(o)throw a}}}}function b_e(t,e,r){return(e=E_e(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cht(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function uht(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==e);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function dht(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hht(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zi(t,e){return sht(t)||uht(t,e)||Iq(t,e)||dht()}function S6(t){return oht(t)||cht(t)||Iq(t)||hht()}function fht(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function E_e(t){var e=fht(t,"string");return typeof e=="symbol"?e:e+""}function Aa(t){"@babel/helpers - typeof";return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Aa(t)}function Iq(t,e){if(t){if(typeof t=="string")return _B(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_B(t,e):void 0}}var va=typeof window>"u"?null:window,rne=va?va.navigator:null;va&&va.document;var pht=Aa(""),S_e=Aa({}),ght=Aa(function(){}),mht=typeof HTMLElement>"u"?"undefined":Aa(HTMLElement),bT=function(e){return e&&e.instanceString&&Ni(e.instanceString)?e.instanceString():null},Cr=function(e){return e!=null&&Aa(e)==pht},Ni=function(e){return e!=null&&Aa(e)===ght},Fn=function(e){return!Do(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},gn=function(e){return e!=null&&Aa(e)===S_e&&!Fn(e)&&e.constructor===Object},yht=function(e){return e!=null&&Aa(e)===S_e},nr=function(e){return e!=null&&Aa(e)===Aa(1)&&!isNaN(e)},vht=function(e){return nr(e)&&Math.floor(e)===e},T6=function(e){if(mht!=="undefined")return e!=null&&e instanceof HTMLElement},Do=function(e){return ET(e)||T_e(e)},ET=function(e){return bT(e)==="collection"&&e._private.single},T_e=function(e){return bT(e)==="collection"&&!e._private.single},Oq=function(e){return bT(e)==="core"},x_e=function(e){return bT(e)==="stylesheet"},_ht=function(e){return bT(e)==="event"},yh=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},bht=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Eht=function(e){return gn(e)&&nr(e.x1)&&nr(e.x2)&&nr(e.y1)&&nr(e.y2)},Sht=function(e){return yht(e)&&Ni(e.then)},Tht=function(){return rne&&rne.userAgent.match(/msie|trident|edge/i)},hb=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var a=[],s=0;sr?1:0},Nht=function(e,r){return-1*w_e(e,r)},Ir=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(y-=1),y<1/6?g+(m-g)*6*y:y<1/2?m:y<2/3?g+(m-g)*(2/3-y)*6:g}var h=new RegExp("^"+wht+"$").exec(e);if(h){if(n=parseInt(h[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n=n%360),n/=360,i=parseFloat(h[2]),i<0||i>100||(i=i/100,a=parseFloat(h[3]),a<0||a>100)||(a=a/100,s=h[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(i===0)o=l=u=Math.round(a*255);else{var f=a<.5?a*(1+i):a+i-a*i,p=2*a-f;o=Math.round(255*d(p,f,n+1/3)),l=Math.round(255*d(p,f,n)),u=Math.round(255*d(p,f,n-1/3))}r=[o,l,u,s]}return r},Dht=function(e){var r,n=new RegExp("^"+xht+"$").exec(e);if(n){r=[];for(var i=[],a=1;a<=3;a++){var s=n[a];if(s[s.length-1]==="%"&&(i[a]=!0),s=parseFloat(s),i[a]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=i[1]||i[2]||i[3],l=i[1]&&i[2]&&i[3];if(o&&!l)return;var u=n[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},Lht=function(e){return Mht[e.toLowerCase()]},k_e=function(e){return(Fn(e)?e:null)||Lht(e)||Iht(e)||Dht(e)||Oht(e)},Mht={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},A_e=function(e){for(var r=e.map,n=e.keys,i=n.length,a=0;a=l||A<0||b&&I>=f}function w(){var F=e();if(T(F))return N(F);g=setTimeout(w,C(F))}function N(F){return g=void 0,_&&d?E(F):(d=h=void 0,p)}function O(){g!==void 0&&clearTimeout(g),y=0,d=m=h=g=void 0}function M(){return g===void 0?p:N(e())}function $(){var F=e(),A=T(F);if(d=arguments,h=this,m=F,A){if(g===void 0)return x(m);if(b)return clearTimeout(g),g=setTimeout(w,l),E(m)}return g===void 0&&(g=setTimeout(w,l)),p}return $.cancel=O,$.flush=M,$}return aD=s,aD}var Hht=Yht(),CT=ST(Hht),sD=va?va.performance:null,I_e=sD&&sD.now?function(){return sD.now()}:function(){return Date.now()},Vht=(function(){if(va){if(va.requestAnimationFrame)return function(t){va.requestAnimationFrame(t)};if(va.mozRequestAnimationFrame)return function(t){va.mozRequestAnimationFrame(t)};if(va.webkitRequestAnimationFrame)return function(t){va.webkitRequestAnimationFrame(t)};if(va.msRequestAnimationFrame)return function(t){va.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(I_e())},1e3/60)}})(),x6=function(e){return Vht(e)},A0=I_e,Mf=9261,O_e=65599,am=5381,D_e=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mf,n=r,i;i=e.next(),!i.done;)n=n*O_e+i.value|0;return n},l4=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mf;return r*O_e+e|0},c4=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:am;return(r<<5)+r+e|0},Wht=function(e,r){return e*2097152+r},yd=function(e){return e[0]*2097152+e[1]},e3=function(e,r){return[l4(e[0],r[0]),c4(e[1],r[1])]},vne=function(e,r){var n={value:0,done:!1},i=0,a=e.length,s={next:function(){return i=0;i--)e[i]===r&&e.splice(i,1)},Bq=function(e){e.splice(0,e.length)},nft=function(e,r){for(var n=0;n"u"?"undefined":Aa(Set))!==aft?Set:sft,C7=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!Oq(e)){ui("An element must have a core reference and parameters set");return}var i=r.group;if(i==null&&(r.data&&r.data.source!=null&&r.data.target!=null?i="edges":i="nodes"),i!=="nodes"&&i!=="edges"){ui("An element must be of type `nodes` or `edges`; you specified `"+i+"`");return}this.length=1,this[0]=this;var a=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:i,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?i==="edges":!!r.pannable,active:!1,classes:new t2,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(a.position.x==null&&(a.position.x=0),a.position.y==null&&(a.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();a.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];Fn(r.classes)?u=r.classes:Cr(r.classes)&&(u=r.classes.split(/\s+/));for(var d=0,h=u.length;db?1:0},d=function(v,b,_,E,x){var C;if(_==null&&(_=0),x==null&&(x=n),_<0)throw new Error("lo must be non-negative");for(E==null&&(E=v.length);_O;0<=O?N++:N--)w.push(N);return w}).apply(this).reverse(),T=[],E=0,x=C.length;EM;0<=M?++w:--w)$.push(s(v,_));return $},m=function(v,b,_,E){var x,C,T;for(E==null&&(E=n),x=v[_];_>b;){if(T=_-1>>1,C=v[T],E(x,C)<0){v[_]=C,_=T;continue}break}return v[_]=x},y=function(v,b,_){var E,x,C,T,w;for(_==null&&(_=n),x=v.length,w=b,C=v[b],E=2*b+1;E0;){var C=b.pop(),T=y(C),w=C.id();if(f[w]=T,T!==1/0)for(var N=C.neighborhood().intersect(g),O=0;O0)for(R.unshift(L);h[z];){var B=h[z];R.unshift(B.edge),R.unshift(B.node),P=B.node,z=P.id()}return o.spawn(R)}}}},fft={kruskal:function(e){e=e||function(_){return 1};for(var r=this.byGroup(),n=r.nodes,i=r.edges,a=n.length,s=new Array(a),o=n,l=function(E){for(var x=0;x0;){if(x(),T++,E===d){for(var w=[],N=a,O=d,M=v[O];w.unshift(N),M!=null&&w.unshift(M),N=y[O],N!=null;)O=N.id(),M=v[O];return{found:!0,distance:h[E],path:this.spawn(w),steps:T}}p[E]=!0;for(var $=_._private.edges,F=0;F<$.length;F++){var A=$[F];if(this.hasElementWithId(A.id())&&!(o&&A.data("source")!==E)){var I=A.source(),D=A.target(),L=I.id()!==E?I:D,R=L.id();if(this.hasElementWithId(R)&&!p[R]){var P=h[E]+l(A);if(!C(R)){h[R]=P,f[R]=P+s(L),b(L,R),y[R]=_,v[R]=A;continue}PM&&(g[O]=M,b[O]=N,_[O]=x),!a){var $=N*d+w;!a&&g[$]>M&&(g[$]=M,b[$]=w,_[$]=x)}}}for(var F=0;F1&&arguments[1]!==void 0?arguments[1]:s,qe=_(Le),Ne=[],ut=qe;;){if(ut==null)return r.spawn();var De=b(ut),Je=De.edge,st=De.pred;if(Ne.unshift(ut[0]),ut.same(Re)&&Ne.length>0)break;Je!=null&&Ne.unshift(Je),ut=st}return l.spawn(Ne)},C=0;C=0;d--){var h=u[d],f=h[1],p=h[2];(r[f]===o&&r[p]===l||r[f]===l&&r[p]===o)&&u.splice(d,1)}for(var g=0;gi;){var a=Math.floor(Math.random()*r.length);r=Eft(a,e,r),n--}return r},Sft={kargerStein:function(){var e=this,r=this.byGroup(),n=r.nodes,i=r.edges;i.unmergeBy(function(R){return R.isLoop()});var a=n.length,s=i.length,o=Math.ceil(Math.pow(Math.log(a)/Math.LN2,2)),l=Math.floor(a/bft);if(a<2){ui("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],d=0;d1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=1/0,a=r;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=-1/0,a=r;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=0,a=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;i?e=e.slice(r,n):(n0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}a&&e.sort(function(f,p){return f-p});var d=e.length,h=Math.floor(d/2);return d%2!==0?e[h+1+o]:(e[h-1+o]+e[h+o])/2},Aft=function(e){return Math.PI*e/180},t3=function(e,r){return Math.atan2(r,e)-Math.PI/2},Fq=Math.log2||function(t){return Math.log(t)/Math.log(2)},$q=function(e){return e>0?1:e<0?-1:0},Dp=function(e,r){return Math.sqrt(Sf(e,r))},Sf=function(e,r){var n=r.x-e.x,i=r.y-e.y;return n*n+i*i},Rft=function(e){for(var r=e.length,n=0,i=0;i=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Ift=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Oft=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Dft=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},z_e=function(e,r,n){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},u5=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},d5=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,i,a,s;if(r.length===1)n=i=a=s=r[0];else if(r.length===2)n=a=r[0],s=i=r[1];else if(r.length===4){var o=Zi(r,4);n=o[0],i=o[1],a=o[2],s=o[3]}return e.x1-=s,e.x2+=i,e.y1-=n,e.y2+=a,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},xne=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},zq=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},Gd=function(e,r,n){return e.x1<=r&&r<=e.x2&&e.y1<=n&&n<=e.y2},Cne=function(e,r){return Gd(e,r.x,r.y)},U_e=function(e,r){return Gd(e,r.x1,r.y1)&&Gd(e,r.x2,r.y2)},Lft=(cD=Math.hypot)!==null&&cD!==void 0?cD:function(t,e){return Math.sqrt(t*t+e*e)};function Mft(t,e){if(t.length<3)throw new Error("Need at least 3 vertices");var r=function(w,N){return{x:w.x+N.x,y:w.y+N.y}},n=function(w,N){return{x:w.x-N.x,y:w.y-N.y}},i=function(w,N){return{x:w.x*N,y:w.y*N}},a=function(w,N){return w.x*N.y-w.y*N.x},s=function(w){var N=Lft(w.x,w.y);return N===0?{x:0,y:0}:{x:w.x/N,y:w.y/N}},o=function(w){for(var N=0,O=0;O7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?_h(a,s):l,d=a/2,h=s/2;u=Math.min(u,d,h);var f=u!==d,p=u!==h,g;if(f){var m=n-d+u-o,y=i-h-o,v=n+d-u+o,b=y;if(g=qd(e,r,n,i,m,y,v,b,!1),g.length>0)return g}if(p){var _=n+d+o,E=i-h+u-o,x=_,C=i+h-u+o;if(g=qd(e,r,n,i,_,E,x,C,!1),g.length>0)return g}if(f){var T=n-d+u-o,w=i+h+o,N=n+d-u+o,O=w;if(g=qd(e,r,n,i,T,w,N,O,!1),g.length>0)return g}if(p){var M=n-d-o,$=i-h+u-o,F=M,A=i+h-u+o;if(g=qd(e,r,n,i,M,$,F,A,!1),g.length>0)return g}var I;{var D=n-d+u,L=i-h+u;if(I=yE(e,r,n,i,D,L,u+o),I.length>0&&I[0]<=D&&I[1]<=L)return[I[0],I[1]]}{var R=n+d-u,P=i-h+u;if(I=yE(e,r,n,i,R,P,u+o),I.length>0&&I[0]>=R&&I[1]<=P)return[I[0],I[1]]}{var z=n+d-u,B=i+h-u;if(I=yE(e,r,n,i,z,B,u+o),I.length>0&&I[0]>=z&&I[1]>=B)return[I[0],I[1]]}{var q=n-d+u,Y=i+h-u;if(I=yE(e,r,n,i,q,Y,u+o),I.length>0&&I[0]<=q&&I[1]>=Y)return[I[0],I[1]]}return[]},Bft=function(e,r,n,i,a,s,o){var l=o,u=Math.min(n,a),d=Math.max(n,a),h=Math.min(i,s),f=Math.max(i,s);return u-l<=e&&e<=d+l&&h-l<=r&&r<=f+l},Fft=function(e,r,n,i,a,s,o,l,u){var d={x1:Math.min(n,o,a)-u,x2:Math.max(n,o,a)+u,y1:Math.min(i,l,s)-u,y2:Math.max(i,l,s)+u};return!(ed.x2||rd.y2)},$ft=function(e,r,n,i){n-=i;var a=r*r-4*e*n;if(a<0)return[];var s=Math.sqrt(a),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},zft=function(e,r,n,i,a){var s=1e-5;e===0&&(e=s),r/=e,n/=e,i/=e;var o,l,u,d,h,f,p,g;if(l=(3*n-r*r)/9,u=-(27*i)+r*(9*n-2*(r*r)),u/=54,o=l*l*l+u*u,a[1]=0,p=r/3,o>0){h=u+Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),f=u-Math.sqrt(o),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),a[0]=-p+h+f,p+=(h+f)/2,a[4]=a[2]=-p,p=Math.sqrt(3)*(-f+h)/2,a[3]=p,a[5]=-p;return}if(a[5]=a[3]=0,o===0){g=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),a[0]=-p+2*g,a[4]=a[2]=-(g+p);return}l=-l,d=l*l*l,d=Math.acos(u/Math.sqrt(d)),g=2*Math.sqrt(l),a[0]=-p+g*Math.cos(d/3),a[2]=-p+g*Math.cos((d+2*Math.PI)/3),a[4]=-p+g*Math.cos((d+4*Math.PI)/3)},Uft=function(e,r,n,i,a,s,o,l){var u=1*n*n-4*n*a+2*n*o+4*a*a-4*a*o+o*o+i*i-4*i*s+2*i*l+4*s*s-4*s*l+l*l,d=9*n*a-3*n*n-3*n*o-6*a*a+3*a*o+9*i*s-3*i*i-3*i*l-6*s*s+3*s*l,h=3*n*n-6*n*a+n*o-n*e+2*a*a+2*a*e-o*e+3*i*i-6*i*s+i*l-i*r+2*s*s+2*s*r-l*r,f=1*n*a-n*n+n*e-a*e+i*s-i*i+i*r-s*r,p=[];zft(u,d,h,f,p);for(var g=1e-7,m=[],y=0;y<6;y+=2)Math.abs(p[y+1])=0&&p[y]<=1&&m.push(p[y]);m.push(1),m.push(0);for(var v=-1,b,_,E,x=0;x=0?Eu?(e-a)*(e-a)+(r-s)*(r-s):d-f},fo=function(e,r,n){for(var i,a,s,o,l,u=0,d=0;d=e&&e>=s||i<=e&&e<=s)l=(e-i)/(s-i)*(o-a)+a,l>r&&u++;else continue;return u%2!==0},R0=function(e,r,n,i,a,s,o,l,u){var d=new Array(n.length),h;l[0]!=null?(h=Math.atan(l[1]/l[0]),l[0]<0?h=h+Math.PI/2:h=-h-Math.PI/2):h=l;for(var f=Math.cos(-h),p=Math.sin(-h),g=0;g0){var y=k6(d,-u);m=w6(y)}else m=d;return fo(e,r,m)},qft=function(e,r,n,i,a,s,o,l){for(var u=new Array(n.length*2),d=0;d=0&&y<=1&&b.push(y),v>=0&&v<=1&&b.push(v),b.length===0)return[];var _=b[0]*l[0]+e,E=b[0]*l[1]+r;if(b.length>1){if(b[0]==b[1])return[_,E];var x=b[1]*l[0]+e,C=b[1]*l[1]+r;return[_,E,x,C]}else return[_,E]},uD=function(e,r,n){return r<=e&&e<=n||n<=e&&e<=r?e:e<=r&&r<=n||n<=r&&r<=e?r:n},qd=function(e,r,n,i,a,s,o,l,u){var d=e-a,h=n-e,f=o-a,p=r-s,g=i-r,m=l-s,y=f*p-m*d,v=h*p-g*d,b=m*h-f*g;if(b!==0){var _=y/b,E=v/b,x=.001,C=0-x,T=1+x;return C<=_&&_<=T&&C<=E&&E<=T?[e+_*h,r+_*g]:u?[e+_*h,r+_*g]:[]}else return y===0||v===0?uD(e,n,o)===o?[o,l]:uD(e,n,a)===a?[a,s]:uD(a,o,n)===n?[n,i]:[]:[]},Hft=function(e,r,n,i,a){var s=[],o=i/2,l=a/2,u=r,d=n;s.push({x:u+o*e[0],y:d+l*e[1]});for(var h=1;h0){var m=k6(h,-l);p=w6(m)}else p=h}else p=n;for(var y,v,b,_,E=0;E2){for(var g=[d[0],d[1]],m=Math.pow(g[0]-e,2)+Math.pow(g[1]-r,2),y=1;yd&&(d=E)},get:function(_){return u[_]}},f=0;f0?I=A.edgesTo(F)[0]:I=F.edgesTo(A)[0];var D=i(I);F=F.id(),T[F]>T[M]+D&&(T[F]=T[M]+D,w.nodes.indexOf(F)<0?w.push(F):w.updateItem(F),C[F]=0,x[F]=[]),T[F]==T[M]+D&&(C[F]=C[F]+C[M],x[F].push(M))}else for(var L=0;L0;){for(var B=E.pop(),q=0;q0&&o.push(n[l]);o.length!==0&&a.push(i.collection(o))}return a},spt=function(e,r){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:cpt,o=i,l,u,d=0;d=2?F2(e,r,n,0,Nne,upt):F2(e,r,n,0,Rne)},squaredEuclidean:function(e,r,n){return F2(e,r,n,0,Nne)},manhattan:function(e,r,n){return F2(e,r,n,0,Rne)},max:function(e,r,n){return F2(e,r,n,-1/0,dpt)}};fb["squared-euclidean"]=fb.squaredEuclidean;fb.squaredeuclidean=fb.squaredEuclidean;function k7(t,e,r,n,i,a){var s;return Ni(t)?s=t:s=fb[t]||fb.euclidean,e===0&&Ni(t)?s(i,a):s(e,r,n,i,a)}var hpt=es({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Gq=function(e){return hpt(e)},A6=function(e,r,n,i,a){var s=a!=="kMedoids",o=s?function(h){return n[h]}:function(h){return i[h](n)},l=function(f){return i[f](r)},u=n,d=r;return k7(e,i.length,o,l,u,d)},hD=function(e,r,n){for(var i=n.length,a=new Array(i),s=new Array(i),o=new Array(r),l=null,u=0;un)return!1}return!0},gpt=function(e,r,n){for(var i=0;io&&(o=r[u][d],l=d);a[l].push(e[u])}for(var h=0;h=a.threshold||a.mode==="dendrogram"&&e.length===1)return!1;var g=r[s],m=r[i[s]],y;a.mode==="dendrogram"?y={left:g,right:m,key:g.key}:y={value:g.value.concat(m.value),key:g.key},e[g.index]=y,e.splice(m.index,1),r[g.key]=y;for(var v=0;vn[m.key][b.key]&&(l=n[m.key][b.key])):a.linkage==="max"?(l=n[g.key][b.key],n[g.key][b.key]0&&i.push(a);return i},Pne=function(e,r,n){for(var i=[],a=0;ao&&(s=u,o=r[a*e+u])}s>0&&i.push(s)}for(var d=0;du&&(l=d,u=h)}n[a]=s[l]}return i=Pne(e,r,n),i},Bne=function(e){for(var r=this.cy(),n=this.nodes(),i=kpt(e),a={},s=0;s=M?($=M,M=A,F=I):A>$&&($=A);for(var D=0;D0?1:0;T[N%i.minIterations*o+q]=Y,B+=Y}if(B>0&&(N>=i.minIterations-1||N==i.maxIterations-1)){for(var Q=0,H=0;H1||C>1)&&(o=!0),h[_]=[],b.outgoers().forEach(function(w){w.isEdge()&&h[_].push(w.id())})}else f[_]=[void 0,b.target().id()]}):s.forEach(function(b){var _=b.id();if(b.isNode()){var E=b.degree(!0);E%2&&(l?u?o=!0:u=_:l=_),h[_]=[],b.connectedEdges().forEach(function(x){return h[_].push(x.id())})}else f[_]=[b.source().id(),b.target().id()]});var p={found:!1,trail:void 0};if(o)return p;if(u&&l)if(a){if(d&&u!=d)return p;d=u}else{if(d&&u!=d&&l!=d)return p;d||(d=u)}else d||(d=s[0].id());var g=function(_){for(var E=_,x=[_],C,T,w;h[E].length;)C=h[E].shift(),T=f[C][0],w=f[C][1],E!=w?(h[w]=h[w].filter(function(N){return N!=C}),E=w):!a&&E!=T&&(h[T]=h[T].filter(function(N){return N!=C}),E=T),x.unshift(C),x.unshift(E);return x},m=[],y=[];for(y=g(d);y.length!=1;)h[y[0]].length==0?(m.unshift(s.getElementById(y.shift())),m.unshift(s.getElementById(y.shift()))):y=g(y.shift()).concat(y);m.unshift(s.getElementById(y.shift()));for(var v in h)if(h[v].length)return p;return p.found=!0,p.trail=this.spawn(m,!0),p}},n3=function(){var e=this,r={},n=0,i=0,a=[],s=[],o={},l=function(f,p){for(var g=s.length-1,m=[],y=e.spawn();s[g].x!=f||s[g].y!=p;)m.push(s.pop().edge),g--;m.push(s.pop().edge),m.forEach(function(v){var b=v.connectedNodes().intersection(e);y.merge(v),b.forEach(function(_){var E=_.id(),x=_.connectedEdges().intersection(e);y.merge(_),r[E].cutVertex?y.merge(x.filter(function(C){return C.isLoop()})):y.merge(x)})}),a.push(y)},u=function(f,p,g){f===g&&(i+=1),r[p]={id:n,low:n++,cutVertex:!1};var m=e.getElementById(p).connectedEdges().intersection(e);if(m.size()===0)a.push(e.spawn(e.getElementById(p)));else{var y,v,b,_;m.forEach(function(E){y=E.source().id(),v=E.target().id(),b=y===p?v:y,b!==g&&(_=E.id(),o[_]||(o[_]=!0,s.push({x:p,y:b,edge:E})),b in r?r[p].low=Math.min(r[p].low,r[b].id):(u(f,b,p),r[p].low=Math.min(r[p].low,r[b].low),r[p].id<=r[b].low&&(r[p].cutVertex=!0,l(p,b))))})}};e.forEach(function(h){if(h.isNode()){var f=h.id();f in r||(i=0,u(f,f),r[f].cutVertex=i>1)}});var d=Object.keys(r).filter(function(h){return r[h].cutVertex}).map(function(h){return e.getElementById(h)});return{cut:e.spawn(d),components:a}},Mpt={hopcroftTarjanBiconnected:n3,htbc:n3,htb:n3,hopcroftTarjanBiconnectedComponents:n3},i3=function(){var e=this,r={},n=0,i=[],a=[],s=e.spawn(e),o=function(u){a.push(u),r[u]={index:n,low:n++,explored:!1};var d=e.getElementById(u).connectedEdges().intersection(e);if(d.forEach(function(m){var y=m.target().id();y!==u&&(y in r||o(y),r[y].explored||(r[u].low=Math.min(r[u].low,r[y].low)))}),r[u].index===r[u].low){for(var h=e.spawn();;){var f=a.pop();if(h.merge(e.getElementById(f)),r[f].low=r[u].index,r[f].explored=!0,f===u)break}var p=h.edgesWith(h),g=h.merge(p);i.push(g),s=s.difference(g)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:i}},Ppt={tarjanStronglyConnected:i3,tsc:i3,tscc:i3,tarjanStronglyConnectedComponents:i3},X_e={};[u4,hft,fft,gft,yft,_ft,Sft,Xft,Jm,e1,SB,lpt,Ept,Cpt,Opt,Lpt,Mpt,Ppt].forEach(function(t){Ir(X_e,t)});var j_e=0,Q_e=1,Z_e=2,hc=function(e){if(!(this instanceof hc))return new hc(e);this.id="Thenable/1.0.7",this.state=j_e,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};hc.prototype={fulfill:function(e){return Fne(this,Q_e,"fulfillValue",e)},reject:function(e){return Fne(this,Z_e,"rejectReason",e)},then:function(e,r){var n=this,i=new hc;return n.onFulfilled.push(zne(e,i,"fulfill")),n.onRejected.push(zne(r,i,"reject")),J_e(n),i.proxy}};var Fne=function(e,r,n,i){return e.state===j_e&&(e.state=r,e[n]=i,J_e(e)),e},J_e=function(e){e.state===Q_e?$ne(e,"onFulfilled",e.fulfillValue):e.state===Z_e&&$ne(e,"onRejected",e.rejectReason)},$ne=function(e,r,n){if(e[r].length!==0){var i=e[r];e[r]=[];var a=function(){for(var o=0;o0}},clearQueue:function(){return function(){var r=this,n=r.length!==void 0,i=n?r:[r],a=this._private.cy||this;if(!a.styleEnabled())return this;for(var s=0;s-1}return LD=e,LD}var MD,cie;function tgt(){if(cie)return MD;cie=1;var t=N7();function e(r,n){var i=this.__data__,a=t(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return MD=e,MD}var PD,uie;function rgt(){if(uie)return PD;uie=1;var t=Qpt(),e=Zpt(),r=Jpt(),n=egt(),i=tgt();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o-1&&n%1==0&&n0&&this.spawn(i).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},toggleClass:function(e,r){Fn(e)||(e=e.match(/\S+/g)||[]);for(var n=this,i=r===void 0,a=[],s=0,o=n.length;s0&&this.spawn(a).updateStyle().emit("class"),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var n=this;if(r==null)r=250;else if(r===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},r),n}};h5.className=h5.classNames=h5.classes;var pn={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Ta,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};pn.variable="(?:[\\w-.]|(?:\\\\"+pn.metaChar+"))+";pn.className="(?:[\\w-]|(?:\\\\"+pn.metaChar+"))+";pn.value=pn.string+"|"+pn.number;pn.id=pn.variable;(function(){var t,e,r;for(t=pn.comparatorOp.split("|"),r=0;r=0)&&e!=="="&&(pn.comparatorOp+="|\\!"+e)})();var Pn=function(){return{checks:[]}},pr={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},wB=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return Nht(t.selector,e.selector)}),Dgt=(function(){for(var t={},e,r=0;r0&&d.edgeCount>0)return Ln("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(d.edgeCount>1)return Ln("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;d.edgeCount===1&&Ln("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},$gt=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(d){return d??""},r=function(d){return Cr(d)?'"'+d+'"':e(d)},n=function(d){return" "+d+" "},i=function(d,h){var f=d.type,p=d.value;switch(f){case pr.GROUP:{var g=e(p);return g.substring(0,g.length-1)}case pr.DATA_COMPARE:{var m=d.field,y=d.operator;return"["+m+n(e(y))+r(p)+"]"}case pr.DATA_BOOL:{var v=d.operator,b=d.field;return"["+e(v)+b+"]"}case pr.DATA_EXIST:{var _=d.field;return"["+_+"]"}case pr.META_COMPARE:{var E=d.operator,x=d.field;return"[["+x+n(e(E))+r(p)+"]]"}case pr.STATE:return p;case pr.ID:return"#"+p;case pr.CLASS:return"."+p;case pr.PARENT:case pr.CHILD:return a(d.parent,h)+n(">")+a(d.child,h);case pr.ANCESTOR:case pr.DESCENDANT:return a(d.ancestor,h)+" "+a(d.descendant,h);case pr.COMPOUND_SPLIT:{var C=a(d.left,h),T=a(d.subject,h),w=a(d.right,h);return C+(C.length>0?" ":"")+T+w}case pr.TRUE:return""}},a=function(d,h){return d.checks.reduce(function(f,p,g){return f+(h===d&&g===0?"$":"")+i(p,h)},"")},s="",o=0;o1&&o=0&&(r=r.replace("!",""),h=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),d=!0),(a||o||d)&&(l=!a&&!s?"":""+e,u=""+n),d&&(e=l=l.toLowerCase(),n=u=u.toLowerCase()),r){case"*=":i=l.indexOf(u)>=0;break;case"$=":i=l.indexOf(u,l.length-u.length)>=0;break;case"^=":i=l.indexOf(u)===0;break;case"=":i=e===n;break;case">":f=!0,i=e>n;break;case">=":f=!0,i=e>=n;break;case"<":f=!0,i=e0;){var d=i.shift();e(d),a.add(d.id()),o&&n(i,a,d)}return t}function obe(t,e,r){if(r.isParent())for(var n=r._private.children,i=0;i1&&arguments[1]!==void 0?arguments[1]:!0;return Vq(this,t,e,obe)};function lbe(t,e,r){if(r.isChild()){var n=r._private.parent;e.has(n.id())||t.push(n)}}pb.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Vq(this,t,e,lbe)};function Wgt(t,e,r){lbe(t,e,r),obe(t,e,r)}pb.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Vq(this,t,e,Wgt)};pb.ancestors=pb.parents;var f4,cbe;f4=cbe={data:On.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:On.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:On.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:On.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:On.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:On.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};f4.attr=f4.data;f4.removeAttr=f4.removeData;var Kgt=cbe,O7={};function uL(t){return function(e){var r=this;if(e===void 0&&(e=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var n=0,i=r[0],a=i._private.edges,s=0;se}),minIndegree:$g("indegree",function(t,e){return te}),minOutdegree:$g("outdegree",function(t,e){return te})});Ir(O7,{totalDegree:function(e){for(var r=0,n=this.nodes(),i=0;i0,f=h;h&&(d=d[0]);var p=f?d.position():{x:0,y:0};r!==void 0?u.position(e,r+p[e]):a!==void 0&&u.position({x:a.x+p.x,y:a.y+p.y})}else{var g=n.position(),m=o?n.parent():null,y=m&&m.length>0,v=y;y&&(m=m[0]);var b=v?m.position():{x:0,y:0};return a={x:g.x-b.x,y:g.y-b.y},e===void 0?a:a[e]}else if(!s)return;return this}};ic.modelPosition=ic.point=ic.position;ic.modelPositions=ic.points=ic.positions;ic.renderedPoint=ic.renderedPosition;ic.relativePoint=ic.relativePosition;var Xgt=ube,t1,Bh;t1=Bh={};Bh.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),n=r.zoom(),i=r.pan(),a=e.x1*n+i.x,s=e.x2*n+i.x,o=e.y1*n+i.y,l=e.y2*n+i.y;return{x1:a,x2:s,y1:o,y2:l,w:s-a,h:l-o}};Bh.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var n=r._private;n.compoundBoundsClean=!1,n.bbCache=null,t||r.emitAndNotify("bounds")}}),this)};Bh.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(s){if(!s.isParent())return;var o=s._private,l=s.children(),u=s.pstyle("compound-sizing-wrt-labels").value==="include",d={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},h=l.boundingBox({includeLabels:u,includeOverlays:!1,useCache:!1}),f=o.position;(h.w===0||h.h===0)&&(h={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue},h.x1=f.x-h.w/2,h.x2=f.x+h.w/2,h.y1=f.y-h.h/2,h.y2=f.y+h.h/2);function p(N,O,M){var $=0,F=0,A=O+M;return N>0&&A>0&&($=O/A*N,F=M/A*N),{biasDiff:$,biasComplementDiff:F}}function g(N,O,M,$){if(M.units==="%")switch($){case"width":return N>0?M.pfValue*N:0;case"height":return O>0?M.pfValue*O:0;case"average":return N>0&&O>0?M.pfValue*(N+O)/2:0;case"min":return N>0&&O>0?N>O?M.pfValue*O:M.pfValue*N:0;case"max":return N>0&&O>0?N>O?M.pfValue*N:M.pfValue*O:0;default:return 0}else return M.units==="px"?M.pfValue:0}var m=d.width.left.value;d.width.left.units==="px"&&d.width.val>0&&(m=m*100/d.width.val);var y=d.width.right.value;d.width.right.units==="px"&&d.width.val>0&&(y=y*100/d.width.val);var v=d.height.top.value;d.height.top.units==="px"&&d.height.val>0&&(v=v*100/d.height.val);var b=d.height.bottom.value;d.height.bottom.units==="px"&&d.height.val>0&&(b=b*100/d.height.val);var _=p(d.width.val-h.w,m,y),E=_.biasDiff,x=_.biasComplementDiff,C=p(d.height.val-h.h,v,b),T=C.biasDiff,w=C.biasComplementDiff;o.autoPadding=g(h.w,h.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),o.autoWidth=Math.max(h.w,d.width.val),f.x=(-E+h.x1+h.x2+x)/2,o.autoHeight=Math.max(h.h,d.height.val),f.y=(-T+h.y1+h.y2+w)/2}for(var n=0;ne.x2?i:e.x2,e.y1=ne.y2?a:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},xd=function(e,r){return r==null?e:ql(e,r.x1,r.y1,r.x2,r.y2)},$2=function(e,r,n){return ho(e,r,n)},a3=function(e,r,n){if(!r.cy().headless()){var i=r._private,a=i.rstyle,s=a.arrowWidth/2,o=r.pstyle(n+"-arrow-shape").value,l,u;if(o!=="none"){n==="source"?(l=a.srcX,u=a.srcY):n==="target"?(l=a.tgtX,u=a.tgtY):(l=a.midX,u=a.midY);var d=i.arrowBounds=i.arrowBounds||{},h=d[n]=d[n]||{};h.x1=l-s,h.y1=u-s,h.x2=l+s,h.y2=u+s,h.w=h.x2-h.x1,h.h=h.y2-h.y1,u5(h,1),ql(e,h.x1,h.y1,h.x2,h.y2)}}},dL=function(e,r,n){if(!r.cy().headless()){var i;n?i=n+"-":i="";var a=r._private,s=a.rstyle,o=r.pstyle(i+"label").strValue;if(o){var l=r.pstyle("text-halign"),u=r.pstyle("text-valign"),d=$2(s,"labelWidth",n),h=$2(s,"labelHeight",n),f=$2(s,"labelX",n),p=$2(s,"labelY",n),g=r.pstyle(i+"text-margin-x").pfValue,m=r.pstyle(i+"text-margin-y").pfValue,y=r.isEdge(),v=r.pstyle(i+"text-rotation"),b=r.pstyle("text-outline-width").pfValue,_=r.pstyle("text-border-width").pfValue,E=_/2,x=r.pstyle("text-background-padding").pfValue,C=2,T=h,w=d,N=w/2,O=T/2,M,$,F,A;if(y)M=f-N,$=f+N,F=p-O,A=p+O;else{switch(l.value){case"left":M=f-w,$=f;break;case"center":M=f-N,$=f+N;break;case"right":M=f,$=f+w;break}switch(u.value){case"top":F=p-T,A=p;break;case"center":F=p-O,A=p+O;break;case"bottom":F=p,A=p+T;break}}var I=g-Math.max(b,E)-x-C,D=g+Math.max(b,E)+x+C,L=m-Math.max(b,E)-x-C,R=m+Math.max(b,E)+x+C;M+=I,$+=D,F+=L,A+=R;var P=n||"main",z=a.labelBounds,B=z[P]=z[P]||{};B.x1=M,B.y1=F,B.x2=$,B.y2=A,B.w=$-M,B.h=A-F,B.leftPad=I,B.rightPad=D,B.topPad=L,B.botPad=R;var q=y&&v.strValue==="autorotate",Y=v.pfValue!=null&&v.pfValue!==0;if(q||Y){var Q=q?$2(a.rstyle,"labelAngle",n):v.pfValue,H=Math.cos(Q),J=Math.sin(Q),Z=(M+$)/2,pe=(F+A)/2;if(!y){switch(l.value){case"left":Z=$;break;case"right":Z=M;break}switch(u.value){case"top":pe=A;break;case"bottom":pe=F;break}}var re=function(Xe,Le){return Xe=Xe-Z,Le=Le-pe,{x:Xe*H-Le*J+Z,y:Xe*J+Le*H+pe}},ce=re(M,F),ae=re(M,A),se=re($,F),xe=re($,A);M=Math.min(ce.x,ae.x,se.x,xe.x),$=Math.max(ce.x,ae.x,se.x,xe.x),F=Math.min(ce.y,ae.y,se.y,xe.y),A=Math.max(ce.y,ae.y,se.y,xe.y)}var Te=P+"Rot",Ge=z[Te]=z[Te]||{};Ge.x1=M,Ge.y1=F,Ge.x2=$,Ge.y2=A,Ge.w=$-M,Ge.h=A-F,ql(e,M,F,$,A),ql(a.labelBounds.all,M,F,$,A)}return e}},$ie=function(e,r){if(!r.cy().headless()){var n=r.pstyle("outline-opacity").value,i=r.pstyle("outline-width").value,a=r.pstyle("outline-offset").value,s=i+a;hbe(e,r,n,s,"outside",s/2)}},hbe=function(e,r,n,i,a,s){if(!(n===0||i<=0||a==="inside")){var o=r.cy(),l=r.pstyle("shape").value,u=o.renderer().nodeShapes[l],d=r.position(),h=d.x,f=d.y,p=r.width(),g=r.height();if(u.hasMiterBounds){a==="center"&&(i/=2);var m=u.miterBounds(h,f,p,g,i);xd(e,m)}else s!=null&&s>0&&d5(e,[s,s,s,s])}},jgt=function(e,r){if(!r.cy().headless()){var n=r.pstyle("border-opacity").value,i=r.pstyle("border-width").pfValue,a=r.pstyle("border-position").value;hbe(e,r,n,i,a)}},Qgt=function(e,r){var n=e._private.cy,i=n.styleEnabled(),a=n.headless(),s=Ys(),o=e._private,l=e.isNode(),u=e.isEdge(),d,h,f,p,g,m,y=o.rstyle,v=l&&i?e.pstyle("bounds-expansion").pfValue:[0],b=function(ze){return ze.pstyle("display").value!=="none"},_=!i||b(e)&&(!u||b(e.source())&&b(e.target()));if(_){var E=0,x=0;i&&r.includeOverlays&&(E=e.pstyle("overlay-opacity").value,E!==0&&(x=e.pstyle("overlay-padding").value));var C=0,T=0;i&&r.includeUnderlays&&(C=e.pstyle("underlay-opacity").value,C!==0&&(T=e.pstyle("underlay-padding").value));var w=Math.max(x,T),N=0,O=0;if(i&&(N=e.pstyle("width").pfValue,O=N/2),l&&r.includeNodes){var M=e.position();g=M.x,m=M.y;var $=e.outerWidth(),F=$/2,A=e.outerHeight(),I=A/2;d=g-F,h=g+F,f=m-I,p=m+I,ql(s,d,f,h,p),i&&$ie(s,e),i&&r.includeOutlines&&!a&&$ie(s,e),i&&jgt(s,e)}else if(u&&r.includeEdges)if(i&&!a){var D=e.pstyle("curve-style").strValue;if(d=Math.min(y.srcX,y.midX,y.tgtX),h=Math.max(y.srcX,y.midX,y.tgtX),f=Math.min(y.srcY,y.midY,y.tgtY),p=Math.max(y.srcY,y.midY,y.tgtY),d-=O,h+=O,f-=O,p+=O,ql(s,d,f,h,p),D==="haystack"){var L=y.haystackPts;if(L&&L.length===2){if(d=L[0].x,f=L[0].y,h=L[1].x,p=L[1].y,d>h){var R=d;d=h,h=R}if(f>p){var P=f;f=p,p=P}ql(s,d-O,f-O,h+O,p+O)}}else if(D==="bezier"||D==="unbundled-bezier"||Ud(D,"segments")||Ud(D,"taxi")){var z;switch(D){case"bezier":case"unbundled-bezier":z=y.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":z=y.linePts;break}if(z!=null)for(var B=0;Bh){var Z=d;d=h,h=Z}if(f>p){var pe=f;f=p,p=pe}d-=O,h+=O,f-=O,p+=O,ql(s,d,f,h,p)}if(i&&r.includeEdges&&u&&(a3(s,e,"mid-source"),a3(s,e,"mid-target"),a3(s,e,"source"),a3(s,e,"target")),i){var re=e.pstyle("ghost").value==="yes";if(re){var ce=e.pstyle("ghost-offset-x").pfValue,ae=e.pstyle("ghost-offset-y").pfValue;ql(s,s.x1+ce,s.y1+ae,s.x2+ce,s.y2+ae)}}var se=o.bodyBounds=o.bodyBounds||{};xne(se,s),d5(se,v),u5(se,1),i&&(d=s.x1,h=s.x2,f=s.y1,p=s.y2,ql(s,d-w,f-w,h+w,p+w));var xe=o.overlayBounds=o.overlayBounds||{};xne(xe,s),d5(xe,v),u5(xe,1);var Te=o.labelBounds=o.labelBounds||{};Te.all!=null?Oft(Te.all):Te.all=Ys(),i&&r.includeLabels&&(r.includeMainLabels&&dL(s,e,null),u&&(r.includeSourceLabels&&dL(s,e,"source"),r.includeTargetLabels&&dL(s,e,"target")))}return s.x1=pl(s.x1),s.y1=pl(s.y1),s.x2=pl(s.x2),s.y2=pl(s.y2),s.w=pl(s.x2-s.x1),s.h=pl(s.y2-s.y1),s.w>0&&s.h>0&&_&&(d5(s,v),u5(s,1)),s},fbe=function(e){var r=0,n=function(s){return(s?1:0)<0&&arguments[0]!==void 0?arguments[0]:hmt,e=arguments.length>1?arguments[1]:void 0,r=0;r=0;o--)s(o);return this};Sh.removeAllListeners=function(){return this.removeListener("*")};Sh.emit=Sh.trigger=function(t,e,r){var n=this.listeners,i=n.length;return this.emitting++,Fn(e)||(e=[e]),fmt(this,function(a,s){r!=null&&(n=[{event:s.event,type:s.type,namespace:s.namespace,callback:r}],i=n.length);for(var o=function(){var d=n[l];if(d.type===s.type&&(!d.namespace||d.namespace===s.namespace||d.namespace===dmt)&&a.eventMatches(a.context,d,s)){var h=[s];e!=null&&nft(h,e),a.beforeEmit(a.context,d,s),d.conf&&d.conf.one&&(a.listeners=a.listeners.filter(function(g){return g!==d}));var f=a.callbackContext(a.context,d,s),p=d.callback.apply(f,h);a.afterEmit(a.context,d,s),p===!1&&(s.stopPropagation(),s.preventDefault())}},l=0;l1&&!s){var o=this.length-1,l=this[o],u=l._private.data.id;this[o]=void 0,this[e]=l,a.set(u,{ele:l,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var r=this._private,n=e._private.data.id,i=r.map,a=i.get(n);if(!a)return this;var s=a.index;return this.unmergeAt(s),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&Cr(e)){var n=e;e=r.mutableElements().filter(n)}for(var i=0;i=0;r--){var n=this[r];e(n)&&this.unmergeAt(r)}return this},map:function(e,r){for(var n=[],i=this,a=0;an&&(n=l,i=o)}return{value:n,ele:i}},min:function(e,r){for(var n=1/0,i,a=this,s=0;s=0&&a"u"?"undefined":Aa(Symbol))!=e&&Aa(Symbol.iterator)!=e;r&&(R6[Symbol.iterator]=function(){var n=this,i={value:void 0,done:!1},a=0,s=this.length;return b_e({next:function(){return a1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],i=n.cy();if(i.styleEnabled()&&n){n._private.styleDirty&&(n._private.styleDirty=!1,i.style().apply(n));var a=n._private.style[e];return a??(r?i.style().getDefaultProperty(e):null)}},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var n=r.pstyle(e);return n.pfValue!==void 0?n.pfValue:n.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=this[0];if(n)return r.style().getRenderedStyle(n,e)},style:function(e,r){var n=this.cy();if(!n.styleEnabled())return this;var i=!1,a=n.style();if(gn(e)){var s=e;a.applyBypass(this,s,i),this.emitAndNotify("style")}else if(Cr(e))if(r===void 0){var o=this[0];return o?a.getStylePropertyValue(o,e):void 0}else a.applyBypass(this,e,r,i),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?a.getRawStyle(l):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=!1,i=r.style(),a=this;if(e===void 0)for(var s=0;s0&&e.push(d[0]),e.push(o[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});hs.neighbourhood=hs.neighborhood;hs.closedNeighbourhood=hs.closedNeighborhood;hs.openNeighbourhood=hs.openNeighborhood;Ir(hs,{source:bl(function(e){var r=this[0],n;return r&&(n=r._private.source||r.cy().collection()),n&&e?n.filter(e):n},"source"),target:bl(function(e){var r=this[0],n;return r&&(n=r._private.target||r.cy().collection()),n&&e?n.filter(e):n},"target"),sources:jie({attr:"source"}),targets:jie({attr:"target"})});function jie(t){return function(r){for(var n=[],i=0;i0);return s},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});hs.componentsOf=hs.components;var Qa=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){ui("A collection must have a reference to the core");return}var a=new l0,s=!1;if(!r)r=[];else if(r.length>0&&gn(r[0])&&!ET(r[0])){s=!0;for(var o=[],l=new t2,u=0,d=r.length;u0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=r.cy(),i=n._private,a=[],s=[],o,l=0,u=r.length;l0){for(var P=o.length===r.length?r:new Qa(n,o),z=0;z0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=[],i={},a=r._private.cy;function s(A){for(var I=A._private.edges,D=0;D0&&(t?M.emitAndNotify("remove"):e&&M.emit("remove"));for(var $=0;$0?$=A:M=A;while(Math.abs(F)>s&&++I=a?b(O,I):D===0?I:E(O,M,M+u)}var C=!1;function T(){C=!0,(t!==e||r!==n)&&_()}var w=function(M){return C||T(),t===e&&r===n?M:M===0?0:M===1?1:y(x(M),e,n)};w.getControlPoints=function(){return[{x:t,y:e},{x:r,y:n}]};var N="generateBezier("+[t,e,r,n]+")";return w.toString=function(){return N},w}var xmt=(function(){function t(n){return-n.tension*n.x-n.friction*n.v}function e(n,i,a){var s={x:n.x+a.dx*i,v:n.v+a.dv*i,tension:n.tension,friction:n.friction};return{dx:s.v,dv:t(s)}}function r(n,i){var a={dx:n.v,dv:t(n)},s=e(n,i*.5,a),o=e(n,i*.5,s),l=e(n,i,o),u=1/6*(a.dx+2*(s.dx+o.dx)+l.dx),d=1/6*(a.dv+2*(s.dv+o.dv)+l.dv);return n.x=n.x+u*i,n.v=n.v+d*i,n}return function n(i,a,s){var o={x:-1,v:0,tension:null,friction:null},l=[0],u=0,d=1/1e4,h=16/1e3,f,p,g;for(i=parseFloat(i)||500,a=parseFloat(a)||20,s=s||null,o.tension=i,o.friction=a,f=s!==null,f?(u=n(i,a),p=u/s*h):p=h;g=r(g||o,p),l.push(1+g.x),u+=16,Math.abs(g.x)>d&&Math.abs(g.v)>d;);return f?function(m){return l[m*(l.length-1)|0]}:u}})(),Hn=function(e,r,n,i){var a=Tmt(e,r,n,i);return function(s,o,l){return s+(o-s)*a(l)}},p5={linear:function(e,r,n){return e+(r-e)*n},ease:Hn(.25,.1,.25,1),"ease-in":Hn(.42,0,1,1),"ease-out":Hn(0,0,.58,1),"ease-in-out":Hn(.42,0,.58,1),"ease-in-sine":Hn(.47,0,.745,.715),"ease-out-sine":Hn(.39,.575,.565,1),"ease-in-out-sine":Hn(.445,.05,.55,.95),"ease-in-quad":Hn(.55,.085,.68,.53),"ease-out-quad":Hn(.25,.46,.45,.94),"ease-in-out-quad":Hn(.455,.03,.515,.955),"ease-in-cubic":Hn(.55,.055,.675,.19),"ease-out-cubic":Hn(.215,.61,.355,1),"ease-in-out-cubic":Hn(.645,.045,.355,1),"ease-in-quart":Hn(.895,.03,.685,.22),"ease-out-quart":Hn(.165,.84,.44,1),"ease-in-out-quart":Hn(.77,0,.175,1),"ease-in-quint":Hn(.755,.05,.855,.06),"ease-out-quint":Hn(.23,1,.32,1),"ease-in-out-quint":Hn(.86,0,.07,1),"ease-in-expo":Hn(.95,.05,.795,.035),"ease-out-expo":Hn(.19,1,.22,1),"ease-in-out-expo":Hn(1,0,0,1),"ease-in-circ":Hn(.6,.04,.98,.335),"ease-out-circ":Hn(.075,.82,.165,1),"ease-in-out-circ":Hn(.785,.135,.15,.86),spring:function(e,r,n){if(n===0)return p5.linear;var i=xmt(e,r,n);return function(a,s,o){return a+(s-a)*i(o)}},"cubic-bezier":Hn};function Jie(t,e,r,n,i){if(n===1||e===r)return r;var a=i(e,r,n);return t==null||((t.roundValue||t.color)&&(a=Math.round(a)),t.min!==void 0&&(a=Math.max(a,t.min)),t.max!==void 0&&(a=Math.min(a,t.max))),a}function eae(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function zg(t,e,r,n,i){var a=i!=null?i.type:null;r<0?r=0:r>1&&(r=1);var s=eae(t,i),o=eae(e,i);if(nr(s)&&nr(o))return Jie(a,s,o,r,n);if(Fn(s)&&Fn(o)){for(var l=[],u=0;u0?(p==="spring"&&g.push(s.duration),s.easingImpl=p5[p].apply(null,g)):s.easingImpl=p5[p]}var m=s.easingImpl,y;if(s.duration===0?y=1:y=(r-l)/s.duration,s.applying&&(y=s.progress),y<0?y=0:y>1&&(y=1),s.delay==null){var v=s.startPosition,b=s.position;if(b&&i&&!t.locked()){var _={};U2(v.x,b.x)&&(_.x=zg(v.x,b.x,y,m)),U2(v.y,b.y)&&(_.y=zg(v.y,b.y,y,m)),t.position(_)}var E=s.startPan,x=s.pan,C=a.pan,T=x!=null&&n;T&&(U2(E.x,x.x)&&(C.x=zg(E.x,x.x,y,m)),U2(E.y,x.y)&&(C.y=zg(E.y,x.y,y,m)),t.emit("pan"));var w=s.startZoom,N=s.zoom,O=N!=null&&n;O&&(U2(w,N)&&(a.zoom=d4(a.minZoom,zg(w,N,y,m),a.maxZoom)),t.emit("zoom")),(T||O)&&t.emit("viewport");var M=s.style;if(M&&M.length>0&&i){for(var $=0;$=0;T--){var w=C[T];w()}C.splice(0,C.length)},b=p.length-1;b>=0;b--){var _=p[b],E=_._private;if(E.stopped){p.splice(b,1),E.hooked=!1,E.playing=!1,E.started=!1,v(E.frames);continue}!E.playing&&!E.applying||(E.playing&&E.applying&&(E.applying=!1),E.started||wmt(d,_,t),Cmt(d,_,t,h),E.applying&&(E.applying=!1),v(E.frames),E.step!=null&&E.step(t),_.completed()&&(p.splice(b,1),E.hooked=!1,E.playing=!1,E.started=!1,v(E.completes)),m=!0)}return!h&&p.length===0&&g.length===0&&n.push(d),m}for(var a=!1,s=0;s0?e.notify("draw",r):e.notify("draw")),r.unmerge(n),e.emit("step")}var kmt={animate:On.animate(),animation:On.animation(),animated:On.animated(),clearQueue:On.clearQueue(),delay:On.delay(),delayAnimation:On.delayAnimation(),stop:On.stop(),addToAnimationPool:function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&x6(function(a){tae(a,e),r()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(a,s){tae(s,e)},n.beforeRenderPriorities.animations):r()}},Amt={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,n){var i=r.qualifier;return i!=null?e!==n.target&&ET(n.target)&&i.matches(n.target):!0},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,n){return r.qualifier!=null?n.target:e}},l3=function(e){return Cr(e)?new bh(e):e},xbe={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new D7(Amt,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,n){return this.emitter().on(e,l3(r),n),this},removeListener:function(e,r,n){return this.emitter().removeListener(e,l3(r),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,n){return this.emitter().one(e,l3(r),n),this},once:function(e,r,n){return this.emitter().one(e,l3(r),n),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};On.eventAliasesOn(xbe);var AB={png:function(e){var r=this._private.renderer;return e=e||{},r.png(e)},jpg:function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)}};AB.jpeg=AB.jpg;var g5={layout:function(e){var r=this;if(e==null){ui("Layout options must be specified to make a layout");return}if(e.name==null){ui("A `name` must be specified to make a layout");return}var n=e.name,i=r.extension("layout",n);if(i==null){ui("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var a;Cr(e.eles)?a=r.$(e.eles):a=e.eles!=null?e.eles:r.$();var s=new i(Ir({},e,{cy:r,eles:a}));return s}};g5.createLayout=g5.makeLayout=g5.layout;var Rmt={notify:function(e,r){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var i=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();r!=null&&i.merge(r);return}if(n.notificationsEnabled){var a=this.renderer();this.destroyed()||!a||a.notify(e,r)}},notifications:function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var i=e.batchNotifications[n];i.empty()?r.notify(n):r.notify(n,i)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var n=Object.keys(e),i=0;i0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(n){var i=n._private;i.rscratch={},i.rstyle={},i.animation.current=[],i.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};RB.invalidateDimensions=RB.resize;var m5={collection:function(e,r){return Cr(e)?this.$(e):Do(e)?e.collection():Fn(e)?(r||(r={}),new Qa(this,e,r.unique,r.removed)):new Qa(this)},nodes:function(e){var r=this.$(function(n){return n.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(n){return n.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};m5.elements=m5.filter=m5.$;var Ua={},nS="t",Imt="f";Ua.apply=function(t){for(var e=this,r=e._private,n=r.cy,i=n.collection(),a=0;a0;if(f||h&&p){var g=void 0;f&&p||f?g=u.properties:p&&(g=u.mappedProperties);for(var m=0;m1&&(E=1),o.color){var C=n.valueMin[0],T=n.valueMax[0],w=n.valueMin[1],N=n.valueMax[1],O=n.valueMin[2],M=n.valueMax[2],$=n.valueMin[3]==null?1:n.valueMin[3],F=n.valueMax[3]==null?1:n.valueMax[3],A=[Math.round(C+(T-C)*E),Math.round(w+(N-w)*E),Math.round(O+(M-O)*E),Math.round($+(F-$)*E)];a={bypass:n.bypass,name:n.name,value:A,strValue:"rgb("+A[0]+", "+A[1]+", "+A[2]+")"}}else if(o.number){var I=n.valueMin+(n.valueMax-n.valueMin)*E;a=this.parse(n.name,I,n.bypass,f)}else return!1;if(!a)return m(),!1;a.mapping=n,n=a;break}case s.data:{for(var D=n.field.split("."),L=h.data,R=0;R0&&a>0){for(var o={},l=!1,u=0;u0?t.delayAnimation(s).play().promise().then(_):_()}).then(function(){return t.animation({style:o,duration:a,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,i),t.emitAndNotify("style"),n.transitioning=!1})}else n.transitioning&&(this.removeBypasses(t,i),t.emitAndNotify("style"),n.transitioning=!1)};Ua.checkTrigger=function(t,e,r,n,i,a){var s=this.properties[e],o=i(s);t.removed()||o!=null&&o(r,n,t)&&a(s)};Ua.checkZOrderTrigger=function(t,e,r,n){var i=this;this.checkTrigger(t,e,r,n,function(a){return a.triggersZOrder},function(){i._private.cy.notify("zorder",t)})};Ua.checkBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(i){return i.triggersBounds},function(i){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache()})};Ua.checkConnectedEdgesBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(i){return i.triggersBoundsOfConnectedEdges},function(i){t.connectedEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};Ua.checkParallelEdgesBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(i){return i.triggersBoundsOfParallelEdges},function(i){t.parallelEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};Ua.checkTriggers=function(t,e,r,n){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,n),this.checkBoundsTrigger(t,e,r,n),this.checkConnectedEdgesBoundsTrigger(t,e,r,n),this.checkParallelEdgesBoundsTrigger(t,e,r,n)};var AT={};AT.applyBypass=function(t,e,r,n){var i=this,a=[],s=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var o=0;oi.length?n=n.substr(i.length):n=""}function l(){a.length>s.length?a=a.substr(s.length):a=""}for(;;){var u=n.match(/^\s*$/);if(u)break;var d=n.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!d){Ln("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+n);break}i=d[0];var h=d[1];if(h!=="core"){var f=new bh(h);if(f.invalid){Ln("Skipping parsing of block: Invalid selector found in string stylesheet: "+h),o();continue}}var p=d[2],g=!1;a=p;for(var m=[];;){var y=a.match(/^\s*$/);if(y)break;var v=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!v){Ln("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+p),g=!0;break}s=v[0];var b=v[1],_=v[2],E=e.properties[b];if(!E){Ln("Skipping property: Invalid property name in: "+s),l();continue}var x=r.parse(b,_);if(!x){Ln("Skipping property: Invalid property definition in: "+s),l();continue}m.push({name:b,val:_}),l()}if(g){o();break}r.selector(h);for(var C=0;C=7&&e[0]==="d"&&(d=new RegExp(o.data.regex).exec(e))){if(r)return!1;var f=o.data;return{name:t,value:d,strValue:""+e,mapped:f,field:d[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(h=new RegExp(o.mapData.regex).exec(e))){if(r||u.multiple)return!1;var p=o.mapData;if(!(u.color||u.number))return!1;var g=this.parse(t,h[4]);if(!g||g.mapped)return!1;var m=this.parse(t,h[5]);if(!m||m.mapped)return!1;if(g.pfValue===m.pfValue||g.strValue===m.strValue)return Ln("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+g.strValue+"`"),this.parse(t,g.strValue);if(u.color){var y=g.value,v=m.value,b=y[0]===v[0]&&y[1]===v[1]&&y[2]===v[2]&&(y[3]===v[3]||(y[3]==null||y[3]===1)&&(v[3]==null||v[3]===1));if(b)return!1}return{name:t,value:h,strValue:""+e,mapped:p,field:h[1],fieldMin:parseFloat(h[2]),fieldMax:parseFloat(h[3]),valueMin:g.value,valueMax:m.value,bypass:r}}}if(u.multiple&&n!=="multiple"){var _;if(l?_=e.split(/\s+/):Fn(e)?_=e:_=[e],u.evenMultiple&&_.length%2!==0)return null;for(var E=[],x=[],C=[],T="",w=!1,N=0;N<_.length;N++){var O=i.parse(t,_[N],r,"multiple");w=w||Cr(O.value),E.push(O.value),C.push(O.pfValue!=null?O.pfValue:O.value),x.push(O.units),T+=(N>0?" ":"")+O.strValue}return u.validate&&!u.validate(E,x)?null:u.singleEnum&&w?E.length===1&&Cr(E[0])?{name:t,value:E[0],strValue:E[0],bypass:r}:null:{name:t,value:E,pfValue:C,strValue:T,bypass:r,units:x}}var M=function(){for(var re=0;reu.max||u.strictMax&&e===u.max))return null;var D={name:t,value:e,strValue:""+e+($||""),units:$,bypass:r};return u.unitless||$!=="px"&&$!=="em"?D.pfValue=e:D.pfValue=$==="px"||!$?e:this.getEmSizeInPixels()*e,($==="ms"||$==="s")&&(D.pfValue=$==="ms"?e:1e3*e),($==="deg"||$==="rad")&&(D.pfValue=$==="rad"?e:Aft(e)),$==="%"&&(D.pfValue=e/100),D}else if(u.propList){var L=[],R=""+e;if(R!=="none"){for(var P=R.split(/\s*,\s*|\s+/),z=0;z0&&o>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){l=Math.min((s-2*r)/n.w,(o-2*r)/n.h),l=l>this._private.maxZoom?this._private.maxZoom:l,l=l=n.minZoom&&(n.maxZoom=r),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var r=this._private,n=r.pan,i=r.zoom,a,s,o=!1;if(r.zoomingEnabled||(o=!0),nr(e)?s=e:gn(e)&&(s=e.level,e.position!=null?a=w7(e.position,i,n):e.renderedPosition!=null&&(a=e.renderedPosition),a!=null&&!r.panningEnabled&&(o=!0)),s=s>r.maxZoom?r.maxZoom:s,s=sr.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=l,a.push("zoom"))}if(i&&(!s||!e.cancelOnFailedZoom)&&r.panningEnabled){var u=e.pan;nr(u.x)&&(r.pan.x=u.x,o=!1),nr(u.y)&&(r.pan.y=u.y,o=!1),o||a.push("pan")}return a.length>0&&(a.push("viewport"),this.emit(a.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(Cr(e)){var n=e;e=this.mutableElements().filter(n)}else Do(e)||(e=this.mutableElements());if(e.length!==0){var i=e.boundingBox(),a=this.width(),s=this.height();r=r===void 0?this._private.zoom:r;var o={x:(a-r*(i.x1+i.x2))/2,y:(s-r*(i.y1+i.y2))/2};return o}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,r=e.container,n=this;return e.sizeCache=e.sizeCache||(r?(function(){var i=n.window().getComputedStyle(r),a=function(o){return parseFloat(i.getPropertyValue(o))};return{width:r.clientWidth-a("padding-left")-a("padding-right"),height:r.clientHeight-a("padding-top")-a("padding-bottom")}})():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,n=this.renderedExtent(),i={x1:(n.x1-e.x)/r,x2:(n.x2-e.x)/r,y1:(n.y1-e.y)/r,y2:(n.y2-e.y)/r};return i.w=i.x2-i.x1,i.h=i.y2-i.y1,i},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};Mp.centre=Mp.center;Mp.autolockNodes=Mp.autolock;Mp.autoungrabifyNodes=Mp.autoungrabify;var g4={data:On.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:On.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:On.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:On.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};g4.attr=g4.data;g4.removeAttr=g4.removeData;var m4=function(e){var r=this;e=Ir({},e);var n=e.container;n&&!T6(n)&&T6(n[0])&&(n=n[0]);var i=n?n._cyreg:null;i=i||{},i&&i.cy&&(i.cy.destroy(),i={});var a=i.readies=i.readies||[];n&&(n._cyreg=i),i.cy=r;var s=va!==void 0&&n!==void 0&&!e.headless,o=e;o.layout=Ir({name:s?"grid":"null"},o.layout),o.renderer=Ir({name:s?"canvas":"null"},o.renderer);var l=function(g,m,y){return m!==void 0?m:y!==void 0?y:g},u=this._private={container:n,ready:!1,options:o,elements:new Qa(this),listeners:[],aniEles:new Qa(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(!0,o.zoomingEnabled),userZoomingEnabled:l(!0,o.userZoomingEnabled),panningEnabled:l(!0,o.panningEnabled),userPanningEnabled:l(!0,o.userPanningEnabled),boxSelectionEnabled:l(!0,o.boxSelectionEnabled),autolock:l(!1,o.autolock,o.autolockNodes),autoungrabify:l(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:l(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?s:o.styleEnabled,zoom:nr(o.zoom)?o.zoom:1,pan:{x:gn(o.pan)&&nr(o.pan.x)?o.pan.x:0,y:gn(o.pan)&&nr(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:l(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var d=function(g,m){var y=g.some(Sht);if(y)return r2.all(g).then(m);m(g)};u.styleEnabled&&r.setStyle([]);var h=Ir({},o,o.renderer);r.initRenderer(h);var f=function(g,m,y){r.notifications(!1);var v=r.mutableElements();v.length>0&&v.remove(),g!=null&&(gn(g)||Fn(g))&&r.add(g),r.one("layoutready",function(_){r.notifications(!0),r.emit(_),r.one("load",m),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",y),r.emit("done")});var b=Ir({},r._private.options.layout);b.eles=r.elements(),r.layout(b).run()};d([o.style,o.elements],function(p){var g=p[0],m=p[1];u.styleEnabled&&r.style().append(g),f(m,function(){r.startAnimationLoop(),u.ready=!0,Ni(o.ready)&&r.on("ready",o.ready);for(var y=0;y0,o=!!t.boundingBox,l=Ys(o?t.boundingBox:structuredClone(e.extent())),u;if(Do(t.roots))u=t.roots;else if(Fn(t.roots)){for(var d=[],h=0;h0;){var A=F(),I=N(A,M);if(I)A.outgoers().filter(function(Re){return Re.isNode()&&r.has(Re)}).forEach($);else if(I===null){Ln("Detected double maximal shift for node `"+A.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var D=0;if(t.avoidOverlap)for(var L=0;L0&&v[0].length<=3?Je/2:0),ct=2*Math.PI/v[ut].length*De;return ut===0&&v[0].length===1&&(st=1),{x:se.x+st*Math.cos(ct),y:se.y+st*Math.sin(ct)}}else{var ot=v[ut].length,it=Math.max(ot===1?0:o?(l.w-t.padding*2-xe.w)/((t.grid?Ge:ot)-1):(l.w-t.padding*2-xe.w)/((t.grid?Ge:ot)+1),D),Oe={x:se.x+(De+1-(ot+1)/2)*it,y:se.y+(ut+1-(H+1)/2)*Te};return Oe}},Xe={downward:0,leftward:90,upward:180,rightward:-90};Object.keys(Xe).indexOf(t.direction)===-1&&ui("Invalid direction '".concat(t.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Xe).join(", ")));var Le=function(qe){return Qht(ze(qe),l,Xe[t.direction])};return r.nodes().layoutPositions(this,t,Le),this};var Pmt={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function wbe(t){this.options=Ir({},Pmt,t)}wbe.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,i=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=n.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));for(var s=Ys(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=e.sweep===void 0?2*Math.PI-2*Math.PI/a.length:e.sweep,u=l/Math.max(1,a.length-1),d,h=0,f=0;f1&&e.avoidOverlap){h*=1.75;var v=Math.cos(u)-Math.cos(0),b=Math.sin(u)-Math.sin(0),_=Math.sqrt(h*h/(v*v+b*b));d=Math.max(_,d)}var E=function(C,T){var w=e.startAngle+T*u*(i?1:-1),N=d*Math.cos(w),O=d*Math.sin(w),M={x:o.x+N,y:o.y+O};return M};return n.nodes().layoutPositions(this,e,E),this};var Bmt={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function kbe(t){this.options=Ir({},Bmt,t)}kbe.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,n=t.cy,i=e.eles,a=i.nodes().not(":parent"),s=Ys(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=[],u=0,d=0;d0){var x=Math.abs(b[0].value-E.value);x>=y&&(b=[],v.push(b))}b.push(E)}var C=u+e.minNodeSpacing;if(!e.avoidOverlap){var T=v.length>0&&v[0].length>1,w=Math.min(s.w,s.h)/2-C,N=w/(v.length+T?1:0);C=Math.min(C,N)}for(var O=0,M=0;M1&&e.avoidOverlap){var I=Math.cos(A)-Math.cos(0),D=Math.sin(A)-Math.sin(0),L=Math.sqrt(C*C/(I*I+D*D));O=Math.max(L,O)}$.r=O,O+=C}if(e.equidistant){for(var R=0,P=0,z=0;z=t.numIter||(Ymt(n,t),n.temperature=n.temperature*t.coolingFactor,n.temperature=t.animationThreshold&&a(),x6(d)}};d()}else{for(;u;)u=s(l),l++;iae(n,t),o()}return this};F7.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};F7.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var $mt=function(e,r,n){for(var i=n.eles.edges(),a=n.eles.nodes(),s=Ys(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:a.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:i.size(),temperature:n.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},l=n.eles.components(),u={},d=0;d0){o.graphSet.push(w);for(var d=0;di.count?0:i.graph},Abe=function(e,r,n,i){var a=i.graphSet[n];if(-10)var h=i.nodeOverlap*d,f=Math.sqrt(o*o+l*l),p=h*o/f,g=h*l/f;else var m=I6(e,o,l),y=I6(r,-1*o,-1*l),v=y.x-m.x,b=y.y-m.y,_=v*v+b*b,f=Math.sqrt(_),h=(e.nodeRepulsion+r.nodeRepulsion)/_,p=h*v/f,g=h*b/f;e.isLocked||(e.offsetX-=p,e.offsetY-=g),r.isLocked||(r.offsetX+=p,r.offsetY+=g)}},Wmt=function(e,r,n,i){if(n>0)var a=e.maxX-r.minX;else var a=r.maxX-e.minX;if(i>0)var s=e.maxY-r.minY;else var s=r.maxY-e.minY;return a>=0&&s>=0?Math.sqrt(a*a+s*s):0},I6=function(e,r,n){var i=e.positionX,a=e.positionY,s=e.height||1,o=e.width||1,l=n/r,u=s/o,d={};return r===0&&0n?(d.x=i,d.y=a+s/2,d):0r&&-1*u<=l&&l<=u?(d.x=i-o/2,d.y=a-o*n/2/r,d):0=u)?(d.x=i+s*r/2/n,d.y=a+s/2,d):(0>n&&(l<=-1*u||l>=u)&&(d.x=i-s*r/2/n,d.y=a-s/2),d)},Kmt=function(e,r){for(var n=0;nn){var y=r.gravity*p/m,v=r.gravity*g/m;f.offsetX+=y,f.offsetY+=v}}}}},jmt=function(e,r){var n=[],i=0,a=-1;for(n.push.apply(n,e.graphSet[0]),a+=e.graphSet[0].length;i<=a;){var s=n[i++],o=e.idToIndex[s],l=e.layoutNodes[o],u=l.children;if(0n)var a={x:n*e/i,y:n*r/i};else var a={x:e,y:r};return a},Nbe=function(e,r){var n=e.parentId;if(n!=null){var i=r.layoutNodes[r.idToIndex[n]],a=!1;if((i.maxX==null||e.maxX+i.padRight>i.maxX)&&(i.maxX=e.maxX+i.padRight,a=!0),(i.minX==null||e.minX-i.padLefti.maxY)&&(i.maxY=e.maxY+i.padBottom,a=!0),(i.minY==null||e.minY-i.padTopv&&(g+=y+r.componentSpacing,p=0,m=0,y=0)}}},Jmt={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Ibe(t){this.options=Ir({},Jmt,t)}Ibe.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,i=n.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));var a=Ys(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(a.h===0||a.w===0)n.nodes().layoutPositions(this,e,function(Y){return{x:a.x1,y:a.y1}});else{var s=i.size(),o=Math.sqrt(s*a.h/a.w),l=Math.round(o),u=Math.round(a.w/a.h*o),d=function(Q){if(Q==null)return Math.min(l,u);var H=Math.min(l,u);H==l?l=Q:u=Q},h=function(Q){if(Q==null)return Math.max(l,u);var H=Math.max(l,u);H==l?l=Q:u=Q},f=e.rows,p=e.cols!=null?e.cols:e.columns;if(f!=null&&p!=null)l=f,u=p;else if(f!=null&&p==null)l=f,u=Math.ceil(s/l);else if(f==null&&p!=null)u=p,l=Math.ceil(s/u);else if(u*l>s){var g=d(),m=h();(g-1)*m>=s?d(g-1):(m-1)*g>=s&&h(m-1)}else for(;u*l=s?h(v+1):d(y+1)}var b=a.w/u,_=a.h/l;if(e.condense&&(b=0,_=0),e.avoidOverlap)for(var E=0;E=u&&(I=0,A++)},L={},R=0;R(I=Gft(t,e,D[L],D[L+1],D[L+2],D[L+3])))return y(T,I),!0}else if(N.edgeType==="bezier"||N.edgeType==="multibezier"||N.edgeType==="self"||N.edgeType==="compound"){for(var D=N.allpts,L=0;L+5(I=Uft(t,e,D[L],D[L+1],D[L+2],D[L+3],D[L+4],D[L+5])))return y(T,I),!0}for(var R=R||w.source,P=P||w.target,z=i.getArrowWidth(O,M),B=[{name:"source",x:N.arrowStartX,y:N.arrowStartY,angle:N.srcArrowAngle},{name:"target",x:N.arrowEndX,y:N.arrowEndY,angle:N.tgtArrowAngle},{name:"mid-source",x:N.midX,y:N.midY,angle:N.midsrcArrowAngle},{name:"mid-target",x:N.midX,y:N.midY,angle:N.midtgtArrowAngle}],L=0;L0&&(v(R),v(P))}function _(T,w,N){return ho(T,w,N)}function E(T,w){var N=T._private,O=f,M;w?M=w+"-":M="",T.boundingBox();var $=N.labelBounds[w||"main"],F=T.pstyle(M+"label").value,A=T.pstyle("text-events").strValue==="yes";if(!(!A||!F)){var I=_(N.rscratch,"labelX",w),D=_(N.rscratch,"labelY",w),L=_(N.rscratch,"labelAngle",w),R=T.pstyle(M+"text-margin-x").pfValue,P=T.pstyle(M+"text-margin-y").pfValue,z=$.x1-O-R,B=$.x2+O-R,q=$.y1-O-P,Y=$.y2+O-P;if(L){var Q=Math.cos(L),H=Math.sin(L),J=function(xe,Te){return xe=xe-I,Te=Te-D,{x:xe*Q-Te*H+I,y:xe*H+Te*Q+D}},Z=J(z,q),pe=J(z,Y),re=J(B,q),ce=J(B,Y),ae=[Z.x+R,Z.y+P,re.x+R,re.y+P,ce.x+R,ce.y+P,pe.x+R,pe.y+P];if(fo(t,e,ae))return y(T),!0}else if(Gd($,t,e))return y(T),!0}}for(var x=s.length-1;x>=0;x--){var C=s[x];C.isNode()?v(C)||E(C):b(C)||E(C)||E(C,"source")||E(C,"target")}return o};ig.getAllInBox=function(t,e,r,n){var i=this.getCachedZSortedEles().interactive,a=this.cy.zoom(),s=2/a,o=[],l=Math.min(t,r),u=Math.max(t,r),d=Math.min(e,n),h=Math.max(e,n);t=l,r=u,e=d,n=h;var f=Ys({x1:t,y1:e,x2:r,y2:n}),p=[{x:f.x1,y:f.y1},{x:f.x2,y:f.y1},{x:f.x2,y:f.y2},{x:f.x1,y:f.y2}],g=[[p[0],p[1]],[p[1],p[2]],[p[2],p[3]],[p[3],p[0]]];function m(xe,Te,Ge){return ho(xe,Te,Ge)}function y(xe,Te){var Ge=xe._private,ze=s,Xe="";xe.boundingBox();var Le=Ge.labelBounds.main;if(!Le)return null;var Re=m(Ge.rscratch,"labelX",Te),qe=m(Ge.rscratch,"labelY",Te),Ne=m(Ge.rscratch,"labelAngle",Te),ut=xe.pstyle(Xe+"text-margin-x").pfValue,De=xe.pstyle(Xe+"text-margin-y").pfValue,Je=Le.x1-ze-ut,st=Le.x2+ze-ut,ct=Le.y1-ze-De,ot=Le.y2+ze-De;if(Ne){var it=Math.cos(Ne),Oe=Math.sin(Ne),U=function(de,G){return de=de-Re,G=G-qe,{x:de*it-G*Oe+Re,y:de*Oe+G*it+qe}};return[U(Je,ct),U(st,ct),U(st,ot),U(Je,ot)]}else return[{x:Je,y:ct},{x:st,y:ct},{x:st,y:ot},{x:Je,y:ot}]}function v(xe,Te,Ge,ze){function Xe(Le,Re,qe){return(qe.y-Le.y)*(Re.x-Le.x)>(Re.y-Le.y)*(qe.x-Le.x)}return Xe(xe,Ge,ze)!==Xe(Te,Ge,ze)&&Xe(xe,Te,Ge)!==Xe(xe,Te,ze)}for(var b=0;b0?-(Math.PI-e.ang):Math.PI+e.ang},a1t=function(e,r,n,i,a){if(e!==cae?uae(r,e,Rc):i1t(ol,Rc),uae(r,n,ol),oae=Rc.nx*ol.ny-Rc.ny*ol.nx,lae=Rc.nx*ol.nx-Rc.ny*-ol.ny,zu=Math.asin(Math.max(-1,Math.min(1,oae))),Math.abs(zu)<1e-6){NB=r.x,IB=r.y,Tf=Gg=0;return}Pf=1,y5=!1,lae<0?zu<0?zu=Math.PI+zu:(zu=Math.PI-zu,Pf=-1,y5=!0):zu>0&&(Pf=-1,y5=!0),r.radius!==void 0?Gg=r.radius:Gg=i,cf=zu/2,c3=Math.min(Rc.len/2,ol.len/2),a?(Tc=Math.abs(Math.cos(cf)*Gg/Math.sin(cf)),Tc>c3?(Tc=c3,Tf=Math.abs(Tc*Math.sin(cf)/Math.cos(cf))):Tf=Gg):(Tc=Math.min(c3,Gg),Tf=Math.abs(Tc*Math.sin(cf)/Math.cos(cf))),OB=r.x+ol.nx*Tc,DB=r.y+ol.ny*Tc,NB=OB-ol.ny*Tf*Pf,IB=DB+ol.nx*Tf*Pf,Mbe=r.x+Rc.nx*Tc,Pbe=r.y+Rc.ny*Tc,cae=r};function Bbe(t,e){e.radius===0?t.lineTo(e.cx,e.cy):t.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function Zq(t,e,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return n===0||e.radius===0?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(a1t(t,e,r,n,i),{cx:NB,cy:IB,radius:Tf,startX:Mbe,startY:Pbe,stopX:OB,stopY:DB,startAngle:Rc.ang+Math.PI/2*Pf,endAngle:ol.ang-Math.PI/2*Pf,counterClockwise:y5})}var y4=.01,s1t=Math.sqrt(2*y4),gs={};gs.findMidptPtsEtc=function(t,e){var r=e.posPts,n=e.intersectionPts,i=e.vectorNormInverse,a,s=t.pstyle("source-endpoint"),o=t.pstyle("target-endpoint"),l=s.units!=null&&o.units!=null,u=function(x,C,T,w){var N=w-C,O=T-x,M=Math.sqrt(O*O+N*N);return{x:-N/M,y:O/M}},d=t.pstyle("edge-distances").value;switch(d){case"node-position":a=r;break;case"intersection":a=n;break;case"endpoints":{if(l){var h=this.manualEndptToPx(t.source()[0],s),f=Zi(h,2),p=f[0],g=f[1],m=this.manualEndptToPx(t.target()[0],o),y=Zi(m,2),v=y[0],b=y[1],_={x1:p,y1:g,x2:v,y2:b};i=u(p,g,v,b),a=_}else Ln("Edge ".concat(t.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),a=n;break}}return{midptPts:a,vectorNormInverse:i}};gs.findHaystackPoints=function(t){for(var e=0;e0?Math.max(G-ie,0):Math.min(G+ie,0)},F=$(O,w),A=$(M,N),I=!1;b===u?v=Math.abs(F)>Math.abs(A)?i:n:b===l||b===o?(v=n,I=!0):(b===a||b===s)&&(v=i,I=!0);var D=v===n,L=D?A:F,R=D?M:O,P=$q(R),z=!1;!(I&&(E||C))&&(b===o&&R<0||b===l&&R>0||b===a&&R>0||b===s&&R<0)&&(P*=-1,L=P*Math.abs(L),z=!0);var B;if(E){var q=x<0?1+x:x;B=q*L}else{var Y=x<0?L:0;B=Y+x*P}var Q=function(G){return Math.abs(G)=Math.abs(L)},H=Q(B),J=Q(Math.abs(L)-Math.abs(B)),Z=H||J;if(Z&&!z)if(D){var pe=Math.abs(R)<=f/2,re=Math.abs(O)<=p/2;if(pe){var ce=(d.x1+d.x2)/2,ae=d.y1,se=d.y2;r.segpts=[ce,ae,ce,se]}else if(re){var xe=(d.y1+d.y2)/2,Te=d.x1,Ge=d.x2;r.segpts=[Te,xe,Ge,xe]}else r.segpts=[d.x1,d.y2]}else{var ze=Math.abs(R)<=h/2,Xe=Math.abs(M)<=g/2;if(ze){var Le=(d.y1+d.y2)/2,Re=d.x1,qe=d.x2;r.segpts=[Re,Le,qe,Le]}else if(Xe){var Ne=(d.x1+d.x2)/2,ut=d.y1,De=d.y2;r.segpts=[Ne,ut,Ne,De]}else r.segpts=[d.x2,d.y1]}else if(D){var Je=d.y1+B+(y?f/2*P:0),st=d.x1,ct=d.x2;r.segpts=[st,Je,ct,Je]}else{var ot=d.x1+B+(y?h/2*P:0),it=d.y1,Oe=d.y2;r.segpts=[ot,it,ot,Oe]}if(r.isRound){var U=t.pstyle("taxi-radius").value,oe=t.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(U),r.isArcRadius=new Array(r.segpts.length/2).fill(oe)}};gs.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var n=e.srcPos,i=e.tgtPos,a=e.srcW,s=e.srcH,o=e.tgtW,l=e.tgtH,u=e.srcShape,d=e.tgtShape,h=e.srcCornerRadius,f=e.tgtCornerRadius,p=e.srcRs,g=e.tgtRs,m=!nr(r.startX)||!nr(r.startY),y=!nr(r.arrowStartX)||!nr(r.arrowStartY),v=!nr(r.endX)||!nr(r.endY),b=!nr(r.arrowEndX)||!nr(r.arrowEndY),_=3,E=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,x=_*E,C=Dp({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),T=CR.poolIndex()){var P=L;L=R,R=P}var z=F.srcPos=L.position(),B=F.tgtPos=R.position(),q=F.srcW=L.outerWidth(),Y=F.srcH=L.outerHeight(),Q=F.tgtW=R.outerWidth(),H=F.tgtH=R.outerHeight(),J=F.srcShape=r.nodeShapes[e.getNodeShape(L)],Z=F.tgtShape=r.nodeShapes[e.getNodeShape(R)],pe=F.srcCornerRadius=L.pstyle("corner-radius").value==="auto"?"auto":L.pstyle("corner-radius").pfValue,re=F.tgtCornerRadius=R.pstyle("corner-radius").value==="auto"?"auto":R.pstyle("corner-radius").pfValue,ce=F.tgtRs=R._private.rscratch,ae=F.srcRs=L._private.rscratch;F.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var se=0;se=s1t||(ct=Math.sqrt(Math.max(st*st,y4)+Math.max(Je*Je,y4)));var ot=F.vector={x:st,y:Je},it=F.vectorNorm={x:ot.x/ct,y:ot.y/ct},Oe={x:-it.y,y:it.x};F.nodesOverlap=!nr(ct)||Z.checkPoint(Le[0],Le[1],0,Q,H,B.x,B.y,re,ce)||J.checkPoint(qe[0],qe[1],0,q,Y,z.x,z.y,pe,ae),F.vectorNormInverse=Oe,A={nodesOverlap:F.nodesOverlap,dirCounts:F.dirCounts,calculatedIntersection:!0,hasBezier:F.hasBezier,hasUnbundled:F.hasUnbundled,eles:F.eles,srcPos:B,srcRs:ce,tgtPos:z,tgtRs:ae,srcW:Q,srcH:H,tgtW:q,tgtH:Y,srcIntn:Ne,tgtIntn:Re,srcShape:Z,tgtShape:J,posPts:{x1:De.x2,y1:De.y2,x2:De.x1,y2:De.y1},intersectionPts:{x1:ut.x2,y1:ut.y2,x2:ut.x1,y2:ut.y1},vector:{x:-ot.x,y:-ot.y},vectorNorm:{x:-it.x,y:-it.y},vectorNormInverse:{x:-Oe.x,y:-Oe.y}}}var U=Xe?A:F;Te.nodesOverlap=U.nodesOverlap,Te.srcIntn=U.srcIntn,Te.tgtIntn=U.tgtIntn,Te.isRound=Ge.startsWith("round"),i&&(L.isParent()||L.isChild()||R.isParent()||R.isChild())&&(L.parents().anySame(R)||R.parents().anySame(L)||L.same(R)&&L.isParent())?e.findCompoundLoopPoints(xe,U,se,ze):L===R?e.findLoopPoints(xe,U,se,ze):Ge.endsWith("segments")?e.findSegmentsPoints(xe,U):Ge.endsWith("taxi")?e.findTaxiPoints(xe,U):Ge==="straight"||!ze&&F.eles.length%2===1&&se===Math.floor(F.eles.length/2)?e.findStraightEdgePoints(xe):e.findBezierPoints(xe,U,se,ze,Xe),e.findEndpoints(xe),e.tryToCorrectInvalidPoints(xe,U),e.checkForInvalidEdgeWarning(xe),e.storeAllpts(xe),e.storeEdgeProjections(xe),e.calculateArrowAngles(xe),e.recalculateEdgeLabelProjections(xe),e.calculateLabelAngles(xe)}},T=0;T0){var Le=u,Re=Sf(Le,km(s)),qe=Sf(Le,km(Xe)),Ne=Re;if(qe2){var ut=Sf(Le,{x:Xe[2],y:Xe[3]});ut0){var j=d,V=Sf(j,km(s)),ue=Sf(j,km(ie)),Fe=V;if(ue2){var me=Sf(j,{x:ie[2],y:ie[3]});me=g||T){y={cp:E,segment:C};break}}if(y)break}var w=y.cp,N=y.segment,O=(g-v)/N.length,M=N.t1-N.t0,$=p?N.t0+M*O:N.t1-M*O;$=d4(0,$,1),e=Zm(w.p0,w.p1,w.p2,$),f=l1t(w.p0,w.p1,w.p2,$);break}case"straight":case"segments":case"haystack":{for(var F=0,A,I,D,L,R=n.allpts.length,P=0;P+3=g));P+=2);var z=g-I,B=z/A;B=d4(0,B,1),e=Nft(D,L,B),f=zbe(D,L);break}}s("labelX",h,e.x),s("labelY",h,e.y),s("labelAutoAngle",h,f)}};u("source"),u("target"),this.applyLabelDimensions(t)}};xu.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))};xu.applyPrefixedLabelDimensions=function(t,e){var r=t._private,n=this.getLabelText(t,e),i=Op(n,t._private.labelDimsKey);if(ho(r.rscratch,"prefixedLabelDimsKey",e)!==i){Zu(r.rscratch,"prefixedLabelDimsKey",e,i);var a=this.calculateLabelDimensions(t,n),s=t.pstyle("line-height").pfValue,o=t.pstyle("text-wrap").strValue,l=ho(r.rscratch,"labelWrapCachedLines",e)||[],u=o!=="wrap"?1:Math.max(l.length,1),d=a.height/u,h=d*s,f=a.width,p=a.height+(u-1)*(s-1)*d;Zu(r.rstyle,"labelWidth",e,f),Zu(r.rscratch,"labelWidth",e,f),Zu(r.rstyle,"labelHeight",e,p),Zu(r.rscratch,"labelHeight",e,p),Zu(r.rscratch,"labelLineHeight",e,h)}};xu.getLabelText=function(t,e){var r=t._private,n=e?e+"-":"",i=t.pstyle(n+"label").strValue,a=t.pstyle("text-transform").value,s=function(Y,Q){return Q?(Zu(r.rscratch,Y,e,Q),Q):ho(r.rscratch,Y,e)};if(!i)return"";a=="none"||(a=="uppercase"?i=i.toUpperCase():a=="lowercase"&&(i=i.toLowerCase()));var o=t.pstyle("text-wrap").value;if(o==="wrap"){var l=s("labelKey");if(l!=null&&s("labelWrapKey")===l)return s("labelWrapCachedText");for(var u="​",d=i.split(` +Parent cluster`,i.height),e.setNode(i.id,v),e.parent(m)||(ge.trace("Setting parent",m,i.id),e.setParent(m,i.id,v))}if(ge.info("(Insert) Node XXX"+m+": "+JSON.stringify(e.node(m))),y?.clusterNode){ge.info("Cluster identified XBX",m,y.width,e.node(m));const{ranksep:v,nodesep:b}=e.graph();y.graph.setGraph({...y.graph.graph(),ranksep:v+25,nodesep:b});const _=await __e(h,y.graph,r,n,e.node(m),a),E=_.elem;yr(y,E),y.diff=_.diff||0,ge.info("New compound node after recursive render XAX",m,"width",y.width,"height",y.height),rKe(E,y)}else e.children(m).length>0?(ge.trace("Cluster - the non recursive path XBX",m,y.id,y,y.width,"Graph:",e),ge.trace(o4(y.id,e)),nn.set(y.id,{id:o4(y.id,e),node:y})):(ge.trace("Node - the non recursive path XAX",m,h,e.node(m),s),await Fk(h,e.node(m),{config:a,dir:s}))})),await S(async()=>{const m=e.edges().map(async function(y){const v=e.edge(y.v,y.w,y.name);ge.info("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(y)),ge.info("Edge "+y.v+" -> "+y.w+": ",y," ",JSON.stringify(e.edge(y))),ge.info("Fix",nn,"ids:",y.v,y.w,"Translating: ",nn.get(y.v),nn.get(y.w)),await tme(d,v)});await Promise.all(m)},"processEdges")(),ge.info("Graph before layout:",JSON.stringify(Kc(e))),ge.info("############################################# XXX"),ge.info("### Layout ### XXX"),ge.info("############################################# XXX"),f_e(e),ge.info("Graph after layout:",JSON.stringify(Kc(e)));let p=0,{subGraphTitleTotalMargin:g}=oT(a);return await Promise.all(iht(e).map(async function(m){const y=e.node(m);if(ge.info("Position XBX => "+m+": ("+y.x,","+y.y,") width: ",y.width," height: ",y.height),y?.clusterNode)y.y+=g,ge.info("A tainted cluster node XBX1",m,y.id,y.width,y.height,y.x,y.y,e.parent(m)),nn.get(y.id).node=y,IP(y);else if(e.children(m).length>0){ge.info("A pure cluster node XBX1",m,y.id,y.x,y.y,y.width,y.height,e.parent(m)),y.height+=g,e.node(y.parentId);const v=y?.padding/2||0,b=y?.labelBBox?.height||0,_=b-v||0;ge.debug("OffsetY",_,"labelHeight",b,"halfPadding",v),await bG(l,y),nn.get(y.id).node=y}else{const v=e.node(y.parentId);y.y+=g/2,ge.info("A regular node XBX1 - using the padding",y.id,"parent",y.parentId,y.width,y.height,y.x,y.y,"offsetY",y.offsetY,"parent",v,v?.offsetY,y),IP(y)}})),e.edges().forEach(function(m){const y=e.edge(m);ge.info("Edge "+m.v+" -> "+m.w+": "+JSON.stringify(y),y),y.points.forEach(E=>E.y+=g/2);const v=e.node(m.v);var b=e.node(m.w);const _=ime(u,y,nn,r,v,b,n);rme(y,_)}),e.nodes().forEach(function(m){const y=e.node(m);ge.info(m,y.type,y.diff),y.isGroup&&(p=y.diff)}),ge.warn("Returning from recursive render XAX",o,p),{elem:o,diff:p}},"recursiveRender"),aht=S(async(t,e)=>{const r=new xo({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.config?.flowchart?.nodeSpacing||t.nodeSpacing,ranksep:t.config?.rankSpacing||t.config?.flowchart?.rankSpacing||t.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=e.select("g");ome(n,t.markers,t.type,t.diagramId),nKe(),lKe(),PWe(),eht(),t.nodes.forEach(a=>{r.setNode(a.id,{...a}),a.parentId&&r.setParent(a.id,a.parentId)}),ge.debug("Edges:",t.edges),t.edges.forEach(a=>{if(a.start===a.end){const s=a.start,o=s+"---"+s+"---1",l=s+"---"+s+"---2",u=r.node(s);r.setNode(o,{domId:o,id:o,parentId:u.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(o,u.parentId),r.setNode(l,{domId:l,id:l,parentId:u.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(l,u.parentId);const d=structuredClone(a),h=structuredClone(a),f=structuredClone(a);d.label="",d.arrowTypeEnd="none",d.endLabelLeft="",d.endLabelRight="",d.startLabelLeft="",d.id=s+"-cyclic-special-1",h.startLabelRight="",h.startLabelLeft="",h.endLabelLeft="",h.endLabelRight="",h.arrowTypeStart="none",h.arrowTypeEnd="none",h.id=s+"-cyclic-special-mid",f.label="",f.startLabelRight="",f.startLabelLeft="",f.arrowTypeStart="none",u.isGroup&&(d.fromCluster=s,f.toCluster=s),f.id=s+"-cyclic-special-2",f.arrowTypeStart="none",r.setEdge(s,o,d,s+"-cyclic-special-0"),r.setEdge(o,l,h,s+"-cyclic-special-1"),r.setEdge(l,s,f,s+"-cyct.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return s=l.done,l},e:function(l){o=!0,a=l},f:function(){try{s||r.return==null||r.return()}finally{if(o)throw a}}}}function b_e(t,e,r){return(e=E_e(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uht(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dht(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==e);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function hht(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fht(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zi(t,e){return oht(t)||dht(t,e)||Iq(t,e)||hht()}function S6(t){return lht(t)||uht(t)||Iq(t)||fht()}function pht(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function E_e(t){var e=pht(t,"string");return typeof e=="symbol"?e:e+""}function Aa(t){"@babel/helpers - typeof";return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Aa(t)}function Iq(t,e){if(t){if(typeof t=="string")return _B(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_B(t,e):void 0}}var va=typeof window>"u"?null:window,rne=va?va.navigator:null;va&&va.document;var ght=Aa(""),S_e=Aa({}),mht=Aa(function(){}),yht=typeof HTMLElement>"u"?"undefined":Aa(HTMLElement),bT=function(e){return e&&e.instanceString&&Ni(e.instanceString)?e.instanceString():null},Cr=function(e){return e!=null&&Aa(e)==ght},Ni=function(e){return e!=null&&Aa(e)===mht},Fn=function(e){return!Do(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},gn=function(e){return e!=null&&Aa(e)===S_e&&!Fn(e)&&e.constructor===Object},vht=function(e){return e!=null&&Aa(e)===S_e},nr=function(e){return e!=null&&Aa(e)===Aa(1)&&!isNaN(e)},_ht=function(e){return nr(e)&&Math.floor(e)===e},T6=function(e){if(yht!=="undefined")return e!=null&&e instanceof HTMLElement},Do=function(e){return ET(e)||T_e(e)},ET=function(e){return bT(e)==="collection"&&e._private.single},T_e=function(e){return bT(e)==="collection"&&!e._private.single},Oq=function(e){return bT(e)==="core"},x_e=function(e){return bT(e)==="stylesheet"},bht=function(e){return bT(e)==="event"},yh=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Eht=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Sht=function(e){return gn(e)&&nr(e.x1)&&nr(e.x2)&&nr(e.y1)&&nr(e.y2)},Tht=function(e){return vht(e)&&Ni(e.then)},xht=function(){return rne&&rne.userAgent.match(/msie|trident|edge/i)},hb=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var a=[],s=0;sr?1:0},Iht=function(e,r){return-1*w_e(e,r)},Ir=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(y-=1),y<1/6?g+(m-g)*6*y:y<1/2?m:y<2/3?g+(m-g)*(2/3-y)*6:g}var h=new RegExp("^"+kht+"$").exec(e);if(h){if(n=parseInt(h[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n=n%360),n/=360,i=parseFloat(h[2]),i<0||i>100||(i=i/100,a=parseFloat(h[3]),a<0||a>100)||(a=a/100,s=h[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(i===0)o=l=u=Math.round(a*255);else{var f=a<.5?a*(1+i):a+i-a*i,p=2*a-f;o=Math.round(255*d(p,f,n+1/3)),l=Math.round(255*d(p,f,n)),u=Math.round(255*d(p,f,n-1/3))}r=[o,l,u,s]}return r},Lht=function(e){var r,n=new RegExp("^"+Cht+"$").exec(e);if(n){r=[];for(var i=[],a=1;a<=3;a++){var s=n[a];if(s[s.length-1]==="%"&&(i[a]=!0),s=parseFloat(s),i[a]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=i[1]||i[2]||i[3],l=i[1]&&i[2]&&i[3];if(o&&!l)return;var u=n[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},Mht=function(e){return Pht[e.toLowerCase()]},k_e=function(e){return(Fn(e)?e:null)||Mht(e)||Oht(e)||Lht(e)||Dht(e)},Pht={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},A_e=function(e){for(var r=e.map,n=e.keys,i=n.length,a=0;a=l||A<0||b&&I>=f}function w(){var F=e();if(T(F))return N(F);g=setTimeout(w,C(F))}function N(F){return g=void 0,_&&d?E(F):(d=h=void 0,p)}function O(){g!==void 0&&clearTimeout(g),y=0,d=m=h=g=void 0}function M(){return g===void 0?p:N(e())}function $(){var F=e(),A=T(F);if(d=arguments,h=this,m=F,A){if(g===void 0)return x(m);if(b)return clearTimeout(g),g=setTimeout(w,l),E(m)}return g===void 0&&(g=setTimeout(w,l)),p}return $.cancel=O,$.flush=M,$}return aD=s,aD}var Vht=Hht(),CT=ST(Vht),sD=va?va.performance:null,I_e=sD&&sD.now?function(){return sD.now()}:function(){return Date.now()},Wht=(function(){if(va){if(va.requestAnimationFrame)return function(t){va.requestAnimationFrame(t)};if(va.mozRequestAnimationFrame)return function(t){va.mozRequestAnimationFrame(t)};if(va.webkitRequestAnimationFrame)return function(t){va.webkitRequestAnimationFrame(t)};if(va.msRequestAnimationFrame)return function(t){va.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(I_e())},1e3/60)}})(),x6=function(e){return Wht(e)},A0=I_e,Mf=9261,O_e=65599,am=5381,D_e=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mf,n=r,i;i=e.next(),!i.done;)n=n*O_e+i.value|0;return n},l4=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mf;return r*O_e+e|0},c4=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:am;return(r<<5)+r+e|0},Kht=function(e,r){return e*2097152+r},yd=function(e){return e[0]*2097152+e[1]},e3=function(e,r){return[l4(e[0],r[0]),c4(e[1],r[1])]},vne=function(e,r){var n={value:0,done:!1},i=0,a=e.length,s={next:function(){return i=0;i--)e[i]===r&&e.splice(i,1)},Bq=function(e){e.splice(0,e.length)},ift=function(e,r){for(var n=0;n"u"?"undefined":Aa(Set))!==sft?Set:oft,C7=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!Oq(e)){ui("An element must have a core reference and parameters set");return}var i=r.group;if(i==null&&(r.data&&r.data.source!=null&&r.data.target!=null?i="edges":i="nodes"),i!=="nodes"&&i!=="edges"){ui("An element must be of type `nodes` or `edges`; you specified `"+i+"`");return}this.length=1,this[0]=this;var a=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:i,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?i==="edges":!!r.pannable,active:!1,classes:new t2,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(a.position.x==null&&(a.position.x=0),a.position.y==null&&(a.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();a.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];Fn(r.classes)?u=r.classes:Cr(r.classes)&&(u=r.classes.split(/\s+/));for(var d=0,h=u.length;db?1:0},d=function(v,b,_,E,x){var C;if(_==null&&(_=0),x==null&&(x=n),_<0)throw new Error("lo must be non-negative");for(E==null&&(E=v.length);_O;0<=O?N++:N--)w.push(N);return w}).apply(this).reverse(),T=[],E=0,x=C.length;EM;0<=M?++w:--w)$.push(s(v,_));return $},m=function(v,b,_,E){var x,C,T;for(E==null&&(E=n),x=v[_];_>b;){if(T=_-1>>1,C=v[T],E(x,C)<0){v[_]=C,_=T;continue}break}return v[_]=x},y=function(v,b,_){var E,x,C,T,w;for(_==null&&(_=n),x=v.length,w=b,C=v[b],E=2*b+1;E0;){var C=b.pop(),T=y(C),w=C.id();if(f[w]=T,T!==1/0)for(var N=C.neighborhood().intersect(g),O=0;O0)for(R.unshift(L);h[z];){var B=h[z];R.unshift(B.edge),R.unshift(B.node),P=B.node,z=P.id()}return o.spawn(R)}}}},pft={kruskal:function(e){e=e||function(_){return 1};for(var r=this.byGroup(),n=r.nodes,i=r.edges,a=n.length,s=new Array(a),o=n,l=function(E){for(var x=0;x0;){if(x(),T++,E===d){for(var w=[],N=a,O=d,M=v[O];w.unshift(N),M!=null&&w.unshift(M),N=y[O],N!=null;)O=N.id(),M=v[O];return{found:!0,distance:h[E],path:this.spawn(w),steps:T}}p[E]=!0;for(var $=_._private.edges,F=0;F<$.length;F++){var A=$[F];if(this.hasElementWithId(A.id())&&!(o&&A.data("source")!==E)){var I=A.source(),D=A.target(),L=I.id()!==E?I:D,R=L.id();if(this.hasElementWithId(R)&&!p[R]){var P=h[E]+l(A);if(!C(R)){h[R]=P,f[R]=P+s(L),b(L,R),y[R]=_,v[R]=A;continue}PM&&(g[O]=M,b[O]=N,_[O]=x),!a){var $=N*d+w;!a&&g[$]>M&&(g[$]=M,b[$]=w,_[$]=x)}}}for(var F=0;F1&&arguments[1]!==void 0?arguments[1]:s,qe=_(Le),Ne=[],ut=qe;;){if(ut==null)return r.spawn();var De=b(ut),Je=De.edge,st=De.pred;if(Ne.unshift(ut[0]),ut.same(Re)&&Ne.length>0)break;Je!=null&&Ne.unshift(Je),ut=st}return l.spawn(Ne)},C=0;C=0;d--){var h=u[d],f=h[1],p=h[2];(r[f]===o&&r[p]===l||r[f]===l&&r[p]===o)&&u.splice(d,1)}for(var g=0;gi;){var a=Math.floor(Math.random()*r.length);r=Sft(a,e,r),n--}return r},Tft={kargerStein:function(){var e=this,r=this.byGroup(),n=r.nodes,i=r.edges;i.unmergeBy(function(R){return R.isLoop()});var a=n.length,s=i.length,o=Math.ceil(Math.pow(Math.log(a)/Math.LN2,2)),l=Math.floor(a/Eft);if(a<2){ui("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],d=0;d1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=1/0,a=r;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=-1/0,a=r;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=0,a=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;i?e=e.slice(r,n):(n0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}a&&e.sort(function(f,p){return f-p});var d=e.length,h=Math.floor(d/2);return d%2!==0?e[h+1+o]:(e[h-1+o]+e[h+o])/2},Rft=function(e){return Math.PI*e/180},t3=function(e,r){return Math.atan2(r,e)-Math.PI/2},Fq=Math.log2||function(t){return Math.log(t)/Math.log(2)},$q=function(e){return e>0?1:e<0?-1:0},Dp=function(e,r){return Math.sqrt(Sf(e,r))},Sf=function(e,r){var n=r.x-e.x,i=r.y-e.y;return n*n+i*i},Nft=function(e){for(var r=e.length,n=0,i=0;i=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Oft=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Dft=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Lft=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},z_e=function(e,r,n){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},u5=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},d5=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,i,a,s;if(r.length===1)n=i=a=s=r[0];else if(r.length===2)n=a=r[0],s=i=r[1];else if(r.length===4){var o=Zi(r,4);n=o[0],i=o[1],a=o[2],s=o[3]}return e.x1-=s,e.x2+=i,e.y1-=n,e.y2+=a,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},xne=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},zq=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},Gd=function(e,r,n){return e.x1<=r&&r<=e.x2&&e.y1<=n&&n<=e.y2},Cne=function(e,r){return Gd(e,r.x,r.y)},U_e=function(e,r){return Gd(e,r.x1,r.y1)&&Gd(e,r.x2,r.y2)},Mft=(cD=Math.hypot)!==null&&cD!==void 0?cD:function(t,e){return Math.sqrt(t*t+e*e)};function Pft(t,e){if(t.length<3)throw new Error("Need at least 3 vertices");var r=function(w,N){return{x:w.x+N.x,y:w.y+N.y}},n=function(w,N){return{x:w.x-N.x,y:w.y-N.y}},i=function(w,N){return{x:w.x*N,y:w.y*N}},a=function(w,N){return w.x*N.y-w.y*N.x},s=function(w){var N=Mft(w.x,w.y);return N===0?{x:0,y:0}:{x:w.x/N,y:w.y/N}},o=function(w){for(var N=0,O=0;O7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?_h(a,s):l,d=a/2,h=s/2;u=Math.min(u,d,h);var f=u!==d,p=u!==h,g;if(f){var m=n-d+u-o,y=i-h-o,v=n+d-u+o,b=y;if(g=qd(e,r,n,i,m,y,v,b,!1),g.length>0)return g}if(p){var _=n+d+o,E=i-h+u-o,x=_,C=i+h-u+o;if(g=qd(e,r,n,i,_,E,x,C,!1),g.length>0)return g}if(f){var T=n-d+u-o,w=i+h+o,N=n+d-u+o,O=w;if(g=qd(e,r,n,i,T,w,N,O,!1),g.length>0)return g}if(p){var M=n-d-o,$=i-h+u-o,F=M,A=i+h-u+o;if(g=qd(e,r,n,i,M,$,F,A,!1),g.length>0)return g}var I;{var D=n-d+u,L=i-h+u;if(I=yE(e,r,n,i,D,L,u+o),I.length>0&&I[0]<=D&&I[1]<=L)return[I[0],I[1]]}{var R=n+d-u,P=i-h+u;if(I=yE(e,r,n,i,R,P,u+o),I.length>0&&I[0]>=R&&I[1]<=P)return[I[0],I[1]]}{var z=n+d-u,B=i+h-u;if(I=yE(e,r,n,i,z,B,u+o),I.length>0&&I[0]>=z&&I[1]>=B)return[I[0],I[1]]}{var q=n-d+u,Y=i+h-u;if(I=yE(e,r,n,i,q,Y,u+o),I.length>0&&I[0]<=q&&I[1]>=Y)return[I[0],I[1]]}return[]},Fft=function(e,r,n,i,a,s,o){var l=o,u=Math.min(n,a),d=Math.max(n,a),h=Math.min(i,s),f=Math.max(i,s);return u-l<=e&&e<=d+l&&h-l<=r&&r<=f+l},$ft=function(e,r,n,i,a,s,o,l,u){var d={x1:Math.min(n,o,a)-u,x2:Math.max(n,o,a)+u,y1:Math.min(i,l,s)-u,y2:Math.max(i,l,s)+u};return!(ed.x2||rd.y2)},zft=function(e,r,n,i){n-=i;var a=r*r-4*e*n;if(a<0)return[];var s=Math.sqrt(a),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},Uft=function(e,r,n,i,a){var s=1e-5;e===0&&(e=s),r/=e,n/=e,i/=e;var o,l,u,d,h,f,p,g;if(l=(3*n-r*r)/9,u=-(27*i)+r*(9*n-2*(r*r)),u/=54,o=l*l*l+u*u,a[1]=0,p=r/3,o>0){h=u+Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),f=u-Math.sqrt(o),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),a[0]=-p+h+f,p+=(h+f)/2,a[4]=a[2]=-p,p=Math.sqrt(3)*(-f+h)/2,a[3]=p,a[5]=-p;return}if(a[5]=a[3]=0,o===0){g=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),a[0]=-p+2*g,a[4]=a[2]=-(g+p);return}l=-l,d=l*l*l,d=Math.acos(u/Math.sqrt(d)),g=2*Math.sqrt(l),a[0]=-p+g*Math.cos(d/3),a[2]=-p+g*Math.cos((d+2*Math.PI)/3),a[4]=-p+g*Math.cos((d+4*Math.PI)/3)},Gft=function(e,r,n,i,a,s,o,l){var u=1*n*n-4*n*a+2*n*o+4*a*a-4*a*o+o*o+i*i-4*i*s+2*i*l+4*s*s-4*s*l+l*l,d=9*n*a-3*n*n-3*n*o-6*a*a+3*a*o+9*i*s-3*i*i-3*i*l-6*s*s+3*s*l,h=3*n*n-6*n*a+n*o-n*e+2*a*a+2*a*e-o*e+3*i*i-6*i*s+i*l-i*r+2*s*s+2*s*r-l*r,f=1*n*a-n*n+n*e-a*e+i*s-i*i+i*r-s*r,p=[];Uft(u,d,h,f,p);for(var g=1e-7,m=[],y=0;y<6;y+=2)Math.abs(p[y+1])=0&&p[y]<=1&&m.push(p[y]);m.push(1),m.push(0);for(var v=-1,b,_,E,x=0;x=0?Eu?(e-a)*(e-a)+(r-s)*(r-s):d-f},fo=function(e,r,n){for(var i,a,s,o,l,u=0,d=0;d=e&&e>=s||i<=e&&e<=s)l=(e-i)/(s-i)*(o-a)+a,l>r&&u++;else continue;return u%2!==0},R0=function(e,r,n,i,a,s,o,l,u){var d=new Array(n.length),h;l[0]!=null?(h=Math.atan(l[1]/l[0]),l[0]<0?h=h+Math.PI/2:h=-h-Math.PI/2):h=l;for(var f=Math.cos(-h),p=Math.sin(-h),g=0;g0){var y=k6(d,-u);m=w6(y)}else m=d;return fo(e,r,m)},Yft=function(e,r,n,i,a,s,o,l){for(var u=new Array(n.length*2),d=0;d=0&&y<=1&&b.push(y),v>=0&&v<=1&&b.push(v),b.length===0)return[];var _=b[0]*l[0]+e,E=b[0]*l[1]+r;if(b.length>1){if(b[0]==b[1])return[_,E];var x=b[1]*l[0]+e,C=b[1]*l[1]+r;return[_,E,x,C]}else return[_,E]},uD=function(e,r,n){return r<=e&&e<=n||n<=e&&e<=r?e:e<=r&&r<=n||n<=r&&r<=e?r:n},qd=function(e,r,n,i,a,s,o,l,u){var d=e-a,h=n-e,f=o-a,p=r-s,g=i-r,m=l-s,y=f*p-m*d,v=h*p-g*d,b=m*h-f*g;if(b!==0){var _=y/b,E=v/b,x=.001,C=0-x,T=1+x;return C<=_&&_<=T&&C<=E&&E<=T?[e+_*h,r+_*g]:u?[e+_*h,r+_*g]:[]}else return y===0||v===0?uD(e,n,o)===o?[o,l]:uD(e,n,a)===a?[a,s]:uD(a,o,n)===n?[n,i]:[]:[]},Vft=function(e,r,n,i,a){var s=[],o=i/2,l=a/2,u=r,d=n;s.push({x:u+o*e[0],y:d+l*e[1]});for(var h=1;h0){var m=k6(h,-l);p=w6(m)}else p=h}else p=n;for(var y,v,b,_,E=0;E2){for(var g=[d[0],d[1]],m=Math.pow(g[0]-e,2)+Math.pow(g[1]-r,2),y=1;yd&&(d=E)},get:function(_){return u[_]}},f=0;f0?I=A.edgesTo(F)[0]:I=F.edgesTo(A)[0];var D=i(I);F=F.id(),T[F]>T[M]+D&&(T[F]=T[M]+D,w.nodes.indexOf(F)<0?w.push(F):w.updateItem(F),C[F]=0,x[F]=[]),T[F]==T[M]+D&&(C[F]=C[F]+C[M],x[F].push(M))}else for(var L=0;L0;){for(var B=E.pop(),q=0;q0&&o.push(n[l]);o.length!==0&&a.push(i.collection(o))}return a},opt=function(e,r){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:upt,o=i,l,u,d=0;d=2?F2(e,r,n,0,Nne,dpt):F2(e,r,n,0,Rne)},squaredEuclidean:function(e,r,n){return F2(e,r,n,0,Nne)},manhattan:function(e,r,n){return F2(e,r,n,0,Rne)},max:function(e,r,n){return F2(e,r,n,-1/0,hpt)}};fb["squared-euclidean"]=fb.squaredEuclidean;fb.squaredeuclidean=fb.squaredEuclidean;function k7(t,e,r,n,i,a){var s;return Ni(t)?s=t:s=fb[t]||fb.euclidean,e===0&&Ni(t)?s(i,a):s(e,r,n,i,a)}var fpt=es({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Gq=function(e){return fpt(e)},A6=function(e,r,n,i,a){var s=a!=="kMedoids",o=s?function(h){return n[h]}:function(h){return i[h](n)},l=function(f){return i[f](r)},u=n,d=r;return k7(e,i.length,o,l,u,d)},hD=function(e,r,n){for(var i=n.length,a=new Array(i),s=new Array(i),o=new Array(r),l=null,u=0;un)return!1}return!0},mpt=function(e,r,n){for(var i=0;io&&(o=r[u][d],l=d);a[l].push(e[u])}for(var h=0;h=a.threshold||a.mode==="dendrogram"&&e.length===1)return!1;var g=r[s],m=r[i[s]],y;a.mode==="dendrogram"?y={left:g,right:m,key:g.key}:y={value:g.value.concat(m.value),key:g.key},e[g.index]=y,e.splice(m.index,1),r[g.key]=y;for(var v=0;vn[m.key][b.key]&&(l=n[m.key][b.key])):a.linkage==="max"?(l=n[g.key][b.key],n[g.key][b.key]0&&i.push(a);return i},Pne=function(e,r,n){for(var i=[],a=0;ao&&(s=u,o=r[a*e+u])}s>0&&i.push(s)}for(var d=0;du&&(l=d,u=h)}n[a]=s[l]}return i=Pne(e,r,n),i},Bne=function(e){for(var r=this.cy(),n=this.nodes(),i=Apt(e),a={},s=0;s=M?($=M,M=A,F=I):A>$&&($=A);for(var D=0;D0?1:0;T[N%i.minIterations*o+q]=Y,B+=Y}if(B>0&&(N>=i.minIterations-1||N==i.maxIterations-1)){for(var Q=0,H=0;H1||C>1)&&(o=!0),h[_]=[],b.outgoers().forEach(function(w){w.isEdge()&&h[_].push(w.id())})}else f[_]=[void 0,b.target().id()]}):s.forEach(function(b){var _=b.id();if(b.isNode()){var E=b.degree(!0);E%2&&(l?u?o=!0:u=_:l=_),h[_]=[],b.connectedEdges().forEach(function(x){return h[_].push(x.id())})}else f[_]=[b.source().id(),b.target().id()]});var p={found:!1,trail:void 0};if(o)return p;if(u&&l)if(a){if(d&&u!=d)return p;d=u}else{if(d&&u!=d&&l!=d)return p;d||(d=u)}else d||(d=s[0].id());var g=function(_){for(var E=_,x=[_],C,T,w;h[E].length;)C=h[E].shift(),T=f[C][0],w=f[C][1],E!=w?(h[w]=h[w].filter(function(N){return N!=C}),E=w):!a&&E!=T&&(h[T]=h[T].filter(function(N){return N!=C}),E=T),x.unshift(C),x.unshift(E);return x},m=[],y=[];for(y=g(d);y.length!=1;)h[y[0]].length==0?(m.unshift(s.getElementById(y.shift())),m.unshift(s.getElementById(y.shift()))):y=g(y.shift()).concat(y);m.unshift(s.getElementById(y.shift()));for(var v in h)if(h[v].length)return p;return p.found=!0,p.trail=this.spawn(m,!0),p}},n3=function(){var e=this,r={},n=0,i=0,a=[],s=[],o={},l=function(f,p){for(var g=s.length-1,m=[],y=e.spawn();s[g].x!=f||s[g].y!=p;)m.push(s.pop().edge),g--;m.push(s.pop().edge),m.forEach(function(v){var b=v.connectedNodes().intersection(e);y.merge(v),b.forEach(function(_){var E=_.id(),x=_.connectedEdges().intersection(e);y.merge(_),r[E].cutVertex?y.merge(x.filter(function(C){return C.isLoop()})):y.merge(x)})}),a.push(y)},u=function(f,p,g){f===g&&(i+=1),r[p]={id:n,low:n++,cutVertex:!1};var m=e.getElementById(p).connectedEdges().intersection(e);if(m.size()===0)a.push(e.spawn(e.getElementById(p)));else{var y,v,b,_;m.forEach(function(E){y=E.source().id(),v=E.target().id(),b=y===p?v:y,b!==g&&(_=E.id(),o[_]||(o[_]=!0,s.push({x:p,y:b,edge:E})),b in r?r[p].low=Math.min(r[p].low,r[b].id):(u(f,b,p),r[p].low=Math.min(r[p].low,r[b].low),r[p].id<=r[b].low&&(r[p].cutVertex=!0,l(p,b))))})}};e.forEach(function(h){if(h.isNode()){var f=h.id();f in r||(i=0,u(f,f),r[f].cutVertex=i>1)}});var d=Object.keys(r).filter(function(h){return r[h].cutVertex}).map(function(h){return e.getElementById(h)});return{cut:e.spawn(d),components:a}},Ppt={hopcroftTarjanBiconnected:n3,htbc:n3,htb:n3,hopcroftTarjanBiconnectedComponents:n3},i3=function(){var e=this,r={},n=0,i=[],a=[],s=e.spawn(e),o=function(u){a.push(u),r[u]={index:n,low:n++,explored:!1};var d=e.getElementById(u).connectedEdges().intersection(e);if(d.forEach(function(m){var y=m.target().id();y!==u&&(y in r||o(y),r[y].explored||(r[u].low=Math.min(r[u].low,r[y].low)))}),r[u].index===r[u].low){for(var h=e.spawn();;){var f=a.pop();if(h.merge(e.getElementById(f)),r[f].low=r[u].index,r[f].explored=!0,f===u)break}var p=h.edgesWith(h),g=h.merge(p);i.push(g),s=s.difference(g)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:i}},Bpt={tarjanStronglyConnected:i3,tsc:i3,tscc:i3,tarjanStronglyConnectedComponents:i3},X_e={};[u4,fft,pft,mft,vft,bft,Tft,jft,Jm,e1,SB,cpt,Spt,wpt,Dpt,Mpt,Ppt,Bpt].forEach(function(t){Ir(X_e,t)});var j_e=0,Q_e=1,Z_e=2,hc=function(e){if(!(this instanceof hc))return new hc(e);this.id="Thenable/1.0.7",this.state=j_e,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};hc.prototype={fulfill:function(e){return Fne(this,Q_e,"fulfillValue",e)},reject:function(e){return Fne(this,Z_e,"rejectReason",e)},then:function(e,r){var n=this,i=new hc;return n.onFulfilled.push(zne(e,i,"fulfill")),n.onRejected.push(zne(r,i,"reject")),J_e(n),i.proxy}};var Fne=function(e,r,n,i){return e.state===j_e&&(e.state=r,e[n]=i,J_e(e)),e},J_e=function(e){e.state===Q_e?$ne(e,"onFulfilled",e.fulfillValue):e.state===Z_e&&$ne(e,"onRejected",e.rejectReason)},$ne=function(e,r,n){if(e[r].length!==0){var i=e[r];e[r]=[];var a=function(){for(var o=0;o0}},clearQueue:function(){return function(){var r=this,n=r.length!==void 0,i=n?r:[r],a=this._private.cy||this;if(!a.styleEnabled())return this;for(var s=0;s-1}return LD=e,LD}var MD,cie;function rgt(){if(cie)return MD;cie=1;var t=N7();function e(r,n){var i=this.__data__,a=t(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return MD=e,MD}var PD,uie;function ngt(){if(uie)return PD;uie=1;var t=Zpt(),e=Jpt(),r=egt(),n=tgt(),i=rgt();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o-1&&n%1==0&&n0&&this.spawn(i).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},toggleClass:function(e,r){Fn(e)||(e=e.match(/\S+/g)||[]);for(var n=this,i=r===void 0,a=[],s=0,o=n.length;s0&&this.spawn(a).updateStyle().emit("class"),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var n=this;if(r==null)r=250;else if(r===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},r),n}};h5.className=h5.classNames=h5.classes;var pn={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Ta,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};pn.variable="(?:[\\w-.]|(?:\\\\"+pn.metaChar+"))+";pn.className="(?:[\\w-]|(?:\\\\"+pn.metaChar+"))+";pn.value=pn.string+"|"+pn.number;pn.id=pn.variable;(function(){var t,e,r;for(t=pn.comparatorOp.split("|"),r=0;r=0)&&e!=="="&&(pn.comparatorOp+="|\\!"+e)})();var Pn=function(){return{checks:[]}},pr={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},wB=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return Iht(t.selector,e.selector)}),Lgt=(function(){for(var t={},e,r=0;r0&&d.edgeCount>0)return Ln("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(d.edgeCount>1)return Ln("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;d.edgeCount===1&&Ln("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},zgt=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(d){return d??""},r=function(d){return Cr(d)?'"'+d+'"':e(d)},n=function(d){return" "+d+" "},i=function(d,h){var f=d.type,p=d.value;switch(f){case pr.GROUP:{var g=e(p);return g.substring(0,g.length-1)}case pr.DATA_COMPARE:{var m=d.field,y=d.operator;return"["+m+n(e(y))+r(p)+"]"}case pr.DATA_BOOL:{var v=d.operator,b=d.field;return"["+e(v)+b+"]"}case pr.DATA_EXIST:{var _=d.field;return"["+_+"]"}case pr.META_COMPARE:{var E=d.operator,x=d.field;return"[["+x+n(e(E))+r(p)+"]]"}case pr.STATE:return p;case pr.ID:return"#"+p;case pr.CLASS:return"."+p;case pr.PARENT:case pr.CHILD:return a(d.parent,h)+n(">")+a(d.child,h);case pr.ANCESTOR:case pr.DESCENDANT:return a(d.ancestor,h)+" "+a(d.descendant,h);case pr.COMPOUND_SPLIT:{var C=a(d.left,h),T=a(d.subject,h),w=a(d.right,h);return C+(C.length>0?" ":"")+T+w}case pr.TRUE:return""}},a=function(d,h){return d.checks.reduce(function(f,p,g){return f+(h===d&&g===0?"$":"")+i(p,h)},"")},s="",o=0;o1&&o=0&&(r=r.replace("!",""),h=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),d=!0),(a||o||d)&&(l=!a&&!s?"":""+e,u=""+n),d&&(e=l=l.toLowerCase(),n=u=u.toLowerCase()),r){case"*=":i=l.indexOf(u)>=0;break;case"$=":i=l.indexOf(u,l.length-u.length)>=0;break;case"^=":i=l.indexOf(u)===0;break;case"=":i=e===n;break;case">":f=!0,i=e>n;break;case">=":f=!0,i=e>=n;break;case"<":f=!0,i=e0;){var d=i.shift();e(d),a.add(d.id()),o&&n(i,a,d)}return t}function obe(t,e,r){if(r.isParent())for(var n=r._private.children,i=0;i1&&arguments[1]!==void 0?arguments[1]:!0;return Vq(this,t,e,obe)};function lbe(t,e,r){if(r.isChild()){var n=r._private.parent;e.has(n.id())||t.push(n)}}pb.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Vq(this,t,e,lbe)};function Kgt(t,e,r){lbe(t,e,r),obe(t,e,r)}pb.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Vq(this,t,e,Kgt)};pb.ancestors=pb.parents;var f4,cbe;f4=cbe={data:On.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:On.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:On.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:On.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:On.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:On.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};f4.attr=f4.data;f4.removeAttr=f4.removeData;var Xgt=cbe,O7={};function uL(t){return function(e){var r=this;if(e===void 0&&(e=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var n=0,i=r[0],a=i._private.edges,s=0;se}),minIndegree:$g("indegree",function(t,e){return te}),minOutdegree:$g("outdegree",function(t,e){return te})});Ir(O7,{totalDegree:function(e){for(var r=0,n=this.nodes(),i=0;i0,f=h;h&&(d=d[0]);var p=f?d.position():{x:0,y:0};r!==void 0?u.position(e,r+p[e]):a!==void 0&&u.position({x:a.x+p.x,y:a.y+p.y})}else{var g=n.position(),m=o?n.parent():null,y=m&&m.length>0,v=y;y&&(m=m[0]);var b=v?m.position():{x:0,y:0};return a={x:g.x-b.x,y:g.y-b.y},e===void 0?a:a[e]}else if(!s)return;return this}};ic.modelPosition=ic.point=ic.position;ic.modelPositions=ic.points=ic.positions;ic.renderedPoint=ic.renderedPosition;ic.relativePoint=ic.relativePosition;var jgt=ube,t1,Bh;t1=Bh={};Bh.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),n=r.zoom(),i=r.pan(),a=e.x1*n+i.x,s=e.x2*n+i.x,o=e.y1*n+i.y,l=e.y2*n+i.y;return{x1:a,x2:s,y1:o,y2:l,w:s-a,h:l-o}};Bh.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var n=r._private;n.compoundBoundsClean=!1,n.bbCache=null,t||r.emitAndNotify("bounds")}}),this)};Bh.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(s){if(!s.isParent())return;var o=s._private,l=s.children(),u=s.pstyle("compound-sizing-wrt-labels").value==="include",d={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},h=l.boundingBox({includeLabels:u,includeOverlays:!1,useCache:!1}),f=o.position;(h.w===0||h.h===0)&&(h={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue},h.x1=f.x-h.w/2,h.x2=f.x+h.w/2,h.y1=f.y-h.h/2,h.y2=f.y+h.h/2);function p(N,O,M){var $=0,F=0,A=O+M;return N>0&&A>0&&($=O/A*N,F=M/A*N),{biasDiff:$,biasComplementDiff:F}}function g(N,O,M,$){if(M.units==="%")switch($){case"width":return N>0?M.pfValue*N:0;case"height":return O>0?M.pfValue*O:0;case"average":return N>0&&O>0?M.pfValue*(N+O)/2:0;case"min":return N>0&&O>0?N>O?M.pfValue*O:M.pfValue*N:0;case"max":return N>0&&O>0?N>O?M.pfValue*N:M.pfValue*O:0;default:return 0}else return M.units==="px"?M.pfValue:0}var m=d.width.left.value;d.width.left.units==="px"&&d.width.val>0&&(m=m*100/d.width.val);var y=d.width.right.value;d.width.right.units==="px"&&d.width.val>0&&(y=y*100/d.width.val);var v=d.height.top.value;d.height.top.units==="px"&&d.height.val>0&&(v=v*100/d.height.val);var b=d.height.bottom.value;d.height.bottom.units==="px"&&d.height.val>0&&(b=b*100/d.height.val);var _=p(d.width.val-h.w,m,y),E=_.biasDiff,x=_.biasComplementDiff,C=p(d.height.val-h.h,v,b),T=C.biasDiff,w=C.biasComplementDiff;o.autoPadding=g(h.w,h.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),o.autoWidth=Math.max(h.w,d.width.val),f.x=(-E+h.x1+h.x2+x)/2,o.autoHeight=Math.max(h.h,d.height.val),f.y=(-T+h.y1+h.y2+w)/2}for(var n=0;ne.x2?i:e.x2,e.y1=ne.y2?a:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},xd=function(e,r){return r==null?e:ql(e,r.x1,r.y1,r.x2,r.y2)},$2=function(e,r,n){return ho(e,r,n)},a3=function(e,r,n){if(!r.cy().headless()){var i=r._private,a=i.rstyle,s=a.arrowWidth/2,o=r.pstyle(n+"-arrow-shape").value,l,u;if(o!=="none"){n==="source"?(l=a.srcX,u=a.srcY):n==="target"?(l=a.tgtX,u=a.tgtY):(l=a.midX,u=a.midY);var d=i.arrowBounds=i.arrowBounds||{},h=d[n]=d[n]||{};h.x1=l-s,h.y1=u-s,h.x2=l+s,h.y2=u+s,h.w=h.x2-h.x1,h.h=h.y2-h.y1,u5(h,1),ql(e,h.x1,h.y1,h.x2,h.y2)}}},dL=function(e,r,n){if(!r.cy().headless()){var i;n?i=n+"-":i="";var a=r._private,s=a.rstyle,o=r.pstyle(i+"label").strValue;if(o){var l=r.pstyle("text-halign"),u=r.pstyle("text-valign"),d=$2(s,"labelWidth",n),h=$2(s,"labelHeight",n),f=$2(s,"labelX",n),p=$2(s,"labelY",n),g=r.pstyle(i+"text-margin-x").pfValue,m=r.pstyle(i+"text-margin-y").pfValue,y=r.isEdge(),v=r.pstyle(i+"text-rotation"),b=r.pstyle("text-outline-width").pfValue,_=r.pstyle("text-border-width").pfValue,E=_/2,x=r.pstyle("text-background-padding").pfValue,C=2,T=h,w=d,N=w/2,O=T/2,M,$,F,A;if(y)M=f-N,$=f+N,F=p-O,A=p+O;else{switch(l.value){case"left":M=f-w,$=f;break;case"center":M=f-N,$=f+N;break;case"right":M=f,$=f+w;break}switch(u.value){case"top":F=p-T,A=p;break;case"center":F=p-O,A=p+O;break;case"bottom":F=p,A=p+T;break}}var I=g-Math.max(b,E)-x-C,D=g+Math.max(b,E)+x+C,L=m-Math.max(b,E)-x-C,R=m+Math.max(b,E)+x+C;M+=I,$+=D,F+=L,A+=R;var P=n||"main",z=a.labelBounds,B=z[P]=z[P]||{};B.x1=M,B.y1=F,B.x2=$,B.y2=A,B.w=$-M,B.h=A-F,B.leftPad=I,B.rightPad=D,B.topPad=L,B.botPad=R;var q=y&&v.strValue==="autorotate",Y=v.pfValue!=null&&v.pfValue!==0;if(q||Y){var Q=q?$2(a.rstyle,"labelAngle",n):v.pfValue,H=Math.cos(Q),J=Math.sin(Q),Z=(M+$)/2,pe=(F+A)/2;if(!y){switch(l.value){case"left":Z=$;break;case"right":Z=M;break}switch(u.value){case"top":pe=A;break;case"bottom":pe=F;break}}var re=function(Xe,Le){return Xe=Xe-Z,Le=Le-pe,{x:Xe*H-Le*J+Z,y:Xe*J+Le*H+pe}},ce=re(M,F),ae=re(M,A),se=re($,F),xe=re($,A);M=Math.min(ce.x,ae.x,se.x,xe.x),$=Math.max(ce.x,ae.x,se.x,xe.x),F=Math.min(ce.y,ae.y,se.y,xe.y),A=Math.max(ce.y,ae.y,se.y,xe.y)}var Te=P+"Rot",Ge=z[Te]=z[Te]||{};Ge.x1=M,Ge.y1=F,Ge.x2=$,Ge.y2=A,Ge.w=$-M,Ge.h=A-F,ql(e,M,F,$,A),ql(a.labelBounds.all,M,F,$,A)}return e}},$ie=function(e,r){if(!r.cy().headless()){var n=r.pstyle("outline-opacity").value,i=r.pstyle("outline-width").value,a=r.pstyle("outline-offset").value,s=i+a;hbe(e,r,n,s,"outside",s/2)}},hbe=function(e,r,n,i,a,s){if(!(n===0||i<=0||a==="inside")){var o=r.cy(),l=r.pstyle("shape").value,u=o.renderer().nodeShapes[l],d=r.position(),h=d.x,f=d.y,p=r.width(),g=r.height();if(u.hasMiterBounds){a==="center"&&(i/=2);var m=u.miterBounds(h,f,p,g,i);xd(e,m)}else s!=null&&s>0&&d5(e,[s,s,s,s])}},Qgt=function(e,r){if(!r.cy().headless()){var n=r.pstyle("border-opacity").value,i=r.pstyle("border-width").pfValue,a=r.pstyle("border-position").value;hbe(e,r,n,i,a)}},Zgt=function(e,r){var n=e._private.cy,i=n.styleEnabled(),a=n.headless(),s=Ys(),o=e._private,l=e.isNode(),u=e.isEdge(),d,h,f,p,g,m,y=o.rstyle,v=l&&i?e.pstyle("bounds-expansion").pfValue:[0],b=function(ze){return ze.pstyle("display").value!=="none"},_=!i||b(e)&&(!u||b(e.source())&&b(e.target()));if(_){var E=0,x=0;i&&r.includeOverlays&&(E=e.pstyle("overlay-opacity").value,E!==0&&(x=e.pstyle("overlay-padding").value));var C=0,T=0;i&&r.includeUnderlays&&(C=e.pstyle("underlay-opacity").value,C!==0&&(T=e.pstyle("underlay-padding").value));var w=Math.max(x,T),N=0,O=0;if(i&&(N=e.pstyle("width").pfValue,O=N/2),l&&r.includeNodes){var M=e.position();g=M.x,m=M.y;var $=e.outerWidth(),F=$/2,A=e.outerHeight(),I=A/2;d=g-F,h=g+F,f=m-I,p=m+I,ql(s,d,f,h,p),i&&$ie(s,e),i&&r.includeOutlines&&!a&&$ie(s,e),i&&Qgt(s,e)}else if(u&&r.includeEdges)if(i&&!a){var D=e.pstyle("curve-style").strValue;if(d=Math.min(y.srcX,y.midX,y.tgtX),h=Math.max(y.srcX,y.midX,y.tgtX),f=Math.min(y.srcY,y.midY,y.tgtY),p=Math.max(y.srcY,y.midY,y.tgtY),d-=O,h+=O,f-=O,p+=O,ql(s,d,f,h,p),D==="haystack"){var L=y.haystackPts;if(L&&L.length===2){if(d=L[0].x,f=L[0].y,h=L[1].x,p=L[1].y,d>h){var R=d;d=h,h=R}if(f>p){var P=f;f=p,p=P}ql(s,d-O,f-O,h+O,p+O)}}else if(D==="bezier"||D==="unbundled-bezier"||Ud(D,"segments")||Ud(D,"taxi")){var z;switch(D){case"bezier":case"unbundled-bezier":z=y.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":z=y.linePts;break}if(z!=null)for(var B=0;Bh){var Z=d;d=h,h=Z}if(f>p){var pe=f;f=p,p=pe}d-=O,h+=O,f-=O,p+=O,ql(s,d,f,h,p)}if(i&&r.includeEdges&&u&&(a3(s,e,"mid-source"),a3(s,e,"mid-target"),a3(s,e,"source"),a3(s,e,"target")),i){var re=e.pstyle("ghost").value==="yes";if(re){var ce=e.pstyle("ghost-offset-x").pfValue,ae=e.pstyle("ghost-offset-y").pfValue;ql(s,s.x1+ce,s.y1+ae,s.x2+ce,s.y2+ae)}}var se=o.bodyBounds=o.bodyBounds||{};xne(se,s),d5(se,v),u5(se,1),i&&(d=s.x1,h=s.x2,f=s.y1,p=s.y2,ql(s,d-w,f-w,h+w,p+w));var xe=o.overlayBounds=o.overlayBounds||{};xne(xe,s),d5(xe,v),u5(xe,1);var Te=o.labelBounds=o.labelBounds||{};Te.all!=null?Dft(Te.all):Te.all=Ys(),i&&r.includeLabels&&(r.includeMainLabels&&dL(s,e,null),u&&(r.includeSourceLabels&&dL(s,e,"source"),r.includeTargetLabels&&dL(s,e,"target")))}return s.x1=pl(s.x1),s.y1=pl(s.y1),s.x2=pl(s.x2),s.y2=pl(s.y2),s.w=pl(s.x2-s.x1),s.h=pl(s.y2-s.y1),s.w>0&&s.h>0&&_&&(d5(s,v),u5(s,1)),s},fbe=function(e){var r=0,n=function(s){return(s?1:0)<0&&arguments[0]!==void 0?arguments[0]:fmt,e=arguments.length>1?arguments[1]:void 0,r=0;r=0;o--)s(o);return this};Sh.removeAllListeners=function(){return this.removeListener("*")};Sh.emit=Sh.trigger=function(t,e,r){var n=this.listeners,i=n.length;return this.emitting++,Fn(e)||(e=[e]),pmt(this,function(a,s){r!=null&&(n=[{event:s.event,type:s.type,namespace:s.namespace,callback:r}],i=n.length);for(var o=function(){var d=n[l];if(d.type===s.type&&(!d.namespace||d.namespace===s.namespace||d.namespace===hmt)&&a.eventMatches(a.context,d,s)){var h=[s];e!=null&&ift(h,e),a.beforeEmit(a.context,d,s),d.conf&&d.conf.one&&(a.listeners=a.listeners.filter(function(g){return g!==d}));var f=a.callbackContext(a.context,d,s),p=d.callback.apply(f,h);a.afterEmit(a.context,d,s),p===!1&&(s.stopPropagation(),s.preventDefault())}},l=0;l1&&!s){var o=this.length-1,l=this[o],u=l._private.data.id;this[o]=void 0,this[e]=l,a.set(u,{ele:l,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var r=this._private,n=e._private.data.id,i=r.map,a=i.get(n);if(!a)return this;var s=a.index;return this.unmergeAt(s),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&Cr(e)){var n=e;e=r.mutableElements().filter(n)}for(var i=0;i=0;r--){var n=this[r];e(n)&&this.unmergeAt(r)}return this},map:function(e,r){for(var n=[],i=this,a=0;an&&(n=l,i=o)}return{value:n,ele:i}},min:function(e,r){for(var n=1/0,i,a=this,s=0;s=0&&a"u"?"undefined":Aa(Symbol))!=e&&Aa(Symbol.iterator)!=e;r&&(R6[Symbol.iterator]=function(){var n=this,i={value:void 0,done:!1},a=0,s=this.length;return b_e({next:function(){return a1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],i=n.cy();if(i.styleEnabled()&&n){n._private.styleDirty&&(n._private.styleDirty=!1,i.style().apply(n));var a=n._private.style[e];return a??(r?i.style().getDefaultProperty(e):null)}},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var n=r.pstyle(e);return n.pfValue!==void 0?n.pfValue:n.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=this[0];if(n)return r.style().getRenderedStyle(n,e)},style:function(e,r){var n=this.cy();if(!n.styleEnabled())return this;var i=!1,a=n.style();if(gn(e)){var s=e;a.applyBypass(this,s,i),this.emitAndNotify("style")}else if(Cr(e))if(r===void 0){var o=this[0];return o?a.getStylePropertyValue(o,e):void 0}else a.applyBypass(this,e,r,i),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?a.getRawStyle(l):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=!1,i=r.style(),a=this;if(e===void 0)for(var s=0;s0&&e.push(d[0]),e.push(o[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});hs.neighbourhood=hs.neighborhood;hs.closedNeighbourhood=hs.closedNeighborhood;hs.openNeighbourhood=hs.openNeighborhood;Ir(hs,{source:bl(function(e){var r=this[0],n;return r&&(n=r._private.source||r.cy().collection()),n&&e?n.filter(e):n},"source"),target:bl(function(e){var r=this[0],n;return r&&(n=r._private.target||r.cy().collection()),n&&e?n.filter(e):n},"target"),sources:jie({attr:"source"}),targets:jie({attr:"target"})});function jie(t){return function(r){for(var n=[],i=0;i0);return s},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});hs.componentsOf=hs.components;var Qa=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){ui("A collection must have a reference to the core");return}var a=new l0,s=!1;if(!r)r=[];else if(r.length>0&&gn(r[0])&&!ET(r[0])){s=!0;for(var o=[],l=new t2,u=0,d=r.length;u0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=r.cy(),i=n._private,a=[],s=[],o,l=0,u=r.length;l0){for(var P=o.length===r.length?r:new Qa(n,o),z=0;z0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=[],i={},a=r._private.cy;function s(A){for(var I=A._private.edges,D=0;D0&&(t?M.emitAndNotify("remove"):e&&M.emit("remove"));for(var $=0;$0?$=A:M=A;while(Math.abs(F)>s&&++I=a?b(O,I):D===0?I:E(O,M,M+u)}var C=!1;function T(){C=!0,(t!==e||r!==n)&&_()}var w=function(M){return C||T(),t===e&&r===n?M:M===0?0:M===1?1:y(x(M),e,n)};w.getControlPoints=function(){return[{x:t,y:e},{x:r,y:n}]};var N="generateBezier("+[t,e,r,n]+")";return w.toString=function(){return N},w}var Cmt=(function(){function t(n){return-n.tension*n.x-n.friction*n.v}function e(n,i,a){var s={x:n.x+a.dx*i,v:n.v+a.dv*i,tension:n.tension,friction:n.friction};return{dx:s.v,dv:t(s)}}function r(n,i){var a={dx:n.v,dv:t(n)},s=e(n,i*.5,a),o=e(n,i*.5,s),l=e(n,i,o),u=1/6*(a.dx+2*(s.dx+o.dx)+l.dx),d=1/6*(a.dv+2*(s.dv+o.dv)+l.dv);return n.x=n.x+u*i,n.v=n.v+d*i,n}return function n(i,a,s){var o={x:-1,v:0,tension:null,friction:null},l=[0],u=0,d=1/1e4,h=16/1e3,f,p,g;for(i=parseFloat(i)||500,a=parseFloat(a)||20,s=s||null,o.tension=i,o.friction=a,f=s!==null,f?(u=n(i,a),p=u/s*h):p=h;g=r(g||o,p),l.push(1+g.x),u+=16,Math.abs(g.x)>d&&Math.abs(g.v)>d;);return f?function(m){return l[m*(l.length-1)|0]}:u}})(),Hn=function(e,r,n,i){var a=xmt(e,r,n,i);return function(s,o,l){return s+(o-s)*a(l)}},p5={linear:function(e,r,n){return e+(r-e)*n},ease:Hn(.25,.1,.25,1),"ease-in":Hn(.42,0,1,1),"ease-out":Hn(0,0,.58,1),"ease-in-out":Hn(.42,0,.58,1),"ease-in-sine":Hn(.47,0,.745,.715),"ease-out-sine":Hn(.39,.575,.565,1),"ease-in-out-sine":Hn(.445,.05,.55,.95),"ease-in-quad":Hn(.55,.085,.68,.53),"ease-out-quad":Hn(.25,.46,.45,.94),"ease-in-out-quad":Hn(.455,.03,.515,.955),"ease-in-cubic":Hn(.55,.055,.675,.19),"ease-out-cubic":Hn(.215,.61,.355,1),"ease-in-out-cubic":Hn(.645,.045,.355,1),"ease-in-quart":Hn(.895,.03,.685,.22),"ease-out-quart":Hn(.165,.84,.44,1),"ease-in-out-quart":Hn(.77,0,.175,1),"ease-in-quint":Hn(.755,.05,.855,.06),"ease-out-quint":Hn(.23,1,.32,1),"ease-in-out-quint":Hn(.86,0,.07,1),"ease-in-expo":Hn(.95,.05,.795,.035),"ease-out-expo":Hn(.19,1,.22,1),"ease-in-out-expo":Hn(1,0,0,1),"ease-in-circ":Hn(.6,.04,.98,.335),"ease-out-circ":Hn(.075,.82,.165,1),"ease-in-out-circ":Hn(.785,.135,.15,.86),spring:function(e,r,n){if(n===0)return p5.linear;var i=Cmt(e,r,n);return function(a,s,o){return a+(s-a)*i(o)}},"cubic-bezier":Hn};function Jie(t,e,r,n,i){if(n===1||e===r)return r;var a=i(e,r,n);return t==null||((t.roundValue||t.color)&&(a=Math.round(a)),t.min!==void 0&&(a=Math.max(a,t.min)),t.max!==void 0&&(a=Math.min(a,t.max))),a}function eae(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function zg(t,e,r,n,i){var a=i!=null?i.type:null;r<0?r=0:r>1&&(r=1);var s=eae(t,i),o=eae(e,i);if(nr(s)&&nr(o))return Jie(a,s,o,r,n);if(Fn(s)&&Fn(o)){for(var l=[],u=0;u0?(p==="spring"&&g.push(s.duration),s.easingImpl=p5[p].apply(null,g)):s.easingImpl=p5[p]}var m=s.easingImpl,y;if(s.duration===0?y=1:y=(r-l)/s.duration,s.applying&&(y=s.progress),y<0?y=0:y>1&&(y=1),s.delay==null){var v=s.startPosition,b=s.position;if(b&&i&&!t.locked()){var _={};U2(v.x,b.x)&&(_.x=zg(v.x,b.x,y,m)),U2(v.y,b.y)&&(_.y=zg(v.y,b.y,y,m)),t.position(_)}var E=s.startPan,x=s.pan,C=a.pan,T=x!=null&&n;T&&(U2(E.x,x.x)&&(C.x=zg(E.x,x.x,y,m)),U2(E.y,x.y)&&(C.y=zg(E.y,x.y,y,m)),t.emit("pan"));var w=s.startZoom,N=s.zoom,O=N!=null&&n;O&&(U2(w,N)&&(a.zoom=d4(a.minZoom,zg(w,N,y,m),a.maxZoom)),t.emit("zoom")),(T||O)&&t.emit("viewport");var M=s.style;if(M&&M.length>0&&i){for(var $=0;$=0;T--){var w=C[T];w()}C.splice(0,C.length)},b=p.length-1;b>=0;b--){var _=p[b],E=_._private;if(E.stopped){p.splice(b,1),E.hooked=!1,E.playing=!1,E.started=!1,v(E.frames);continue}!E.playing&&!E.applying||(E.playing&&E.applying&&(E.applying=!1),E.started||kmt(d,_,t),wmt(d,_,t,h),E.applying&&(E.applying=!1),v(E.frames),E.step!=null&&E.step(t),_.completed()&&(p.splice(b,1),E.hooked=!1,E.playing=!1,E.started=!1,v(E.completes)),m=!0)}return!h&&p.length===0&&g.length===0&&n.push(d),m}for(var a=!1,s=0;s0?e.notify("draw",r):e.notify("draw")),r.unmerge(n),e.emit("step")}var Amt={animate:On.animate(),animation:On.animation(),animated:On.animated(),clearQueue:On.clearQueue(),delay:On.delay(),delayAnimation:On.delayAnimation(),stop:On.stop(),addToAnimationPool:function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&x6(function(a){tae(a,e),r()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(a,s){tae(s,e)},n.beforeRenderPriorities.animations):r()}},Rmt={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,n){var i=r.qualifier;return i!=null?e!==n.target&&ET(n.target)&&i.matches(n.target):!0},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,n){return r.qualifier!=null?n.target:e}},l3=function(e){return Cr(e)?new bh(e):e},xbe={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new D7(Rmt,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,n){return this.emitter().on(e,l3(r),n),this},removeListener:function(e,r,n){return this.emitter().removeListener(e,l3(r),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,n){return this.emitter().one(e,l3(r),n),this},once:function(e,r,n){return this.emitter().one(e,l3(r),n),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};On.eventAliasesOn(xbe);var AB={png:function(e){var r=this._private.renderer;return e=e||{},r.png(e)},jpg:function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)}};AB.jpeg=AB.jpg;var g5={layout:function(e){var r=this;if(e==null){ui("Layout options must be specified to make a layout");return}if(e.name==null){ui("A `name` must be specified to make a layout");return}var n=e.name,i=r.extension("layout",n);if(i==null){ui("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var a;Cr(e.eles)?a=r.$(e.eles):a=e.eles!=null?e.eles:r.$();var s=new i(Ir({},e,{cy:r,eles:a}));return s}};g5.createLayout=g5.makeLayout=g5.layout;var Nmt={notify:function(e,r){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var i=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();r!=null&&i.merge(r);return}if(n.notificationsEnabled){var a=this.renderer();this.destroyed()||!a||a.notify(e,r)}},notifications:function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var i=e.batchNotifications[n];i.empty()?r.notify(n):r.notify(n,i)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var n=Object.keys(e),i=0;i0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(n){var i=n._private;i.rscratch={},i.rstyle={},i.animation.current=[],i.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};RB.invalidateDimensions=RB.resize;var m5={collection:function(e,r){return Cr(e)?this.$(e):Do(e)?e.collection():Fn(e)?(r||(r={}),new Qa(this,e,r.unique,r.removed)):new Qa(this)},nodes:function(e){var r=this.$(function(n){return n.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(n){return n.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};m5.elements=m5.filter=m5.$;var Ua={},nS="t",Omt="f";Ua.apply=function(t){for(var e=this,r=e._private,n=r.cy,i=n.collection(),a=0;a0;if(f||h&&p){var g=void 0;f&&p||f?g=u.properties:p&&(g=u.mappedProperties);for(var m=0;m1&&(E=1),o.color){var C=n.valueMin[0],T=n.valueMax[0],w=n.valueMin[1],N=n.valueMax[1],O=n.valueMin[2],M=n.valueMax[2],$=n.valueMin[3]==null?1:n.valueMin[3],F=n.valueMax[3]==null?1:n.valueMax[3],A=[Math.round(C+(T-C)*E),Math.round(w+(N-w)*E),Math.round(O+(M-O)*E),Math.round($+(F-$)*E)];a={bypass:n.bypass,name:n.name,value:A,strValue:"rgb("+A[0]+", "+A[1]+", "+A[2]+")"}}else if(o.number){var I=n.valueMin+(n.valueMax-n.valueMin)*E;a=this.parse(n.name,I,n.bypass,f)}else return!1;if(!a)return m(),!1;a.mapping=n,n=a;break}case s.data:{for(var D=n.field.split("."),L=h.data,R=0;R0&&a>0){for(var o={},l=!1,u=0;u0?t.delayAnimation(s).play().promise().then(_):_()}).then(function(){return t.animation({style:o,duration:a,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,i),t.emitAndNotify("style"),n.transitioning=!1})}else n.transitioning&&(this.removeBypasses(t,i),t.emitAndNotify("style"),n.transitioning=!1)};Ua.checkTrigger=function(t,e,r,n,i,a){var s=this.properties[e],o=i(s);t.removed()||o!=null&&o(r,n,t)&&a(s)};Ua.checkZOrderTrigger=function(t,e,r,n){var i=this;this.checkTrigger(t,e,r,n,function(a){return a.triggersZOrder},function(){i._private.cy.notify("zorder",t)})};Ua.checkBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(i){return i.triggersBounds},function(i){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache()})};Ua.checkConnectedEdgesBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(i){return i.triggersBoundsOfConnectedEdges},function(i){t.connectedEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};Ua.checkParallelEdgesBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(i){return i.triggersBoundsOfParallelEdges},function(i){t.parallelEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};Ua.checkTriggers=function(t,e,r,n){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,n),this.checkBoundsTrigger(t,e,r,n),this.checkConnectedEdgesBoundsTrigger(t,e,r,n),this.checkParallelEdgesBoundsTrigger(t,e,r,n)};var AT={};AT.applyBypass=function(t,e,r,n){var i=this,a=[],s=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var o=0;oi.length?n=n.substr(i.length):n=""}function l(){a.length>s.length?a=a.substr(s.length):a=""}for(;;){var u=n.match(/^\s*$/);if(u)break;var d=n.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!d){Ln("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+n);break}i=d[0];var h=d[1];if(h!=="core"){var f=new bh(h);if(f.invalid){Ln("Skipping parsing of block: Invalid selector found in string stylesheet: "+h),o();continue}}var p=d[2],g=!1;a=p;for(var m=[];;){var y=a.match(/^\s*$/);if(y)break;var v=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!v){Ln("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+p),g=!0;break}s=v[0];var b=v[1],_=v[2],E=e.properties[b];if(!E){Ln("Skipping property: Invalid property name in: "+s),l();continue}var x=r.parse(b,_);if(!x){Ln("Skipping property: Invalid property definition in: "+s),l();continue}m.push({name:b,val:_}),l()}if(g){o();break}r.selector(h);for(var C=0;C=7&&e[0]==="d"&&(d=new RegExp(o.data.regex).exec(e))){if(r)return!1;var f=o.data;return{name:t,value:d,strValue:""+e,mapped:f,field:d[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(h=new RegExp(o.mapData.regex).exec(e))){if(r||u.multiple)return!1;var p=o.mapData;if(!(u.color||u.number))return!1;var g=this.parse(t,h[4]);if(!g||g.mapped)return!1;var m=this.parse(t,h[5]);if(!m||m.mapped)return!1;if(g.pfValue===m.pfValue||g.strValue===m.strValue)return Ln("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+g.strValue+"`"),this.parse(t,g.strValue);if(u.color){var y=g.value,v=m.value,b=y[0]===v[0]&&y[1]===v[1]&&y[2]===v[2]&&(y[3]===v[3]||(y[3]==null||y[3]===1)&&(v[3]==null||v[3]===1));if(b)return!1}return{name:t,value:h,strValue:""+e,mapped:p,field:h[1],fieldMin:parseFloat(h[2]),fieldMax:parseFloat(h[3]),valueMin:g.value,valueMax:m.value,bypass:r}}}if(u.multiple&&n!=="multiple"){var _;if(l?_=e.split(/\s+/):Fn(e)?_=e:_=[e],u.evenMultiple&&_.length%2!==0)return null;for(var E=[],x=[],C=[],T="",w=!1,N=0;N<_.length;N++){var O=i.parse(t,_[N],r,"multiple");w=w||Cr(O.value),E.push(O.value),C.push(O.pfValue!=null?O.pfValue:O.value),x.push(O.units),T+=(N>0?" ":"")+O.strValue}return u.validate&&!u.validate(E,x)?null:u.singleEnum&&w?E.length===1&&Cr(E[0])?{name:t,value:E[0],strValue:E[0],bypass:r}:null:{name:t,value:E,pfValue:C,strValue:T,bypass:r,units:x}}var M=function(){for(var re=0;reu.max||u.strictMax&&e===u.max))return null;var D={name:t,value:e,strValue:""+e+($||""),units:$,bypass:r};return u.unitless||$!=="px"&&$!=="em"?D.pfValue=e:D.pfValue=$==="px"||!$?e:this.getEmSizeInPixels()*e,($==="ms"||$==="s")&&(D.pfValue=$==="ms"?e:1e3*e),($==="deg"||$==="rad")&&(D.pfValue=$==="rad"?e:Rft(e)),$==="%"&&(D.pfValue=e/100),D}else if(u.propList){var L=[],R=""+e;if(R!=="none"){for(var P=R.split(/\s*,\s*|\s+/),z=0;z0&&o>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){l=Math.min((s-2*r)/n.w,(o-2*r)/n.h),l=l>this._private.maxZoom?this._private.maxZoom:l,l=l=n.minZoom&&(n.maxZoom=r),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var r=this._private,n=r.pan,i=r.zoom,a,s,o=!1;if(r.zoomingEnabled||(o=!0),nr(e)?s=e:gn(e)&&(s=e.level,e.position!=null?a=w7(e.position,i,n):e.renderedPosition!=null&&(a=e.renderedPosition),a!=null&&!r.panningEnabled&&(o=!0)),s=s>r.maxZoom?r.maxZoom:s,s=sr.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=l,a.push("zoom"))}if(i&&(!s||!e.cancelOnFailedZoom)&&r.panningEnabled){var u=e.pan;nr(u.x)&&(r.pan.x=u.x,o=!1),nr(u.y)&&(r.pan.y=u.y,o=!1),o||a.push("pan")}return a.length>0&&(a.push("viewport"),this.emit(a.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(Cr(e)){var n=e;e=this.mutableElements().filter(n)}else Do(e)||(e=this.mutableElements());if(e.length!==0){var i=e.boundingBox(),a=this.width(),s=this.height();r=r===void 0?this._private.zoom:r;var o={x:(a-r*(i.x1+i.x2))/2,y:(s-r*(i.y1+i.y2))/2};return o}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,r=e.container,n=this;return e.sizeCache=e.sizeCache||(r?(function(){var i=n.window().getComputedStyle(r),a=function(o){return parseFloat(i.getPropertyValue(o))};return{width:r.clientWidth-a("padding-left")-a("padding-right"),height:r.clientHeight-a("padding-top")-a("padding-bottom")}})():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,n=this.renderedExtent(),i={x1:(n.x1-e.x)/r,x2:(n.x2-e.x)/r,y1:(n.y1-e.y)/r,y2:(n.y2-e.y)/r};return i.w=i.x2-i.x1,i.h=i.y2-i.y1,i},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};Mp.centre=Mp.center;Mp.autolockNodes=Mp.autolock;Mp.autoungrabifyNodes=Mp.autoungrabify;var g4={data:On.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:On.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:On.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:On.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};g4.attr=g4.data;g4.removeAttr=g4.removeData;var m4=function(e){var r=this;e=Ir({},e);var n=e.container;n&&!T6(n)&&T6(n[0])&&(n=n[0]);var i=n?n._cyreg:null;i=i||{},i&&i.cy&&(i.cy.destroy(),i={});var a=i.readies=i.readies||[];n&&(n._cyreg=i),i.cy=r;var s=va!==void 0&&n!==void 0&&!e.headless,o=e;o.layout=Ir({name:s?"grid":"null"},o.layout),o.renderer=Ir({name:s?"canvas":"null"},o.renderer);var l=function(g,m,y){return m!==void 0?m:y!==void 0?y:g},u=this._private={container:n,ready:!1,options:o,elements:new Qa(this),listeners:[],aniEles:new Qa(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(!0,o.zoomingEnabled),userZoomingEnabled:l(!0,o.userZoomingEnabled),panningEnabled:l(!0,o.panningEnabled),userPanningEnabled:l(!0,o.userPanningEnabled),boxSelectionEnabled:l(!0,o.boxSelectionEnabled),autolock:l(!1,o.autolock,o.autolockNodes),autoungrabify:l(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:l(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?s:o.styleEnabled,zoom:nr(o.zoom)?o.zoom:1,pan:{x:gn(o.pan)&&nr(o.pan.x)?o.pan.x:0,y:gn(o.pan)&&nr(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:l(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var d=function(g,m){var y=g.some(Tht);if(y)return r2.all(g).then(m);m(g)};u.styleEnabled&&r.setStyle([]);var h=Ir({},o,o.renderer);r.initRenderer(h);var f=function(g,m,y){r.notifications(!1);var v=r.mutableElements();v.length>0&&v.remove(),g!=null&&(gn(g)||Fn(g))&&r.add(g),r.one("layoutready",function(_){r.notifications(!0),r.emit(_),r.one("load",m),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",y),r.emit("done")});var b=Ir({},r._private.options.layout);b.eles=r.elements(),r.layout(b).run()};d([o.style,o.elements],function(p){var g=p[0],m=p[1];u.styleEnabled&&r.style().append(g),f(m,function(){r.startAnimationLoop(),u.ready=!0,Ni(o.ready)&&r.on("ready",o.ready);for(var y=0;y0,o=!!t.boundingBox,l=Ys(o?t.boundingBox:structuredClone(e.extent())),u;if(Do(t.roots))u=t.roots;else if(Fn(t.roots)){for(var d=[],h=0;h0;){var A=F(),I=N(A,M);if(I)A.outgoers().filter(function(Re){return Re.isNode()&&r.has(Re)}).forEach($);else if(I===null){Ln("Detected double maximal shift for node `"+A.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var D=0;if(t.avoidOverlap)for(var L=0;L0&&v[0].length<=3?Je/2:0),ct=2*Math.PI/v[ut].length*De;return ut===0&&v[0].length===1&&(st=1),{x:se.x+st*Math.cos(ct),y:se.y+st*Math.sin(ct)}}else{var ot=v[ut].length,it=Math.max(ot===1?0:o?(l.w-t.padding*2-xe.w)/((t.grid?Ge:ot)-1):(l.w-t.padding*2-xe.w)/((t.grid?Ge:ot)+1),D),Oe={x:se.x+(De+1-(ot+1)/2)*it,y:se.y+(ut+1-(H+1)/2)*Te};return Oe}},Xe={downward:0,leftward:90,upward:180,rightward:-90};Object.keys(Xe).indexOf(t.direction)===-1&&ui("Invalid direction '".concat(t.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Xe).join(", ")));var Le=function(qe){return Zht(ze(qe),l,Xe[t.direction])};return r.nodes().layoutPositions(this,t,Le),this};var Bmt={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function wbe(t){this.options=Ir({},Bmt,t)}wbe.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,i=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=n.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));for(var s=Ys(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=e.sweep===void 0?2*Math.PI-2*Math.PI/a.length:e.sweep,u=l/Math.max(1,a.length-1),d,h=0,f=0;f1&&e.avoidOverlap){h*=1.75;var v=Math.cos(u)-Math.cos(0),b=Math.sin(u)-Math.sin(0),_=Math.sqrt(h*h/(v*v+b*b));d=Math.max(_,d)}var E=function(C,T){var w=e.startAngle+T*u*(i?1:-1),N=d*Math.cos(w),O=d*Math.sin(w),M={x:o.x+N,y:o.y+O};return M};return n.nodes().layoutPositions(this,e,E),this};var Fmt={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function kbe(t){this.options=Ir({},Fmt,t)}kbe.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,n=t.cy,i=e.eles,a=i.nodes().not(":parent"),s=Ys(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=[],u=0,d=0;d0){var x=Math.abs(b[0].value-E.value);x>=y&&(b=[],v.push(b))}b.push(E)}var C=u+e.minNodeSpacing;if(!e.avoidOverlap){var T=v.length>0&&v[0].length>1,w=Math.min(s.w,s.h)/2-C,N=w/(v.length+T?1:0);C=Math.min(C,N)}for(var O=0,M=0;M1&&e.avoidOverlap){var I=Math.cos(A)-Math.cos(0),D=Math.sin(A)-Math.sin(0),L=Math.sqrt(C*C/(I*I+D*D));O=Math.max(L,O)}$.r=O,O+=C}if(e.equidistant){for(var R=0,P=0,z=0;z=t.numIter||(Hmt(n,t),n.temperature=n.temperature*t.coolingFactor,n.temperature=t.animationThreshold&&a(),x6(d)}};d()}else{for(;u;)u=s(l),l++;iae(n,t),o()}return this};F7.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};F7.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var zmt=function(e,r,n){for(var i=n.eles.edges(),a=n.eles.nodes(),s=Ys(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:a.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:i.size(),temperature:n.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},l=n.eles.components(),u={},d=0;d0){o.graphSet.push(w);for(var d=0;di.count?0:i.graph},Abe=function(e,r,n,i){var a=i.graphSet[n];if(-10)var h=i.nodeOverlap*d,f=Math.sqrt(o*o+l*l),p=h*o/f,g=h*l/f;else var m=I6(e,o,l),y=I6(r,-1*o,-1*l),v=y.x-m.x,b=y.y-m.y,_=v*v+b*b,f=Math.sqrt(_),h=(e.nodeRepulsion+r.nodeRepulsion)/_,p=h*v/f,g=h*b/f;e.isLocked||(e.offsetX-=p,e.offsetY-=g),r.isLocked||(r.offsetX+=p,r.offsetY+=g)}},Kmt=function(e,r,n,i){if(n>0)var a=e.maxX-r.minX;else var a=r.maxX-e.minX;if(i>0)var s=e.maxY-r.minY;else var s=r.maxY-e.minY;return a>=0&&s>=0?Math.sqrt(a*a+s*s):0},I6=function(e,r,n){var i=e.positionX,a=e.positionY,s=e.height||1,o=e.width||1,l=n/r,u=s/o,d={};return r===0&&0n?(d.x=i,d.y=a+s/2,d):0r&&-1*u<=l&&l<=u?(d.x=i-o/2,d.y=a-o*n/2/r,d):0=u)?(d.x=i+s*r/2/n,d.y=a+s/2,d):(0>n&&(l<=-1*u||l>=u)&&(d.x=i-s*r/2/n,d.y=a-s/2),d)},Xmt=function(e,r){for(var n=0;nn){var y=r.gravity*p/m,v=r.gravity*g/m;f.offsetX+=y,f.offsetY+=v}}}}},Qmt=function(e,r){var n=[],i=0,a=-1;for(n.push.apply(n,e.graphSet[0]),a+=e.graphSet[0].length;i<=a;){var s=n[i++],o=e.idToIndex[s],l=e.layoutNodes[o],u=l.children;if(0n)var a={x:n*e/i,y:n*r/i};else var a={x:e,y:r};return a},Nbe=function(e,r){var n=e.parentId;if(n!=null){var i=r.layoutNodes[r.idToIndex[n]],a=!1;if((i.maxX==null||e.maxX+i.padRight>i.maxX)&&(i.maxX=e.maxX+i.padRight,a=!0),(i.minX==null||e.minX-i.padLefti.maxY)&&(i.maxY=e.maxY+i.padBottom,a=!0),(i.minY==null||e.minY-i.padTopv&&(g+=y+r.componentSpacing,p=0,m=0,y=0)}}},e1t={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Ibe(t){this.options=Ir({},e1t,t)}Ibe.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,i=n.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));var a=Ys(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(a.h===0||a.w===0)n.nodes().layoutPositions(this,e,function(Y){return{x:a.x1,y:a.y1}});else{var s=i.size(),o=Math.sqrt(s*a.h/a.w),l=Math.round(o),u=Math.round(a.w/a.h*o),d=function(Q){if(Q==null)return Math.min(l,u);var H=Math.min(l,u);H==l?l=Q:u=Q},h=function(Q){if(Q==null)return Math.max(l,u);var H=Math.max(l,u);H==l?l=Q:u=Q},f=e.rows,p=e.cols!=null?e.cols:e.columns;if(f!=null&&p!=null)l=f,u=p;else if(f!=null&&p==null)l=f,u=Math.ceil(s/l);else if(f==null&&p!=null)u=p,l=Math.ceil(s/u);else if(u*l>s){var g=d(),m=h();(g-1)*m>=s?d(g-1):(m-1)*g>=s&&h(m-1)}else for(;u*l=s?h(v+1):d(y+1)}var b=a.w/u,_=a.h/l;if(e.condense&&(b=0,_=0),e.avoidOverlap)for(var E=0;E=u&&(I=0,A++)},L={},R=0;R(I=qft(t,e,D[L],D[L+1],D[L+2],D[L+3])))return y(T,I),!0}else if(N.edgeType==="bezier"||N.edgeType==="multibezier"||N.edgeType==="self"||N.edgeType==="compound"){for(var D=N.allpts,L=0;L+5(I=Gft(t,e,D[L],D[L+1],D[L+2],D[L+3],D[L+4],D[L+5])))return y(T,I),!0}for(var R=R||w.source,P=P||w.target,z=i.getArrowWidth(O,M),B=[{name:"source",x:N.arrowStartX,y:N.arrowStartY,angle:N.srcArrowAngle},{name:"target",x:N.arrowEndX,y:N.arrowEndY,angle:N.tgtArrowAngle},{name:"mid-source",x:N.midX,y:N.midY,angle:N.midsrcArrowAngle},{name:"mid-target",x:N.midX,y:N.midY,angle:N.midtgtArrowAngle}],L=0;L0&&(v(R),v(P))}function _(T,w,N){return ho(T,w,N)}function E(T,w){var N=T._private,O=f,M;w?M=w+"-":M="",T.boundingBox();var $=N.labelBounds[w||"main"],F=T.pstyle(M+"label").value,A=T.pstyle("text-events").strValue==="yes";if(!(!A||!F)){var I=_(N.rscratch,"labelX",w),D=_(N.rscratch,"labelY",w),L=_(N.rscratch,"labelAngle",w),R=T.pstyle(M+"text-margin-x").pfValue,P=T.pstyle(M+"text-margin-y").pfValue,z=$.x1-O-R,B=$.x2+O-R,q=$.y1-O-P,Y=$.y2+O-P;if(L){var Q=Math.cos(L),H=Math.sin(L),J=function(xe,Te){return xe=xe-I,Te=Te-D,{x:xe*Q-Te*H+I,y:xe*H+Te*Q+D}},Z=J(z,q),pe=J(z,Y),re=J(B,q),ce=J(B,Y),ae=[Z.x+R,Z.y+P,re.x+R,re.y+P,ce.x+R,ce.y+P,pe.x+R,pe.y+P];if(fo(t,e,ae))return y(T),!0}else if(Gd($,t,e))return y(T),!0}}for(var x=s.length-1;x>=0;x--){var C=s[x];C.isNode()?v(C)||E(C):b(C)||E(C)||E(C,"source")||E(C,"target")}return o};ig.getAllInBox=function(t,e,r,n){var i=this.getCachedZSortedEles().interactive,a=this.cy.zoom(),s=2/a,o=[],l=Math.min(t,r),u=Math.max(t,r),d=Math.min(e,n),h=Math.max(e,n);t=l,r=u,e=d,n=h;var f=Ys({x1:t,y1:e,x2:r,y2:n}),p=[{x:f.x1,y:f.y1},{x:f.x2,y:f.y1},{x:f.x2,y:f.y2},{x:f.x1,y:f.y2}],g=[[p[0],p[1]],[p[1],p[2]],[p[2],p[3]],[p[3],p[0]]];function m(xe,Te,Ge){return ho(xe,Te,Ge)}function y(xe,Te){var Ge=xe._private,ze=s,Xe="";xe.boundingBox();var Le=Ge.labelBounds.main;if(!Le)return null;var Re=m(Ge.rscratch,"labelX",Te),qe=m(Ge.rscratch,"labelY",Te),Ne=m(Ge.rscratch,"labelAngle",Te),ut=xe.pstyle(Xe+"text-margin-x").pfValue,De=xe.pstyle(Xe+"text-margin-y").pfValue,Je=Le.x1-ze-ut,st=Le.x2+ze-ut,ct=Le.y1-ze-De,ot=Le.y2+ze-De;if(Ne){var it=Math.cos(Ne),Oe=Math.sin(Ne),U=function(de,G){return de=de-Re,G=G-qe,{x:de*it-G*Oe+Re,y:de*Oe+G*it+qe}};return[U(Je,ct),U(st,ct),U(st,ot),U(Je,ot)]}else return[{x:Je,y:ct},{x:st,y:ct},{x:st,y:ot},{x:Je,y:ot}]}function v(xe,Te,Ge,ze){function Xe(Le,Re,qe){return(qe.y-Le.y)*(Re.x-Le.x)>(Re.y-Le.y)*(qe.x-Le.x)}return Xe(xe,Ge,ze)!==Xe(Te,Ge,ze)&&Xe(xe,Te,Ge)!==Xe(xe,Te,ze)}for(var b=0;b0?-(Math.PI-e.ang):Math.PI+e.ang},s1t=function(e,r,n,i,a){if(e!==cae?uae(r,e,Rc):a1t(ol,Rc),uae(r,n,ol),oae=Rc.nx*ol.ny-Rc.ny*ol.nx,lae=Rc.nx*ol.nx-Rc.ny*-ol.ny,zu=Math.asin(Math.max(-1,Math.min(1,oae))),Math.abs(zu)<1e-6){NB=r.x,IB=r.y,Tf=Gg=0;return}Pf=1,y5=!1,lae<0?zu<0?zu=Math.PI+zu:(zu=Math.PI-zu,Pf=-1,y5=!0):zu>0&&(Pf=-1,y5=!0),r.radius!==void 0?Gg=r.radius:Gg=i,cf=zu/2,c3=Math.min(Rc.len/2,ol.len/2),a?(Tc=Math.abs(Math.cos(cf)*Gg/Math.sin(cf)),Tc>c3?(Tc=c3,Tf=Math.abs(Tc*Math.sin(cf)/Math.cos(cf))):Tf=Gg):(Tc=Math.min(c3,Gg),Tf=Math.abs(Tc*Math.sin(cf)/Math.cos(cf))),OB=r.x+ol.nx*Tc,DB=r.y+ol.ny*Tc,NB=OB-ol.ny*Tf*Pf,IB=DB+ol.nx*Tf*Pf,Mbe=r.x+Rc.nx*Tc,Pbe=r.y+Rc.ny*Tc,cae=r};function Bbe(t,e){e.radius===0?t.lineTo(e.cx,e.cy):t.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function Zq(t,e,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return n===0||e.radius===0?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(s1t(t,e,r,n,i),{cx:NB,cy:IB,radius:Tf,startX:Mbe,startY:Pbe,stopX:OB,stopY:DB,startAngle:Rc.ang+Math.PI/2*Pf,endAngle:ol.ang-Math.PI/2*Pf,counterClockwise:y5})}var y4=.01,o1t=Math.sqrt(2*y4),gs={};gs.findMidptPtsEtc=function(t,e){var r=e.posPts,n=e.intersectionPts,i=e.vectorNormInverse,a,s=t.pstyle("source-endpoint"),o=t.pstyle("target-endpoint"),l=s.units!=null&&o.units!=null,u=function(x,C,T,w){var N=w-C,O=T-x,M=Math.sqrt(O*O+N*N);return{x:-N/M,y:O/M}},d=t.pstyle("edge-distances").value;switch(d){case"node-position":a=r;break;case"intersection":a=n;break;case"endpoints":{if(l){var h=this.manualEndptToPx(t.source()[0],s),f=Zi(h,2),p=f[0],g=f[1],m=this.manualEndptToPx(t.target()[0],o),y=Zi(m,2),v=y[0],b=y[1],_={x1:p,y1:g,x2:v,y2:b};i=u(p,g,v,b),a=_}else Ln("Edge ".concat(t.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),a=n;break}}return{midptPts:a,vectorNormInverse:i}};gs.findHaystackPoints=function(t){for(var e=0;e0?Math.max(G-ie,0):Math.min(G+ie,0)},F=$(O,w),A=$(M,N),I=!1;b===u?v=Math.abs(F)>Math.abs(A)?i:n:b===l||b===o?(v=n,I=!0):(b===a||b===s)&&(v=i,I=!0);var D=v===n,L=D?A:F,R=D?M:O,P=$q(R),z=!1;!(I&&(E||C))&&(b===o&&R<0||b===l&&R>0||b===a&&R>0||b===s&&R<0)&&(P*=-1,L=P*Math.abs(L),z=!0);var B;if(E){var q=x<0?1+x:x;B=q*L}else{var Y=x<0?L:0;B=Y+x*P}var Q=function(G){return Math.abs(G)=Math.abs(L)},H=Q(B),J=Q(Math.abs(L)-Math.abs(B)),Z=H||J;if(Z&&!z)if(D){var pe=Math.abs(R)<=f/2,re=Math.abs(O)<=p/2;if(pe){var ce=(d.x1+d.x2)/2,ae=d.y1,se=d.y2;r.segpts=[ce,ae,ce,se]}else if(re){var xe=(d.y1+d.y2)/2,Te=d.x1,Ge=d.x2;r.segpts=[Te,xe,Ge,xe]}else r.segpts=[d.x1,d.y2]}else{var ze=Math.abs(R)<=h/2,Xe=Math.abs(M)<=g/2;if(ze){var Le=(d.y1+d.y2)/2,Re=d.x1,qe=d.x2;r.segpts=[Re,Le,qe,Le]}else if(Xe){var Ne=(d.x1+d.x2)/2,ut=d.y1,De=d.y2;r.segpts=[Ne,ut,Ne,De]}else r.segpts=[d.x2,d.y1]}else if(D){var Je=d.y1+B+(y?f/2*P:0),st=d.x1,ct=d.x2;r.segpts=[st,Je,ct,Je]}else{var ot=d.x1+B+(y?h/2*P:0),it=d.y1,Oe=d.y2;r.segpts=[ot,it,ot,Oe]}if(r.isRound){var U=t.pstyle("taxi-radius").value,oe=t.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(U),r.isArcRadius=new Array(r.segpts.length/2).fill(oe)}};gs.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var n=e.srcPos,i=e.tgtPos,a=e.srcW,s=e.srcH,o=e.tgtW,l=e.tgtH,u=e.srcShape,d=e.tgtShape,h=e.srcCornerRadius,f=e.tgtCornerRadius,p=e.srcRs,g=e.tgtRs,m=!nr(r.startX)||!nr(r.startY),y=!nr(r.arrowStartX)||!nr(r.arrowStartY),v=!nr(r.endX)||!nr(r.endY),b=!nr(r.arrowEndX)||!nr(r.arrowEndY),_=3,E=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,x=_*E,C=Dp({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),T=CR.poolIndex()){var P=L;L=R,R=P}var z=F.srcPos=L.position(),B=F.tgtPos=R.position(),q=F.srcW=L.outerWidth(),Y=F.srcH=L.outerHeight(),Q=F.tgtW=R.outerWidth(),H=F.tgtH=R.outerHeight(),J=F.srcShape=r.nodeShapes[e.getNodeShape(L)],Z=F.tgtShape=r.nodeShapes[e.getNodeShape(R)],pe=F.srcCornerRadius=L.pstyle("corner-radius").value==="auto"?"auto":L.pstyle("corner-radius").pfValue,re=F.tgtCornerRadius=R.pstyle("corner-radius").value==="auto"?"auto":R.pstyle("corner-radius").pfValue,ce=F.tgtRs=R._private.rscratch,ae=F.srcRs=L._private.rscratch;F.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var se=0;se=o1t||(ct=Math.sqrt(Math.max(st*st,y4)+Math.max(Je*Je,y4)));var ot=F.vector={x:st,y:Je},it=F.vectorNorm={x:ot.x/ct,y:ot.y/ct},Oe={x:-it.y,y:it.x};F.nodesOverlap=!nr(ct)||Z.checkPoint(Le[0],Le[1],0,Q,H,B.x,B.y,re,ce)||J.checkPoint(qe[0],qe[1],0,q,Y,z.x,z.y,pe,ae),F.vectorNormInverse=Oe,A={nodesOverlap:F.nodesOverlap,dirCounts:F.dirCounts,calculatedIntersection:!0,hasBezier:F.hasBezier,hasUnbundled:F.hasUnbundled,eles:F.eles,srcPos:B,srcRs:ce,tgtPos:z,tgtRs:ae,srcW:Q,srcH:H,tgtW:q,tgtH:Y,srcIntn:Ne,tgtIntn:Re,srcShape:Z,tgtShape:J,posPts:{x1:De.x2,y1:De.y2,x2:De.x1,y2:De.y1},intersectionPts:{x1:ut.x2,y1:ut.y2,x2:ut.x1,y2:ut.y1},vector:{x:-ot.x,y:-ot.y},vectorNorm:{x:-it.x,y:-it.y},vectorNormInverse:{x:-Oe.x,y:-Oe.y}}}var U=Xe?A:F;Te.nodesOverlap=U.nodesOverlap,Te.srcIntn=U.srcIntn,Te.tgtIntn=U.tgtIntn,Te.isRound=Ge.startsWith("round"),i&&(L.isParent()||L.isChild()||R.isParent()||R.isChild())&&(L.parents().anySame(R)||R.parents().anySame(L)||L.same(R)&&L.isParent())?e.findCompoundLoopPoints(xe,U,se,ze):L===R?e.findLoopPoints(xe,U,se,ze):Ge.endsWith("segments")?e.findSegmentsPoints(xe,U):Ge.endsWith("taxi")?e.findTaxiPoints(xe,U):Ge==="straight"||!ze&&F.eles.length%2===1&&se===Math.floor(F.eles.length/2)?e.findStraightEdgePoints(xe):e.findBezierPoints(xe,U,se,ze,Xe),e.findEndpoints(xe),e.tryToCorrectInvalidPoints(xe,U),e.checkForInvalidEdgeWarning(xe),e.storeAllpts(xe),e.storeEdgeProjections(xe),e.calculateArrowAngles(xe),e.recalculateEdgeLabelProjections(xe),e.calculateLabelAngles(xe)}},T=0;T0){var Le=u,Re=Sf(Le,km(s)),qe=Sf(Le,km(Xe)),Ne=Re;if(qe2){var ut=Sf(Le,{x:Xe[2],y:Xe[3]});ut0){var j=d,V=Sf(j,km(s)),ue=Sf(j,km(ie)),Fe=V;if(ue2){var me=Sf(j,{x:ie[2],y:ie[3]});me=g||T){y={cp:E,segment:C};break}}if(y)break}var w=y.cp,N=y.segment,O=(g-v)/N.length,M=N.t1-N.t0,$=p?N.t0+M*O:N.t1-M*O;$=d4(0,$,1),e=Zm(w.p0,w.p1,w.p2,$),f=c1t(w.p0,w.p1,w.p2,$);break}case"straight":case"segments":case"haystack":{for(var F=0,A,I,D,L,R=n.allpts.length,P=0;P+3=g));P+=2);var z=g-I,B=z/A;B=d4(0,B,1),e=Ift(D,L,B),f=zbe(D,L);break}}s("labelX",h,e.x),s("labelY",h,e.y),s("labelAutoAngle",h,f)}};u("source"),u("target"),this.applyLabelDimensions(t)}};xu.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))};xu.applyPrefixedLabelDimensions=function(t,e){var r=t._private,n=this.getLabelText(t,e),i=Op(n,t._private.labelDimsKey);if(ho(r.rscratch,"prefixedLabelDimsKey",e)!==i){Zu(r.rscratch,"prefixedLabelDimsKey",e,i);var a=this.calculateLabelDimensions(t,n),s=t.pstyle("line-height").pfValue,o=t.pstyle("text-wrap").strValue,l=ho(r.rscratch,"labelWrapCachedLines",e)||[],u=o!=="wrap"?1:Math.max(l.length,1),d=a.height/u,h=d*s,f=a.width,p=a.height+(u-1)*(s-1)*d;Zu(r.rstyle,"labelWidth",e,f),Zu(r.rscratch,"labelWidth",e,f),Zu(r.rstyle,"labelHeight",e,p),Zu(r.rscratch,"labelHeight",e,p),Zu(r.rscratch,"labelLineHeight",e,h)}};xu.getLabelText=function(t,e){var r=t._private,n=e?e+"-":"",i=t.pstyle(n+"label").strValue,a=t.pstyle("text-transform").value,s=function(Y,Q){return Q?(Zu(r.rscratch,Y,e,Q),Q):ho(r.rscratch,Y,e)};if(!i)return"";a=="none"||(a=="uppercase"?i=i.toUpperCase():a=="lowercase"&&(i=i.toLowerCase()));var o=t.pstyle("text-wrap").value;if(o==="wrap"){var l=s("labelKey");if(l!=null&&s("labelWrapKey")===l)return s("labelWrapCachedText");for(var u="​",d=i.split(` `),h=t.pstyle("text-max-width").pfValue,f=t.pstyle("text-overflow-wrap").value,p=f==="anywhere",g=[],m=/[\s\u200b]+|$/g,y=0;yh){var x=v.matchAll(m),C="",T=0,w=yo(x),N;try{for(w.s();!(N=w.n()).done;){var O=N.value,M=O[0],$=v.substring(T,O.index);T=O.index+M.length;var F=C.length===0?$:C+$+M,A=this.calculateLabelDimensions(t,F),I=A.width;I<=h?C+=$+M:(C&&g.push(C),C=$+M)}}catch(q){w.e(q)}finally{w.f()}C.match(/^[\s\u200b]+$/)||g.push(C)}else g.push(v)}s("labelWrapCachedLines",g),i=s("labelWrapCachedText",g.join(` `)),s("labelWrapKey",l)}else if(o==="ellipsis"){var D=t.pstyle("text-max-width").pfValue,L="",R="…",P=!1;if(this.calculateLabelDimensions(t,i).widthD)break;L+=i[z],z===i.length-1&&(P=!0)}return P||(L+=R),L}return i};xu.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if(e==="auto")if(t.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e};xu.calculateLabelDimensions=function(t,e){var r=this,n=r.cy.window(),i=n.document,a=0,s=t.pstyle("font-style").strValue,o=t.pstyle("font-size").pfValue,l=t.pstyle("font-family").strValue,u=t.pstyle("font-weight").strValue,d=this.labelCalcCanvas,h=this.labelCalcCanvasContext;if(!d){d=this.labelCalcCanvas=i.createElement("canvas"),h=this.labelCalcCanvasContext=d.getContext("2d");var f=d.style;f.position="absolute",f.left="-9999px",f.top="-9999px",f.zIndex="-1",f.visibility="hidden",f.pointerEvents="none"}h.font="".concat(s," ").concat(u," ").concat(o,"px ").concat(l);for(var p=0,g=0,m=e.split(` -`),y=0;y1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),o)for(var l=0;l=t.desktopTapThreshold2}var fe=a(G);gt&&(t.hoverData.tapholdCancelled=!0);var It=function(){var Ct=t.hoverData.dragDelta=t.hoverData.dragDelta||[];Ct.length===0?(Ct.push(Be[0]),Ct.push(Be[1])):(Ct[0]+=Be[0],Ct[1]+=Be[1])};j=!0,i(Ie,["mousemove","vmousemove","tapdrag"],G,{x:me[0],y:me[1]});var St=function(Ct){return{originalEvent:G,type:Ct,position:{x:me[0],y:me[1]}}},Tt=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||V.emit(St("boxstart")),Me[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(gt){var Nt=St("cxtdrag");le?le.emit(Nt):V.emit(Nt),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||Ie!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit(St("cxtdragout")),t.hoverData.cxtOver=Ie,Ie&&Ie.emit(St("cxtdragover")))}}else if(t.hoverData.dragging){if(j=!0,V.panningEnabled()&&V.userPanningEnabled()){var Hr;if(t.hoverData.justStartedPan){var Pe=t.hoverData.mdownPos;Hr={x:(me[0]-Pe[0])*ue,y:(me[1]-Pe[1])*ue},t.hoverData.justStartedPan=!1}else Hr={x:Be[0]*ue,y:Be[1]*ue};V.panBy(Hr),V.emit(St("dragpan")),t.hoverData.dragged=!0}me=t.projectIntoViewport(G.clientX,G.clientY)}else if(Me[4]==1&&(le==null||le.pannable())){if(gt){if(!t.hoverData.dragging&&V.boxSelectionEnabled()&&(fe||!V.panningEnabled()||!V.userPanningEnabled()))Tt();else if(!t.hoverData.selecting&&V.panningEnabled()&&V.userPanningEnabled()){var yt=s(le,t.hoverData.downs);yt&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,Me[4]=0,t.data.bgActivePosistion=km(Ce),t.redrawHint("select",!0),t.redraw())}le&&le.pannable()&&le.active()&&le.unactivate()}}else{if(le&&le.pannable()&&le.active()&&le.unactivate(),(!le||!le.grabbed())&&Ie!=he&&(he&&i(he,["mouseout","tapdragout"],G,{x:me[0],y:me[1]}),Ie&&i(Ie,["mouseover","tapdragover"],G,{x:me[0],y:me[1]}),t.hoverData.last=Ie),le)if(gt){if(V.boxSelectionEnabled()&&fe)le&&le.grabbed()&&(v(ve),le.emit(St("freeon")),ve.emit(St("free")),t.dragData.didDrag&&(le.emit(St("dragfreeon")),ve.emit(St("dragfree")))),Tt();else if(le&&le.grabbed()&&t.nodeIsDraggable(le)){var bt=!t.dragData.didDrag;bt&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||m(ve,{inDragLayer:!0});var Ot={x:0,y:0};if(nr(Be[0])&&nr(Be[1])&&(Ot.x+=Be[0],Ot.y+=Be[1],bt)){var Qt=t.hoverData.dragDelta;Qt&&nr(Qt[0])&&nr(Qt[1])&&(Ot.x+=Qt[0],Ot.y+=Qt[1])}t.hoverData.draggingEles=!0,ve.silentShift(Ot).emit(St("position")).emit(St("drag")),t.redrawHint("drag",!0),t.redraw()}}else It();j=!0}if(Me[2]=me[0],Me[3]=me[1],j)return G.stopPropagation&&G.stopPropagation(),G.preventDefault&&G.preventDefault(),!1}},!1);var $,F,A;t.registerBinding(e,"mouseup",function(G){if(!(t.hoverData.which===1&&G.which!==1&&t.hoverData.capture)){var ie=t.hoverData.capture;if(ie){t.hoverData.capture=!1;var j=t.cy,V=t.projectIntoViewport(G.clientX,G.clientY),ue=t.selection,Fe=t.findNearestElement(V[0],V[1],!0,!1),me=t.dragData.possibleDragElements,Ce=t.hoverData.down,ye=a(G);t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,Ce&&Ce.unactivate();var Me=function(Et){return{originalEvent:G,type:Et,position:{x:V[0],y:V[1]}}};if(t.hoverData.which===3){var Ie=Me("cxttapend");if(Ce?Ce.emit(Ie):j.emit(Ie),!t.hoverData.cxtDragged){var he=Me("cxttap");Ce?Ce.emit(he):j.emit(he)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(i(Fe,["mouseup","tapend","vmouseup"],G,{x:V[0],y:V[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(i(Ce,["click","tap","vclick"],G,{x:V[0],y:V[1]}),F=!1,G.timeStamp-A<=j.multiClickDebounceTime()?($&&clearTimeout($),F=!0,A=null,i(Ce,["dblclick","dbltap","vdblclick"],G,{x:V[0],y:V[1]})):($=setTimeout(function(){F||i(Ce,["oneclick","onetap","voneclick"],G,{x:V[0],y:V[1]})},j.multiClickDebounceTime()),A=G.timeStamp)),Ce==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!a(G)&&(j.$(r).unselect(["tapunselect"]),me.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=me=j.collection()),Fe==Ce&&!t.dragData.didDrag&&!t.hoverData.selecting&&Fe!=null&&Fe._private.selectable&&(t.hoverData.dragging||(j.selectionType()==="additive"||ye?Fe.selected()?Fe.unselect(["tapunselect"]):Fe.select(["tapselect"]):ye||(j.$(r).unmerge(Fe).unselect(["tapunselect"]),Fe.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var le=j.collection(t.getAllInBox(ue[0],ue[1],ue[2],ue[3]));t.redrawHint("select",!0),le.length>0&&t.redrawHint("eles",!0),j.emit(Me("boxend"));var Be=function(Et){return Et.selectable()&&!Et.selected()};j.selectionType()==="additive"||ye||j.$(r).unmerge(le).unselect(),le.emit(Me("box")).stdFilter(Be).select().emit(Me("boxselect")),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!ue[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var ve=Ce&&Ce.grabbed();v(me),ve&&(Ce.emit(Me("freeon")),me.emit(Me("free")),t.dragData.didDrag&&(Ce.emit(Me("dragfreeon")),me.emit(Me("dragfree"))))}}ue[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null,t.hoverData.which=null}}},!1);var I=[],D=4,L,R=1e5,P=function(G,ie){for(var j=0;j=D){var V=I;if(L=P(V,5),!L){var ue=Math.abs(V[0]);L=z(V)&&ue>5}if(L)for(var Fe=0;Fe5&&(j=$q(j)*5),he=j/-250,L&&(he/=R,he*=3),he=he*t.wheelSensitivity;var le=G.deltaMode===1;le&&(he*=33);var Be=me.zoom()*Math.pow(10,he);G.type==="gesturechange"&&(Be=t.gestureStartZoom*G.scale),me.zoom({level:Be,renderedPosition:{x:Ie[0],y:Ie[1]}}),me.emit({type:G.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:G,position:{x:Me[0],y:Me[1]}})}}}};t.registerBinding(t.container,"wheel",B,!0),t.registerBinding(e,"scroll",function(G){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(G){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||G.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(de){t.hasTouchStarted||B(de)},!0),t.registerBinding(t.container,"mouseout",function(G){var ie=t.projectIntoViewport(G.clientX,G.clientY);t.cy.emit({originalEvent:G,type:"mouseout",position:{x:ie[0],y:ie[1]}})},!1),t.registerBinding(t.container,"mouseover",function(G){var ie=t.projectIntoViewport(G.clientX,G.clientY);t.cy.emit({originalEvent:G,type:"mouseover",position:{x:ie[0],y:ie[1]}})},!1);var q,Y,Q,H,J,Z,pe,re,ce,ae,se,xe,Te,Ge=function(G,ie,j,V){return Math.sqrt((j-G)*(j-G)+(V-ie)*(V-ie))},ze=function(G,ie,j,V){return(j-G)*(j-G)+(V-ie)*(V-ie)},Xe;t.registerBinding(t.container,"touchstart",Xe=function(G){if(t.hasTouchStarted=!0,!!O(G)){_(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var ie=t.cy,j=t.touchData.now,V=t.touchData.earlier;if(G.touches[0]){var ue=t.projectIntoViewport(G.touches[0].clientX,G.touches[0].clientY);j[0]=ue[0],j[1]=ue[1]}if(G.touches[1]){var ue=t.projectIntoViewport(G.touches[1].clientX,G.touches[1].clientY);j[2]=ue[0],j[3]=ue[1]}if(G.touches[2]){var ue=t.projectIntoViewport(G.touches[2].clientX,G.touches[2].clientY);j[4]=ue[0],j[5]=ue[1]}var Fe=function(fe){return{originalEvent:G,type:fe,position:{x:j[0],y:j[1]}}};if(G.touches[1]){t.touchData.singleTouchMoved=!0,v(t.dragData.touchDragEles);var me=t.findContainerClientCoords();ce=me[0],ae=me[1],se=me[2],xe=me[3],q=G.touches[0].clientX-ce,Y=G.touches[0].clientY-ae,Q=G.touches[1].clientX-ce,H=G.touches[1].clientY-ae,Te=0<=q&&q<=se&&0<=Q&&Q<=se&&0<=Y&&Y<=xe&&0<=H&&H<=xe;var Ce=ie.pan(),ye=ie.zoom();J=Ge(q,Y,Q,H),Z=ze(q,Y,Q,H),pe=[(q+Q)/2,(Y+H)/2],re=[(pe[0]-Ce.x)/ye,(pe[1]-Ce.y)/ye];var Me=200,Ie=Me*Me;if(Z=1){for(var et=t.touchData.startPosition=[null,null,null,null,null,null],dt=0;dt=t.touchTapThreshold2}if(ie&&t.touchData.cxt){G.preventDefault();var dt=G.touches[0].clientX-ce,ft=G.touches[0].clientY-ae,mt=G.touches[1].clientX-ce,fe=G.touches[1].clientY-ae,It=ze(dt,ft,mt,fe),St=It/Z,Tt=150,Nt=Tt*Tt,Hr=1.5,Pe=Hr*Hr;if(St>=Pe||It>=Nt){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var yt=ye("cxttapend");t.touchData.start?(t.touchData.start.unactivate().emit(yt),t.touchData.start=null):V.emit(yt)}}if(ie&&t.touchData.cxt){var yt=ye("cxtdrag");t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(yt):V.emit(yt),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var bt=t.findNearestElement(ue[0],ue[1],!0,!0);(!t.touchData.cxtOver||bt!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit(ye("cxtdragout")),t.touchData.cxtOver=bt,bt&&bt.emit(ye("cxtdragover")))}else if(ie&&G.touches[2]&&V.boxSelectionEnabled())G.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||V.emit(ye("boxstart")),t.touchData.selecting=!0,t.touchData.didSelect=!0,j[4]=1,!j||j.length===0||j[0]===void 0?(j[0]=(ue[0]+ue[2]+ue[4])/3,j[1]=(ue[1]+ue[3]+ue[5])/3,j[2]=(ue[0]+ue[2]+ue[4])/3+1,j[3]=(ue[1]+ue[3]+ue[5])/3+1):(j[2]=(ue[0]+ue[2]+ue[4])/3,j[3]=(ue[1]+ue[3]+ue[5])/3),t.redrawHint("select",!0),t.redraw();else if(ie&&G.touches[1]&&!t.touchData.didSelect&&V.zoomingEnabled()&&V.panningEnabled()&&V.userZoomingEnabled()&&V.userPanningEnabled()){G.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Ot=t.dragData.touchDragEles;if(Ot){t.redrawHint("drag",!0);for(var Qt=0;Qt0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1);var Re;t.registerBinding(e,"touchcancel",Re=function(G){var ie=t.touchData.start;t.touchData.capture=!1,ie&&ie.unactivate()});var qe,Ne,ut,De;if(t.registerBinding(e,"touchend",qe=function(G){var ie=t.touchData.start,j=t.touchData.capture;if(j)G.touches.length===0&&(t.touchData.capture=!1),G.preventDefault();else return;var V=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var ue=t.cy,Fe=ue.zoom(),me=t.touchData.now,Ce=t.touchData.earlier;if(G.touches[0]){var ye=t.projectIntoViewport(G.touches[0].clientX,G.touches[0].clientY);me[0]=ye[0],me[1]=ye[1]}if(G.touches[1]){var ye=t.projectIntoViewport(G.touches[1].clientX,G.touches[1].clientY);me[2]=ye[0],me[3]=ye[1]}if(G.touches[2]){var ye=t.projectIntoViewport(G.touches[2].clientX,G.touches[2].clientY);me[4]=ye[0],me[5]=ye[1]}var Me=function(Nt){return{originalEvent:G,type:Nt,position:{x:me[0],y:me[1]}}};ie&&ie.unactivate();var Ie;if(t.touchData.cxt){if(Ie=Me("cxttapend"),ie?ie.emit(Ie):ue.emit(Ie),!t.touchData.cxtDragged){var he=Me("cxttap");ie?ie.emit(he):ue.emit(he)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!G.touches[2]&&ue.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var le=ue.collection(t.getAllInBox(V[0],V[1],V[2],V[3]));V[0]=void 0,V[1]=void 0,V[2]=void 0,V[3]=void 0,V[4]=0,t.redrawHint("select",!0),ue.emit(Me("boxend"));var Be=function(Nt){return Nt.selectable()&&!Nt.selected()};le.emit(Me("box")).stdFilter(Be).select().emit(Me("boxselect")),le.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(ie?.unactivate(),G.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!G.touches[1]){if(!G.touches[0]){if(!G.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var ve=t.dragData.touchDragEles;if(ie!=null){var gt=ie._private.grabbed;v(ve),t.redrawHint("drag",!0),t.redrawHint("eles",!0),gt&&(ie.emit(Me("freeon")),ve.emit(Me("free")),t.dragData.didDrag&&(ie.emit(Me("dragfreeon")),ve.emit(Me("dragfree")))),i(ie,["touchend","tapend","vmouseup","tapdragout"],G,{x:me[0],y:me[1]}),ie.unactivate(),t.touchData.start=null}else{var Et=t.findNearestElement(me[0],me[1],!0,!0);i(Et,["touchend","tapend","vmouseup","tapdragout"],G,{x:me[0],y:me[1]})}var et=t.touchData.startPosition[0]-me[0],dt=et*et,ft=t.touchData.startPosition[1]-me[1],mt=ft*ft,fe=dt+mt,It=fe*Fe*Fe;t.touchData.singleTouchMoved||(ie||ue.$(":selected").unselect(["tapunselect"]),i(ie,["tap","vclick"],G,{x:me[0],y:me[1]}),Ne=!1,G.timeStamp-De<=ue.multiClickDebounceTime()?(ut&&clearTimeout(ut),Ne=!0,De=null,i(ie,["dbltap","vdblclick"],G,{x:me[0],y:me[1]})):(ut=setTimeout(function(){Ne||i(ie,["onetap","voneclick"],G,{x:me[0],y:me[1]})},ue.multiClickDebounceTime()),De=G.timeStamp)),ie!=null&&!t.dragData.didDrag&&ie._private.selectable&&It"u"){var Je=[],st=function(G){return{clientX:G.clientX,clientY:G.clientY,force:1,identifier:G.pointerId,pageX:G.pageX,pageY:G.pageY,radiusX:G.width/2,radiusY:G.height/2,screenX:G.screenX,screenY:G.screenY,target:G.target}},ct=function(G){return{event:G,touch:st(G)}},ot=function(G){Je.push(ct(G))},it=function(G){for(var ie=0;ie0)return q[0]}return null},g=Object.keys(f),m=0;m0?p:G_e(a,s,e,r,n,i,o,l)},checkPoint:function(e,r,n,i,a,s,o,l){l=l==="auto"?_h(i,a):l;var u=2*l;if(R0(e,r,this.points,s,o,i,a-u,[0,-1],n)||R0(e,r,this.points,s,o,i-u,a,[0,-1],n))return!0;var d=i/2+2*n,h=a/2+2*n,f=[s-d,o-h,s-d,o,s+d,o,s+d,o-h];return!!(fo(e,r,f)||np(e,r,u,u,s+i/2-l,o+a/2-l,n)||np(e,r,u,u,s-i/2+l,o+a/2-l,n))}}};ed.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",ws(3,0)),this.generateRoundPolygon("round-triangle",ws(3,0)),this.generatePolygon("rectangle",ws(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",ws(5,0)),this.generateRoundPolygon("round-pentagon",ws(5,0)),this.generatePolygon("hexagon",ws(6,0)),this.generateRoundPolygon("round-hexagon",ws(6,0)),this.generatePolygon("heptagon",ws(7,0)),this.generateRoundPolygon("round-heptagon",ws(7,0)),this.generatePolygon("octagon",ws(8,0)),this.generateRoundPolygon("round-octagon",ws(8,0));var n=new Array(20);{var i=bB(5,0),a=bB(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var o=0;o=e.deqFastCost*E)break}else if(u){if(b>=e.deqCost*p||b>=e.deqAvgCost*f)break}else if(_>=e.deqNoDrawCost*pL)break;var x=e.deq(n,y,m);if(x.length>0)for(var C=0;C0&&(e.onDeqd(n,g),!u&&e.shouldRedraw(n,g,y,m)&&a())},o=e.priority||Pq;i.beforeRender(s,o(n))}}}},u1t=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C6;Mh(this,t),this.idsByKey=new l0,this.keyForId=new l0,this.cachesByLvl=new l0,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return Ph(t,[{key:"getIdsFor",value:function(r){r==null&&ui("Can not get id list for null key");var n=this.idsByKey,i=this.idsByKey.get(r);return i||(i=new t2,n.set(r,i)),i}},{key:"addIdForKey",value:function(r,n){r!=null&&this.getIdsFor(r).add(n)}},{key:"deleteIdForKey",value:function(r,n){r!=null&&this.getIdsFor(r).delete(n)}},{key:"getNumberOfIdsForKey",value:function(r){return r==null?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var n=r.id(),i=this.keyForId.get(n),a=this.getKey(r);this.deleteIdForKey(i,n),this.addIdForKey(a,n),this.keyForId.set(n,a)}},{key:"deleteKeyMappingFor",value:function(r){var n=r.id(),i=this.keyForId.get(n);this.deleteIdForKey(i,n),this.keyForId.delete(n)}},{key:"keyHasChangedFor",value:function(r){var n=r.id(),i=this.keyForId.get(n),a=this.getKey(r);return i!==a}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var n=this.cachesByLvl,i=this.lvls,a=n.get(r);return a||(a=new l0,n.set(r,a),i.push(r)),a}},{key:"getCache",value:function(r,n){return this.getCachesAt(n).get(r)}},{key:"get",value:function(r,n){var i=this.getKey(r),a=this.getCache(i,n);return a!=null&&this.updateKeyMappingFor(r),a}},{key:"getForCachedKey",value:function(r,n){var i=this.keyForId.get(r.id()),a=this.getCache(i,n);return a}},{key:"hasCache",value:function(r,n){return this.getCachesAt(n).has(r)}},{key:"has",value:function(r,n){var i=this.getKey(r);return this.hasCache(i,n)}},{key:"setCache",value:function(r,n,i){i.key=r,this.getCachesAt(n).set(r,i)}},{key:"set",value:function(r,n,i){var a=this.getKey(r);this.setCache(a,n,i),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,n){this.getCachesAt(n).delete(r)}},{key:"delete",value:function(r,n){var i=this.getKey(r);this.deleteCache(i,n)}},{key:"invalidateKey",value:function(r){var n=this;this.lvls.forEach(function(i){return n.deleteCache(r,i)})}},{key:"invalidate",value:function(r){var n=r.id(),i=this.keyForId.get(n);this.deleteKeyMappingFor(r);var a=this.doesEleInvalidateKey(r);return a&&this.invalidateKey(i),a||this.getNumberOfIdsForKey(i)===0}}])})(),pae=25,u3=50,v5=-4,LB=3,Vbe=7.99,d1t=8,h1t=1024,f1t=1024,p1t=1024,g1t=.2,m1t=.8,y1t=10,v1t=.15,_1t=.1,b1t=.9,E1t=.9,S1t=100,T1t=1,Rm={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},x1t=es({getKey:null,doesEleInvalidateKey:C6,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:M_e,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),_E=function(e,r){var n=this;n.renderer=e,n.onDequeues=[];var i=x1t(r);Ir(n,i),n.lookup=new u1t(i.getKey,i.doesEleInvalidateKey),n.setupDequeueing()},Na=_E.prototype;Na.reasons=Rm;Na.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]};Na.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},n=r[t]=r[t]||[];return n};Na.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new wT(function(r,n){return n.reqs-r.reqs});return e};Na.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e};Na.getElement=function(t,e,r,n,i){var a=this,s=this.renderer,o=s.cy.zoom(),l=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!a.allowEdgeTxrCaching&&t.isEdge()||!a.allowParentTxrCaching&&t.isParent())return null;if(n==null&&(n=Math.ceil(Fq(o*r))),n=Vbe||n>LB)return null;var u=Math.pow(2,n),d=e.h*u,h=e.w*u,f=s.eleTextBiggerThanMin(t,u);if(!this.isVisible(t,f))return null;var p=l.get(t,n);if(p&&p.invalidated&&(p.invalidated=!1,p.texture.invalidatedWidth-=p.width),p)return p;var g;if(d<=pae?g=pae:d<=u3?g=u3:g=Math.ceil(d/u3)*u3,d>p1t||h>f1t)return null;var m=a.getTextureQueue(g),y=m[m.length-2],v=function(){return a.recycleTexture(g,h)||a.addTexture(g,h)};y||(y=m[m.length-1]),y||(y=v()),y.width-y.usedWidthn;M--)N=a.getElement(t,e,r,M,Rm.downscale);O()}else return a.queueElement(t,C.level-1),C;else{var $;if(!_&&!E&&!x)for(var F=n-1;F>=v5;F--){var A=l.get(t,F);if(A){$=A;break}}if(b($))return a.queueElement(t,n),$;y.context.translate(y.usedWidth,0),y.context.scale(u,u),this.drawElement(y.context,t,e,f,!1),y.context.scale(1/u,1/u),y.context.translate(-y.usedWidth,0)}return p={x:y.usedWidth,texture:y,level:n,scale:u,width:h,height:d,scaledLabelShown:f},y.usedWidth+=Math.ceil(h+d1t),y.eleCaches.push(p),l.set(t,n,p),a.checkTextureFullness(y),p};Na.invalidateElements=function(t){for(var e=0;e=g1t*t.width&&this.retireTexture(t)};Na.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>m1t&&t.fullnessChecks>=y1t?vh(r,t):t.fullnessChecks++};Na.retireTexture=function(t){var e=this,r=t.height,n=e.getTextureQueue(r),i=this.lookup;vh(n,t),t.retired=!0;for(var a=t.eleCaches,s=0;s=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,Bq(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),vh(i,s),n.push(s),s}};Na.queueElement=function(t,e){var r=this,n=r.getElementQueue(),i=r.getElementKeyToQueue(),a=this.getKey(t),s=i[a];if(s)s.level=Math.max(s.level,e),s.eles.merge(t),s.reqs++,n.updateItem(s);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:a};n.push(o),i[a]=o}};Na.dequeue=function(t){for(var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),i=[],a=e.lookup,s=0;s0;s++){var o=r.pop(),l=o.key,u=o.eles[0],d=a.hasCache(u,o.level);if(n[l]=null,d)continue;i.push(o);var h=e.getBoundingBox(u);e.getElement(u,h,t,o.level,Rm.dequeue)}return i};Na.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),i=this.getKey(t),a=n[i];a!=null&&(a.eles.length===1?(a.reqs=Mq,r.updateItem(a),r.pop(),n[i]=null):a.eles.unmerge(t))};Na.onDequeue=function(t){this.onDequeues.push(t)};Na.offDequeue=function(t){vh(this.onDequeues,t)};Na.setupDequeueing=Hbe.setupDequeueing({deqRedrawThreshold:S1t,deqCost:v1t,deqAvgCost:_1t,deqNoDrawCost:b1t,deqFastCost:E1t,deq:function(e,r,n){return e.dequeue(r,n)},onDeqd:function(e,r){for(var n=0;n=w1t||r>D6)return null}n.validateLayersElesOrdering(r,t);var l=n.layersByLevel,u=Math.pow(2,r),d=l[r]=l[r]||[],h,f=n.levelIsComplete(r,t),p,g=function(){var O=function(I){if(n.validateLayersElesOrdering(I,t),n.levelIsComplete(I,t))return p=l[I],!0},M=function(I){if(!p)for(var D=r+I;iS<=D&&D<=D6&&!O(D);D+=I);};M(1),M(-1);for(var $=d.length-1;$>=0;$--){var F=d[$];F.invalid&&vh(d,F)}};if(!f)g();else return d;var m=function(){if(!h){h=Ys();for(var O=0;Omae||F>mae)return null;var A=$*F;if(A>L1t)return null;var I=n.makeLayer(h,r);if(M!=null){var D=d.indexOf(M)+1;d.splice(D,0,I)}else(O.insert===void 0||O.insert)&&d.unshift(I);return I};if(n.skipping&&!o)return null;for(var v=null,b=t.length/C1t,_=!o,E=0;E=b||!U_e(v.bb,x.boundingBox()))&&(v=y({insert:!0,after:v}),!v))return null;p||_?n.queueLayer(v,x):n.drawEleInLayer(v,x,r,e),v.eles.push(x),T[r]=v}return p||(_?null:d)};ts.getEleLevelForLayerLevel=function(t,e){return t};ts.drawEleInLayer=function(t,e,r,n){var i=this,a=this.renderer,s=t.context,o=e.boundingBox();o.w===0||o.h===0||!e.visible()||(r=i.getEleLevelForLayerLevel(r,n),a.setImgSmoothing(s,!1),a.drawCachedElement(s,e,null,null,r,M1t),a.setImgSmoothing(s,!0))};ts.levelIsComplete=function(t,e){var r=this,n=r.layersByLevel[t];if(!n||n.length===0)return!1;for(var i=0,a=0;a0||s.invalid)return!1;i+=s.eles.length}return i===e.length};ts.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var n=0;n0){e=!0;break}}return e};ts.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=A0(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(n,i,a){e.invalidateLayer(n)}))};ts.invalidateLayer=function(t){if(this.lastInvalidationTime=A0(),!t.invalid){var e=t.level,r=t.eles,n=this.layersByLevel[e];vh(n,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o=e._private.rscratch;if(!(a&&!e.visible())&&!(o.badLine||o.allpts==null||isNaN(o.allpts[0]))){var l;r&&(l=r,t.translate(-l.x1,-l.y1));var u=a?e.pstyle("opacity").value:1,d=a?e.pstyle("line-opacity").value:1,h=e.pstyle("curve-style").value,f=e.pstyle("line-style").value,p=e.pstyle("width").pfValue,g=e.pstyle("line-cap").value,m=e.pstyle("line-outline-width").value,y=e.pstyle("line-outline-color").value,v=u*d,b=u*d,_=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;h==="straight-triangle"?(s.eleStrokeStyle(t,e,I),s.drawEdgeTrianglePath(e,t,o.allpts)):(t.lineWidth=p,t.lineCap=g,s.eleStrokeStyle(t,e,I),s.drawEdgePath(e,t,o.allpts,f),t.lineCap="butt")},E=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;if(t.lineWidth=p+m,t.lineCap=g,m>0)s.colorStrokeStyle(t,y[0],y[1],y[2],I);else{t.lineCap="butt";return}h==="straight-triangle"?s.drawEdgeTrianglePath(e,t,o.allpts):(s.drawEdgePath(e,t,o.allpts,f),t.lineCap="butt")},x=function(){i&&s.drawEdgeOverlay(t,e)},C=function(){i&&s.drawEdgeUnderlay(t,e)},T=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b;s.drawArrowheads(t,e,I)},w=function(){s.drawElementText(t,e,null,n)};t.lineJoin="round";var N=e.pstyle("ghost").value==="yes";if(N){var O=e.pstyle("ghost-offset-x").pfValue,M=e.pstyle("ghost-offset-y").pfValue,$=e.pstyle("ghost-opacity").value,F=v*$;t.translate(O,M),_(F),T(F),t.translate(-O,-M)}else E();C(),_(),T(),x(),w(),r&&t.translate(l.x1,l.y1)}};var Xbe=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,n){if(n.visible()){var i=n.pstyle("".concat(e,"-opacity")).value;if(i!==0){var a=this,s=a.usePaths(),o=n._private.rscratch,l=n.pstyle("".concat(e,"-padding")).pfValue,u=2*l,d=n.pstyle("".concat(e,"-color")).value;r.lineWidth=u,o.edgeType==="self"&&!s?r.lineCap="butt":r.lineCap="round",a.colorStrokeStyle(r,d[0],d[1],d[2],i),a.drawEdgePath(n,r,o.allpts,"solid")}}}};td.drawEdgeOverlay=Xbe("overlay");td.drawEdgeUnderlay=Xbe("underlay");td.drawEdgePath=function(t,e,r,n){var i=t._private.rscratch,a=e,s,o=!1,l=this.usePaths(),u=t.pstyle("line-dash-pattern").pfValue,d=t.pstyle("line-dash-offset").pfValue;if(l){var h=r.join("$"),f=i.pathCacheKey&&i.pathCacheKey===h;f?(s=e=i.pathCache,o=!0):(s=e=new Path2D,i.pathCacheKey=h,i.pathCache=s)}if(a.setLineDash)switch(n){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(u),a.lineDashOffset=d;break;case"solid":a.setLineDash([]);break}if(!o&&!i.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),i.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var p=2;p+35&&arguments[5]!==void 0?arguments[5]:!0,s=this;if(n==null){if(a&&!s.eleTextBiggerThanMin(e))return}else if(n===!1)return;if(e.isNode()){var o=e.pstyle("label");if(!o||!o.value)return;var l=s.getLabelJustification(e);t.textAlign=l,t.textBaseline="bottom"}else{var u=e.element()._private.rscratch.badLine,d=e.pstyle("label"),h=e.pstyle("source-label"),f=e.pstyle("target-label");if(u||(!d||!d.value)&&(!h||!h.value)&&(!f||!f.value))return;t.textAlign="center",t.textBaseline="bottom"}var p=!r,g;r&&(g=r,t.translate(-g.x1,-g.y1)),i==null?(s.drawText(t,e,null,p,a),e.isEdge()&&(s.drawText(t,e,"source",p,a),s.drawText(t,e,"target",p,a))):s.drawText(t,e,i,p,a),r&&t.translate(g.x1,g.y1)};ag.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!0,n=e.pstyle("font-style").strValue,i=e.pstyle("font-size").pfValue+"px",a=e.pstyle("font-family").strValue,s=e.pstyle("font-weight").strValue,o=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,l=e.pstyle("text-outline-opacity").value*o,u=e.pstyle("color").value,d=e.pstyle("text-outline-color").value;t.font=n+" "+s+" "+i+" "+a,t.lineJoin="round",this.colorFillStyle(t,u[0],u[1],u[2],o),this.colorStrokeStyle(t,d[0],d[1],d[2],l)};function V1t(t,e,r,n,i){var a=Math.min(n,i),s=a/2,o=e+n/2,l=r+i/2;t.beginPath(),t.arc(o,l,s,0,Math.PI*2),t.closePath()}function bae(t,e,r,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,s=Math.min(a,n/2,i/2);t.beginPath(),t.moveTo(e+s,r),t.lineTo(e+n-s,r),t.quadraticCurveTo(e+n,r,e+n,r+s),t.lineTo(e+n,r+i-s),t.quadraticCurveTo(e+n,r+i,e+n-s,r+i),t.lineTo(e+s,r+i),t.quadraticCurveTo(e,r+i,e,r+i-s),t.lineTo(e,r+s),t.quadraticCurveTo(e,r,e+s,r),t.closePath()}ag.getTextAngle=function(t,e){var r,n=t._private,i=n.rscratch,a=e?e+"-":"",s=t.pstyle(a+"text-rotation");if(s.strValue==="autorotate"){var o=ho(i,"labelAngle",e);r=t.isEdge()?o:0}else s.strValue==="none"?r=0:r=s.pfValue;return r};ag.drawText=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=e._private,s=a.rscratch,o=i?e.effectiveOpacity():1;if(!(i&&(o===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var l=ho(s,"labelX",r),u=ho(s,"labelY",r),d,h,f=this.getLabelText(e,r);if(f!=null&&f!==""&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(t,e,i);var p=r?r+"-":"",g=ho(s,"labelWidth",r),m=ho(s,"labelHeight",r),y=e.pstyle(p+"text-margin-x").pfValue,v=e.pstyle(p+"text-margin-y").pfValue,b=e.isEdge(),_=e.pstyle("text-halign").value,E=e.pstyle("text-valign").value;b&&(_="center",E="center"),l+=y,u+=v;var x;switch(n?x=this.getTextAngle(e,r):x=0,x!==0&&(d=l,h=u,t.translate(d,h),t.rotate(x),l=0,u=0),E){case"top":break;case"center":u+=m/2;break;case"bottom":u+=m;break}var C=e.pstyle("text-background-opacity").value,T=e.pstyle("text-border-opacity").value,w=e.pstyle("text-border-width").pfValue,N=e.pstyle("text-background-padding").pfValue,O=e.pstyle("text-background-shape").strValue,M=O==="round-rectangle"||O==="roundrectangle",$=O==="circle",F=2;if(C>0||w>0&&T>0){var A=t.fillStyle,I=t.strokeStyle,D=t.lineWidth,L=e.pstyle("text-background-color").value,R=e.pstyle("text-border-color").value,P=e.pstyle("text-border-style").value,z=C>0,B=w>0&&T>0,q=l-N;switch(_){case"left":q-=g;break;case"center":q-=g/2;break}var Y=u-m-N,Q=g+2*N,H=m+2*N;if(z&&(t.fillStyle="rgba(".concat(L[0],",").concat(L[1],",").concat(L[2],",").concat(C*o,")")),B&&(t.strokeStyle="rgba(".concat(R[0],",").concat(R[1],",").concat(R[2],",").concat(T*o,")"),t.lineWidth=w,t.setLineDash))switch(P){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=w/4,t.setLineDash([]);break;default:t.setLineDash([]);break}if(M?(t.beginPath(),bae(t,q,Y,Q,H,F)):$?(t.beginPath(),V1t(t,q,Y,Q,H)):(t.beginPath(),t.rect(q,Y,Q,H)),z&&t.fill(),B&&t.stroke(),B&&P==="double"){var J=w/2;t.beginPath(),M?bae(t,q+J,Y+J,Q-2*J,H-2*J,F):t.rect(q+J,Y+J,Q-2*J,H-2*J),t.stroke()}t.fillStyle=A,t.strokeStyle=I,t.lineWidth=D,t.setLineDash&&t.setLineDash([])}var Z=2*e.pstyle("text-outline-width").pfValue;if(Z>0&&(t.lineWidth=Z),e.pstyle("text-wrap").value==="wrap"){var pe=ho(s,"labelWrapCachedLines",r),re=ho(s,"labelLineHeight",r),ce=g/2,ae=this.getLabelJustification(e);switch(ae==="auto"||(_==="left"?ae==="left"?l+=-g:ae==="center"&&(l+=-ce):_==="center"?ae==="left"?l+=-ce:ae==="right"&&(l+=ce):_==="right"&&(ae==="center"?l+=ce:ae==="right"&&(l+=g))),E){case"top":u-=(pe.length-1)*re;break;case"center":case"bottom":u-=(pe.length-1)*re;break}for(var se=0;se0&&t.strokeText(pe[se],l,u),t.fillText(pe[se],l,u),u+=re}else Z>0&&t.strokeText(f,l,u),t.fillText(f,l,u);x!==0&&(t.rotate(-x),t.translate(-d,-h))}}};var Fh={};Fh.drawNode=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o,l,u=e._private,d=u.rscratch,h=e.position();if(!(!nr(h.x)||!nr(h.y))&&!(a&&!e.visible())){var f=a?e.effectiveOpacity():1,p=s.usePaths(),g,m=!1,y=e.padding();o=e.width()+2*y,l=e.height()+2*y;var v;r&&(v=r,t.translate(-v.x1,-v.y1));for(var b=e.pstyle("background-image"),_=b.value,E=new Array(_.length),x=new Array(_.length),C=0,T=0;T<_.length;T++){var w=_[T],N=E[T]=w!=null&&w!=="none";if(N){var O=e.cy().style().getIndexedStyle(e,"background-image-crossorigin","value",T);C++,x[T]=s.getCachedImage(w,O,function(){u.backgroundTimestamp=Date.now(),e.emitAndNotify("background")})}}var M=e.pstyle("background-blacken").value,$=e.pstyle("border-width").pfValue,F=e.pstyle("background-opacity").value*f,A=e.pstyle("border-color").value,I=e.pstyle("border-style").value,D=e.pstyle("border-join").value,L=e.pstyle("border-cap").value,R=e.pstyle("border-position").value,P=e.pstyle("border-dash-pattern").pfValue,z=e.pstyle("border-dash-offset").pfValue,B=e.pstyle("border-opacity").value*f,q=e.pstyle("outline-width").pfValue,Y=e.pstyle("outline-color").value,Q=e.pstyle("outline-style").value,H=e.pstyle("outline-opacity").value*f,J=e.pstyle("outline-offset").value,Z=e.pstyle("corner-radius").value;Z!=="auto"&&(Z=e.pstyle("corner-radius").pfValue);var pe=function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F;s.eleFillStyle(t,e,oe)},re=function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B;s.colorStrokeStyle(t,A[0],A[1],A[2],oe)},ce=function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:H;s.colorStrokeStyle(t,Y[0],Y[1],Y[2],oe)},ae=function(oe,de,G,ie){var j=s.nodePathCache=s.nodePathCache||[],V=L_e(G==="polygon"?G+","+ie.join(","):G,""+de,""+oe,""+Z),ue=j[V],Fe,me=!1;return ue!=null?(Fe=ue,me=!0,d.pathCache=Fe):(Fe=new Path2D,j[V]=d.pathCache=Fe),{path:Fe,cacheHit:me}},se=e.pstyle("shape").strValue,xe=e.pstyle("shape-polygon-points").pfValue;if(p){t.translate(h.x,h.y);var Te=ae(o,l,se,xe);g=Te.path,m=Te.cacheHit}var Ge=function(){if(!m){var oe=h;p&&(oe={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(g||t,oe.x,oe.y,o,l,Z,d)}p?t.fill(g):t.fill()},ze=function(){for(var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,G=u.backgrounding,ie=0,j=0;j0&&arguments[0]!==void 0?arguments[0]:!1,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;s.hasPie(e)&&(s.drawPie(t,e,de),oe&&(p||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,Z,d)))},Le=function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;s.hasStripe(e)&&(t.save(),p?t.clip(d.pathCache):(s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,Z,d),t.clip()),s.drawStripe(t,e,de),t.restore(),oe&&(p||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,Z,d)))},Re=function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,de=(M>0?M:-M)*oe,G=M>0?0:255;M!==0&&(s.colorFillStyle(t,G,G,G,de),p?t.fill(g):t.fill())},qe=function(){if($>0){if(t.lineWidth=$,t.lineCap=L,t.lineJoin=D,t.setLineDash)switch(I){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash(P),t.lineDashOffset=z;break;case"solid":case"double":t.setLineDash([]);break}if(R!=="center"){if(t.save(),t.lineWidth*=2,R==="inside")p?t.clip(g):t.clip();else{var oe=new Path2D;oe.rect(-o/2-$,-l/2-$,o+2*$,l+2*$),oe.addPath(g),t.clip(oe,"evenodd")}p?t.stroke(g):t.stroke(),t.restore()}else p?t.stroke(g):t.stroke();if(I==="double"){t.lineWidth=$/3;var de=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",p?t.stroke(g):t.stroke(),t.globalCompositeOperation=de}t.setLineDash&&t.setLineDash([])}},Ne=function(){if(q>0){if(t.lineWidth=q,t.lineCap="butt",t.setLineDash)switch(Q){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}var oe=h;p&&(oe={x:0,y:0});var de=s.getNodeShape(e),G=$;R==="inside"&&(G=0),R==="outside"&&(G*=2);var ie=(o+G+(q+J))/o,j=(l+G+(q+J))/l,V=o*ie,ue=l*j,Fe=s.nodeShapes[de].points,me;if(p){var Ce=ae(V,ue,de,Fe);me=Ce.path}if(de==="ellipse")s.drawEllipsePath(me||t,oe.x,oe.y,V,ue);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(de)){var ye=0,Me=0,Ie=0;de==="round-diamond"?ye=(G+J+q)*1.4:de==="round-heptagon"?(ye=(G+J+q)*1.075,Ie=-(G/2+J+q)/35):de==="round-hexagon"?ye=(G+J+q)*1.12:de==="round-pentagon"?(ye=(G+J+q)*1.13,Ie=-(G/2+J+q)/15):de==="round-tag"?(ye=(G+J+q)*1.12,Me=(G/2+q+J)*.07):de==="round-triangle"&&(ye=(G+J+q)*(Math.PI/2),Ie=-(G+J/2+q)/Math.PI),ye!==0&&(ie=(o+ye)/o,V=o*ie,["round-hexagon","round-tag"].includes(de)||(j=(l+ye)/l,ue=l*j)),Z=Z==="auto"?Y_e(V,ue):Z;for(var he=V/2,le=ue/2,Be=Z+(G+q+J)/2,ve=new Array(Fe.length/2),gt=new Array(Fe.length/2),Et=0;Et0){if(i=i||n.position(),a==null||s==null){var p=n.padding();a=n.width()+2*p,s=n.height()+2*p}o.colorFillStyle(r,d[0],d[1],d[2],u),o.nodeShapes[h].draw(r,i.x,i.y,a+l*2,s+l*2,f),r.fill()}}}};Fh.drawNodeOverlay=jbe("overlay");Fh.drawNodeUnderlay=jbe("underlay");Fh.hasPie=function(t){return t=t[0],t._private.hasPie};Fh.hasStripe=function(t){return t=t[0],t._private.hasStripe};Fh.drawPie=function(t,e,r,n){e=e[0],n=n||e.position();var i=e.cy().style(),a=e.pstyle("pie-size"),s=e.pstyle("pie-hole"),o=e.pstyle("pie-start-angle").pfValue,l=n.x,u=n.y,d=e.width(),h=e.height(),f=Math.min(d,h)/2,p,g=0,m=this.usePaths();if(m&&(l=0,u=0),a.units==="%"?f=f*a.pfValue:a.pfValue!==void 0&&(f=a.pfValue/2),s.units==="%"?p=f*s.pfValue:s.pfValue!==void 0&&(p=s.pfValue/2),!(p>=f))for(var y=1;y<=i.pieBackgroundN;y++){var v=e.pstyle("pie-"+y+"-background-size").value,b=e.pstyle("pie-"+y+"-background-color").value,_=e.pstyle("pie-"+y+"-background-opacity").value*r,E=v/100;E+g>1&&(E=1-g);var x=1.5*Math.PI+2*Math.PI*g;x+=o;var C=2*Math.PI*E,T=x+C;v===0||g>=1||g+E>1||(p===0?(t.beginPath(),t.moveTo(l,u),t.arc(l,u,f,x,T),t.closePath()):(t.beginPath(),t.arc(l,u,f,x,T),t.arc(l,u,p,T,x,!0),t.closePath()),this.colorFillStyle(t,b[0],b[1],b[2],_),t.fill(),g+=E)}};Fh.drawStripe=function(t,e,r,n){e=e[0],n=n||e.position();var i=e.cy().style(),a=n.x,s=n.y,o=e.width(),l=e.height(),u=0,d=this.usePaths();t.save();var h=e.pstyle("stripe-direction").value,f=e.pstyle("stripe-size");switch(h){case"vertical":break;case"righward":t.rotate(-Math.PI/2);break}var p=o,g=l;f.units==="%"?(p=p*f.pfValue,g=g*f.pfValue):f.pfValue!==void 0&&(p=f.pfValue,g=f.pfValue),d&&(a=0,s=0),s-=p/2,a-=g/2;for(var m=1;m<=i.stripeBackgroundN;m++){var y=e.pstyle("stripe-"+m+"-background-size").value,v=e.pstyle("stripe-"+m+"-background-color").value,b=e.pstyle("stripe-"+m+"-background-opacity").value*r,_=y/100;_+u>1&&(_=1-u),!(y===0||u>=1||u+_>1)&&(t.beginPath(),t.rect(a,s+g*u,p,g*_),t.closePath(),this.colorFillStyle(t,v[0],v[1],v[2],b),t.fill(),u+=_)}t.restore()};var to={},W1t=100;to.getPixelRatio=function(){var t=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=this.cy.window(),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(e.devicePixelRatio||1)/r};to.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,n,i=0;ie.minMbLowQualFrames&&(e.motionBlurPxRatio=e.mbPxRBlurry)),e.clearingMotionBlur&&(e.motionBlurPxRatio=1),e.textureDrawLastFrame&&!h&&(d[e.NODE]=!0,d[e.SELECT_BOX]=!0);var b=r.style(),_=r.zoom(),E=s!==void 0?s:_,x=r.pan(),C={x:x.x,y:x.y},T={zoom:_,pan:{x:x.x,y:x.y}},w=e.prevViewport,N=w===void 0||T.zoom!==w.zoom||T.pan.x!==w.pan.x||T.pan.y!==w.pan.y;!N&&!(m&&!g)&&(e.motionBlurPxRatio=1),o&&(C=o),E*=l,C.x*=l,C.y*=l;var O=e.getCachedZSortedEles();function M(re,ce,ae,se,xe){var Te=re.globalCompositeOperation;re.globalCompositeOperation="destination-out",e.colorFillStyle(re,255,255,255,e.motionBlurTransparency),re.fillRect(ce,ae,se,xe),re.globalCompositeOperation=Te}function $(re,ce){var ae,se,xe,Te;!e.clearingMotionBlur&&(re===u.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]||re===u.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG])?(ae={x:x.x*p,y:x.y*p},se=_*p,xe=e.canvasWidth*p,Te=e.canvasHeight*p):(ae=C,se=E,xe=e.canvasWidth,Te=e.canvasHeight),re.setTransform(1,0,0,1,0,0),ce==="motionBlur"?M(re,0,0,xe,Te):!n&&(ce===void 0||ce)&&re.clearRect(0,0,xe,Te),i||(re.translate(ae.x,ae.y),re.scale(se,se)),o&&re.translate(o.x,o.y),s&&re.scale(s,s)}if(h||(e.textureDrawLastFrame=!1),h){if(e.textureDrawLastFrame=!0,!e.textureCache){e.textureCache={},e.textureCache.bb=r.mutableElements().boundingBox(),e.textureCache.texture=e.data.bufferCanvases[e.TEXTURE_BUFFER];var F=e.data.bufferContexts[e.TEXTURE_BUFFER];F.setTransform(1,0,0,1,0,0),F.clearRect(0,0,e.canvasWidth*e.textureMult,e.canvasHeight*e.textureMult),e.render({forcedContext:F,drawOnlyNodeLayer:!0,forcedPxRatio:l*e.textureMult});var T=e.textureCache.viewport={zoom:r.zoom(),pan:r.pan(),width:e.canvasWidth,height:e.canvasHeight};T.mpan={x:(0-T.pan.x)/T.zoom,y:(0-T.pan.y)/T.zoom}}d[e.DRAG]=!1,d[e.NODE]=!1;var A=u.contexts[e.NODE],I=e.textureCache.texture,T=e.textureCache.viewport;A.setTransform(1,0,0,1,0,0),f?M(A,0,0,T.width,T.height):A.clearRect(0,0,T.width,T.height);var D=b.core("outside-texture-bg-color").value,L=b.core("outside-texture-bg-opacity").value;e.colorFillStyle(A,D[0],D[1],D[2],L),A.fillRect(0,0,T.width,T.height);var _=r.zoom();$(A,!1),A.clearRect(T.mpan.x,T.mpan.y,T.width/T.zoom/l,T.height/T.zoom/l),A.drawImage(I,T.mpan.x,T.mpan.y,T.width/T.zoom/l,T.height/T.zoom/l)}else e.textureOnViewport&&!n&&(e.textureCache=null);var R=r.extent(),P=e.pinching||e.hoverData.dragging||e.swipePanning||e.data.wheelZooming||e.hoverData.draggingEles||e.cy.animated(),z=e.hideEdgesOnViewport&&P,B=[];if(B[e.NODE]=!d[e.NODE]&&f&&!e.clearedForMotionBlur[e.NODE]||e.clearingMotionBlur,B[e.NODE]&&(e.clearedForMotionBlur[e.NODE]=!0),B[e.DRAG]=!d[e.DRAG]&&f&&!e.clearedForMotionBlur[e.DRAG]||e.clearingMotionBlur,B[e.DRAG]&&(e.clearedForMotionBlur[e.DRAG]=!0),d[e.NODE]||i||a||B[e.NODE]){var q=f&&!B[e.NODE]&&p!==1,A=n||(q?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]:u.contexts[e.NODE]),Y=f&&!q?"motionBlur":void 0;$(A,Y),z?e.drawCachedNodes(A,O.nondrag,l,R):e.drawLayeredElements(A,O.nondrag,l,R),e.debug&&e.drawDebugPoints(A,O.nondrag),!i&&!f&&(d[e.NODE]=!1)}if(!a&&(d[e.DRAG]||i||B[e.DRAG])){var q=f&&!B[e.DRAG]&&p!==1,A=n||(q?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG]:u.contexts[e.DRAG]);$(A,f&&!q?"motionBlur":void 0),z?e.drawCachedNodes(A,O.drag,l,R):e.drawCachedElements(A,O.drag,l,R),e.debug&&e.drawDebugPoints(A,O.drag),!i&&!f&&(d[e.DRAG]=!1)}if(this.drawSelectionRectangle(t,$),f&&p!==1){var Q=u.contexts[e.NODE],H=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE],J=u.contexts[e.DRAG],Z=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG],pe=function(ce,ae,se){ce.setTransform(1,0,0,1,0,0),se||!v?ce.clearRect(0,0,e.canvasWidth,e.canvasHeight):M(ce,0,0,e.canvasWidth,e.canvasHeight);var xe=p;ce.drawImage(ae,0,0,e.canvasWidth*xe,e.canvasHeight*xe,0,0,e.canvasWidth,e.canvasHeight)};(d[e.NODE]||B[e.NODE])&&(pe(Q,H,B[e.NODE]),d[e.NODE]=!1),(d[e.DRAG]||B[e.DRAG])&&(pe(J,Z,B[e.DRAG]),d[e.DRAG]=!1)}e.prevViewport=T,e.clearingMotionBlur&&(e.clearingMotionBlur=!1,e.motionBlurCleared=!0,e.motionBlur=!0),f&&(e.motionBlurTimeout=setTimeout(function(){e.motionBlurTimeout=null,e.clearedForMotionBlur[e.NODE]=!1,e.clearedForMotionBlur[e.DRAG]=!1,e.motionBlur=!1,e.clearingMotionBlur=!h,e.mbFrames=0,d[e.NODE]=!0,d[e.DRAG]=!0,e.redraw()},W1t)),n||r.emit("render")};var G2;to.drawSelectionRectangle=function(t,e){var r=this,n=r.cy,i=r.data,a=n.style(),s=t.drawOnlyNodeLayer,o=t.drawAllLayers,l=i.canvasNeedsRedraw,u=t.forcedContext;if(r.showFps||!s&&l[r.SELECT_BOX]&&!o){var d=u||i.contexts[r.SELECT_BOX];if(e(d),r.selection[4]==1&&(r.hoverData.selecting||r.touchData.selecting)){var h=r.cy.zoom(),f=a.core("selection-box-border-width").value/h;d.lineWidth=f,d.fillStyle="rgba("+a.core("selection-box-color").value[0]+","+a.core("selection-box-color").value[1]+","+a.core("selection-box-color").value[2]+","+a.core("selection-box-opacity").value+")",d.fillRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]),f>0&&(d.strokeStyle="rgba("+a.core("selection-box-border-color").value[0]+","+a.core("selection-box-border-color").value[1]+","+a.core("selection-box-border-color").value[2]+","+a.core("selection-box-opacity").value+")",d.strokeRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]))}if(i.bgActivePosistion&&!r.hoverData.selecting){var h=r.cy.zoom(),p=i.bgActivePosistion;d.fillStyle="rgba("+a.core("active-bg-color").value[0]+","+a.core("active-bg-color").value[1]+","+a.core("active-bg-color").value[2]+","+a.core("active-bg-opacity").value+")",d.beginPath(),d.arc(p.x,p.y,a.core("active-bg-size").pfValue/h,0,2*Math.PI),d.fill()}var g=r.lastRedrawTime;if(r.showFps&&g){g=Math.round(g);var m=Math.round(1e3/g),y="1 frame = "+g+" ms = "+m+" fps";if(d.setTransform(1,0,0,1,0,0),d.fillStyle="rgba(255, 0, 0, 0.75)",d.strokeStyle="rgba(255, 0, 0, 0.75)",d.font="30px Arial",!G2){var v=d.measureText(y);G2=v.actualBoundingBoxAscent}d.fillText(y,0,G2);var b=60;d.strokeRect(0,G2+10,250,20),d.fillRect(0,G2+10,250*Math.min(m/b,1),20)}o||(l[r.SELECT_BOX]=!1)}};function Eae(t,e,r){var n=t.createShader(e);if(t.shaderSource(n,r),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS))throw new Error(t.getShaderInfoLog(n));return n}function K1t(t,e,r){var n=Eae(t,t.VERTEX_SHADER,e),i=Eae(t,t.FRAGMENT_SHADER,r),a=t.createProgram();if(t.attachShader(a,n),t.attachShader(a,i),t.linkProgram(a),!t.getProgramParameter(a,t.LINK_STATUS))throw new Error("Could not initialize shaders");return a}function X1t(t,e,r){r===void 0&&(r=e);var n=t.makeOffscreenCanvas(e,r),i=n.context=n.getContext("2d");return n.clear=function(){return i.clearRect(0,0,n.width,n.height)},n.clear(),n}function tY(t){var e=t.pixelRatio,r=t.cy.zoom(),n=t.cy.pan();return{zoom:r*e,pan:{x:n.x*e,y:n.y*e}}}function j1t(t){var e=t.pixelRatio,r=t.cy.zoom();return r*e}function Q1t(t,e,r,n,i){var a=n*r+e.x,s=i*r+e.y;return s=Math.round(t.canvasHeight-s),[a,s]}function Z1t(t){return t.pstyle("background-fill").value!=="solid"||t.pstyle("background-image").strValue!=="none"?!1:t.pstyle("border-width").value===0||t.pstyle("border-opacity").value===0?!0:t.pstyle("border-style").value==="solid"}function J1t(t,e){if(t.length!==e.length)return!1;for(var r=0;r>0&255)/255,r[1]=(t>>8&255)/255,r[2]=(t>>16&255)/255,r[3]=(t>>24&255)/255,r}function eyt(t){return t[0]+(t[1]<<8)+(t[2]<<16)+(t[3]<<24)}function tyt(t,e){var r=t.createTexture();return r.buffer=function(n){t.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_NEAREST),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),t.generateMipmap(t.TEXTURE_2D),t.bindTexture(t.TEXTURE_2D,null)},r.deleteTexture=function(){t.deleteTexture(r)},r}function Qbe(t,e){switch(e){case"float":return[1,t.FLOAT,4];case"vec2":return[2,t.FLOAT,4];case"vec3":return[3,t.FLOAT,4];case"vec4":return[4,t.FLOAT,4];case"int":return[1,t.INT,4];case"ivec2":return[2,t.INT,4]}}function Zbe(t,e,r){switch(e){case t.FLOAT:return new Float32Array(r);case t.INT:return new Int32Array(r)}}function ryt(t,e,r,n,i,a){switch(e){case t.FLOAT:return new Float32Array(r.buffer,a*n,i);case t.INT:return new Int32Array(r.buffer,a*n,i)}}function nyt(t,e,r,n){var i=Qbe(t,e),a=Zi(i,2),s=a[0],o=a[1],l=Zbe(t,o,n),u=t.createBuffer();return t.bindBuffer(t.ARRAY_BUFFER,u),t.bufferData(t.ARRAY_BUFFER,l,t.STATIC_DRAW),o===t.FLOAT?t.vertexAttribPointer(r,s,o,!1,0,0):o===t.INT&&t.vertexAttribIPointer(r,s,o,0,0),t.enableVertexAttribArray(r),t.bindBuffer(t.ARRAY_BUFFER,null),u}function xc(t,e,r,n){var i=Qbe(t,r),a=Zi(i,3),s=a[0],o=a[1],l=a[2],u=Zbe(t,o,e*s),d=s*l,h=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,h),t.bufferData(t.ARRAY_BUFFER,e*d,t.DYNAMIC_DRAW),t.enableVertexAttribArray(n),o===t.FLOAT?t.vertexAttribPointer(n,s,o,!1,d,0):o===t.INT&&t.vertexAttribIPointer(n,s,o,d,0),t.vertexAttribDivisor(n,1),t.bindBuffer(t.ARRAY_BUFFER,null);for(var f=new Array(e),p=0;ps&&(o=s/n,l=n*o,u=i*o),{scale:o,texW:l,texH:u}}},{key:"draw",value:function(r,n,i){var a=this;if(this.locked)throw new Error("can't draw, atlas is locked");var s=this.texSize,o=this.texRows,l=this.texHeight,u=this.getScale(n),d=u.scale,h=u.texW,f=u.texH,p=function(_,E){if(i&&E){var x=E.context,C=_.x,T=_.row,w=C,N=l*T;x.save(),x.translate(w,N),x.scale(d,d),i(x,n),x.restore()}},g=[null,null],m=function(){p(a.freePointer,a.canvas),g[0]={x:a.freePointer.x,y:a.freePointer.row*l,w:h,h:f},g[1]={x:a.freePointer.x+h,y:a.freePointer.row*l,w:0,h:f},a.freePointer.x+=h,a.freePointer.x==s&&(a.freePointer.x=0,a.freePointer.row++)},y=function(){var _=a.scratch,E=a.canvas;_.clear(),p({x:0,row:0},_);var x=s-a.freePointer.x,C=h-x,T=l;{var w=a.freePointer.x,N=a.freePointer.row*l,O=x;E.context.drawImage(_,0,0,O,T,w,N,O,T),g[0]={x:w,y:N,w:O,h:f}}{var M=x,$=(a.freePointer.row+1)*l,F=C;E&&E.context.drawImage(_,M,0,F,T,0,$,F,T),g[1]={x:0,y:$,w:F,h:f}}a.freePointer.x=C,a.freePointer.row++},v=function(){a.freePointer.x=0,a.freePointer.row++};if(this.freePointer.x+h<=s)m();else{if(this.freePointer.row>=o-1)return!1;this.freePointer.x===s?(v(),m()):this.enableWrapping?y():(v(),m())}return this.keyToLocation.set(r,g),this.needsBuffer=!0,g}},{key:"getOffsets",value:function(r){return this.keyToLocation.get(r)}},{key:"isEmpty",value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:"canFit",value:function(r){if(this.locked)return!1;var n=this.texSize,i=this.texRows,a=this.getScale(r),s=a.texW;return this.freePointer.x+s>n?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},a=i.forceRedraw,s=a===void 0?!1:a,o=i.filterEle,l=o===void 0?function(){return!0}:o,u=i.filterType,d=u===void 0?function(){return!0}:u,h=!1,f=!1,p=yo(r),g;try{for(p.s();!(g=p.n()).done;){var m=g.value;if(l(m)){var y=yo(this.renderTypes.values()),v;try{var b=function(){var E=v.value,x=E.type;if(d(x)){var C=n.collections.get(E.collection),T=E.getKey(m),w=Array.isArray(T)?T:[T];if(s)w.forEach(function($){return C.markKeyForGC($)}),f=!0;else{var N=E.getID?E.getID(m):m.id(),O=n._key(x,N),M=n.typeAndIdToKey.get(O);M!==void 0&&!J1t(w,M)&&(h=!0,n.typeAndIdToKey.delete(O),M.forEach(function($){return C.markKeyForGC($)}))}}};for(y.s();!(v=y.n()).done;)b()}catch(_){y.e(_)}finally{y.f()}}}}catch(_){p.e(_)}finally{p.f()}return f&&(this.gc(),h=!1),h}},{key:"gc",value:function(){var r=yo(this.collections.values()),n;try{for(r.s();!(n=r.n()).done;){var i=n.value;i.gc()}}catch(a){r.e(a)}finally{r.f()}}},{key:"getOrCreateAtlas",value:function(r,n,i,a){var s=this.renderTypes.get(n),o=this.collections.get(s.collection),l=!1,u=o.draw(a,i,function(f){s.drawClipped?(f.save(),f.beginPath(),f.rect(0,0,i.w,i.h),f.clip(),s.drawElement(f,r,i,!0,!0),f.restore()):s.drawElement(f,r,i,!0,!0),l=!0});if(l){var d=s.getID?s.getID(r):r.id(),h=this._key(n,d);this.typeAndIdToKey.has(h)?this.typeAndIdToKey.get(h).push(a):this.typeAndIdToKey.set(h,[a])}return u}},{key:"getAtlasInfo",value:function(r,n){var i=this,a=this.renderTypes.get(n),s=a.getKey(r),o=Array.isArray(s)?s:[s];return o.map(function(l){var u=a.getBoundingBox(r,l),d=i.getOrCreateAtlas(r,n,u,l),h=d.getOffsets(l),f=Zi(h,2),p=f[0],g=f[1];return{atlas:d,tex:p,tex1:p,tex2:g,bb:u}})}},{key:"getDebugInfo",value:function(){var r=[],n=yo(this.collections),i;try{for(n.s();!(i=n.n()).done;){var a=Zi(i.value,2),s=a[0],o=a[1],l=o.getCounts(),u=l.keyCount,d=l.atlasCount;r.push({type:s,keyCount:u,atlasCount:d})}}catch(h){n.e(h)}finally{n.f()}return r}}])})(),hyt=(function(){function t(e){Mh(this,t),this.globalOptions=e,this.atlasSize=e.webglTexSize,this.maxAtlasesPerBatch=e.webglTexPerBatch,this.batchAtlases=[]}return Ph(t,[{key:"getMaxAtlasesPerBatch",value:function(){return this.maxAtlasesPerBatch}},{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"getIndexArray",value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(r,n){return n})}},{key:"startBatch",value:function(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function(){return this.batchAtlases.length}},{key:"getAtlases",value:function(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function(r){return this.batchAtlases.length===this.maxAtlasesPerBatch?this.batchAtlases.includes(r):!0}},{key:"getAtlasIndexForBatch",value:function(r){var n=this.batchAtlases.indexOf(r);if(n<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw new Error("cannot add more atlases to batch");this.batchAtlases.push(r),n=this.batchAtlases.length-1}return n}}])})(),fyt=` +`),y=0;y1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),o)for(var l=0;l=t.desktopTapThreshold2}var fe=a(G);gt&&(t.hoverData.tapholdCancelled=!0);var It=function(){var Ct=t.hoverData.dragDelta=t.hoverData.dragDelta||[];Ct.length===0?(Ct.push(Be[0]),Ct.push(Be[1])):(Ct[0]+=Be[0],Ct[1]+=Be[1])};j=!0,i(Ie,["mousemove","vmousemove","tapdrag"],G,{x:me[0],y:me[1]});var St=function(Ct){return{originalEvent:G,type:Ct,position:{x:me[0],y:me[1]}}},Tt=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||V.emit(St("boxstart")),Me[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(gt){var Nt=St("cxtdrag");le?le.emit(Nt):V.emit(Nt),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||Ie!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit(St("cxtdragout")),t.hoverData.cxtOver=Ie,Ie&&Ie.emit(St("cxtdragover")))}}else if(t.hoverData.dragging){if(j=!0,V.panningEnabled()&&V.userPanningEnabled()){var Hr;if(t.hoverData.justStartedPan){var Pe=t.hoverData.mdownPos;Hr={x:(me[0]-Pe[0])*ue,y:(me[1]-Pe[1])*ue},t.hoverData.justStartedPan=!1}else Hr={x:Be[0]*ue,y:Be[1]*ue};V.panBy(Hr),V.emit(St("dragpan")),t.hoverData.dragged=!0}me=t.projectIntoViewport(G.clientX,G.clientY)}else if(Me[4]==1&&(le==null||le.pannable())){if(gt){if(!t.hoverData.dragging&&V.boxSelectionEnabled()&&(fe||!V.panningEnabled()||!V.userPanningEnabled()))Tt();else if(!t.hoverData.selecting&&V.panningEnabled()&&V.userPanningEnabled()){var yt=s(le,t.hoverData.downs);yt&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,Me[4]=0,t.data.bgActivePosistion=km(Ce),t.redrawHint("select",!0),t.redraw())}le&&le.pannable()&&le.active()&&le.unactivate()}}else{if(le&&le.pannable()&&le.active()&&le.unactivate(),(!le||!le.grabbed())&&Ie!=he&&(he&&i(he,["mouseout","tapdragout"],G,{x:me[0],y:me[1]}),Ie&&i(Ie,["mouseover","tapdragover"],G,{x:me[0],y:me[1]}),t.hoverData.last=Ie),le)if(gt){if(V.boxSelectionEnabled()&&fe)le&&le.grabbed()&&(v(ve),le.emit(St("freeon")),ve.emit(St("free")),t.dragData.didDrag&&(le.emit(St("dragfreeon")),ve.emit(St("dragfree")))),Tt();else if(le&&le.grabbed()&&t.nodeIsDraggable(le)){var bt=!t.dragData.didDrag;bt&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||m(ve,{inDragLayer:!0});var Ot={x:0,y:0};if(nr(Be[0])&&nr(Be[1])&&(Ot.x+=Be[0],Ot.y+=Be[1],bt)){var Qt=t.hoverData.dragDelta;Qt&&nr(Qt[0])&&nr(Qt[1])&&(Ot.x+=Qt[0],Ot.y+=Qt[1])}t.hoverData.draggingEles=!0,ve.silentShift(Ot).emit(St("position")).emit(St("drag")),t.redrawHint("drag",!0),t.redraw()}}else It();j=!0}if(Me[2]=me[0],Me[3]=me[1],j)return G.stopPropagation&&G.stopPropagation(),G.preventDefault&&G.preventDefault(),!1}},!1);var $,F,A;t.registerBinding(e,"mouseup",function(G){if(!(t.hoverData.which===1&&G.which!==1&&t.hoverData.capture)){var ie=t.hoverData.capture;if(ie){t.hoverData.capture=!1;var j=t.cy,V=t.projectIntoViewport(G.clientX,G.clientY),ue=t.selection,Fe=t.findNearestElement(V[0],V[1],!0,!1),me=t.dragData.possibleDragElements,Ce=t.hoverData.down,ye=a(G);t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,Ce&&Ce.unactivate();var Me=function(Et){return{originalEvent:G,type:Et,position:{x:V[0],y:V[1]}}};if(t.hoverData.which===3){var Ie=Me("cxttapend");if(Ce?Ce.emit(Ie):j.emit(Ie),!t.hoverData.cxtDragged){var he=Me("cxttap");Ce?Ce.emit(he):j.emit(he)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(i(Fe,["mouseup","tapend","vmouseup"],G,{x:V[0],y:V[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(i(Ce,["click","tap","vclick"],G,{x:V[0],y:V[1]}),F=!1,G.timeStamp-A<=j.multiClickDebounceTime()?($&&clearTimeout($),F=!0,A=null,i(Ce,["dblclick","dbltap","vdblclick"],G,{x:V[0],y:V[1]})):($=setTimeout(function(){F||i(Ce,["oneclick","onetap","voneclick"],G,{x:V[0],y:V[1]})},j.multiClickDebounceTime()),A=G.timeStamp)),Ce==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!a(G)&&(j.$(r).unselect(["tapunselect"]),me.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=me=j.collection()),Fe==Ce&&!t.dragData.didDrag&&!t.hoverData.selecting&&Fe!=null&&Fe._private.selectable&&(t.hoverData.dragging||(j.selectionType()==="additive"||ye?Fe.selected()?Fe.unselect(["tapunselect"]):Fe.select(["tapselect"]):ye||(j.$(r).unmerge(Fe).unselect(["tapunselect"]),Fe.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var le=j.collection(t.getAllInBox(ue[0],ue[1],ue[2],ue[3]));t.redrawHint("select",!0),le.length>0&&t.redrawHint("eles",!0),j.emit(Me("boxend"));var Be=function(Et){return Et.selectable()&&!Et.selected()};j.selectionType()==="additive"||ye||j.$(r).unmerge(le).unselect(),le.emit(Me("box")).stdFilter(Be).select().emit(Me("boxselect")),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!ue[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var ve=Ce&&Ce.grabbed();v(me),ve&&(Ce.emit(Me("freeon")),me.emit(Me("free")),t.dragData.didDrag&&(Ce.emit(Me("dragfreeon")),me.emit(Me("dragfree"))))}}ue[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null,t.hoverData.which=null}}},!1);var I=[],D=4,L,R=1e5,P=function(G,ie){for(var j=0;j=D){var V=I;if(L=P(V,5),!L){var ue=Math.abs(V[0]);L=z(V)&&ue>5}if(L)for(var Fe=0;Fe5&&(j=$q(j)*5),he=j/-250,L&&(he/=R,he*=3),he=he*t.wheelSensitivity;var le=G.deltaMode===1;le&&(he*=33);var Be=me.zoom()*Math.pow(10,he);G.type==="gesturechange"&&(Be=t.gestureStartZoom*G.scale),me.zoom({level:Be,renderedPosition:{x:Ie[0],y:Ie[1]}}),me.emit({type:G.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:G,position:{x:Me[0],y:Me[1]}})}}}};t.registerBinding(t.container,"wheel",B,!0),t.registerBinding(e,"scroll",function(G){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(G){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||G.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(de){t.hasTouchStarted||B(de)},!0),t.registerBinding(t.container,"mouseout",function(G){var ie=t.projectIntoViewport(G.clientX,G.clientY);t.cy.emit({originalEvent:G,type:"mouseout",position:{x:ie[0],y:ie[1]}})},!1),t.registerBinding(t.container,"mouseover",function(G){var ie=t.projectIntoViewport(G.clientX,G.clientY);t.cy.emit({originalEvent:G,type:"mouseover",position:{x:ie[0],y:ie[1]}})},!1);var q,Y,Q,H,J,Z,pe,re,ce,ae,se,xe,Te,Ge=function(G,ie,j,V){return Math.sqrt((j-G)*(j-G)+(V-ie)*(V-ie))},ze=function(G,ie,j,V){return(j-G)*(j-G)+(V-ie)*(V-ie)},Xe;t.registerBinding(t.container,"touchstart",Xe=function(G){if(t.hasTouchStarted=!0,!!O(G)){_(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var ie=t.cy,j=t.touchData.now,V=t.touchData.earlier;if(G.touches[0]){var ue=t.projectIntoViewport(G.touches[0].clientX,G.touches[0].clientY);j[0]=ue[0],j[1]=ue[1]}if(G.touches[1]){var ue=t.projectIntoViewport(G.touches[1].clientX,G.touches[1].clientY);j[2]=ue[0],j[3]=ue[1]}if(G.touches[2]){var ue=t.projectIntoViewport(G.touches[2].clientX,G.touches[2].clientY);j[4]=ue[0],j[5]=ue[1]}var Fe=function(fe){return{originalEvent:G,type:fe,position:{x:j[0],y:j[1]}}};if(G.touches[1]){t.touchData.singleTouchMoved=!0,v(t.dragData.touchDragEles);var me=t.findContainerClientCoords();ce=me[0],ae=me[1],se=me[2],xe=me[3],q=G.touches[0].clientX-ce,Y=G.touches[0].clientY-ae,Q=G.touches[1].clientX-ce,H=G.touches[1].clientY-ae,Te=0<=q&&q<=se&&0<=Q&&Q<=se&&0<=Y&&Y<=xe&&0<=H&&H<=xe;var Ce=ie.pan(),ye=ie.zoom();J=Ge(q,Y,Q,H),Z=ze(q,Y,Q,H),pe=[(q+Q)/2,(Y+H)/2],re=[(pe[0]-Ce.x)/ye,(pe[1]-Ce.y)/ye];var Me=200,Ie=Me*Me;if(Z=1){for(var et=t.touchData.startPosition=[null,null,null,null,null,null],dt=0;dt=t.touchTapThreshold2}if(ie&&t.touchData.cxt){G.preventDefault();var dt=G.touches[0].clientX-ce,ft=G.touches[0].clientY-ae,mt=G.touches[1].clientX-ce,fe=G.touches[1].clientY-ae,It=ze(dt,ft,mt,fe),St=It/Z,Tt=150,Nt=Tt*Tt,Hr=1.5,Pe=Hr*Hr;if(St>=Pe||It>=Nt){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var yt=ye("cxttapend");t.touchData.start?(t.touchData.start.unactivate().emit(yt),t.touchData.start=null):V.emit(yt)}}if(ie&&t.touchData.cxt){var yt=ye("cxtdrag");t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(yt):V.emit(yt),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var bt=t.findNearestElement(ue[0],ue[1],!0,!0);(!t.touchData.cxtOver||bt!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit(ye("cxtdragout")),t.touchData.cxtOver=bt,bt&&bt.emit(ye("cxtdragover")))}else if(ie&&G.touches[2]&&V.boxSelectionEnabled())G.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||V.emit(ye("boxstart")),t.touchData.selecting=!0,t.touchData.didSelect=!0,j[4]=1,!j||j.length===0||j[0]===void 0?(j[0]=(ue[0]+ue[2]+ue[4])/3,j[1]=(ue[1]+ue[3]+ue[5])/3,j[2]=(ue[0]+ue[2]+ue[4])/3+1,j[3]=(ue[1]+ue[3]+ue[5])/3+1):(j[2]=(ue[0]+ue[2]+ue[4])/3,j[3]=(ue[1]+ue[3]+ue[5])/3),t.redrawHint("select",!0),t.redraw();else if(ie&&G.touches[1]&&!t.touchData.didSelect&&V.zoomingEnabled()&&V.panningEnabled()&&V.userZoomingEnabled()&&V.userPanningEnabled()){G.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Ot=t.dragData.touchDragEles;if(Ot){t.redrawHint("drag",!0);for(var Qt=0;Qt0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1);var Re;t.registerBinding(e,"touchcancel",Re=function(G){var ie=t.touchData.start;t.touchData.capture=!1,ie&&ie.unactivate()});var qe,Ne,ut,De;if(t.registerBinding(e,"touchend",qe=function(G){var ie=t.touchData.start,j=t.touchData.capture;if(j)G.touches.length===0&&(t.touchData.capture=!1),G.preventDefault();else return;var V=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var ue=t.cy,Fe=ue.zoom(),me=t.touchData.now,Ce=t.touchData.earlier;if(G.touches[0]){var ye=t.projectIntoViewport(G.touches[0].clientX,G.touches[0].clientY);me[0]=ye[0],me[1]=ye[1]}if(G.touches[1]){var ye=t.projectIntoViewport(G.touches[1].clientX,G.touches[1].clientY);me[2]=ye[0],me[3]=ye[1]}if(G.touches[2]){var ye=t.projectIntoViewport(G.touches[2].clientX,G.touches[2].clientY);me[4]=ye[0],me[5]=ye[1]}var Me=function(Nt){return{originalEvent:G,type:Nt,position:{x:me[0],y:me[1]}}};ie&&ie.unactivate();var Ie;if(t.touchData.cxt){if(Ie=Me("cxttapend"),ie?ie.emit(Ie):ue.emit(Ie),!t.touchData.cxtDragged){var he=Me("cxttap");ie?ie.emit(he):ue.emit(he)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!G.touches[2]&&ue.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var le=ue.collection(t.getAllInBox(V[0],V[1],V[2],V[3]));V[0]=void 0,V[1]=void 0,V[2]=void 0,V[3]=void 0,V[4]=0,t.redrawHint("select",!0),ue.emit(Me("boxend"));var Be=function(Nt){return Nt.selectable()&&!Nt.selected()};le.emit(Me("box")).stdFilter(Be).select().emit(Me("boxselect")),le.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(ie?.unactivate(),G.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!G.touches[1]){if(!G.touches[0]){if(!G.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var ve=t.dragData.touchDragEles;if(ie!=null){var gt=ie._private.grabbed;v(ve),t.redrawHint("drag",!0),t.redrawHint("eles",!0),gt&&(ie.emit(Me("freeon")),ve.emit(Me("free")),t.dragData.didDrag&&(ie.emit(Me("dragfreeon")),ve.emit(Me("dragfree")))),i(ie,["touchend","tapend","vmouseup","tapdragout"],G,{x:me[0],y:me[1]}),ie.unactivate(),t.touchData.start=null}else{var Et=t.findNearestElement(me[0],me[1],!0,!0);i(Et,["touchend","tapend","vmouseup","tapdragout"],G,{x:me[0],y:me[1]})}var et=t.touchData.startPosition[0]-me[0],dt=et*et,ft=t.touchData.startPosition[1]-me[1],mt=ft*ft,fe=dt+mt,It=fe*Fe*Fe;t.touchData.singleTouchMoved||(ie||ue.$(":selected").unselect(["tapunselect"]),i(ie,["tap","vclick"],G,{x:me[0],y:me[1]}),Ne=!1,G.timeStamp-De<=ue.multiClickDebounceTime()?(ut&&clearTimeout(ut),Ne=!0,De=null,i(ie,["dbltap","vdblclick"],G,{x:me[0],y:me[1]})):(ut=setTimeout(function(){Ne||i(ie,["onetap","voneclick"],G,{x:me[0],y:me[1]})},ue.multiClickDebounceTime()),De=G.timeStamp)),ie!=null&&!t.dragData.didDrag&&ie._private.selectable&&It"u"){var Je=[],st=function(G){return{clientX:G.clientX,clientY:G.clientY,force:1,identifier:G.pointerId,pageX:G.pageX,pageY:G.pageY,radiusX:G.width/2,radiusY:G.height/2,screenX:G.screenX,screenY:G.screenY,target:G.target}},ct=function(G){return{event:G,touch:st(G)}},ot=function(G){Je.push(ct(G))},it=function(G){for(var ie=0;ie0)return q[0]}return null},g=Object.keys(f),m=0;m0?p:G_e(a,s,e,r,n,i,o,l)},checkPoint:function(e,r,n,i,a,s,o,l){l=l==="auto"?_h(i,a):l;var u=2*l;if(R0(e,r,this.points,s,o,i,a-u,[0,-1],n)||R0(e,r,this.points,s,o,i-u,a,[0,-1],n))return!0;var d=i/2+2*n,h=a/2+2*n,f=[s-d,o-h,s-d,o,s+d,o,s+d,o-h];return!!(fo(e,r,f)||np(e,r,u,u,s+i/2-l,o+a/2-l,n)||np(e,r,u,u,s-i/2+l,o+a/2-l,n))}}};ed.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",ws(3,0)),this.generateRoundPolygon("round-triangle",ws(3,0)),this.generatePolygon("rectangle",ws(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",ws(5,0)),this.generateRoundPolygon("round-pentagon",ws(5,0)),this.generatePolygon("hexagon",ws(6,0)),this.generateRoundPolygon("round-hexagon",ws(6,0)),this.generatePolygon("heptagon",ws(7,0)),this.generateRoundPolygon("round-heptagon",ws(7,0)),this.generatePolygon("octagon",ws(8,0)),this.generateRoundPolygon("round-octagon",ws(8,0));var n=new Array(20);{var i=bB(5,0),a=bB(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var o=0;o=e.deqFastCost*E)break}else if(u){if(b>=e.deqCost*p||b>=e.deqAvgCost*f)break}else if(_>=e.deqNoDrawCost*pL)break;var x=e.deq(n,y,m);if(x.length>0)for(var C=0;C0&&(e.onDeqd(n,g),!u&&e.shouldRedraw(n,g,y,m)&&a())},o=e.priority||Pq;i.beforeRender(s,o(n))}}}},d1t=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C6;Mh(this,t),this.idsByKey=new l0,this.keyForId=new l0,this.cachesByLvl=new l0,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return Ph(t,[{key:"getIdsFor",value:function(r){r==null&&ui("Can not get id list for null key");var n=this.idsByKey,i=this.idsByKey.get(r);return i||(i=new t2,n.set(r,i)),i}},{key:"addIdForKey",value:function(r,n){r!=null&&this.getIdsFor(r).add(n)}},{key:"deleteIdForKey",value:function(r,n){r!=null&&this.getIdsFor(r).delete(n)}},{key:"getNumberOfIdsForKey",value:function(r){return r==null?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var n=r.id(),i=this.keyForId.get(n),a=this.getKey(r);this.deleteIdForKey(i,n),this.addIdForKey(a,n),this.keyForId.set(n,a)}},{key:"deleteKeyMappingFor",value:function(r){var n=r.id(),i=this.keyForId.get(n);this.deleteIdForKey(i,n),this.keyForId.delete(n)}},{key:"keyHasChangedFor",value:function(r){var n=r.id(),i=this.keyForId.get(n),a=this.getKey(r);return i!==a}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var n=this.cachesByLvl,i=this.lvls,a=n.get(r);return a||(a=new l0,n.set(r,a),i.push(r)),a}},{key:"getCache",value:function(r,n){return this.getCachesAt(n).get(r)}},{key:"get",value:function(r,n){var i=this.getKey(r),a=this.getCache(i,n);return a!=null&&this.updateKeyMappingFor(r),a}},{key:"getForCachedKey",value:function(r,n){var i=this.keyForId.get(r.id()),a=this.getCache(i,n);return a}},{key:"hasCache",value:function(r,n){return this.getCachesAt(n).has(r)}},{key:"has",value:function(r,n){var i=this.getKey(r);return this.hasCache(i,n)}},{key:"setCache",value:function(r,n,i){i.key=r,this.getCachesAt(n).set(r,i)}},{key:"set",value:function(r,n,i){var a=this.getKey(r);this.setCache(a,n,i),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,n){this.getCachesAt(n).delete(r)}},{key:"delete",value:function(r,n){var i=this.getKey(r);this.deleteCache(i,n)}},{key:"invalidateKey",value:function(r){var n=this;this.lvls.forEach(function(i){return n.deleteCache(r,i)})}},{key:"invalidate",value:function(r){var n=r.id(),i=this.keyForId.get(n);this.deleteKeyMappingFor(r);var a=this.doesEleInvalidateKey(r);return a&&this.invalidateKey(i),a||this.getNumberOfIdsForKey(i)===0}}])})(),pae=25,u3=50,v5=-4,LB=3,Vbe=7.99,h1t=8,f1t=1024,p1t=1024,g1t=1024,m1t=.2,y1t=.8,v1t=10,_1t=.15,b1t=.1,E1t=.9,S1t=.9,T1t=100,x1t=1,Rm={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},C1t=es({getKey:null,doesEleInvalidateKey:C6,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:M_e,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),_E=function(e,r){var n=this;n.renderer=e,n.onDequeues=[];var i=C1t(r);Ir(n,i),n.lookup=new d1t(i.getKey,i.doesEleInvalidateKey),n.setupDequeueing()},Na=_E.prototype;Na.reasons=Rm;Na.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]};Na.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},n=r[t]=r[t]||[];return n};Na.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new wT(function(r,n){return n.reqs-r.reqs});return e};Na.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e};Na.getElement=function(t,e,r,n,i){var a=this,s=this.renderer,o=s.cy.zoom(),l=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!a.allowEdgeTxrCaching&&t.isEdge()||!a.allowParentTxrCaching&&t.isParent())return null;if(n==null&&(n=Math.ceil(Fq(o*r))),n=Vbe||n>LB)return null;var u=Math.pow(2,n),d=e.h*u,h=e.w*u,f=s.eleTextBiggerThanMin(t,u);if(!this.isVisible(t,f))return null;var p=l.get(t,n);if(p&&p.invalidated&&(p.invalidated=!1,p.texture.invalidatedWidth-=p.width),p)return p;var g;if(d<=pae?g=pae:d<=u3?g=u3:g=Math.ceil(d/u3)*u3,d>g1t||h>p1t)return null;var m=a.getTextureQueue(g),y=m[m.length-2],v=function(){return a.recycleTexture(g,h)||a.addTexture(g,h)};y||(y=m[m.length-1]),y||(y=v()),y.width-y.usedWidthn;M--)N=a.getElement(t,e,r,M,Rm.downscale);O()}else return a.queueElement(t,C.level-1),C;else{var $;if(!_&&!E&&!x)for(var F=n-1;F>=v5;F--){var A=l.get(t,F);if(A){$=A;break}}if(b($))return a.queueElement(t,n),$;y.context.translate(y.usedWidth,0),y.context.scale(u,u),this.drawElement(y.context,t,e,f,!1),y.context.scale(1/u,1/u),y.context.translate(-y.usedWidth,0)}return p={x:y.usedWidth,texture:y,level:n,scale:u,width:h,height:d,scaledLabelShown:f},y.usedWidth+=Math.ceil(h+h1t),y.eleCaches.push(p),l.set(t,n,p),a.checkTextureFullness(y),p};Na.invalidateElements=function(t){for(var e=0;e=m1t*t.width&&this.retireTexture(t)};Na.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>y1t&&t.fullnessChecks>=v1t?vh(r,t):t.fullnessChecks++};Na.retireTexture=function(t){var e=this,r=t.height,n=e.getTextureQueue(r),i=this.lookup;vh(n,t),t.retired=!0;for(var a=t.eleCaches,s=0;s=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,Bq(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),vh(i,s),n.push(s),s}};Na.queueElement=function(t,e){var r=this,n=r.getElementQueue(),i=r.getElementKeyToQueue(),a=this.getKey(t),s=i[a];if(s)s.level=Math.max(s.level,e),s.eles.merge(t),s.reqs++,n.updateItem(s);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:a};n.push(o),i[a]=o}};Na.dequeue=function(t){for(var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),i=[],a=e.lookup,s=0;s0;s++){var o=r.pop(),l=o.key,u=o.eles[0],d=a.hasCache(u,o.level);if(n[l]=null,d)continue;i.push(o);var h=e.getBoundingBox(u);e.getElement(u,h,t,o.level,Rm.dequeue)}return i};Na.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),i=this.getKey(t),a=n[i];a!=null&&(a.eles.length===1?(a.reqs=Mq,r.updateItem(a),r.pop(),n[i]=null):a.eles.unmerge(t))};Na.onDequeue=function(t){this.onDequeues.push(t)};Na.offDequeue=function(t){vh(this.onDequeues,t)};Na.setupDequeueing=Hbe.setupDequeueing({deqRedrawThreshold:T1t,deqCost:_1t,deqAvgCost:b1t,deqNoDrawCost:E1t,deqFastCost:S1t,deq:function(e,r,n){return e.dequeue(r,n)},onDeqd:function(e,r){for(var n=0;n=k1t||r>D6)return null}n.validateLayersElesOrdering(r,t);var l=n.layersByLevel,u=Math.pow(2,r),d=l[r]=l[r]||[],h,f=n.levelIsComplete(r,t),p,g=function(){var O=function(I){if(n.validateLayersElesOrdering(I,t),n.levelIsComplete(I,t))return p=l[I],!0},M=function(I){if(!p)for(var D=r+I;iS<=D&&D<=D6&&!O(D);D+=I);};M(1),M(-1);for(var $=d.length-1;$>=0;$--){var F=d[$];F.invalid&&vh(d,F)}};if(!f)g();else return d;var m=function(){if(!h){h=Ys();for(var O=0;Omae||F>mae)return null;var A=$*F;if(A>M1t)return null;var I=n.makeLayer(h,r);if(M!=null){var D=d.indexOf(M)+1;d.splice(D,0,I)}else(O.insert===void 0||O.insert)&&d.unshift(I);return I};if(n.skipping&&!o)return null;for(var v=null,b=t.length/w1t,_=!o,E=0;E=b||!U_e(v.bb,x.boundingBox()))&&(v=y({insert:!0,after:v}),!v))return null;p||_?n.queueLayer(v,x):n.drawEleInLayer(v,x,r,e),v.eles.push(x),T[r]=v}return p||(_?null:d)};ts.getEleLevelForLayerLevel=function(t,e){return t};ts.drawEleInLayer=function(t,e,r,n){var i=this,a=this.renderer,s=t.context,o=e.boundingBox();o.w===0||o.h===0||!e.visible()||(r=i.getEleLevelForLayerLevel(r,n),a.setImgSmoothing(s,!1),a.drawCachedElement(s,e,null,null,r,P1t),a.setImgSmoothing(s,!0))};ts.levelIsComplete=function(t,e){var r=this,n=r.layersByLevel[t];if(!n||n.length===0)return!1;for(var i=0,a=0;a0||s.invalid)return!1;i+=s.eles.length}return i===e.length};ts.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var n=0;n0){e=!0;break}}return e};ts.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=A0(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(n,i,a){e.invalidateLayer(n)}))};ts.invalidateLayer=function(t){if(this.lastInvalidationTime=A0(),!t.invalid){var e=t.level,r=t.eles,n=this.layersByLevel[e];vh(n,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o=e._private.rscratch;if(!(a&&!e.visible())&&!(o.badLine||o.allpts==null||isNaN(o.allpts[0]))){var l;r&&(l=r,t.translate(-l.x1,-l.y1));var u=a?e.pstyle("opacity").value:1,d=a?e.pstyle("line-opacity").value:1,h=e.pstyle("curve-style").value,f=e.pstyle("line-style").value,p=e.pstyle("width").pfValue,g=e.pstyle("line-cap").value,m=e.pstyle("line-outline-width").value,y=e.pstyle("line-outline-color").value,v=u*d,b=u*d,_=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;h==="straight-triangle"?(s.eleStrokeStyle(t,e,I),s.drawEdgeTrianglePath(e,t,o.allpts)):(t.lineWidth=p,t.lineCap=g,s.eleStrokeStyle(t,e,I),s.drawEdgePath(e,t,o.allpts,f),t.lineCap="butt")},E=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;if(t.lineWidth=p+m,t.lineCap=g,m>0)s.colorStrokeStyle(t,y[0],y[1],y[2],I);else{t.lineCap="butt";return}h==="straight-triangle"?s.drawEdgeTrianglePath(e,t,o.allpts):(s.drawEdgePath(e,t,o.allpts,f),t.lineCap="butt")},x=function(){i&&s.drawEdgeOverlay(t,e)},C=function(){i&&s.drawEdgeUnderlay(t,e)},T=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b;s.drawArrowheads(t,e,I)},w=function(){s.drawElementText(t,e,null,n)};t.lineJoin="round";var N=e.pstyle("ghost").value==="yes";if(N){var O=e.pstyle("ghost-offset-x").pfValue,M=e.pstyle("ghost-offset-y").pfValue,$=e.pstyle("ghost-opacity").value,F=v*$;t.translate(O,M),_(F),T(F),t.translate(-O,-M)}else E();C(),_(),T(),x(),w(),r&&t.translate(l.x1,l.y1)}};var Xbe=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,n){if(n.visible()){var i=n.pstyle("".concat(e,"-opacity")).value;if(i!==0){var a=this,s=a.usePaths(),o=n._private.rscratch,l=n.pstyle("".concat(e,"-padding")).pfValue,u=2*l,d=n.pstyle("".concat(e,"-color")).value;r.lineWidth=u,o.edgeType==="self"&&!s?r.lineCap="butt":r.lineCap="round",a.colorStrokeStyle(r,d[0],d[1],d[2],i),a.drawEdgePath(n,r,o.allpts,"solid")}}}};td.drawEdgeOverlay=Xbe("overlay");td.drawEdgeUnderlay=Xbe("underlay");td.drawEdgePath=function(t,e,r,n){var i=t._private.rscratch,a=e,s,o=!1,l=this.usePaths(),u=t.pstyle("line-dash-pattern").pfValue,d=t.pstyle("line-dash-offset").pfValue;if(l){var h=r.join("$"),f=i.pathCacheKey&&i.pathCacheKey===h;f?(s=e=i.pathCache,o=!0):(s=e=new Path2D,i.pathCacheKey=h,i.pathCache=s)}if(a.setLineDash)switch(n){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(u),a.lineDashOffset=d;break;case"solid":a.setLineDash([]);break}if(!o&&!i.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),i.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var p=2;p+35&&arguments[5]!==void 0?arguments[5]:!0,s=this;if(n==null){if(a&&!s.eleTextBiggerThanMin(e))return}else if(n===!1)return;if(e.isNode()){var o=e.pstyle("label");if(!o||!o.value)return;var l=s.getLabelJustification(e);t.textAlign=l,t.textBaseline="bottom"}else{var u=e.element()._private.rscratch.badLine,d=e.pstyle("label"),h=e.pstyle("source-label"),f=e.pstyle("target-label");if(u||(!d||!d.value)&&(!h||!h.value)&&(!f||!f.value))return;t.textAlign="center",t.textBaseline="bottom"}var p=!r,g;r&&(g=r,t.translate(-g.x1,-g.y1)),i==null?(s.drawText(t,e,null,p,a),e.isEdge()&&(s.drawText(t,e,"source",p,a),s.drawText(t,e,"target",p,a))):s.drawText(t,e,i,p,a),r&&t.translate(g.x1,g.y1)};ag.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!0,n=e.pstyle("font-style").strValue,i=e.pstyle("font-size").pfValue+"px",a=e.pstyle("font-family").strValue,s=e.pstyle("font-weight").strValue,o=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,l=e.pstyle("text-outline-opacity").value*o,u=e.pstyle("color").value,d=e.pstyle("text-outline-color").value;t.font=n+" "+s+" "+i+" "+a,t.lineJoin="round",this.colorFillStyle(t,u[0],u[1],u[2],o),this.colorStrokeStyle(t,d[0],d[1],d[2],l)};function W1t(t,e,r,n,i){var a=Math.min(n,i),s=a/2,o=e+n/2,l=r+i/2;t.beginPath(),t.arc(o,l,s,0,Math.PI*2),t.closePath()}function bae(t,e,r,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,s=Math.min(a,n/2,i/2);t.beginPath(),t.moveTo(e+s,r),t.lineTo(e+n-s,r),t.quadraticCurveTo(e+n,r,e+n,r+s),t.lineTo(e+n,r+i-s),t.quadraticCurveTo(e+n,r+i,e+n-s,r+i),t.lineTo(e+s,r+i),t.quadraticCurveTo(e,r+i,e,r+i-s),t.lineTo(e,r+s),t.quadraticCurveTo(e,r,e+s,r),t.closePath()}ag.getTextAngle=function(t,e){var r,n=t._private,i=n.rscratch,a=e?e+"-":"",s=t.pstyle(a+"text-rotation");if(s.strValue==="autorotate"){var o=ho(i,"labelAngle",e);r=t.isEdge()?o:0}else s.strValue==="none"?r=0:r=s.pfValue;return r};ag.drawText=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=e._private,s=a.rscratch,o=i?e.effectiveOpacity():1;if(!(i&&(o===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var l=ho(s,"labelX",r),u=ho(s,"labelY",r),d,h,f=this.getLabelText(e,r);if(f!=null&&f!==""&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(t,e,i);var p=r?r+"-":"",g=ho(s,"labelWidth",r),m=ho(s,"labelHeight",r),y=e.pstyle(p+"text-margin-x").pfValue,v=e.pstyle(p+"text-margin-y").pfValue,b=e.isEdge(),_=e.pstyle("text-halign").value,E=e.pstyle("text-valign").value;b&&(_="center",E="center"),l+=y,u+=v;var x;switch(n?x=this.getTextAngle(e,r):x=0,x!==0&&(d=l,h=u,t.translate(d,h),t.rotate(x),l=0,u=0),E){case"top":break;case"center":u+=m/2;break;case"bottom":u+=m;break}var C=e.pstyle("text-background-opacity").value,T=e.pstyle("text-border-opacity").value,w=e.pstyle("text-border-width").pfValue,N=e.pstyle("text-background-padding").pfValue,O=e.pstyle("text-background-shape").strValue,M=O==="round-rectangle"||O==="roundrectangle",$=O==="circle",F=2;if(C>0||w>0&&T>0){var A=t.fillStyle,I=t.strokeStyle,D=t.lineWidth,L=e.pstyle("text-background-color").value,R=e.pstyle("text-border-color").value,P=e.pstyle("text-border-style").value,z=C>0,B=w>0&&T>0,q=l-N;switch(_){case"left":q-=g;break;case"center":q-=g/2;break}var Y=u-m-N,Q=g+2*N,H=m+2*N;if(z&&(t.fillStyle="rgba(".concat(L[0],",").concat(L[1],",").concat(L[2],",").concat(C*o,")")),B&&(t.strokeStyle="rgba(".concat(R[0],",").concat(R[1],",").concat(R[2],",").concat(T*o,")"),t.lineWidth=w,t.setLineDash))switch(P){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=w/4,t.setLineDash([]);break;default:t.setLineDash([]);break}if(M?(t.beginPath(),bae(t,q,Y,Q,H,F)):$?(t.beginPath(),W1t(t,q,Y,Q,H)):(t.beginPath(),t.rect(q,Y,Q,H)),z&&t.fill(),B&&t.stroke(),B&&P==="double"){var J=w/2;t.beginPath(),M?bae(t,q+J,Y+J,Q-2*J,H-2*J,F):t.rect(q+J,Y+J,Q-2*J,H-2*J),t.stroke()}t.fillStyle=A,t.strokeStyle=I,t.lineWidth=D,t.setLineDash&&t.setLineDash([])}var Z=2*e.pstyle("text-outline-width").pfValue;if(Z>0&&(t.lineWidth=Z),e.pstyle("text-wrap").value==="wrap"){var pe=ho(s,"labelWrapCachedLines",r),re=ho(s,"labelLineHeight",r),ce=g/2,ae=this.getLabelJustification(e);switch(ae==="auto"||(_==="left"?ae==="left"?l+=-g:ae==="center"&&(l+=-ce):_==="center"?ae==="left"?l+=-ce:ae==="right"&&(l+=ce):_==="right"&&(ae==="center"?l+=ce:ae==="right"&&(l+=g))),E){case"top":u-=(pe.length-1)*re;break;case"center":case"bottom":u-=(pe.length-1)*re;break}for(var se=0;se0&&t.strokeText(pe[se],l,u),t.fillText(pe[se],l,u),u+=re}else Z>0&&t.strokeText(f,l,u),t.fillText(f,l,u);x!==0&&(t.rotate(-x),t.translate(-d,-h))}}};var Fh={};Fh.drawNode=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o,l,u=e._private,d=u.rscratch,h=e.position();if(!(!nr(h.x)||!nr(h.y))&&!(a&&!e.visible())){var f=a?e.effectiveOpacity():1,p=s.usePaths(),g,m=!1,y=e.padding();o=e.width()+2*y,l=e.height()+2*y;var v;r&&(v=r,t.translate(-v.x1,-v.y1));for(var b=e.pstyle("background-image"),_=b.value,E=new Array(_.length),x=new Array(_.length),C=0,T=0;T<_.length;T++){var w=_[T],N=E[T]=w!=null&&w!=="none";if(N){var O=e.cy().style().getIndexedStyle(e,"background-image-crossorigin","value",T);C++,x[T]=s.getCachedImage(w,O,function(){u.backgroundTimestamp=Date.now(),e.emitAndNotify("background")})}}var M=e.pstyle("background-blacken").value,$=e.pstyle("border-width").pfValue,F=e.pstyle("background-opacity").value*f,A=e.pstyle("border-color").value,I=e.pstyle("border-style").value,D=e.pstyle("border-join").value,L=e.pstyle("border-cap").value,R=e.pstyle("border-position").value,P=e.pstyle("border-dash-pattern").pfValue,z=e.pstyle("border-dash-offset").pfValue,B=e.pstyle("border-opacity").value*f,q=e.pstyle("outline-width").pfValue,Y=e.pstyle("outline-color").value,Q=e.pstyle("outline-style").value,H=e.pstyle("outline-opacity").value*f,J=e.pstyle("outline-offset").value,Z=e.pstyle("corner-radius").value;Z!=="auto"&&(Z=e.pstyle("corner-radius").pfValue);var pe=function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F;s.eleFillStyle(t,e,oe)},re=function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B;s.colorStrokeStyle(t,A[0],A[1],A[2],oe)},ce=function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:H;s.colorStrokeStyle(t,Y[0],Y[1],Y[2],oe)},ae=function(oe,de,G,ie){var j=s.nodePathCache=s.nodePathCache||[],V=L_e(G==="polygon"?G+","+ie.join(","):G,""+de,""+oe,""+Z),ue=j[V],Fe,me=!1;return ue!=null?(Fe=ue,me=!0,d.pathCache=Fe):(Fe=new Path2D,j[V]=d.pathCache=Fe),{path:Fe,cacheHit:me}},se=e.pstyle("shape").strValue,xe=e.pstyle("shape-polygon-points").pfValue;if(p){t.translate(h.x,h.y);var Te=ae(o,l,se,xe);g=Te.path,m=Te.cacheHit}var Ge=function(){if(!m){var oe=h;p&&(oe={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(g||t,oe.x,oe.y,o,l,Z,d)}p?t.fill(g):t.fill()},ze=function(){for(var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,G=u.backgrounding,ie=0,j=0;j0&&arguments[0]!==void 0?arguments[0]:!1,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;s.hasPie(e)&&(s.drawPie(t,e,de),oe&&(p||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,Z,d)))},Le=function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;s.hasStripe(e)&&(t.save(),p?t.clip(d.pathCache):(s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,Z,d),t.clip()),s.drawStripe(t,e,de),t.restore(),oe&&(p||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,Z,d)))},Re=function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,de=(M>0?M:-M)*oe,G=M>0?0:255;M!==0&&(s.colorFillStyle(t,G,G,G,de),p?t.fill(g):t.fill())},qe=function(){if($>0){if(t.lineWidth=$,t.lineCap=L,t.lineJoin=D,t.setLineDash)switch(I){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash(P),t.lineDashOffset=z;break;case"solid":case"double":t.setLineDash([]);break}if(R!=="center"){if(t.save(),t.lineWidth*=2,R==="inside")p?t.clip(g):t.clip();else{var oe=new Path2D;oe.rect(-o/2-$,-l/2-$,o+2*$,l+2*$),oe.addPath(g),t.clip(oe,"evenodd")}p?t.stroke(g):t.stroke(),t.restore()}else p?t.stroke(g):t.stroke();if(I==="double"){t.lineWidth=$/3;var de=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",p?t.stroke(g):t.stroke(),t.globalCompositeOperation=de}t.setLineDash&&t.setLineDash([])}},Ne=function(){if(q>0){if(t.lineWidth=q,t.lineCap="butt",t.setLineDash)switch(Q){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}var oe=h;p&&(oe={x:0,y:0});var de=s.getNodeShape(e),G=$;R==="inside"&&(G=0),R==="outside"&&(G*=2);var ie=(o+G+(q+J))/o,j=(l+G+(q+J))/l,V=o*ie,ue=l*j,Fe=s.nodeShapes[de].points,me;if(p){var Ce=ae(V,ue,de,Fe);me=Ce.path}if(de==="ellipse")s.drawEllipsePath(me||t,oe.x,oe.y,V,ue);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(de)){var ye=0,Me=0,Ie=0;de==="round-diamond"?ye=(G+J+q)*1.4:de==="round-heptagon"?(ye=(G+J+q)*1.075,Ie=-(G/2+J+q)/35):de==="round-hexagon"?ye=(G+J+q)*1.12:de==="round-pentagon"?(ye=(G+J+q)*1.13,Ie=-(G/2+J+q)/15):de==="round-tag"?(ye=(G+J+q)*1.12,Me=(G/2+q+J)*.07):de==="round-triangle"&&(ye=(G+J+q)*(Math.PI/2),Ie=-(G+J/2+q)/Math.PI),ye!==0&&(ie=(o+ye)/o,V=o*ie,["round-hexagon","round-tag"].includes(de)||(j=(l+ye)/l,ue=l*j)),Z=Z==="auto"?Y_e(V,ue):Z;for(var he=V/2,le=ue/2,Be=Z+(G+q+J)/2,ve=new Array(Fe.length/2),gt=new Array(Fe.length/2),Et=0;Et0){if(i=i||n.position(),a==null||s==null){var p=n.padding();a=n.width()+2*p,s=n.height()+2*p}o.colorFillStyle(r,d[0],d[1],d[2],u),o.nodeShapes[h].draw(r,i.x,i.y,a+l*2,s+l*2,f),r.fill()}}}};Fh.drawNodeOverlay=jbe("overlay");Fh.drawNodeUnderlay=jbe("underlay");Fh.hasPie=function(t){return t=t[0],t._private.hasPie};Fh.hasStripe=function(t){return t=t[0],t._private.hasStripe};Fh.drawPie=function(t,e,r,n){e=e[0],n=n||e.position();var i=e.cy().style(),a=e.pstyle("pie-size"),s=e.pstyle("pie-hole"),o=e.pstyle("pie-start-angle").pfValue,l=n.x,u=n.y,d=e.width(),h=e.height(),f=Math.min(d,h)/2,p,g=0,m=this.usePaths();if(m&&(l=0,u=0),a.units==="%"?f=f*a.pfValue:a.pfValue!==void 0&&(f=a.pfValue/2),s.units==="%"?p=f*s.pfValue:s.pfValue!==void 0&&(p=s.pfValue/2),!(p>=f))for(var y=1;y<=i.pieBackgroundN;y++){var v=e.pstyle("pie-"+y+"-background-size").value,b=e.pstyle("pie-"+y+"-background-color").value,_=e.pstyle("pie-"+y+"-background-opacity").value*r,E=v/100;E+g>1&&(E=1-g);var x=1.5*Math.PI+2*Math.PI*g;x+=o;var C=2*Math.PI*E,T=x+C;v===0||g>=1||g+E>1||(p===0?(t.beginPath(),t.moveTo(l,u),t.arc(l,u,f,x,T),t.closePath()):(t.beginPath(),t.arc(l,u,f,x,T),t.arc(l,u,p,T,x,!0),t.closePath()),this.colorFillStyle(t,b[0],b[1],b[2],_),t.fill(),g+=E)}};Fh.drawStripe=function(t,e,r,n){e=e[0],n=n||e.position();var i=e.cy().style(),a=n.x,s=n.y,o=e.width(),l=e.height(),u=0,d=this.usePaths();t.save();var h=e.pstyle("stripe-direction").value,f=e.pstyle("stripe-size");switch(h){case"vertical":break;case"righward":t.rotate(-Math.PI/2);break}var p=o,g=l;f.units==="%"?(p=p*f.pfValue,g=g*f.pfValue):f.pfValue!==void 0&&(p=f.pfValue,g=f.pfValue),d&&(a=0,s=0),s-=p/2,a-=g/2;for(var m=1;m<=i.stripeBackgroundN;m++){var y=e.pstyle("stripe-"+m+"-background-size").value,v=e.pstyle("stripe-"+m+"-background-color").value,b=e.pstyle("stripe-"+m+"-background-opacity").value*r,_=y/100;_+u>1&&(_=1-u),!(y===0||u>=1||u+_>1)&&(t.beginPath(),t.rect(a,s+g*u,p,g*_),t.closePath(),this.colorFillStyle(t,v[0],v[1],v[2],b),t.fill(),u+=_)}t.restore()};var to={},K1t=100;to.getPixelRatio=function(){var t=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=this.cy.window(),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(e.devicePixelRatio||1)/r};to.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,n,i=0;ie.minMbLowQualFrames&&(e.motionBlurPxRatio=e.mbPxRBlurry)),e.clearingMotionBlur&&(e.motionBlurPxRatio=1),e.textureDrawLastFrame&&!h&&(d[e.NODE]=!0,d[e.SELECT_BOX]=!0);var b=r.style(),_=r.zoom(),E=s!==void 0?s:_,x=r.pan(),C={x:x.x,y:x.y},T={zoom:_,pan:{x:x.x,y:x.y}},w=e.prevViewport,N=w===void 0||T.zoom!==w.zoom||T.pan.x!==w.pan.x||T.pan.y!==w.pan.y;!N&&!(m&&!g)&&(e.motionBlurPxRatio=1),o&&(C=o),E*=l,C.x*=l,C.y*=l;var O=e.getCachedZSortedEles();function M(re,ce,ae,se,xe){var Te=re.globalCompositeOperation;re.globalCompositeOperation="destination-out",e.colorFillStyle(re,255,255,255,e.motionBlurTransparency),re.fillRect(ce,ae,se,xe),re.globalCompositeOperation=Te}function $(re,ce){var ae,se,xe,Te;!e.clearingMotionBlur&&(re===u.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]||re===u.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG])?(ae={x:x.x*p,y:x.y*p},se=_*p,xe=e.canvasWidth*p,Te=e.canvasHeight*p):(ae=C,se=E,xe=e.canvasWidth,Te=e.canvasHeight),re.setTransform(1,0,0,1,0,0),ce==="motionBlur"?M(re,0,0,xe,Te):!n&&(ce===void 0||ce)&&re.clearRect(0,0,xe,Te),i||(re.translate(ae.x,ae.y),re.scale(se,se)),o&&re.translate(o.x,o.y),s&&re.scale(s,s)}if(h||(e.textureDrawLastFrame=!1),h){if(e.textureDrawLastFrame=!0,!e.textureCache){e.textureCache={},e.textureCache.bb=r.mutableElements().boundingBox(),e.textureCache.texture=e.data.bufferCanvases[e.TEXTURE_BUFFER];var F=e.data.bufferContexts[e.TEXTURE_BUFFER];F.setTransform(1,0,0,1,0,0),F.clearRect(0,0,e.canvasWidth*e.textureMult,e.canvasHeight*e.textureMult),e.render({forcedContext:F,drawOnlyNodeLayer:!0,forcedPxRatio:l*e.textureMult});var T=e.textureCache.viewport={zoom:r.zoom(),pan:r.pan(),width:e.canvasWidth,height:e.canvasHeight};T.mpan={x:(0-T.pan.x)/T.zoom,y:(0-T.pan.y)/T.zoom}}d[e.DRAG]=!1,d[e.NODE]=!1;var A=u.contexts[e.NODE],I=e.textureCache.texture,T=e.textureCache.viewport;A.setTransform(1,0,0,1,0,0),f?M(A,0,0,T.width,T.height):A.clearRect(0,0,T.width,T.height);var D=b.core("outside-texture-bg-color").value,L=b.core("outside-texture-bg-opacity").value;e.colorFillStyle(A,D[0],D[1],D[2],L),A.fillRect(0,0,T.width,T.height);var _=r.zoom();$(A,!1),A.clearRect(T.mpan.x,T.mpan.y,T.width/T.zoom/l,T.height/T.zoom/l),A.drawImage(I,T.mpan.x,T.mpan.y,T.width/T.zoom/l,T.height/T.zoom/l)}else e.textureOnViewport&&!n&&(e.textureCache=null);var R=r.extent(),P=e.pinching||e.hoverData.dragging||e.swipePanning||e.data.wheelZooming||e.hoverData.draggingEles||e.cy.animated(),z=e.hideEdgesOnViewport&&P,B=[];if(B[e.NODE]=!d[e.NODE]&&f&&!e.clearedForMotionBlur[e.NODE]||e.clearingMotionBlur,B[e.NODE]&&(e.clearedForMotionBlur[e.NODE]=!0),B[e.DRAG]=!d[e.DRAG]&&f&&!e.clearedForMotionBlur[e.DRAG]||e.clearingMotionBlur,B[e.DRAG]&&(e.clearedForMotionBlur[e.DRAG]=!0),d[e.NODE]||i||a||B[e.NODE]){var q=f&&!B[e.NODE]&&p!==1,A=n||(q?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]:u.contexts[e.NODE]),Y=f&&!q?"motionBlur":void 0;$(A,Y),z?e.drawCachedNodes(A,O.nondrag,l,R):e.drawLayeredElements(A,O.nondrag,l,R),e.debug&&e.drawDebugPoints(A,O.nondrag),!i&&!f&&(d[e.NODE]=!1)}if(!a&&(d[e.DRAG]||i||B[e.DRAG])){var q=f&&!B[e.DRAG]&&p!==1,A=n||(q?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG]:u.contexts[e.DRAG]);$(A,f&&!q?"motionBlur":void 0),z?e.drawCachedNodes(A,O.drag,l,R):e.drawCachedElements(A,O.drag,l,R),e.debug&&e.drawDebugPoints(A,O.drag),!i&&!f&&(d[e.DRAG]=!1)}if(this.drawSelectionRectangle(t,$),f&&p!==1){var Q=u.contexts[e.NODE],H=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE],J=u.contexts[e.DRAG],Z=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG],pe=function(ce,ae,se){ce.setTransform(1,0,0,1,0,0),se||!v?ce.clearRect(0,0,e.canvasWidth,e.canvasHeight):M(ce,0,0,e.canvasWidth,e.canvasHeight);var xe=p;ce.drawImage(ae,0,0,e.canvasWidth*xe,e.canvasHeight*xe,0,0,e.canvasWidth,e.canvasHeight)};(d[e.NODE]||B[e.NODE])&&(pe(Q,H,B[e.NODE]),d[e.NODE]=!1),(d[e.DRAG]||B[e.DRAG])&&(pe(J,Z,B[e.DRAG]),d[e.DRAG]=!1)}e.prevViewport=T,e.clearingMotionBlur&&(e.clearingMotionBlur=!1,e.motionBlurCleared=!0,e.motionBlur=!0),f&&(e.motionBlurTimeout=setTimeout(function(){e.motionBlurTimeout=null,e.clearedForMotionBlur[e.NODE]=!1,e.clearedForMotionBlur[e.DRAG]=!1,e.motionBlur=!1,e.clearingMotionBlur=!h,e.mbFrames=0,d[e.NODE]=!0,d[e.DRAG]=!0,e.redraw()},K1t)),n||r.emit("render")};var G2;to.drawSelectionRectangle=function(t,e){var r=this,n=r.cy,i=r.data,a=n.style(),s=t.drawOnlyNodeLayer,o=t.drawAllLayers,l=i.canvasNeedsRedraw,u=t.forcedContext;if(r.showFps||!s&&l[r.SELECT_BOX]&&!o){var d=u||i.contexts[r.SELECT_BOX];if(e(d),r.selection[4]==1&&(r.hoverData.selecting||r.touchData.selecting)){var h=r.cy.zoom(),f=a.core("selection-box-border-width").value/h;d.lineWidth=f,d.fillStyle="rgba("+a.core("selection-box-color").value[0]+","+a.core("selection-box-color").value[1]+","+a.core("selection-box-color").value[2]+","+a.core("selection-box-opacity").value+")",d.fillRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]),f>0&&(d.strokeStyle="rgba("+a.core("selection-box-border-color").value[0]+","+a.core("selection-box-border-color").value[1]+","+a.core("selection-box-border-color").value[2]+","+a.core("selection-box-opacity").value+")",d.strokeRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]))}if(i.bgActivePosistion&&!r.hoverData.selecting){var h=r.cy.zoom(),p=i.bgActivePosistion;d.fillStyle="rgba("+a.core("active-bg-color").value[0]+","+a.core("active-bg-color").value[1]+","+a.core("active-bg-color").value[2]+","+a.core("active-bg-opacity").value+")",d.beginPath(),d.arc(p.x,p.y,a.core("active-bg-size").pfValue/h,0,2*Math.PI),d.fill()}var g=r.lastRedrawTime;if(r.showFps&&g){g=Math.round(g);var m=Math.round(1e3/g),y="1 frame = "+g+" ms = "+m+" fps";if(d.setTransform(1,0,0,1,0,0),d.fillStyle="rgba(255, 0, 0, 0.75)",d.strokeStyle="rgba(255, 0, 0, 0.75)",d.font="30px Arial",!G2){var v=d.measureText(y);G2=v.actualBoundingBoxAscent}d.fillText(y,0,G2);var b=60;d.strokeRect(0,G2+10,250,20),d.fillRect(0,G2+10,250*Math.min(m/b,1),20)}o||(l[r.SELECT_BOX]=!1)}};function Eae(t,e,r){var n=t.createShader(e);if(t.shaderSource(n,r),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS))throw new Error(t.getShaderInfoLog(n));return n}function X1t(t,e,r){var n=Eae(t,t.VERTEX_SHADER,e),i=Eae(t,t.FRAGMENT_SHADER,r),a=t.createProgram();if(t.attachShader(a,n),t.attachShader(a,i),t.linkProgram(a),!t.getProgramParameter(a,t.LINK_STATUS))throw new Error("Could not initialize shaders");return a}function j1t(t,e,r){r===void 0&&(r=e);var n=t.makeOffscreenCanvas(e,r),i=n.context=n.getContext("2d");return n.clear=function(){return i.clearRect(0,0,n.width,n.height)},n.clear(),n}function tY(t){var e=t.pixelRatio,r=t.cy.zoom(),n=t.cy.pan();return{zoom:r*e,pan:{x:n.x*e,y:n.y*e}}}function Q1t(t){var e=t.pixelRatio,r=t.cy.zoom();return r*e}function Z1t(t,e,r,n,i){var a=n*r+e.x,s=i*r+e.y;return s=Math.round(t.canvasHeight-s),[a,s]}function J1t(t){return t.pstyle("background-fill").value!=="solid"||t.pstyle("background-image").strValue!=="none"?!1:t.pstyle("border-width").value===0||t.pstyle("border-opacity").value===0?!0:t.pstyle("border-style").value==="solid"}function eyt(t,e){if(t.length!==e.length)return!1;for(var r=0;r>0&255)/255,r[1]=(t>>8&255)/255,r[2]=(t>>16&255)/255,r[3]=(t>>24&255)/255,r}function tyt(t){return t[0]+(t[1]<<8)+(t[2]<<16)+(t[3]<<24)}function ryt(t,e){var r=t.createTexture();return r.buffer=function(n){t.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_NEAREST),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),t.generateMipmap(t.TEXTURE_2D),t.bindTexture(t.TEXTURE_2D,null)},r.deleteTexture=function(){t.deleteTexture(r)},r}function Qbe(t,e){switch(e){case"float":return[1,t.FLOAT,4];case"vec2":return[2,t.FLOAT,4];case"vec3":return[3,t.FLOAT,4];case"vec4":return[4,t.FLOAT,4];case"int":return[1,t.INT,4];case"ivec2":return[2,t.INT,4]}}function Zbe(t,e,r){switch(e){case t.FLOAT:return new Float32Array(r);case t.INT:return new Int32Array(r)}}function nyt(t,e,r,n,i,a){switch(e){case t.FLOAT:return new Float32Array(r.buffer,a*n,i);case t.INT:return new Int32Array(r.buffer,a*n,i)}}function iyt(t,e,r,n){var i=Qbe(t,e),a=Zi(i,2),s=a[0],o=a[1],l=Zbe(t,o,n),u=t.createBuffer();return t.bindBuffer(t.ARRAY_BUFFER,u),t.bufferData(t.ARRAY_BUFFER,l,t.STATIC_DRAW),o===t.FLOAT?t.vertexAttribPointer(r,s,o,!1,0,0):o===t.INT&&t.vertexAttribIPointer(r,s,o,0,0),t.enableVertexAttribArray(r),t.bindBuffer(t.ARRAY_BUFFER,null),u}function xc(t,e,r,n){var i=Qbe(t,r),a=Zi(i,3),s=a[0],o=a[1],l=a[2],u=Zbe(t,o,e*s),d=s*l,h=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,h),t.bufferData(t.ARRAY_BUFFER,e*d,t.DYNAMIC_DRAW),t.enableVertexAttribArray(n),o===t.FLOAT?t.vertexAttribPointer(n,s,o,!1,d,0):o===t.INT&&t.vertexAttribIPointer(n,s,o,d,0),t.vertexAttribDivisor(n,1),t.bindBuffer(t.ARRAY_BUFFER,null);for(var f=new Array(e),p=0;ps&&(o=s/n,l=n*o,u=i*o),{scale:o,texW:l,texH:u}}},{key:"draw",value:function(r,n,i){var a=this;if(this.locked)throw new Error("can't draw, atlas is locked");var s=this.texSize,o=this.texRows,l=this.texHeight,u=this.getScale(n),d=u.scale,h=u.texW,f=u.texH,p=function(_,E){if(i&&E){var x=E.context,C=_.x,T=_.row,w=C,N=l*T;x.save(),x.translate(w,N),x.scale(d,d),i(x,n),x.restore()}},g=[null,null],m=function(){p(a.freePointer,a.canvas),g[0]={x:a.freePointer.x,y:a.freePointer.row*l,w:h,h:f},g[1]={x:a.freePointer.x+h,y:a.freePointer.row*l,w:0,h:f},a.freePointer.x+=h,a.freePointer.x==s&&(a.freePointer.x=0,a.freePointer.row++)},y=function(){var _=a.scratch,E=a.canvas;_.clear(),p({x:0,row:0},_);var x=s-a.freePointer.x,C=h-x,T=l;{var w=a.freePointer.x,N=a.freePointer.row*l,O=x;E.context.drawImage(_,0,0,O,T,w,N,O,T),g[0]={x:w,y:N,w:O,h:f}}{var M=x,$=(a.freePointer.row+1)*l,F=C;E&&E.context.drawImage(_,M,0,F,T,0,$,F,T),g[1]={x:0,y:$,w:F,h:f}}a.freePointer.x=C,a.freePointer.row++},v=function(){a.freePointer.x=0,a.freePointer.row++};if(this.freePointer.x+h<=s)m();else{if(this.freePointer.row>=o-1)return!1;this.freePointer.x===s?(v(),m()):this.enableWrapping?y():(v(),m())}return this.keyToLocation.set(r,g),this.needsBuffer=!0,g}},{key:"getOffsets",value:function(r){return this.keyToLocation.get(r)}},{key:"isEmpty",value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:"canFit",value:function(r){if(this.locked)return!1;var n=this.texSize,i=this.texRows,a=this.getScale(r),s=a.texW;return this.freePointer.x+s>n?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},a=i.forceRedraw,s=a===void 0?!1:a,o=i.filterEle,l=o===void 0?function(){return!0}:o,u=i.filterType,d=u===void 0?function(){return!0}:u,h=!1,f=!1,p=yo(r),g;try{for(p.s();!(g=p.n()).done;){var m=g.value;if(l(m)){var y=yo(this.renderTypes.values()),v;try{var b=function(){var E=v.value,x=E.type;if(d(x)){var C=n.collections.get(E.collection),T=E.getKey(m),w=Array.isArray(T)?T:[T];if(s)w.forEach(function($){return C.markKeyForGC($)}),f=!0;else{var N=E.getID?E.getID(m):m.id(),O=n._key(x,N),M=n.typeAndIdToKey.get(O);M!==void 0&&!eyt(w,M)&&(h=!0,n.typeAndIdToKey.delete(O),M.forEach(function($){return C.markKeyForGC($)}))}}};for(y.s();!(v=y.n()).done;)b()}catch(_){y.e(_)}finally{y.f()}}}}catch(_){p.e(_)}finally{p.f()}return f&&(this.gc(),h=!1),h}},{key:"gc",value:function(){var r=yo(this.collections.values()),n;try{for(r.s();!(n=r.n()).done;){var i=n.value;i.gc()}}catch(a){r.e(a)}finally{r.f()}}},{key:"getOrCreateAtlas",value:function(r,n,i,a){var s=this.renderTypes.get(n),o=this.collections.get(s.collection),l=!1,u=o.draw(a,i,function(f){s.drawClipped?(f.save(),f.beginPath(),f.rect(0,0,i.w,i.h),f.clip(),s.drawElement(f,r,i,!0,!0),f.restore()):s.drawElement(f,r,i,!0,!0),l=!0});if(l){var d=s.getID?s.getID(r):r.id(),h=this._key(n,d);this.typeAndIdToKey.has(h)?this.typeAndIdToKey.get(h).push(a):this.typeAndIdToKey.set(h,[a])}return u}},{key:"getAtlasInfo",value:function(r,n){var i=this,a=this.renderTypes.get(n),s=a.getKey(r),o=Array.isArray(s)?s:[s];return o.map(function(l){var u=a.getBoundingBox(r,l),d=i.getOrCreateAtlas(r,n,u,l),h=d.getOffsets(l),f=Zi(h,2),p=f[0],g=f[1];return{atlas:d,tex:p,tex1:p,tex2:g,bb:u}})}},{key:"getDebugInfo",value:function(){var r=[],n=yo(this.collections),i;try{for(n.s();!(i=n.n()).done;){var a=Zi(i.value,2),s=a[0],o=a[1],l=o.getCounts(),u=l.keyCount,d=l.atlasCount;r.push({type:s,keyCount:u,atlasCount:d})}}catch(h){n.e(h)}finally{n.f()}return r}}])})(),fyt=(function(){function t(e){Mh(this,t),this.globalOptions=e,this.atlasSize=e.webglTexSize,this.maxAtlasesPerBatch=e.webglTexPerBatch,this.batchAtlases=[]}return Ph(t,[{key:"getMaxAtlasesPerBatch",value:function(){return this.maxAtlasesPerBatch}},{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"getIndexArray",value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(r,n){return n})}},{key:"startBatch",value:function(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function(){return this.batchAtlases.length}},{key:"getAtlases",value:function(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function(r){return this.batchAtlases.length===this.maxAtlasesPerBatch?this.batchAtlases.includes(r):!0}},{key:"getAtlasIndexForBatch",value:function(r){var n=this.batchAtlases.indexOf(r);if(n<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw new Error("cannot add more atlases to batch");this.batchAtlases.push(r),n=this.batchAtlases.length-1}return n}}])})(),pyt=` float circleSD(vec2 p, float r) { return distance(vec2(0), p) - r; // signed distance } -`,pyt=` +`,gyt=` float rectangleSD(vec2 p, vec2 b) { vec2 d = abs(p)-b; return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0); } -`,gyt=` +`,myt=` float roundRectangleSD(vec2 p, vec2 b, vec4 cr) { cr.xy = (p.x > 0.0) ? cr.xy : cr.zw; cr.x = (p.y > 0.0) ? cr.x : cr.y; vec2 q = abs(p) - b + cr.x; return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x; } -`,myt=` +`,yyt=` float ellipseSD(vec2 p, vec2 ab) { p = abs( p ); // symmetry @@ -4693,7 +4693,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho // return signed distance return (dot(p/ab,p/ab)>1.0) ? d : -d; } -`,aS={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},L6={IGNORE:1,USE_BB:2},yL=0,Cae=1,wae=2,vL=3,Yg=4,d3=5,q2=6,Y2=7,yyt=(function(){function t(e,r,n){Mh(this,t),this.r=e,this.gl=r,this.maxInstances=n.webglBatchSize,this.atlasSize=n.webglTexSize,this.bgColor=n.bgColor,this.debug=n.webglDebug,this.batchDebugInfo=[],n.enableWrapping=!0,n.createTextureCanvas=X1t,this.atlasManager=new dyt(e,n),this.batchManager=new hyt(n),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(aS.SCREEN),this.pickingProgram=this._createShaderProgram(aS.PICKING),this.vao=this._createVAO()}return Ph(t,[{key:"addAtlasCollection",value:function(r,n){this.atlasManager.addAtlasCollection(r,n)}},{key:"addTextureAtlasRenderType",value:function(r,n){this.atlasManager.addRenderType(r,n)}},{key:"addSimpleShapeRenderType",value:function(r,n){this.simpleShapeOptions.set(r,n)}},{key:"invalidate",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.type,a=this.atlasManager;return i?a.invalidate(r,{filterType:function(o){return o===i},forceRedraw:!0}):a.invalidate(r)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(r){var n=this.gl,i=`#version 300 es +`,aS={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},L6={IGNORE:1,USE_BB:2},yL=0,Cae=1,wae=2,vL=3,Yg=4,d3=5,q2=6,Y2=7,vyt=(function(){function t(e,r,n){Mh(this,t),this.r=e,this.gl=r,this.maxInstances=n.webglBatchSize,this.atlasSize=n.webglTexSize,this.bgColor=n.bgColor,this.debug=n.webglDebug,this.batchDebugInfo=[],n.enableWrapping=!0,n.createTextureCanvas=j1t,this.atlasManager=new hyt(e,n),this.batchManager=new fyt(n),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(aS.SCREEN),this.pickingProgram=this._createShaderProgram(aS.PICKING),this.vao=this._createVAO()}return Ph(t,[{key:"addAtlasCollection",value:function(r,n){this.atlasManager.addAtlasCollection(r,n)}},{key:"addTextureAtlasRenderType",value:function(r,n){this.atlasManager.addRenderType(r,n)}},{key:"addSimpleShapeRenderType",value:function(r,n){this.simpleShapeOptions.set(r,n)}},{key:"invalidate",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.type,a=this.atlasManager;return i?a.invalidate(r,{filterType:function(o){return o===i},forceRedraw:!0}):a.invalidate(r)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(r){var n=this.gl,i=`#version 300 es precision highp float; uniform mat3 uPanZoomMatrix; @@ -4883,10 +4883,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho out vec4 outColor; - `).concat(fyt,` `).concat(pyt,` `).concat(gyt,` `).concat(myt,` + `).concat(yyt,` vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha return vec4( @@ -4971,16 +4971,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).concat(r.picking?`if(outColor.a == 0.0) discard; else outColor = vIndex;`:"",` } - `),o=K1t(n,i,s);o.aPosition=n.getAttribLocation(o,"aPosition"),o.aIndex=n.getAttribLocation(o,"aIndex"),o.aVertType=n.getAttribLocation(o,"aVertType"),o.aTransform=n.getAttribLocation(o,"aTransform"),o.aAtlasId=n.getAttribLocation(o,"aAtlasId"),o.aTex=n.getAttribLocation(o,"aTex"),o.aPointAPointB=n.getAttribLocation(o,"aPointAPointB"),o.aPointCPointD=n.getAttribLocation(o,"aPointCPointD"),o.aLineWidth=n.getAttribLocation(o,"aLineWidth"),o.aColor=n.getAttribLocation(o,"aColor"),o.aCornerRadius=n.getAttribLocation(o,"aCornerRadius"),o.aBorderColor=n.getAttribLocation(o,"aBorderColor"),o.uPanZoomMatrix=n.getUniformLocation(o,"uPanZoomMatrix"),o.uAtlasSize=n.getUniformLocation(o,"uAtlasSize"),o.uBGColor=n.getUniformLocation(o,"uBGColor"),o.uZoom=n.getUniformLocation(o,"uZoom"),o.uTextures=[];for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:aS.SCREEN;this.panZoomMatrix=r,this.renderTarget=n,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(r,n){return r.visible()?n&&n.isVisible?n.isVisible(r):!0:!1}},{key:"drawTexture",value:function(r,n,i){var a=this.atlasManager,s=this.batchManager,o=a.getRenderTypeOpts(i);if(this._isVisible(r,o)&&!(r.isEdge()&&!this._isValidEdge(r))){if(this.renderTarget.picking&&o.getTexPickingMode){var l=o.getTexPickingMode(r);if(l===L6.IGNORE)return;if(l==L6.USE_BB){this.drawPickingRectangle(r,n,i);return}}var u=a.getAtlasInfo(r,i),d=yo(u),h;try{for(d.s();!(h=d.n()).done;){var f=h.value,p=f.atlas,g=f.tex1,m=f.tex2;s.canAddToCurrentBatch(p)||this.endBatch();for(var y=s.getAtlasIndexForBatch(p),v=0,b=[[g,!0],[m,!1]];v=this.maxInstances&&this.endBatch()}}}}catch(M){d.e(M)}finally{d.f()}}}},{key:"setTransformMatrix",value:function(r,n,i,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=0;if(i.shapeProps&&i.shapeProps.padding&&(o=r.pstyle(i.shapeProps.padding).pfValue),a){var l=a.bb,u=a.tex1,d=a.tex2,h=u.w/(u.w+d.w);s||(h=1-h);var f=this._getAdjustedBB(l,o,s,h);this._applyTransformMatrix(n,f,i,r)}else{var p=i.getBoundingBox(r),g=this._getAdjustedBB(p,o,!0,1);this._applyTransformMatrix(n,g,i,r)}}},{key:"_applyTransformMatrix",value:function(r,n,i,a){var s,o;Tae(r);var l=i.getRotation?i.getRotation(a):0;if(l!==0){var u=i.getRotationPoint(a),d=u.x,h=u.y;_5(r,r,[d,h]),xae(r,r,l);var f=i.getRotationOffset(a);s=f.x+(n.xOffset||0),o=f.y+(n.yOffset||0)}else s=n.x1,o=n.y1;_5(r,r,[s,o]),MB(r,r,[n.w,n.h])}},{key:"_getAdjustedBB",value:function(r,n,i,a){var s=r.x1,o=r.y1,l=r.w,u=r.h,d=r.yOffset;n&&(s-=n,o-=n,l+=2*n,u+=2*n);var h=0,f=l*a;return i&&a<1?l=f:!i&&a<1&&(h=l-f,s+=h,l=f),{x1:s,y1:o,w:l,h:u,xOffset:h,yOffset:d}}},{key:"drawPickingRectangle",value:function(r,n,i){var a=this.atlasManager.getRenderTypeOpts(i),s=this.instanceCount;this.vertTypeBuffer.getView(s)[0]=Yg;var o=this.indexBuffer.getView(s);qg(n,o);var l=this.colorBuffer.getView(s);uf([0,0,0],1,l);var u=this.transformBuffer.getMatrixView(s);this.setTransformMatrix(r,u,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(r,n,i){var a=this.simpleShapeOptions.get(i);if(this._isVisible(r,a)){var s=a.shapeProps,o=this._getVertTypeForShape(r,s.shape);if(o===void 0||a.isSimple&&!a.isSimple(r)){this.drawTexture(r,n,i);return}var l=this.instanceCount;if(this.vertTypeBuffer.getView(l)[0]=o,o===d3||o===q2){var u=a.getBoundingBox(r),d=this._getCornerRadius(r,s.radius,u),h=this.cornerRadiusBuffer.getView(l);h[0]=d,h[1]=d,h[2]=d,h[3]=d,o===q2&&(h[0]=0,h[2]=0)}var f=this.indexBuffer.getView(l);qg(n,f);var p=r.pstyle(s.color).value,g=r.pstyle(s.opacity).value,m=this.colorBuffer.getView(l);uf(p,g,m);var y=this.lineWidthBuffer.getView(l);if(y[0]=0,y[1]=0,s.border){var v=r.pstyle("border-width").value;if(v>0){var b=r.pstyle("border-color").value,_=r.pstyle("border-opacity").value,E=this.borderColorBuffer.getView(l);uf(b,_,E);var x=r.pstyle("border-position").value;if(x==="inside")y[0]=0,y[1]=-v;else if(x==="outside")y[0]=v,y[1]=0;else{var C=v/2;y[0]=C,y[1]=-C}}}var T=this.transformBuffer.getMatrixView(l);this.setTransformMatrix(r,T,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:"_getVertTypeForShape",value:function(r,n){var i=r.pstyle(n).value;switch(i){case"rectangle":return Yg;case"ellipse":return Y2;case"roundrectangle":case"round-rectangle":return d3;case"bottom-round-rectangle":return q2;default:return}}},{key:"_getCornerRadius",value:function(r,n,i){var a=i.w,s=i.h;if(r.pstyle(n).value==="auto")return _h(a,s);var o=r.pstyle(n).pfValue,l=a/2,u=s/2;return Math.min(o,u,l)}},{key:"drawEdgeArrow",value:function(r,n,i){if(r.visible()){var a=r._private.rscratch,s,o,l;if(i==="source"?(s=a.arrowStartX,o=a.arrowStartY,l=a.srcArrowAngle):(s=a.arrowEndX,o=a.arrowEndY,l=a.tgtArrowAngle),!(isNaN(s)||s==null||isNaN(o)||o==null||isNaN(l)||l==null)){var u=r.pstyle(i+"-arrow-shape").value;if(u!=="none"){var d=r.pstyle(i+"-arrow-color").value,h=r.pstyle("opacity").value,f=r.pstyle("line-opacity").value,p=h*f,g=r.pstyle("width").pfValue,m=r.pstyle("arrow-scale").value,y=this.r.getArrowWidth(g,m),v=this.instanceCount,b=this.transformBuffer.getMatrixView(v);Tae(b),_5(b,b,[s,o]),MB(b,b,[y,y]),xae(b,b,l),this.vertTypeBuffer.getView(v)[0]=vL;var _=this.indexBuffer.getView(v);qg(n,_);var E=this.colorBuffer.getView(v);uf(d,p,E),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"drawEdgeLine",value:function(r,n){if(r.visible()){var i=this._getEdgePoints(r);if(i){var a=r.pstyle("opacity").value,s=r.pstyle("line-opacity").value,o=r.pstyle("width").pfValue,l=r.pstyle("line-color").value,u=a*s;if(i.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),i.length==4){var d=this.instanceCount;this.vertTypeBuffer.getView(d)[0]=Cae;var h=this.indexBuffer.getView(d);qg(n,h);var f=this.colorBuffer.getView(d);uf(l,u,f);var p=this.lineWidthBuffer.getView(d);p[0]=o;var g=this.pointAPointBBuffer.getView(d);g[0]=i[0],g[1]=i[1],g[2]=i[2],g[3]=i[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var m=0;m=this.maxInstances&&this.endBatch()}}}}},{key:"_isValidEdge",value:function(r){var n=r._private.rscratch;return!(n.badLine||n.allpts==null||isNaN(n.allpts[0]))}},{key:"_getEdgePoints",value:function(r){var n=r._private.rscratch;if(this._isValidEdge(r)){var i=n.allpts;if(i.length==4)return i;var a=this._getNumSegments(r);return this._getCurveSegmentPoints(i,a)}}},{key:"_getNumSegments",value:function(r){var n=15;return Math.min(Math.max(n,5),this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(r,n){if(r.length==4)return r;for(var i=Array((n+1)*2),a=0;a<=n;a++)if(a==0)i[0]=r[0],i[1]=r[1];else if(a==n)i[a*2]=r[r.length-2],i[a*2+1]=r[r.length-1];else{var s=a/n;this._setCurvePoint(r,s,i,a*2)}return i}},{key:"_setCurvePoint",value:function(r,n,i,a){if(r.length<=2)i[a]=r[0],i[a+1]=r[1];else{for(var s=Array(r.length-2),o=0;o0}},o=function(h){var f=h.pstyle("text-events").strValue==="yes";return f?L6.USE_BB:L6.IGNORE},l=function(h){var f=h.position(),p=f.x,g=f.y,m=h.outerWidth(),y=h.outerHeight();return{w:m,h:y,x1:p-m/2,y1:g-y/2}};r.drawing.addAtlasCollection("node",{texRows:t.webglTexRowsNodes}),r.drawing.addAtlasCollection("label",{texRows:t.webglTexRows}),r.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:e.getStyleKey,getBoundingBox:e.getElementBox,drawElement:e.drawElement}),r.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:l,isSimple:Z1t,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),r.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:l,isVisible:s("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),r.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:l,isVisible:s("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),r.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:o,getKey:_L(e.getLabelKey,null),getBoundingBox:bL(e.getLabelBox,null),drawClipped:!0,drawElement:e.drawLabel,getRotation:i(null),getRotationPoint:e.getLabelRotationPoint,getRotationOffset:e.getLabelRotationOffset,isVisible:a("label")}),r.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:o,getKey:_L(e.getSourceLabelKey,"source"),getBoundingBox:bL(e.getSourceLabelBox,"source"),drawClipped:!0,drawElement:e.drawSourceLabel,getRotation:i("source"),getRotationPoint:e.getSourceLabelRotationPoint,getRotationOffset:e.getSourceLabelRotationOffset,isVisible:a("source-label")}),r.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:o,getKey:_L(e.getTargetLabelKey,"target"),getBoundingBox:bL(e.getTargetLabelBox,"target"),drawClipped:!0,drawElement:e.drawTargetLabel,getRotation:i("target"),getRotationPoint:e.getTargetLabelRotationPoint,getRotationOffset:e.getTargetLabelRotationOffset,isVisible:a("target-label")});var u=CT(function(){console.log("garbage collect flag set"),r.data.gc=!0},1e4);r.onUpdateEleCalcs(function(d,h){var f=!1;h&&h.length>0&&(f|=r.drawing.invalidate(h)),f&&u()}),_yt(r)};function vyt(t){var e=t.cy.container(),r=e&&e.style&&e.style.backgroundColor||"white";return k_e(r)}function e2e(t,e){var r=t._private.rscratch;return ho(r,"labelWrapCachedLines",e)||[]}var _L=function(e,r){return function(n){var i=e(n),a=e2e(n,r);return a.length>1?a.map(function(s,o){return"".concat(i,"_").concat(o)}):i}},bL=function(e,r){return function(n,i){var a=e(n);if(typeof i=="string"){var s=i.indexOf("_");if(s>0){var o=Number(i.substring(s+1)),l=e2e(n,r),u=a.h/l.length,d=u*o,h=a.y1+d;return{x1:a.x1,w:a.w,y1:h,h:u,yOffset:d}}}return a}};function _yt(t){{var e=t.render;t.render=function(a){a=a||{};var s=t.cy;t.webgl&&(s.zoom()>Vbe?(byt(t),e.call(t,a)):(Eyt(t),r2e(t,a,aS.SCREEN)))}}{var r=t.matchCanvasSize;t.matchCanvasSize=function(a){r.call(t,a),t.pickingFrameBuffer.setFramebufferAttachmentSizes(t.canvasWidth,t.canvasHeight),t.pickingFrameBuffer.needsDraw=!0}}t.findNearestElements=function(a,s,o,l){return kyt(t,a,s)};{var n=t.invalidateCachedZSortedEles;t.invalidateCachedZSortedEles=function(){n.call(t),t.pickingFrameBuffer.needsDraw=!0}}{var i=t.notify;t.notify=function(a,s){i.call(t,a,s),a==="viewport"||a==="bounds"?t.pickingFrameBuffer.needsDraw=!0:a==="background"&&t.drawing.invalidate(s,{type:"node-body"})}}}function byt(t){var e=t.data.contexts[t.WEBGL];e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}function Eyt(t){var e=function(n){n.save(),n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,t.canvasWidth,t.canvasHeight),n.restore()};e(t.data.contexts[t.NODE]),e(t.data.contexts[t.DRAG])}function Syt(t){var e=t.canvasWidth,r=t.canvasHeight,n=tY(t),i=n.pan,a=n.zoom,s=mL();_5(s,s,[i.x,i.y]),MB(s,s,[a,a]);var o=mL();oyt(o,e,r);var l=mL();return syt(l,o,s),l}function t2e(t,e){var r=t.canvasWidth,n=t.canvasHeight,i=tY(t),a=i.pan,s=i.zoom;e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,r,n),e.translate(a.x,a.y),e.scale(s,s)}function Tyt(t,e){t.drawSelectionRectangle(e,function(r){return t2e(t,r)})}function xyt(t){var e=t.data.contexts[t.NODE];e.save(),t2e(t,e),e.strokeStyle="rgba(0, 0, 0, 0.3)",e.beginPath(),e.moveTo(-1e3,0),e.lineTo(1e3,0),e.stroke(),e.beginPath(),e.moveTo(0,-1e3),e.lineTo(0,1e3),e.stroke(),e.restore()}function Cyt(t){var e=function(i,a,s){for(var o=i.atlasManager.getAtlasCollection(a),l=t.data.contexts[t.NODE],u=o.atlases,d=0;d=0&&E.add(T)}return E}function kyt(t,e,r){var n=wyt(t,e,r),i=t.getCachedZSortedEles(),a,s,o=yo(n),l;try{for(o.s();!(l=o.n()).done;){var u=l.value,d=i[u];if(!a&&d.isNode()&&(a=d),!s&&d.isEdge()&&(s=d),a&&s)break}}catch(h){o.e(h)}finally{o.f()}return[a,s].filter(Boolean)}function EL(t,e,r){var n=t.drawing;e+=1,r.isNode()?(n.drawNode(r,e,"node-underlay"),n.drawNode(r,e,"node-body"),n.drawTexture(r,e,"label"),n.drawNode(r,e,"node-overlay")):(n.drawEdgeLine(r,e),n.drawEdgeArrow(r,e,"source"),n.drawEdgeArrow(r,e,"target"),n.drawTexture(r,e,"label"),n.drawTexture(r,e,"edge-source-label"),n.drawTexture(r,e,"edge-target-label"))}function r2e(t,e,r){var n;t.webglDebug&&(n=performance.now());var i=t.drawing,a=0;if(r.screen&&t.data.canvasNeedsRedraw[t.SELECT_BOX]&&Tyt(t,e),t.data.canvasNeedsRedraw[t.NODE]||r.picking){var s=t.data.contexts[t.WEBGL];r.screen?(s.clearColor(0,0,0,0),s.enable(s.BLEND),s.blendFunc(s.ONE,s.ONE_MINUS_SRC_ALPHA)):s.disable(s.BLEND),s.clear(s.COLOR_BUFFER_BIT|s.DEPTH_BUFFER_BIT),s.viewport(0,0,s.canvas.width,s.canvas.height);var o=Syt(t),l=t.getCachedZSortedEles();if(a=l.length,i.startFrame(o,r),r.screen){for(var u=0;u0&&s>0){p.clearRect(0,0,a,s),p.globalCompositeOperation="source-over";var g=this.getCachedZSortedEles();if(t.full)p.translate(-n.x1*u,-n.y1*u),p.scale(u,u),this.drawElements(p,g),p.scale(1/u,1/u),p.translate(n.x1*u,n.y1*u);else{var m=e.pan(),y={x:m.x*u,y:m.y*u};u*=e.zoom(),p.translate(y.x,y.y),p.scale(u,u),this.drawElements(p,g),p.scale(1/u,1/u),p.translate(-y.x,-y.y)}t.bg&&(p.globalCompositeOperation="destination-over",p.fillStyle=t.bg,p.rect(0,0,a,s),p.fill())}return f};function Ayt(t,e){for(var r=atob(t),n=new ArrayBuffer(r.length),i=new Uint8Array(n),a=0;a"u"?"undefined":Aa(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(t,e);else{var n=this.cy.window(),i=n.document;r=i.createElement("canvas"),r.width=t,r.height=e}return r};[Kbe,Cu,td,eY,ag,Fh,to,Jbe,$h,IT,a2e].forEach(function(t){Ir(rn,t)});var Iyt=[{name:"null",impl:Lbe},{name:"base",impl:Ybe},{name:"canvas",impl:Ryt}],Oyt=[{type:"layout",extensions:n1t},{type:"renderer",extensions:Iyt}],o2e={},l2e={};function c2e(t,e,r){var n=r,i=function(w){Ln("Can not register `"+e+"` for `"+t+"` since `"+w+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(m4.prototype[e])return i(e);m4.prototype[e]=r}else if(t==="collection"){if(Qa.prototype[e])return i(e);Qa.prototype[e]=r}else if(t==="layout"){for(var a=function(w){this.options=w,r.call(this,w),gn(this._private)||(this._private={}),this._private.cy=w.cy,this._private.listeners=[],this.createEmitter()},s=a.prototype=Object.create(r.prototype),o=[],l=0;lg&&(this.rect.x-=(this.labelWidth-g)/2,this.setWidth(this.labelWidth)),this.labelHeight>m&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-m)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-m),this.setHeight(this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(p){var g=this.rect.x;g>l.WORLD_BOUNDARY?g=l.WORLD_BOUNDARY:g<-l.WORLD_BOUNDARY&&(g=-l.WORLD_BOUNDARY);var m=this.rect.y;m>l.WORLD_BOUNDARY?m=l.WORLD_BOUNDARY:m<-l.WORLD_BOUNDARY&&(m=-l.WORLD_BOUNDARY);var y=new d(g,m),v=p.inverseTransformPoint(y);this.setLocation(v.x,v.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=h}),(function(r,n,i){function a(s,o){s==null&&o==null?(this.x=0,this.y=0):(this.x=s,this.y=o)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(s){this.x=s},a.prototype.setY=function(s){this.y=s},a.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},r.exports=a}),(function(r,n,i){var a=i(2),s=i(10),o=i(0),l=i(6),u=i(3),d=i(1),h=i(13),f=i(12),p=i(11);function g(y,v,b){a.call(this,b),this.estimatedSize=s.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=y,v!=null&&v instanceof l?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}g.prototype=Object.create(a.prototype);for(var m in a)g[m]=a[m];g.prototype.getNodes=function(){return this.nodes},g.prototype.getEdges=function(){return this.edges},g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getParent=function(){return this.parent},g.prototype.getLeft=function(){return this.left},g.prototype.getRight=function(){return this.right},g.prototype.getTop=function(){return this.top},g.prototype.getBottom=function(){return this.bottom},g.prototype.isConnected=function(){return this.isConnected},g.prototype.add=function(y,v,b){if(v==null&&b==null){var _=y;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(_)>-1)throw"Node already in graph!";return _.owner=this,this.getNodes().push(_),_}else{var E=y;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(b)>-1))throw"Source or target not in graph!";if(!(v.owner==b.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=b.owner?null:(E.source=v,E.target=b,E.isInterGraph=!1,this.getEdges().push(E),v.edges.push(E),b!=v&&b.edges.push(E),E)}},g.prototype.remove=function(y){var v=y;if(y instanceof u){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var b=v.edges.slice(),_,E=b.length,x=0;x-1&&w>-1))throw"Source and/or target doesn't know this edge!";_.source.edges.splice(T,1),_.target!=_.source&&_.target.edges.splice(w,1);var C=_.source.owner.getEdges().indexOf(_);if(C==-1)throw"Not in owner's edge list!";_.source.owner.getEdges().splice(C,1)}},g.prototype.updateLeftTop=function(){for(var y=s.MAX_VALUE,v=s.MAX_VALUE,b,_,E,x=this.getNodes(),C=x.length,T=0;Tb&&(y=b),v>_&&(v=_)}return y==s.MAX_VALUE?null:(x[0].getParent().paddingLeft!=null?E=x[0].getParent().paddingLeft:E=this.margin,this.left=v-E,this.top=y-E,new f(this.left,this.top))},g.prototype.updateBounds=function(y){for(var v=s.MAX_VALUE,b=-s.MAX_VALUE,_=s.MAX_VALUE,E=-s.MAX_VALUE,x,C,T,w,N,O=this.nodes,M=O.length,$=0;$x&&(v=x),bT&&(_=T),Ex&&(v=x),bT&&(_=T),E=this.nodes.length){var M=0;b.forEach(function($){$.owner==y&&M++}),M==this.nodes.length&&(this.isConnected=!0)}},r.exports=g}),(function(r,n,i){var a,s=i(1);function o(l){a=i(5),this.layout=l,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var l=this.layout.newGraph(),u=this.layout.newNode(null),d=this.add(l,u);return this.setRootGraph(d),this.rootGraph},o.prototype.add=function(l,u,d,h,f){if(d==null&&h==null&&f==null){if(l==null)throw"Graph is null!";if(u==null)throw"Parent node is null!";if(this.graphs.indexOf(l)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(l),l.parent!=null)throw"Already has a parent!";if(u.child!=null)throw"Already has a child!";return l.parent=u,u.child=l,l}else{f=d,h=u,d=l;var p=h.getOwner(),g=f.getOwner();if(!(p!=null&&p.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(g!=null&&g.getGraphManager()==this))throw"Target not in this graph mgr!";if(p==g)return d.isInterGraph=!1,p.add(d,h,f);if(d.isInterGraph=!0,d.source=h,d.target=f,this.edges.indexOf(d)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(d),!(d.source!=null&&d.target!=null))throw"Edge source and/or target is null!";if(!(d.source.edges.indexOf(d)==-1&&d.target.edges.indexOf(d)==-1))throw"Edge already in source and/or target incidency list!";return d.source.edges.push(d),d.target.edges.push(d),d}},o.prototype.remove=function(l){if(l instanceof a){var u=l;if(u.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(u==this.rootGraph||u.parent!=null&&u.parent.graphManager==this))throw"Invalid parent node!";var d=[];d=d.concat(u.getEdges());for(var h,f=d.length,p=0;p=l.getRight()?u[0]+=Math.min(l.getX()-o.getX(),o.getRight()-l.getRight()):l.getX()<=o.getX()&&l.getRight()>=o.getRight()&&(u[0]+=Math.min(o.getX()-l.getX(),l.getRight()-o.getRight())),o.getY()<=l.getY()&&o.getBottom()>=l.getBottom()?u[1]+=Math.min(l.getY()-o.getY(),o.getBottom()-l.getBottom()):l.getY()<=o.getY()&&l.getBottom()>=o.getBottom()&&(u[1]+=Math.min(o.getY()-l.getY(),l.getBottom()-o.getBottom()));var f=Math.abs((l.getCenterY()-o.getCenterY())/(l.getCenterX()-o.getCenterX()));l.getCenterY()===o.getCenterY()&&l.getCenterX()===o.getCenterX()&&(f=1);var p=f*u[0],g=u[1]/f;u[0]p)return u[0]=d,u[1]=m,u[2]=f,u[3]=O,!1;if(hf)return u[0]=g,u[1]=h,u[2]=w,u[3]=p,!1;if(df?(u[0]=v,u[1]=b,A=!0):(u[0]=y,u[1]=m,A=!0):D===R&&(d>f?(u[0]=g,u[1]=m,A=!0):(u[0]=_,u[1]=b,A=!0)),-L===R?f>d?(u[2]=N,u[3]=O,I=!0):(u[2]=w,u[3]=T,I=!0):L===R&&(f>d?(u[2]=C,u[3]=T,I=!0):(u[2]=M,u[3]=O,I=!0)),A&&I)return!1;if(d>f?h>p?(P=this.getCardinalDirection(D,R,4),z=this.getCardinalDirection(L,R,2)):(P=this.getCardinalDirection(-D,R,3),z=this.getCardinalDirection(-L,R,1)):h>p?(P=this.getCardinalDirection(-D,R,1),z=this.getCardinalDirection(-L,R,3)):(P=this.getCardinalDirection(D,R,2),z=this.getCardinalDirection(L,R,4)),!A)switch(P){case 1:q=m,B=d+-x/R,u[0]=B,u[1]=q;break;case 2:B=_,q=h+E*R,u[0]=B,u[1]=q;break;case 3:q=b,B=d+x/R,u[0]=B,u[1]=q;break;case 4:B=v,q=h+-E*R,u[0]=B,u[1]=q;break}if(!I)switch(z){case 1:Q=T,Y=f+-F/R,u[2]=Y,u[3]=Q;break;case 2:Y=M,Q=p+$*R,u[2]=Y,u[3]=Q;break;case 3:Q=O,Y=f+F/R,u[2]=Y,u[3]=Q;break;case 4:Y=N,Q=p+-$*R,u[2]=Y,u[3]=Q;break}}return!1},s.getCardinalDirection=function(o,l,u){return o>l?u:1+u%4},s.getIntersection=function(o,l,u,d){if(d==null)return this.getIntersection2(o,l,u);var h=o.x,f=o.y,p=l.x,g=l.y,m=u.x,y=u.y,v=d.x,b=d.y,_=void 0,E=void 0,x=void 0,C=void 0,T=void 0,w=void 0,N=void 0,O=void 0,M=void 0;return x=g-f,T=h-p,N=p*f-h*g,C=b-y,w=m-v,O=v*y-m*b,M=x*w-C*T,M===0?null:(_=(T*O-w*N)/M,E=(C*N-x*O)/M,new a(_,E))},s.angleOfVector=function(o,l,u,d){var h=void 0;return o!==u?(h=Math.atan((d-l)/(u-o)),u0?1:s<0?-1:0},a.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},a.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},r.exports=a}),(function(r,n,i){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,r.exports=a}),(function(r,n,i){var a=(function(){function h(f,p){for(var g=0;g"u"?"undefined":a(o);return o==null||l!="object"&&l!="function"},r.exports=s}),(function(r,n,i){function a(m){if(Array.isArray(m)){for(var y=0,v=Array(m.length);y0&&y;){for(x.push(T[0]);x.length>0&&y;){var w=x[0];x.splice(0,1),E.add(w);for(var N=w.getEdges(),_=0;_-1&&T.splice(F,1)}E=new Set,C=new Map}}return m},g.prototype.createDummyNodesForBendpoints=function(m){for(var y=[],v=m.source,b=this.graphManager.calcLowestCommonAncestor(m.source,m.target),_=0;_0){for(var b=this.edgeToDummyNodes.get(v),_=0;_=0&&y.splice(O,1);var M=C.getNeighborsList();M.forEach(function(A){if(v.indexOf(A)<0){var I=b.get(A),D=I-1;D==1&&w.push(A),b.set(A,D)}})}v=v.concat(w),(y.length==1||y.length==2)&&(_=!0,E=y[0])}return E},g.prototype.setGraphManager=function(m){this.graphManager=m},r.exports=g}),(function(r,n,i){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},r.exports=a}),(function(r,n,i){var a=i(4);function s(o,l){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(o){this.lworldOrgX=o},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(o){this.lworldOrgY=o},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(o){this.lworldExtX=o},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(o){this.lworldExtY=o},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(o){this.ldeviceOrgX=o},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(o){this.ldeviceOrgY=o},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(o){this.ldeviceExtX=o},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(o){this.ldeviceExtY=o},s.prototype.transformX=function(o){var l=0,u=this.lworldExtX;return u!=0&&(l=this.ldeviceOrgX+(o-this.lworldOrgX)*this.ldeviceExtX/u),l},s.prototype.transformY=function(o){var l=0,u=this.lworldExtY;return u!=0&&(l=this.ldeviceOrgY+(o-this.lworldOrgY)*this.ldeviceExtY/u),l},s.prototype.inverseTransformX=function(o){var l=0,u=this.ldeviceExtX;return u!=0&&(l=this.lworldOrgX+(o-this.ldeviceOrgX)*this.lworldExtX/u),l},s.prototype.inverseTransformY=function(o){var l=0,u=this.ldeviceExtY;return u!=0&&(l=this.lworldOrgY+(o-this.ldeviceOrgY)*this.lworldExtY/u),l},s.prototype.inverseTransformPoint=function(o){var l=new a(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return l},r.exports=s}),(function(r,n,i){function a(p){if(Array.isArray(p)){for(var g=0,m=Array(p.length);go.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(p-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(p>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(p-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var p=this.getAllEdges(),g,m=0;m0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m,y,v,b,_=this.getAllNodes(),E;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&p&&this.updateGrid(),E=new Set,m=0;m<_.length;m++)v=_[m],this.calculateRepulsionForceOfANode(v,E,p,g),E.add(v);else for(m=0;m<_.length;m++)for(v=_[m],y=m+1;y<_.length;y++)b=_[y],v.getOwner()==b.getOwner()&&this.calcRepulsionForce(v,b)},h.prototype.calcGravitationalForces=function(){for(var p,g=this.getAllNodesToApplyGravitation(),m=0;mx||E>x)&&(p.gravitationForceX=-this.gravityConstant*v,p.gravitationForceY=-this.gravityConstant*b)):(x=g.getEstimatedSize()*this.compoundGravityRangeFactor,(_>x||E>x)&&(p.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,p.gravitationForceY=-this.gravityConstant*b*this.compoundGravityConstant))},h.prototype.isConverged=function(){var p,g=!1;return this.totalIterations>this.maxIterations/3&&(g=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),p=this.totalDisplacement=_.length||x>=_[0].length)){for(var C=0;C<_[E][x].length;C++)if(b=_[E][x][C],!(p.getOwner()!=b.getOwner()||p==b)&&!g.has(b)&&!v.has(b)){var T=Math.abs(p.getCenterX()-b.getCenterX())-(p.getWidth()/2+b.getWidth()/2),w=Math.abs(p.getCenterY()-b.getCenterY())-(p.getHeight()/2+b.getHeight()/2);T<=this.repulsionRange&&w<=this.repulsionRange&&v.add(b)}}p.surrounding=[].concat(a(v))}for(E=0;Eh}}]),u})();r.exports=l}),(function(r,n,i){var a=(function(){function l(u,d){for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,l),this.sequence1=u,this.sequence2=d,this.match_score=h,this.mismatch_penalty=f,this.gap_penalty=p,this.iMax=u.length+1,this.jMax=d.length+1,this.grid=new Array(this.iMax);for(var g=0;g=0;u--){var d=this.listeners[u];d.event===o&&d.callback===l&&this.listeners.splice(u,1)}},s.emit=function(o,l){for(var u=0;ud.coolingFactor*d.maxNodeDisplacement&&(this.displacementX=d.coolingFactor*d.maxNodeDisplacement*o.sign(this.displacementX)),Math.abs(this.displacementY)>d.coolingFactor*d.maxNodeDisplacement&&(this.displacementY=d.coolingFactor*d.maxNodeDisplacement*o.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),d.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},l.prototype.propogateDisplacementToChildren=function(d,h){for(var f=this.getChild().getNodes(),p,g=0;g0)this.positionNodesRadially(T);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var w=new Set(this.getAllNodes()),N=this.nodesWithGravity.filter(function(O){return w.has(O)});this.graphManager.setAllNodesToApplyGravitation(N),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},x.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%f.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var T=new Set(this.getAllNodes()),w=this.nodesWithGravity.filter(function(M){return T.has(M)});this.graphManager.setAllNodesToApplyGravitation(w),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var N=!this.isTreeGrowing&&!this.isGrowthFinished,O=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(N,O),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},x.prototype.getPositionsData=function(){for(var T=this.graphManager.getAllNodes(),w={},N=0;N1){var A;for(A=0;AO&&(O=Math.floor(F.y)),$=Math.floor(F.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(p.WORLD_CENTER_X-F.x/2,p.WORLD_CENTER_Y-F.y/2))},x.radialLayout=function(T,w,N){var O=Math.max(this.maxDiagonalInTree(T),h.DEFAULT_RADIAL_SEPARATION);x.branchRadialLayout(w,null,0,359,0,O);var M=_.calculateBounds(T),$=new E;$.setDeviceOrgX(M.getMinX()),$.setDeviceOrgY(M.getMinY()),$.setWorldOrgX(N.x),$.setWorldOrgY(N.y);for(var F=0;F1;){var Q=Y[0];Y.splice(0,1);var H=R.indexOf(Q);H>=0&&R.splice(H,1),B--,P--}w!=null?q=(R.indexOf(Y[0])+1)%B:q=0;for(var J=Math.abs(O-N)/P,Z=q;z!=P;Z=++Z%B){var pe=R[Z].getOtherEnd(T);if(pe!=w){var re=(N+z*J)%360,ce=(re+J)%360;x.branchRadialLayout(pe,T,re,ce,M+$,$),z++}}},x.maxDiagonalInTree=function(T){for(var w=v.MIN_VALUE,N=0;Nw&&(w=M)}return w},x.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},x.prototype.groupZeroDegreeMembers=function(){var T=this,w={};this.memberGroups={},this.idToDummyNode={};for(var N=[],O=this.graphManager.getAllNodes(),M=0;M"u"&&(w[A]=[]),w[A]=w[A].concat($)}Object.keys(w).forEach(function(I){if(w[I].length>1){var D="DummyCompound_"+I;T.memberGroups[D]=w[I];var L=w[I][0].getParent(),R=new u(T.graphManager);R.id=D,R.paddingLeft=L.paddingLeft||0,R.paddingRight=L.paddingRight||0,R.paddingBottom=L.paddingBottom||0,R.paddingTop=L.paddingTop||0,T.idToDummyNode[D]=R;var P=T.getGraphManager().add(T.newGraph(),R),z=L.getChild();z.add(R);for(var B=0;B=0;T--){var w=this.compoundOrder[T],N=w.id,O=w.paddingLeft,M=w.paddingTop;this.adjustLocations(this.tiledMemberPack[N],w.rect.x,w.rect.y,O,M)}},x.prototype.repopulateZeroDegreeMembers=function(){var T=this,w=this.tiledZeroDegreePack;Object.keys(w).forEach(function(N){var O=T.idToDummyNode[N],M=O.paddingLeft,$=O.paddingTop;T.adjustLocations(w[N],O.rect.x,O.rect.y,M,$)})},x.prototype.getToBeTiled=function(T){var w=T.id;if(this.toBeTiled[w]!=null)return this.toBeTiled[w];var N=T.getChild();if(N==null)return this.toBeTiled[w]=!1,!1;for(var O=N.getNodes(),M=0;M0)return this.toBeTiled[w]=!1,!1;if($.getChild()==null){this.toBeTiled[$.id]=!1;continue}if(!this.getToBeTiled($))return this.toBeTiled[w]=!1,!1}return this.toBeTiled[w]=!0,!0},x.prototype.getNodeDegree=function(T){T.id;for(var w=T.getEdges(),N=0,O=0;OI&&(I=L.rect.height)}N+=I+T.verticalPadding}},x.prototype.tileCompoundMembers=function(T,w){var N=this;this.tiledMemberPack=[],Object.keys(T).forEach(function(O){var M=w[O];N.tiledMemberPack[O]=N.tileNodes(T[O],M.paddingLeft+M.paddingRight),M.rect.width=N.tiledMemberPack[O].width,M.rect.height=N.tiledMemberPack[O].height})},x.prototype.tileNodes=function(T,w){var N=h.TILING_PADDING_VERTICAL,O=h.TILING_PADDING_HORIZONTAL,M={rows:[],rowWidth:[],rowHeight:[],width:0,height:w,verticalPadding:N,horizontalPadding:O};T.sort(function(A,I){return A.rect.width*A.rect.height>I.rect.width*I.rect.height?-1:A.rect.width*A.rect.height0&&(F+=T.horizontalPadding),T.rowWidth[N]=F,T.width0&&(A+=T.verticalPadding);var I=0;A>T.rowHeight[N]&&(I=T.rowHeight[N],T.rowHeight[N]=A,I=T.rowHeight[N]-I),T.height+=I,T.rows[N].push(w)},x.prototype.getShortestRowIndex=function(T){for(var w=-1,N=Number.MAX_VALUE,O=0;ON&&(w=O,N=T.rowWidth[O]);return w},x.prototype.canAddHorizontal=function(T,w,N){var O=this.getShortestRowIndex(T);if(O<0)return!0;var M=T.rowWidth[O];if(M+T.horizontalPadding+w<=T.width)return!0;var $=0;T.rowHeight[O]0&&($=N+T.verticalPadding-T.rowHeight[O]);var F;T.width-M>=w+T.horizontalPadding?F=(T.height+$)/(M+w+T.horizontalPadding):F=(T.height+$)/T.width,$=N+T.verticalPadding;var A;return T.width$&&w!=N){O.splice(-1,1),T.rows[N].push(M),T.rowWidth[w]=T.rowWidth[w]-$,T.rowWidth[N]=T.rowWidth[N]+$,T.width=T.rowWidth[instance.getLongestRowIndex(T)];for(var F=Number.MIN_VALUE,A=0;AF&&(F=O[A].height);w>0&&(F+=T.verticalPadding);var I=T.rowHeight[w]+T.rowHeight[N];T.rowHeight[w]=F,T.rowHeight[N]0)for(var z=M;z<=$;z++)P[0]+=this.grid[z][F-1].length+this.grid[z][F].length-1;if($0)for(var z=F;z<=A;z++)P[3]+=this.grid[M-1][z].length+this.grid[M][z].length-1;for(var B=v.MAX_VALUE,q,Y,Q=0;Q0){var A;A=E.getGraphManager().add(E.newGraph(),N),this.processChildrenList(A,w,E)}}},m.prototype.stop=function(){return this.stopped=!0,this};var v=function(_){_("layout","cose-bilkent",m)};typeof cytoscape<"u"&&v(cytoscape),n.exports=v})])})})(b5)),b5.exports}var Gyt=Uyt();const qyt=Ml(Gyt);su.use(qyt);function d2e(t,e){t.forEach(r=>{const n={id:r.id,labelText:r.label,height:r.height,width:r.width,padding:r.padding??0};Object.keys(r).forEach(i=>{["id","label","height","width","padding","x","y"].includes(i)||(n[i]=r[i])}),e.add({group:"nodes",data:n,position:{x:r.x??0,y:r.y??0}})})}S(d2e,"addNodes");function h2e(t,e){t.forEach(r=>{const n={id:r.id,source:r.start,target:r.end};Object.keys(r).forEach(i=>{["id","start","end"].includes(i)||(n[i]=r[i])}),e.add({group:"edges",data:n})})}S(h2e,"addEdges");function f2e(t){return new Promise(e=>{const r=At("body").append("div").attr("id","cy").attr("style","display:none"),n=su({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),d2e(t.nodes,n),h2e(t.edges,n),n.nodes().forEach(function(a){a.layoutDimensions=()=>{const s=a.data();return{w:s.width,h:s.height}}});const i={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(i).run(),n.ready(a=>{ge.info("Cytoscape ready",a),e(n)})})}S(f2e,"createCytoscapeInstance");function p2e(t){return t.nodes().map(e=>{const r=e.data(),n=e.position(),i={id:r.id,x:n.x,y:n.y};return Object.keys(r).forEach(a=>{a!=="id"&&(i[a]=r[a])}),i})}S(p2e,"extractPositionedNodes");function g2e(t){return t.edges().map(e=>{const r=e.data(),n=e._private.rscratch,i={id:r.id,source:r.source,target:r.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(r).forEach(a=>{["id","source","target"].includes(a)||(i[a]=r[a])}),i})}S(g2e,"extractPositionedEdges");async function m2e(t,e){ge.debug("Starting cose-bilkent layout algorithm");try{y2e(t);const r=await f2e(t),n=p2e(r),i=g2e(r);return ge.debug(`Layout completed: ${n.length} nodes, ${i.length} edges`),{nodes:n,edges:i}}catch(r){throw ge.error("Error in cose-bilkent layout algorithm:",r),r}}S(m2e,"executeCoseBilkentLayout");function y2e(t){if(!t)throw new Error("Layout data is required");if(!t.config)throw new Error("Configuration is required in layout data");if(!t.rootNode)throw new Error("Root node is required");if(!t.nodes||!Array.isArray(t.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(t.edges))throw new Error("Edges array is required in layout data");return!0}S(y2e,"validateLayoutData");var Yyt=S(async(t,e,{insertCluster:r,insertEdge:n,insertEdgeLabel:i,insertMarkers:a,insertNode:s,log:o,positionEdgeLabel:l},{algorithm:u})=>{const d={},h={},f=e.select("g");a(f,t.markers,t.type,t.diagramId);const p=f.insert("g").attr("class","subgraphs"),g=f.insert("g").attr("class","edgePaths"),m=f.insert("g").attr("class","edgeLabels"),y=f.insert("g").attr("class","nodes");o.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(t.nodes.map(async _=>{if(_.isGroup){const E={..._};h[_.id]=E,d[_.id]=E,await r(p,_)}else{const E={..._};d[_.id]=E;const x=await s(y,_,{config:t.config,dir:t.direction||"TB"}),C=x.node().getBBox();E.width=C.width,E.height=C.height,E.domId=x,o.debug(`Node ${_.id} dimensions: ${C.width}x${C.height}`)}})),o.debug("Running cose-bilkent layout algorithm");const v={...t,nodes:t.nodes.map(_=>{const E=d[_.id];return{..._,width:E.width,height:E.height}})},b=await m2e(v,t.config);o.debug("Positioning nodes based on layout results"),b.nodes.forEach(_=>{const E=d[_.id];E?.domId&&(E.domId.attr("transform",`translate(${_.x}, ${_.y})`),E.x=_.x,E.y=_.y,o.debug(`Positioned node ${E.id} at center (${_.x}, ${_.y})`))}),b.edges.forEach(_=>{const E=t.edges.find(x=>x.id===_.id);E&&(E.points=[{x:_.startX,y:_.startY},{x:_.midX,y:_.midY},{x:_.endX,y:_.endY}])}),o.debug("Inserting and positioning edges"),await Promise.all(t.edges.map(async _=>{await i(m,_);const E=d[_.start??""],x=d[_.end??""];if(E&&x){const C=b.edges.find(T=>T.id===_.id);if(C){o.debug("APA01 positionedEdge",C);const T={..._},w=n(g,T,h,t.type,E,x,t.diagramId);l(T,w)}else{const T={..._,points:[{x:E.x||0,y:E.y||0},{x:x.x||0,y:x.y||0}]},w=n(g,T,h,t.type,E,x,t.diagramId);l(T,w)}}})),o.debug("Cose-bilkent rendering completed")},"render"),Hyt=Yyt;const Vyt=Object.freeze(Object.defineProperty({__proto__:null,render:Hyt},Symbol.toStringTag,{value:"Module"}));var U7=S((t,e)=>{const r=t.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),e.name&&r.attr("name",e.name),e.rx&&r.attr("rx",e.rx),e.ry&&r.attr("ry",e.ry),e.attrs!==void 0)for(const n in e.attrs)r.attr(n,e.attrs[n]);return e.class&&r.attr("class",e.class),r},"drawRect"),v2e=S((t,e)=>{const r={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};U7(t,r).lower()},"drawBackgroundRect"),Wyt=S((t,e)=>{const r=e.text.replace($b," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),e.class&&n.attr("class",e.class);const i=n.append("tspan");return i.attr("x",e.x+e.textMargin*2),i.text(r),n},"drawText"),rY=S((t,e,r,n)=>{const i=t.append("image");i.attr("x",e),i.attr("y",r);const a=Kp.sanitizeUrl(n);i.attr("xlink:href",a)},"drawImage"),nY=S((t,e,r,n)=>{const i=t.append("use");i.attr("x",e),i.attr("y",r);const a=Kp.sanitizeUrl(n);i.attr("xlink:href",`#${a}`)},"drawEmbeddedImage"),Xo=S(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),iY=S(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),_2e=S(()=>{let t=At(".mermaidTooltip");return t.empty()&&(t=At("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip"),P6=(function(){var t=S(function(De,Je,st,ct){for(st=st||{},ct=De.length;ct--;st[De[ct]]=Je);return st},"o"),e=[1,24],r=[1,25],n=[1,26],i=[1,27],a=[1,28],s=[1,63],o=[1,64],l=[1,65],u=[1,66],d=[1,67],h=[1,68],f=[1,69],p=[1,29],g=[1,30],m=[1,31],y=[1,32],v=[1,33],b=[1,34],_=[1,35],E=[1,36],x=[1,37],C=[1,38],T=[1,39],w=[1,40],N=[1,41],O=[1,42],M=[1,43],$=[1,44],F=[1,45],A=[1,46],I=[1,47],D=[1,48],L=[1,50],R=[1,51],P=[1,52],z=[1,53],B=[1,54],q=[1,55],Y=[1,56],Q=[1,57],H=[1,58],J=[1,59],Z=[1,60],pe=[14,42],re=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ce=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ae=[1,82],se=[1,83],xe=[1,84],Te=[1,85],Ge=[12,14,42],ze=[12,14,33,42],Xe=[12,14,33,42,76,77,79,80],Le=[12,33],Re=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qe={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:S(function(Je,st,ct,ot,it,Oe,U){var oe=Oe.length-1;switch(it){case 3:ot.setDirection("TB");break;case 4:ot.setDirection("BT");break;case 5:ot.setDirection("RL");break;case 6:ot.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:ot.setC4Type(Oe[oe-3]);break;case 19:ot.setTitle(Oe[oe].substring(6)),this.$=Oe[oe].substring(6);break;case 20:ot.setAccDescription(Oe[oe].substring(15)),this.$=Oe[oe].substring(15);break;case 21:this.$=Oe[oe].trim(),ot.setTitle(this.$);break;case 22:case 23:this.$=Oe[oe].trim(),ot.setAccDescription(this.$);break;case 28:Oe[oe].splice(2,0,"ENTERPRISE"),ot.addPersonOrSystemBoundary(...Oe[oe]),this.$=Oe[oe];break;case 29:Oe[oe].splice(2,0,"SYSTEM"),ot.addPersonOrSystemBoundary(...Oe[oe]),this.$=Oe[oe];break;case 30:ot.addPersonOrSystemBoundary(...Oe[oe]),this.$=Oe[oe];break;case 31:Oe[oe].splice(2,0,"CONTAINER"),ot.addContainerBoundary(...Oe[oe]),this.$=Oe[oe];break;case 32:ot.addDeploymentNode("node",...Oe[oe]),this.$=Oe[oe];break;case 33:ot.addDeploymentNode("nodeL",...Oe[oe]),this.$=Oe[oe];break;case 34:ot.addDeploymentNode("nodeR",...Oe[oe]),this.$=Oe[oe];break;case 35:ot.popBoundaryParseStack();break;case 39:ot.addPersonOrSystem("person",...Oe[oe]),this.$=Oe[oe];break;case 40:ot.addPersonOrSystem("external_person",...Oe[oe]),this.$=Oe[oe];break;case 41:ot.addPersonOrSystem("system",...Oe[oe]),this.$=Oe[oe];break;case 42:ot.addPersonOrSystem("system_db",...Oe[oe]),this.$=Oe[oe];break;case 43:ot.addPersonOrSystem("system_queue",...Oe[oe]),this.$=Oe[oe];break;case 44:ot.addPersonOrSystem("external_system",...Oe[oe]),this.$=Oe[oe];break;case 45:ot.addPersonOrSystem("external_system_db",...Oe[oe]),this.$=Oe[oe];break;case 46:ot.addPersonOrSystem("external_system_queue",...Oe[oe]),this.$=Oe[oe];break;case 47:ot.addContainer("container",...Oe[oe]),this.$=Oe[oe];break;case 48:ot.addContainer("container_db",...Oe[oe]),this.$=Oe[oe];break;case 49:ot.addContainer("container_queue",...Oe[oe]),this.$=Oe[oe];break;case 50:ot.addContainer("external_container",...Oe[oe]),this.$=Oe[oe];break;case 51:ot.addContainer("external_container_db",...Oe[oe]),this.$=Oe[oe];break;case 52:ot.addContainer("external_container_queue",...Oe[oe]),this.$=Oe[oe];break;case 53:ot.addComponent("component",...Oe[oe]),this.$=Oe[oe];break;case 54:ot.addComponent("component_db",...Oe[oe]),this.$=Oe[oe];break;case 55:ot.addComponent("component_queue",...Oe[oe]),this.$=Oe[oe];break;case 56:ot.addComponent("external_component",...Oe[oe]),this.$=Oe[oe];break;case 57:ot.addComponent("external_component_db",...Oe[oe]),this.$=Oe[oe];break;case 58:ot.addComponent("external_component_queue",...Oe[oe]),this.$=Oe[oe];break;case 60:ot.addRel("rel",...Oe[oe]),this.$=Oe[oe];break;case 61:ot.addRel("birel",...Oe[oe]),this.$=Oe[oe];break;case 62:ot.addRel("rel_u",...Oe[oe]),this.$=Oe[oe];break;case 63:ot.addRel("rel_d",...Oe[oe]),this.$=Oe[oe];break;case 64:ot.addRel("rel_l",...Oe[oe]),this.$=Oe[oe];break;case 65:ot.addRel("rel_r",...Oe[oe]),this.$=Oe[oe];break;case 66:ot.addRel("rel_b",...Oe[oe]),this.$=Oe[oe];break;case 67:Oe[oe].splice(0,1),ot.addRel("rel",...Oe[oe]),this.$=Oe[oe];break;case 68:ot.updateElStyle("update_el_style",...Oe[oe]),this.$=Oe[oe];break;case 69:ot.updateRelStyle("update_rel_style",...Oe[oe]),this.$=Oe[oe];break;case 70:ot.updateLayoutConfig("update_layout_config",...Oe[oe]),this.$=Oe[oe];break;case 71:this.$=[Oe[oe]];break;case 72:Oe[oe].unshift(Oe[oe-1]),this.$=Oe[oe];break;case 73:case 75:this.$=Oe[oe].trim();break;case 74:let de={};de[Oe[oe-1].trim()]=Oe[oe].trim(),this.$=de;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z},{13:70,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z},{13:71,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z},{13:72,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z},{13:73,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z},{14:[1,74]},t(pe,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:o,37:l,38:u,39:d,40:h,41:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z}),t(pe,[2,14]),t(re,[2,16],{12:[1,76]}),t(pe,[2,36],{12:[1,77]}),t(ce,[2,19]),t(ce,[2,20]),{25:[1,78]},{27:[1,79]},t(ce,[2,23]),{35:80,75:81,76:ae,77:se,79:xe,80:Te},{35:86,75:81,76:ae,77:se,79:xe,80:Te},{35:87,75:81,76:ae,77:se,79:xe,80:Te},{35:88,75:81,76:ae,77:se,79:xe,80:Te},{35:89,75:81,76:ae,77:se,79:xe,80:Te},{35:90,75:81,76:ae,77:se,79:xe,80:Te},{35:91,75:81,76:ae,77:se,79:xe,80:Te},{35:92,75:81,76:ae,77:se,79:xe,80:Te},{35:93,75:81,76:ae,77:se,79:xe,80:Te},{35:94,75:81,76:ae,77:se,79:xe,80:Te},{35:95,75:81,76:ae,77:se,79:xe,80:Te},{35:96,75:81,76:ae,77:se,79:xe,80:Te},{35:97,75:81,76:ae,77:se,79:xe,80:Te},{35:98,75:81,76:ae,77:se,79:xe,80:Te},{35:99,75:81,76:ae,77:se,79:xe,80:Te},{35:100,75:81,76:ae,77:se,79:xe,80:Te},{35:101,75:81,76:ae,77:se,79:xe,80:Te},{35:102,75:81,76:ae,77:se,79:xe,80:Te},{35:103,75:81,76:ae,77:se,79:xe,80:Te},{35:104,75:81,76:ae,77:se,79:xe,80:Te},t(Ge,[2,59]),{35:105,75:81,76:ae,77:se,79:xe,80:Te},{35:106,75:81,76:ae,77:se,79:xe,80:Te},{35:107,75:81,76:ae,77:se,79:xe,80:Te},{35:108,75:81,76:ae,77:se,79:xe,80:Te},{35:109,75:81,76:ae,77:se,79:xe,80:Te},{35:110,75:81,76:ae,77:se,79:xe,80:Te},{35:111,75:81,76:ae,77:se,79:xe,80:Te},{35:112,75:81,76:ae,77:se,79:xe,80:Te},{35:113,75:81,76:ae,77:se,79:xe,80:Te},{35:114,75:81,76:ae,77:se,79:xe,80:Te},{35:115,75:81,76:ae,77:se,79:xe,80:Te},{20:116,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z},{12:[1,118],33:[1,117]},{35:119,75:81,76:ae,77:se,79:xe,80:Te},{35:120,75:81,76:ae,77:se,79:xe,80:Te},{35:121,75:81,76:ae,77:se,79:xe,80:Te},{35:122,75:81,76:ae,77:se,79:xe,80:Te},{35:123,75:81,76:ae,77:se,79:xe,80:Te},{35:124,75:81,76:ae,77:se,79:xe,80:Te},{35:125,75:81,76:ae,77:se,79:xe,80:Te},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(pe,[2,15]),t(re,[2,17],{21:22,19:130,22:e,23:r,24:n,26:i,28:a}),t(pe,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:r,24:n,26:i,28:a,34:s,36:o,37:l,38:u,39:d,40:h,41:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z}),t(ce,[2,21]),t(ce,[2,22]),t(Ge,[2,39]),t(ze,[2,71],{75:81,35:132,76:ae,77:se,79:xe,80:Te}),t(Xe,[2,73]),{78:[1,133]},t(Xe,[2,75]),t(Xe,[2,76]),t(Ge,[2,40]),t(Ge,[2,41]),t(Ge,[2,42]),t(Ge,[2,43]),t(Ge,[2,44]),t(Ge,[2,45]),t(Ge,[2,46]),t(Ge,[2,47]),t(Ge,[2,48]),t(Ge,[2,49]),t(Ge,[2,50]),t(Ge,[2,51]),t(Ge,[2,52]),t(Ge,[2,53]),t(Ge,[2,54]),t(Ge,[2,55]),t(Ge,[2,56]),t(Ge,[2,57]),t(Ge,[2,58]),t(Ge,[2,60]),t(Ge,[2,61]),t(Ge,[2,62]),t(Ge,[2,63]),t(Ge,[2,64]),t(Ge,[2,65]),t(Ge,[2,66]),t(Ge,[2,67]),t(Ge,[2,68]),t(Ge,[2,69]),t(Ge,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(Le,[2,28]),t(Le,[2,29]),t(Le,[2,30]),t(Le,[2,31]),t(Le,[2,32]),t(Le,[2,33]),t(Le,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(re,[2,18]),t(pe,[2,38]),t(ze,[2,72]),t(Xe,[2,74]),t(Ge,[2,24]),t(Ge,[2,35]),t(Re,[2,25]),t(Re,[2,26],{12:[1,138]}),t(Re,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:S(function(Je,st){if(st.recoverable)this.trace(Je);else{var ct=new Error(Je);throw ct.hash=st,ct}},"parseError"),parse:S(function(Je){var st=this,ct=[0],ot=[],it=[null],Oe=[],U=this.table,oe="",de=0,G=0,ie=2,j=1,V=Oe.slice.call(arguments,1),ue=Object.create(this.lexer),Fe={yy:{}};for(var me in this.yy)Object.prototype.hasOwnProperty.call(this.yy,me)&&(Fe.yy[me]=this.yy[me]);ue.setInput(Je,Fe.yy),Fe.yy.lexer=ue,Fe.yy.parser=this,typeof ue.yylloc>"u"&&(ue.yylloc={});var Ce=ue.yylloc;Oe.push(Ce);var ye=ue.options&&ue.options.ranges;typeof Fe.yy.parseError=="function"?this.parseError=Fe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(fe){ct.length=ct.length-2*fe,it.length=it.length-fe,Oe.length=Oe.length-fe}S(Me,"popStack");function Ie(){var fe;return fe=ot.pop()||ue.lex()||j,typeof fe!="number"&&(fe instanceof Array&&(ot=fe,fe=ot.pop()),fe=st.symbols_[fe]||fe),fe}S(Ie,"lex");for(var he,le,Be,ve,gt={},Et,et,dt,ft;;){if(le=ct[ct.length-1],this.defaultActions[le]?Be=this.defaultActions[le]:((he===null||typeof he>"u")&&(he=Ie()),Be=U[le]&&U[le][he]),typeof Be>"u"||!Be.length||!Be[0]){var mt="";ft=[];for(Et in U[le])this.terminals_[Et]&&Et>ie&&ft.push("'"+this.terminals_[Et]+"'");ue.showPosition?mt="Parse error on line "+(de+1)+`: + `),o=X1t(n,i,s);o.aPosition=n.getAttribLocation(o,"aPosition"),o.aIndex=n.getAttribLocation(o,"aIndex"),o.aVertType=n.getAttribLocation(o,"aVertType"),o.aTransform=n.getAttribLocation(o,"aTransform"),o.aAtlasId=n.getAttribLocation(o,"aAtlasId"),o.aTex=n.getAttribLocation(o,"aTex"),o.aPointAPointB=n.getAttribLocation(o,"aPointAPointB"),o.aPointCPointD=n.getAttribLocation(o,"aPointCPointD"),o.aLineWidth=n.getAttribLocation(o,"aLineWidth"),o.aColor=n.getAttribLocation(o,"aColor"),o.aCornerRadius=n.getAttribLocation(o,"aCornerRadius"),o.aBorderColor=n.getAttribLocation(o,"aBorderColor"),o.uPanZoomMatrix=n.getUniformLocation(o,"uPanZoomMatrix"),o.uAtlasSize=n.getUniformLocation(o,"uAtlasSize"),o.uBGColor=n.getUniformLocation(o,"uBGColor"),o.uZoom=n.getUniformLocation(o,"uZoom"),o.uTextures=[];for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:aS.SCREEN;this.panZoomMatrix=r,this.renderTarget=n,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(r,n){return r.visible()?n&&n.isVisible?n.isVisible(r):!0:!1}},{key:"drawTexture",value:function(r,n,i){var a=this.atlasManager,s=this.batchManager,o=a.getRenderTypeOpts(i);if(this._isVisible(r,o)&&!(r.isEdge()&&!this._isValidEdge(r))){if(this.renderTarget.picking&&o.getTexPickingMode){var l=o.getTexPickingMode(r);if(l===L6.IGNORE)return;if(l==L6.USE_BB){this.drawPickingRectangle(r,n,i);return}}var u=a.getAtlasInfo(r,i),d=yo(u),h;try{for(d.s();!(h=d.n()).done;){var f=h.value,p=f.atlas,g=f.tex1,m=f.tex2;s.canAddToCurrentBatch(p)||this.endBatch();for(var y=s.getAtlasIndexForBatch(p),v=0,b=[[g,!0],[m,!1]];v=this.maxInstances&&this.endBatch()}}}}catch(M){d.e(M)}finally{d.f()}}}},{key:"setTransformMatrix",value:function(r,n,i,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=0;if(i.shapeProps&&i.shapeProps.padding&&(o=r.pstyle(i.shapeProps.padding).pfValue),a){var l=a.bb,u=a.tex1,d=a.tex2,h=u.w/(u.w+d.w);s||(h=1-h);var f=this._getAdjustedBB(l,o,s,h);this._applyTransformMatrix(n,f,i,r)}else{var p=i.getBoundingBox(r),g=this._getAdjustedBB(p,o,!0,1);this._applyTransformMatrix(n,g,i,r)}}},{key:"_applyTransformMatrix",value:function(r,n,i,a){var s,o;Tae(r);var l=i.getRotation?i.getRotation(a):0;if(l!==0){var u=i.getRotationPoint(a),d=u.x,h=u.y;_5(r,r,[d,h]),xae(r,r,l);var f=i.getRotationOffset(a);s=f.x+(n.xOffset||0),o=f.y+(n.yOffset||0)}else s=n.x1,o=n.y1;_5(r,r,[s,o]),MB(r,r,[n.w,n.h])}},{key:"_getAdjustedBB",value:function(r,n,i,a){var s=r.x1,o=r.y1,l=r.w,u=r.h,d=r.yOffset;n&&(s-=n,o-=n,l+=2*n,u+=2*n);var h=0,f=l*a;return i&&a<1?l=f:!i&&a<1&&(h=l-f,s+=h,l=f),{x1:s,y1:o,w:l,h:u,xOffset:h,yOffset:d}}},{key:"drawPickingRectangle",value:function(r,n,i){var a=this.atlasManager.getRenderTypeOpts(i),s=this.instanceCount;this.vertTypeBuffer.getView(s)[0]=Yg;var o=this.indexBuffer.getView(s);qg(n,o);var l=this.colorBuffer.getView(s);uf([0,0,0],1,l);var u=this.transformBuffer.getMatrixView(s);this.setTransformMatrix(r,u,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(r,n,i){var a=this.simpleShapeOptions.get(i);if(this._isVisible(r,a)){var s=a.shapeProps,o=this._getVertTypeForShape(r,s.shape);if(o===void 0||a.isSimple&&!a.isSimple(r)){this.drawTexture(r,n,i);return}var l=this.instanceCount;if(this.vertTypeBuffer.getView(l)[0]=o,o===d3||o===q2){var u=a.getBoundingBox(r),d=this._getCornerRadius(r,s.radius,u),h=this.cornerRadiusBuffer.getView(l);h[0]=d,h[1]=d,h[2]=d,h[3]=d,o===q2&&(h[0]=0,h[2]=0)}var f=this.indexBuffer.getView(l);qg(n,f);var p=r.pstyle(s.color).value,g=r.pstyle(s.opacity).value,m=this.colorBuffer.getView(l);uf(p,g,m);var y=this.lineWidthBuffer.getView(l);if(y[0]=0,y[1]=0,s.border){var v=r.pstyle("border-width").value;if(v>0){var b=r.pstyle("border-color").value,_=r.pstyle("border-opacity").value,E=this.borderColorBuffer.getView(l);uf(b,_,E);var x=r.pstyle("border-position").value;if(x==="inside")y[0]=0,y[1]=-v;else if(x==="outside")y[0]=v,y[1]=0;else{var C=v/2;y[0]=C,y[1]=-C}}}var T=this.transformBuffer.getMatrixView(l);this.setTransformMatrix(r,T,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:"_getVertTypeForShape",value:function(r,n){var i=r.pstyle(n).value;switch(i){case"rectangle":return Yg;case"ellipse":return Y2;case"roundrectangle":case"round-rectangle":return d3;case"bottom-round-rectangle":return q2;default:return}}},{key:"_getCornerRadius",value:function(r,n,i){var a=i.w,s=i.h;if(r.pstyle(n).value==="auto")return _h(a,s);var o=r.pstyle(n).pfValue,l=a/2,u=s/2;return Math.min(o,u,l)}},{key:"drawEdgeArrow",value:function(r,n,i){if(r.visible()){var a=r._private.rscratch,s,o,l;if(i==="source"?(s=a.arrowStartX,o=a.arrowStartY,l=a.srcArrowAngle):(s=a.arrowEndX,o=a.arrowEndY,l=a.tgtArrowAngle),!(isNaN(s)||s==null||isNaN(o)||o==null||isNaN(l)||l==null)){var u=r.pstyle(i+"-arrow-shape").value;if(u!=="none"){var d=r.pstyle(i+"-arrow-color").value,h=r.pstyle("opacity").value,f=r.pstyle("line-opacity").value,p=h*f,g=r.pstyle("width").pfValue,m=r.pstyle("arrow-scale").value,y=this.r.getArrowWidth(g,m),v=this.instanceCount,b=this.transformBuffer.getMatrixView(v);Tae(b),_5(b,b,[s,o]),MB(b,b,[y,y]),xae(b,b,l),this.vertTypeBuffer.getView(v)[0]=vL;var _=this.indexBuffer.getView(v);qg(n,_);var E=this.colorBuffer.getView(v);uf(d,p,E),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"drawEdgeLine",value:function(r,n){if(r.visible()){var i=this._getEdgePoints(r);if(i){var a=r.pstyle("opacity").value,s=r.pstyle("line-opacity").value,o=r.pstyle("width").pfValue,l=r.pstyle("line-color").value,u=a*s;if(i.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),i.length==4){var d=this.instanceCount;this.vertTypeBuffer.getView(d)[0]=Cae;var h=this.indexBuffer.getView(d);qg(n,h);var f=this.colorBuffer.getView(d);uf(l,u,f);var p=this.lineWidthBuffer.getView(d);p[0]=o;var g=this.pointAPointBBuffer.getView(d);g[0]=i[0],g[1]=i[1],g[2]=i[2],g[3]=i[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var m=0;m=this.maxInstances&&this.endBatch()}}}}},{key:"_isValidEdge",value:function(r){var n=r._private.rscratch;return!(n.badLine||n.allpts==null||isNaN(n.allpts[0]))}},{key:"_getEdgePoints",value:function(r){var n=r._private.rscratch;if(this._isValidEdge(r)){var i=n.allpts;if(i.length==4)return i;var a=this._getNumSegments(r);return this._getCurveSegmentPoints(i,a)}}},{key:"_getNumSegments",value:function(r){var n=15;return Math.min(Math.max(n,5),this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(r,n){if(r.length==4)return r;for(var i=Array((n+1)*2),a=0;a<=n;a++)if(a==0)i[0]=r[0],i[1]=r[1];else if(a==n)i[a*2]=r[r.length-2],i[a*2+1]=r[r.length-1];else{var s=a/n;this._setCurvePoint(r,s,i,a*2)}return i}},{key:"_setCurvePoint",value:function(r,n,i,a){if(r.length<=2)i[a]=r[0],i[a+1]=r[1];else{for(var s=Array(r.length-2),o=0;o0}},o=function(h){var f=h.pstyle("text-events").strValue==="yes";return f?L6.USE_BB:L6.IGNORE},l=function(h){var f=h.position(),p=f.x,g=f.y,m=h.outerWidth(),y=h.outerHeight();return{w:m,h:y,x1:p-m/2,y1:g-y/2}};r.drawing.addAtlasCollection("node",{texRows:t.webglTexRowsNodes}),r.drawing.addAtlasCollection("label",{texRows:t.webglTexRows}),r.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:e.getStyleKey,getBoundingBox:e.getElementBox,drawElement:e.drawElement}),r.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:l,isSimple:J1t,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),r.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:l,isVisible:s("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),r.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:l,isVisible:s("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),r.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:o,getKey:_L(e.getLabelKey,null),getBoundingBox:bL(e.getLabelBox,null),drawClipped:!0,drawElement:e.drawLabel,getRotation:i(null),getRotationPoint:e.getLabelRotationPoint,getRotationOffset:e.getLabelRotationOffset,isVisible:a("label")}),r.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:o,getKey:_L(e.getSourceLabelKey,"source"),getBoundingBox:bL(e.getSourceLabelBox,"source"),drawClipped:!0,drawElement:e.drawSourceLabel,getRotation:i("source"),getRotationPoint:e.getSourceLabelRotationPoint,getRotationOffset:e.getSourceLabelRotationOffset,isVisible:a("source-label")}),r.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:o,getKey:_L(e.getTargetLabelKey,"target"),getBoundingBox:bL(e.getTargetLabelBox,"target"),drawClipped:!0,drawElement:e.drawTargetLabel,getRotation:i("target"),getRotationPoint:e.getTargetLabelRotationPoint,getRotationOffset:e.getTargetLabelRotationOffset,isVisible:a("target-label")});var u=CT(function(){console.log("garbage collect flag set"),r.data.gc=!0},1e4);r.onUpdateEleCalcs(function(d,h){var f=!1;h&&h.length>0&&(f|=r.drawing.invalidate(h)),f&&u()}),byt(r)};function _yt(t){var e=t.cy.container(),r=e&&e.style&&e.style.backgroundColor||"white";return k_e(r)}function e2e(t,e){var r=t._private.rscratch;return ho(r,"labelWrapCachedLines",e)||[]}var _L=function(e,r){return function(n){var i=e(n),a=e2e(n,r);return a.length>1?a.map(function(s,o){return"".concat(i,"_").concat(o)}):i}},bL=function(e,r){return function(n,i){var a=e(n);if(typeof i=="string"){var s=i.indexOf("_");if(s>0){var o=Number(i.substring(s+1)),l=e2e(n,r),u=a.h/l.length,d=u*o,h=a.y1+d;return{x1:a.x1,w:a.w,y1:h,h:u,yOffset:d}}}return a}};function byt(t){{var e=t.render;t.render=function(a){a=a||{};var s=t.cy;t.webgl&&(s.zoom()>Vbe?(Eyt(t),e.call(t,a)):(Syt(t),r2e(t,a,aS.SCREEN)))}}{var r=t.matchCanvasSize;t.matchCanvasSize=function(a){r.call(t,a),t.pickingFrameBuffer.setFramebufferAttachmentSizes(t.canvasWidth,t.canvasHeight),t.pickingFrameBuffer.needsDraw=!0}}t.findNearestElements=function(a,s,o,l){return Ayt(t,a,s)};{var n=t.invalidateCachedZSortedEles;t.invalidateCachedZSortedEles=function(){n.call(t),t.pickingFrameBuffer.needsDraw=!0}}{var i=t.notify;t.notify=function(a,s){i.call(t,a,s),a==="viewport"||a==="bounds"?t.pickingFrameBuffer.needsDraw=!0:a==="background"&&t.drawing.invalidate(s,{type:"node-body"})}}}function Eyt(t){var e=t.data.contexts[t.WEBGL];e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}function Syt(t){var e=function(n){n.save(),n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,t.canvasWidth,t.canvasHeight),n.restore()};e(t.data.contexts[t.NODE]),e(t.data.contexts[t.DRAG])}function Tyt(t){var e=t.canvasWidth,r=t.canvasHeight,n=tY(t),i=n.pan,a=n.zoom,s=mL();_5(s,s,[i.x,i.y]),MB(s,s,[a,a]);var o=mL();lyt(o,e,r);var l=mL();return oyt(l,o,s),l}function t2e(t,e){var r=t.canvasWidth,n=t.canvasHeight,i=tY(t),a=i.pan,s=i.zoom;e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,r,n),e.translate(a.x,a.y),e.scale(s,s)}function xyt(t,e){t.drawSelectionRectangle(e,function(r){return t2e(t,r)})}function Cyt(t){var e=t.data.contexts[t.NODE];e.save(),t2e(t,e),e.strokeStyle="rgba(0, 0, 0, 0.3)",e.beginPath(),e.moveTo(-1e3,0),e.lineTo(1e3,0),e.stroke(),e.beginPath(),e.moveTo(0,-1e3),e.lineTo(0,1e3),e.stroke(),e.restore()}function wyt(t){var e=function(i,a,s){for(var o=i.atlasManager.getAtlasCollection(a),l=t.data.contexts[t.NODE],u=o.atlases,d=0;d=0&&E.add(T)}return E}function Ayt(t,e,r){var n=kyt(t,e,r),i=t.getCachedZSortedEles(),a,s,o=yo(n),l;try{for(o.s();!(l=o.n()).done;){var u=l.value,d=i[u];if(!a&&d.isNode()&&(a=d),!s&&d.isEdge()&&(s=d),a&&s)break}}catch(h){o.e(h)}finally{o.f()}return[a,s].filter(Boolean)}function EL(t,e,r){var n=t.drawing;e+=1,r.isNode()?(n.drawNode(r,e,"node-underlay"),n.drawNode(r,e,"node-body"),n.drawTexture(r,e,"label"),n.drawNode(r,e,"node-overlay")):(n.drawEdgeLine(r,e),n.drawEdgeArrow(r,e,"source"),n.drawEdgeArrow(r,e,"target"),n.drawTexture(r,e,"label"),n.drawTexture(r,e,"edge-source-label"),n.drawTexture(r,e,"edge-target-label"))}function r2e(t,e,r){var n;t.webglDebug&&(n=performance.now());var i=t.drawing,a=0;if(r.screen&&t.data.canvasNeedsRedraw[t.SELECT_BOX]&&xyt(t,e),t.data.canvasNeedsRedraw[t.NODE]||r.picking){var s=t.data.contexts[t.WEBGL];r.screen?(s.clearColor(0,0,0,0),s.enable(s.BLEND),s.blendFunc(s.ONE,s.ONE_MINUS_SRC_ALPHA)):s.disable(s.BLEND),s.clear(s.COLOR_BUFFER_BIT|s.DEPTH_BUFFER_BIT),s.viewport(0,0,s.canvas.width,s.canvas.height);var o=Tyt(t),l=t.getCachedZSortedEles();if(a=l.length,i.startFrame(o,r),r.screen){for(var u=0;u0&&s>0){p.clearRect(0,0,a,s),p.globalCompositeOperation="source-over";var g=this.getCachedZSortedEles();if(t.full)p.translate(-n.x1*u,-n.y1*u),p.scale(u,u),this.drawElements(p,g),p.scale(1/u,1/u),p.translate(n.x1*u,n.y1*u);else{var m=e.pan(),y={x:m.x*u,y:m.y*u};u*=e.zoom(),p.translate(y.x,y.y),p.scale(u,u),this.drawElements(p,g),p.scale(1/u,1/u),p.translate(-y.x,-y.y)}t.bg&&(p.globalCompositeOperation="destination-over",p.fillStyle=t.bg,p.rect(0,0,a,s),p.fill())}return f};function Ryt(t,e){for(var r=atob(t),n=new ArrayBuffer(r.length),i=new Uint8Array(n),a=0;a"u"?"undefined":Aa(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(t,e);else{var n=this.cy.window(),i=n.document;r=i.createElement("canvas"),r.width=t,r.height=e}return r};[Kbe,Cu,td,eY,ag,Fh,to,Jbe,$h,IT,a2e].forEach(function(t){Ir(rn,t)});var Oyt=[{name:"null",impl:Lbe},{name:"base",impl:Ybe},{name:"canvas",impl:Nyt}],Dyt=[{type:"layout",extensions:i1t},{type:"renderer",extensions:Oyt}],o2e={},l2e={};function c2e(t,e,r){var n=r,i=function(w){Ln("Can not register `"+e+"` for `"+t+"` since `"+w+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(m4.prototype[e])return i(e);m4.prototype[e]=r}else if(t==="collection"){if(Qa.prototype[e])return i(e);Qa.prototype[e]=r}else if(t==="layout"){for(var a=function(w){this.options=w,r.call(this,w),gn(this._private)||(this._private={}),this._private.cy=w.cy,this._private.listeners=[],this.createEmitter()},s=a.prototype=Object.create(r.prototype),o=[],l=0;lg&&(this.rect.x-=(this.labelWidth-g)/2,this.setWidth(this.labelWidth)),this.labelHeight>m&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-m)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-m),this.setHeight(this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(p){var g=this.rect.x;g>l.WORLD_BOUNDARY?g=l.WORLD_BOUNDARY:g<-l.WORLD_BOUNDARY&&(g=-l.WORLD_BOUNDARY);var m=this.rect.y;m>l.WORLD_BOUNDARY?m=l.WORLD_BOUNDARY:m<-l.WORLD_BOUNDARY&&(m=-l.WORLD_BOUNDARY);var y=new d(g,m),v=p.inverseTransformPoint(y);this.setLocation(v.x,v.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=h}),(function(r,n,i){function a(s,o){s==null&&o==null?(this.x=0,this.y=0):(this.x=s,this.y=o)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(s){this.x=s},a.prototype.setY=function(s){this.y=s},a.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},r.exports=a}),(function(r,n,i){var a=i(2),s=i(10),o=i(0),l=i(6),u=i(3),d=i(1),h=i(13),f=i(12),p=i(11);function g(y,v,b){a.call(this,b),this.estimatedSize=s.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=y,v!=null&&v instanceof l?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}g.prototype=Object.create(a.prototype);for(var m in a)g[m]=a[m];g.prototype.getNodes=function(){return this.nodes},g.prototype.getEdges=function(){return this.edges},g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getParent=function(){return this.parent},g.prototype.getLeft=function(){return this.left},g.prototype.getRight=function(){return this.right},g.prototype.getTop=function(){return this.top},g.prototype.getBottom=function(){return this.bottom},g.prototype.isConnected=function(){return this.isConnected},g.prototype.add=function(y,v,b){if(v==null&&b==null){var _=y;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(_)>-1)throw"Node already in graph!";return _.owner=this,this.getNodes().push(_),_}else{var E=y;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(b)>-1))throw"Source or target not in graph!";if(!(v.owner==b.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=b.owner?null:(E.source=v,E.target=b,E.isInterGraph=!1,this.getEdges().push(E),v.edges.push(E),b!=v&&b.edges.push(E),E)}},g.prototype.remove=function(y){var v=y;if(y instanceof u){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var b=v.edges.slice(),_,E=b.length,x=0;x-1&&w>-1))throw"Source and/or target doesn't know this edge!";_.source.edges.splice(T,1),_.target!=_.source&&_.target.edges.splice(w,1);var C=_.source.owner.getEdges().indexOf(_);if(C==-1)throw"Not in owner's edge list!";_.source.owner.getEdges().splice(C,1)}},g.prototype.updateLeftTop=function(){for(var y=s.MAX_VALUE,v=s.MAX_VALUE,b,_,E,x=this.getNodes(),C=x.length,T=0;Tb&&(y=b),v>_&&(v=_)}return y==s.MAX_VALUE?null:(x[0].getParent().paddingLeft!=null?E=x[0].getParent().paddingLeft:E=this.margin,this.left=v-E,this.top=y-E,new f(this.left,this.top))},g.prototype.updateBounds=function(y){for(var v=s.MAX_VALUE,b=-s.MAX_VALUE,_=s.MAX_VALUE,E=-s.MAX_VALUE,x,C,T,w,N,O=this.nodes,M=O.length,$=0;$x&&(v=x),bT&&(_=T),Ex&&(v=x),bT&&(_=T),E=this.nodes.length){var M=0;b.forEach(function($){$.owner==y&&M++}),M==this.nodes.length&&(this.isConnected=!0)}},r.exports=g}),(function(r,n,i){var a,s=i(1);function o(l){a=i(5),this.layout=l,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var l=this.layout.newGraph(),u=this.layout.newNode(null),d=this.add(l,u);return this.setRootGraph(d),this.rootGraph},o.prototype.add=function(l,u,d,h,f){if(d==null&&h==null&&f==null){if(l==null)throw"Graph is null!";if(u==null)throw"Parent node is null!";if(this.graphs.indexOf(l)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(l),l.parent!=null)throw"Already has a parent!";if(u.child!=null)throw"Already has a child!";return l.parent=u,u.child=l,l}else{f=d,h=u,d=l;var p=h.getOwner(),g=f.getOwner();if(!(p!=null&&p.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(g!=null&&g.getGraphManager()==this))throw"Target not in this graph mgr!";if(p==g)return d.isInterGraph=!1,p.add(d,h,f);if(d.isInterGraph=!0,d.source=h,d.target=f,this.edges.indexOf(d)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(d),!(d.source!=null&&d.target!=null))throw"Edge source and/or target is null!";if(!(d.source.edges.indexOf(d)==-1&&d.target.edges.indexOf(d)==-1))throw"Edge already in source and/or target incidency list!";return d.source.edges.push(d),d.target.edges.push(d),d}},o.prototype.remove=function(l){if(l instanceof a){var u=l;if(u.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(u==this.rootGraph||u.parent!=null&&u.parent.graphManager==this))throw"Invalid parent node!";var d=[];d=d.concat(u.getEdges());for(var h,f=d.length,p=0;p=l.getRight()?u[0]+=Math.min(l.getX()-o.getX(),o.getRight()-l.getRight()):l.getX()<=o.getX()&&l.getRight()>=o.getRight()&&(u[0]+=Math.min(o.getX()-l.getX(),l.getRight()-o.getRight())),o.getY()<=l.getY()&&o.getBottom()>=l.getBottom()?u[1]+=Math.min(l.getY()-o.getY(),o.getBottom()-l.getBottom()):l.getY()<=o.getY()&&l.getBottom()>=o.getBottom()&&(u[1]+=Math.min(o.getY()-l.getY(),l.getBottom()-o.getBottom()));var f=Math.abs((l.getCenterY()-o.getCenterY())/(l.getCenterX()-o.getCenterX()));l.getCenterY()===o.getCenterY()&&l.getCenterX()===o.getCenterX()&&(f=1);var p=f*u[0],g=u[1]/f;u[0]p)return u[0]=d,u[1]=m,u[2]=f,u[3]=O,!1;if(hf)return u[0]=g,u[1]=h,u[2]=w,u[3]=p,!1;if(df?(u[0]=v,u[1]=b,A=!0):(u[0]=y,u[1]=m,A=!0):D===R&&(d>f?(u[0]=g,u[1]=m,A=!0):(u[0]=_,u[1]=b,A=!0)),-L===R?f>d?(u[2]=N,u[3]=O,I=!0):(u[2]=w,u[3]=T,I=!0):L===R&&(f>d?(u[2]=C,u[3]=T,I=!0):(u[2]=M,u[3]=O,I=!0)),A&&I)return!1;if(d>f?h>p?(P=this.getCardinalDirection(D,R,4),z=this.getCardinalDirection(L,R,2)):(P=this.getCardinalDirection(-D,R,3),z=this.getCardinalDirection(-L,R,1)):h>p?(P=this.getCardinalDirection(-D,R,1),z=this.getCardinalDirection(-L,R,3)):(P=this.getCardinalDirection(D,R,2),z=this.getCardinalDirection(L,R,4)),!A)switch(P){case 1:q=m,B=d+-x/R,u[0]=B,u[1]=q;break;case 2:B=_,q=h+E*R,u[0]=B,u[1]=q;break;case 3:q=b,B=d+x/R,u[0]=B,u[1]=q;break;case 4:B=v,q=h+-E*R,u[0]=B,u[1]=q;break}if(!I)switch(z){case 1:Q=T,Y=f+-F/R,u[2]=Y,u[3]=Q;break;case 2:Y=M,Q=p+$*R,u[2]=Y,u[3]=Q;break;case 3:Q=O,Y=f+F/R,u[2]=Y,u[3]=Q;break;case 4:Y=N,Q=p+-$*R,u[2]=Y,u[3]=Q;break}}return!1},s.getCardinalDirection=function(o,l,u){return o>l?u:1+u%4},s.getIntersection=function(o,l,u,d){if(d==null)return this.getIntersection2(o,l,u);var h=o.x,f=o.y,p=l.x,g=l.y,m=u.x,y=u.y,v=d.x,b=d.y,_=void 0,E=void 0,x=void 0,C=void 0,T=void 0,w=void 0,N=void 0,O=void 0,M=void 0;return x=g-f,T=h-p,N=p*f-h*g,C=b-y,w=m-v,O=v*y-m*b,M=x*w-C*T,M===0?null:(_=(T*O-w*N)/M,E=(C*N-x*O)/M,new a(_,E))},s.angleOfVector=function(o,l,u,d){var h=void 0;return o!==u?(h=Math.atan((d-l)/(u-o)),u0?1:s<0?-1:0},a.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},a.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},r.exports=a}),(function(r,n,i){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,r.exports=a}),(function(r,n,i){var a=(function(){function h(f,p){for(var g=0;g"u"?"undefined":a(o);return o==null||l!="object"&&l!="function"},r.exports=s}),(function(r,n,i){function a(m){if(Array.isArray(m)){for(var y=0,v=Array(m.length);y0&&y;){for(x.push(T[0]);x.length>0&&y;){var w=x[0];x.splice(0,1),E.add(w);for(var N=w.getEdges(),_=0;_-1&&T.splice(F,1)}E=new Set,C=new Map}}return m},g.prototype.createDummyNodesForBendpoints=function(m){for(var y=[],v=m.source,b=this.graphManager.calcLowestCommonAncestor(m.source,m.target),_=0;_0){for(var b=this.edgeToDummyNodes.get(v),_=0;_=0&&y.splice(O,1);var M=C.getNeighborsList();M.forEach(function(A){if(v.indexOf(A)<0){var I=b.get(A),D=I-1;D==1&&w.push(A),b.set(A,D)}})}v=v.concat(w),(y.length==1||y.length==2)&&(_=!0,E=y[0])}return E},g.prototype.setGraphManager=function(m){this.graphManager=m},r.exports=g}),(function(r,n,i){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},r.exports=a}),(function(r,n,i){var a=i(4);function s(o,l){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(o){this.lworldOrgX=o},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(o){this.lworldOrgY=o},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(o){this.lworldExtX=o},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(o){this.lworldExtY=o},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(o){this.ldeviceOrgX=o},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(o){this.ldeviceOrgY=o},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(o){this.ldeviceExtX=o},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(o){this.ldeviceExtY=o},s.prototype.transformX=function(o){var l=0,u=this.lworldExtX;return u!=0&&(l=this.ldeviceOrgX+(o-this.lworldOrgX)*this.ldeviceExtX/u),l},s.prototype.transformY=function(o){var l=0,u=this.lworldExtY;return u!=0&&(l=this.ldeviceOrgY+(o-this.lworldOrgY)*this.ldeviceExtY/u),l},s.prototype.inverseTransformX=function(o){var l=0,u=this.ldeviceExtX;return u!=0&&(l=this.lworldOrgX+(o-this.ldeviceOrgX)*this.lworldExtX/u),l},s.prototype.inverseTransformY=function(o){var l=0,u=this.ldeviceExtY;return u!=0&&(l=this.lworldOrgY+(o-this.ldeviceOrgY)*this.lworldExtY/u),l},s.prototype.inverseTransformPoint=function(o){var l=new a(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return l},r.exports=s}),(function(r,n,i){function a(p){if(Array.isArray(p)){for(var g=0,m=Array(p.length);go.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(p-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(p>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(p-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var p=this.getAllEdges(),g,m=0;m0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m,y,v,b,_=this.getAllNodes(),E;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&p&&this.updateGrid(),E=new Set,m=0;m<_.length;m++)v=_[m],this.calculateRepulsionForceOfANode(v,E,p,g),E.add(v);else for(m=0;m<_.length;m++)for(v=_[m],y=m+1;y<_.length;y++)b=_[y],v.getOwner()==b.getOwner()&&this.calcRepulsionForce(v,b)},h.prototype.calcGravitationalForces=function(){for(var p,g=this.getAllNodesToApplyGravitation(),m=0;mx||E>x)&&(p.gravitationForceX=-this.gravityConstant*v,p.gravitationForceY=-this.gravityConstant*b)):(x=g.getEstimatedSize()*this.compoundGravityRangeFactor,(_>x||E>x)&&(p.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,p.gravitationForceY=-this.gravityConstant*b*this.compoundGravityConstant))},h.prototype.isConverged=function(){var p,g=!1;return this.totalIterations>this.maxIterations/3&&(g=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),p=this.totalDisplacement=_.length||x>=_[0].length)){for(var C=0;C<_[E][x].length;C++)if(b=_[E][x][C],!(p.getOwner()!=b.getOwner()||p==b)&&!g.has(b)&&!v.has(b)){var T=Math.abs(p.getCenterX()-b.getCenterX())-(p.getWidth()/2+b.getWidth()/2),w=Math.abs(p.getCenterY()-b.getCenterY())-(p.getHeight()/2+b.getHeight()/2);T<=this.repulsionRange&&w<=this.repulsionRange&&v.add(b)}}p.surrounding=[].concat(a(v))}for(E=0;Eh}}]),u})();r.exports=l}),(function(r,n,i){var a=(function(){function l(u,d){for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,l),this.sequence1=u,this.sequence2=d,this.match_score=h,this.mismatch_penalty=f,this.gap_penalty=p,this.iMax=u.length+1,this.jMax=d.length+1,this.grid=new Array(this.iMax);for(var g=0;g=0;u--){var d=this.listeners[u];d.event===o&&d.callback===l&&this.listeners.splice(u,1)}},s.emit=function(o,l){for(var u=0;ud.coolingFactor*d.maxNodeDisplacement&&(this.displacementX=d.coolingFactor*d.maxNodeDisplacement*o.sign(this.displacementX)),Math.abs(this.displacementY)>d.coolingFactor*d.maxNodeDisplacement&&(this.displacementY=d.coolingFactor*d.maxNodeDisplacement*o.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),d.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},l.prototype.propogateDisplacementToChildren=function(d,h){for(var f=this.getChild().getNodes(),p,g=0;g0)this.positionNodesRadially(T);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var w=new Set(this.getAllNodes()),N=this.nodesWithGravity.filter(function(O){return w.has(O)});this.graphManager.setAllNodesToApplyGravitation(N),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},x.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%f.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var T=new Set(this.getAllNodes()),w=this.nodesWithGravity.filter(function(M){return T.has(M)});this.graphManager.setAllNodesToApplyGravitation(w),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var N=!this.isTreeGrowing&&!this.isGrowthFinished,O=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(N,O),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},x.prototype.getPositionsData=function(){for(var T=this.graphManager.getAllNodes(),w={},N=0;N1){var A;for(A=0;AO&&(O=Math.floor(F.y)),$=Math.floor(F.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(p.WORLD_CENTER_X-F.x/2,p.WORLD_CENTER_Y-F.y/2))},x.radialLayout=function(T,w,N){var O=Math.max(this.maxDiagonalInTree(T),h.DEFAULT_RADIAL_SEPARATION);x.branchRadialLayout(w,null,0,359,0,O);var M=_.calculateBounds(T),$=new E;$.setDeviceOrgX(M.getMinX()),$.setDeviceOrgY(M.getMinY()),$.setWorldOrgX(N.x),$.setWorldOrgY(N.y);for(var F=0;F1;){var Q=Y[0];Y.splice(0,1);var H=R.indexOf(Q);H>=0&&R.splice(H,1),B--,P--}w!=null?q=(R.indexOf(Y[0])+1)%B:q=0;for(var J=Math.abs(O-N)/P,Z=q;z!=P;Z=++Z%B){var pe=R[Z].getOtherEnd(T);if(pe!=w){var re=(N+z*J)%360,ce=(re+J)%360;x.branchRadialLayout(pe,T,re,ce,M+$,$),z++}}},x.maxDiagonalInTree=function(T){for(var w=v.MIN_VALUE,N=0;Nw&&(w=M)}return w},x.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},x.prototype.groupZeroDegreeMembers=function(){var T=this,w={};this.memberGroups={},this.idToDummyNode={};for(var N=[],O=this.graphManager.getAllNodes(),M=0;M"u"&&(w[A]=[]),w[A]=w[A].concat($)}Object.keys(w).forEach(function(I){if(w[I].length>1){var D="DummyCompound_"+I;T.memberGroups[D]=w[I];var L=w[I][0].getParent(),R=new u(T.graphManager);R.id=D,R.paddingLeft=L.paddingLeft||0,R.paddingRight=L.paddingRight||0,R.paddingBottom=L.paddingBottom||0,R.paddingTop=L.paddingTop||0,T.idToDummyNode[D]=R;var P=T.getGraphManager().add(T.newGraph(),R),z=L.getChild();z.add(R);for(var B=0;B=0;T--){var w=this.compoundOrder[T],N=w.id,O=w.paddingLeft,M=w.paddingTop;this.adjustLocations(this.tiledMemberPack[N],w.rect.x,w.rect.y,O,M)}},x.prototype.repopulateZeroDegreeMembers=function(){var T=this,w=this.tiledZeroDegreePack;Object.keys(w).forEach(function(N){var O=T.idToDummyNode[N],M=O.paddingLeft,$=O.paddingTop;T.adjustLocations(w[N],O.rect.x,O.rect.y,M,$)})},x.prototype.getToBeTiled=function(T){var w=T.id;if(this.toBeTiled[w]!=null)return this.toBeTiled[w];var N=T.getChild();if(N==null)return this.toBeTiled[w]=!1,!1;for(var O=N.getNodes(),M=0;M0)return this.toBeTiled[w]=!1,!1;if($.getChild()==null){this.toBeTiled[$.id]=!1;continue}if(!this.getToBeTiled($))return this.toBeTiled[w]=!1,!1}return this.toBeTiled[w]=!0,!0},x.prototype.getNodeDegree=function(T){T.id;for(var w=T.getEdges(),N=0,O=0;OI&&(I=L.rect.height)}N+=I+T.verticalPadding}},x.prototype.tileCompoundMembers=function(T,w){var N=this;this.tiledMemberPack=[],Object.keys(T).forEach(function(O){var M=w[O];N.tiledMemberPack[O]=N.tileNodes(T[O],M.paddingLeft+M.paddingRight),M.rect.width=N.tiledMemberPack[O].width,M.rect.height=N.tiledMemberPack[O].height})},x.prototype.tileNodes=function(T,w){var N=h.TILING_PADDING_VERTICAL,O=h.TILING_PADDING_HORIZONTAL,M={rows:[],rowWidth:[],rowHeight:[],width:0,height:w,verticalPadding:N,horizontalPadding:O};T.sort(function(A,I){return A.rect.width*A.rect.height>I.rect.width*I.rect.height?-1:A.rect.width*A.rect.height0&&(F+=T.horizontalPadding),T.rowWidth[N]=F,T.width0&&(A+=T.verticalPadding);var I=0;A>T.rowHeight[N]&&(I=T.rowHeight[N],T.rowHeight[N]=A,I=T.rowHeight[N]-I),T.height+=I,T.rows[N].push(w)},x.prototype.getShortestRowIndex=function(T){for(var w=-1,N=Number.MAX_VALUE,O=0;ON&&(w=O,N=T.rowWidth[O]);return w},x.prototype.canAddHorizontal=function(T,w,N){var O=this.getShortestRowIndex(T);if(O<0)return!0;var M=T.rowWidth[O];if(M+T.horizontalPadding+w<=T.width)return!0;var $=0;T.rowHeight[O]0&&($=N+T.verticalPadding-T.rowHeight[O]);var F;T.width-M>=w+T.horizontalPadding?F=(T.height+$)/(M+w+T.horizontalPadding):F=(T.height+$)/T.width,$=N+T.verticalPadding;var A;return T.width$&&w!=N){O.splice(-1,1),T.rows[N].push(M),T.rowWidth[w]=T.rowWidth[w]-$,T.rowWidth[N]=T.rowWidth[N]+$,T.width=T.rowWidth[instance.getLongestRowIndex(T)];for(var F=Number.MIN_VALUE,A=0;AF&&(F=O[A].height);w>0&&(F+=T.verticalPadding);var I=T.rowHeight[w]+T.rowHeight[N];T.rowHeight[w]=F,T.rowHeight[N]0)for(var z=M;z<=$;z++)P[0]+=this.grid[z][F-1].length+this.grid[z][F].length-1;if($0)for(var z=F;z<=A;z++)P[3]+=this.grid[M-1][z].length+this.grid[M][z].length-1;for(var B=v.MAX_VALUE,q,Y,Q=0;Q0){var A;A=E.getGraphManager().add(E.newGraph(),N),this.processChildrenList(A,w,E)}}},m.prototype.stop=function(){return this.stopped=!0,this};var v=function(_){_("layout","cose-bilkent",m)};typeof cytoscape<"u"&&v(cytoscape),n.exports=v})])})})(b5)),b5.exports}var qyt=Gyt();const Yyt=Ml(qyt);su.use(Yyt);function d2e(t,e){t.forEach(r=>{const n={id:r.id,labelText:r.label,height:r.height,width:r.width,padding:r.padding??0};Object.keys(r).forEach(i=>{["id","label","height","width","padding","x","y"].includes(i)||(n[i]=r[i])}),e.add({group:"nodes",data:n,position:{x:r.x??0,y:r.y??0}})})}S(d2e,"addNodes");function h2e(t,e){t.forEach(r=>{const n={id:r.id,source:r.start,target:r.end};Object.keys(r).forEach(i=>{["id","start","end"].includes(i)||(n[i]=r[i])}),e.add({group:"edges",data:n})})}S(h2e,"addEdges");function f2e(t){return new Promise(e=>{const r=At("body").append("div").attr("id","cy").attr("style","display:none"),n=su({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),d2e(t.nodes,n),h2e(t.edges,n),n.nodes().forEach(function(a){a.layoutDimensions=()=>{const s=a.data();return{w:s.width,h:s.height}}});const i={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(i).run(),n.ready(a=>{ge.info("Cytoscape ready",a),e(n)})})}S(f2e,"createCytoscapeInstance");function p2e(t){return t.nodes().map(e=>{const r=e.data(),n=e.position(),i={id:r.id,x:n.x,y:n.y};return Object.keys(r).forEach(a=>{a!=="id"&&(i[a]=r[a])}),i})}S(p2e,"extractPositionedNodes");function g2e(t){return t.edges().map(e=>{const r=e.data(),n=e._private.rscratch,i={id:r.id,source:r.source,target:r.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(r).forEach(a=>{["id","source","target"].includes(a)||(i[a]=r[a])}),i})}S(g2e,"extractPositionedEdges");async function m2e(t,e){ge.debug("Starting cose-bilkent layout algorithm");try{y2e(t);const r=await f2e(t),n=p2e(r),i=g2e(r);return ge.debug(`Layout completed: ${n.length} nodes, ${i.length} edges`),{nodes:n,edges:i}}catch(r){throw ge.error("Error in cose-bilkent layout algorithm:",r),r}}S(m2e,"executeCoseBilkentLayout");function y2e(t){if(!t)throw new Error("Layout data is required");if(!t.config)throw new Error("Configuration is required in layout data");if(!t.rootNode)throw new Error("Root node is required");if(!t.nodes||!Array.isArray(t.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(t.edges))throw new Error("Edges array is required in layout data");return!0}S(y2e,"validateLayoutData");var Hyt=S(async(t,e,{insertCluster:r,insertEdge:n,insertEdgeLabel:i,insertMarkers:a,insertNode:s,log:o,positionEdgeLabel:l},{algorithm:u})=>{const d={},h={},f=e.select("g");a(f,t.markers,t.type,t.diagramId);const p=f.insert("g").attr("class","subgraphs"),g=f.insert("g").attr("class","edgePaths"),m=f.insert("g").attr("class","edgeLabels"),y=f.insert("g").attr("class","nodes");o.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(t.nodes.map(async _=>{if(_.isGroup){const E={..._};h[_.id]=E,d[_.id]=E,await r(p,_)}else{const E={..._};d[_.id]=E;const x=await s(y,_,{config:t.config,dir:t.direction||"TB"}),C=x.node().getBBox();E.width=C.width,E.height=C.height,E.domId=x,o.debug(`Node ${_.id} dimensions: ${C.width}x${C.height}`)}})),o.debug("Running cose-bilkent layout algorithm");const v={...t,nodes:t.nodes.map(_=>{const E=d[_.id];return{..._,width:E.width,height:E.height}})},b=await m2e(v,t.config);o.debug("Positioning nodes based on layout results"),b.nodes.forEach(_=>{const E=d[_.id];E?.domId&&(E.domId.attr("transform",`translate(${_.x}, ${_.y})`),E.x=_.x,E.y=_.y,o.debug(`Positioned node ${E.id} at center (${_.x}, ${_.y})`))}),b.edges.forEach(_=>{const E=t.edges.find(x=>x.id===_.id);E&&(E.points=[{x:_.startX,y:_.startY},{x:_.midX,y:_.midY},{x:_.endX,y:_.endY}])}),o.debug("Inserting and positioning edges"),await Promise.all(t.edges.map(async _=>{await i(m,_);const E=d[_.start??""],x=d[_.end??""];if(E&&x){const C=b.edges.find(T=>T.id===_.id);if(C){o.debug("APA01 positionedEdge",C);const T={..._},w=n(g,T,h,t.type,E,x,t.diagramId);l(T,w)}else{const T={..._,points:[{x:E.x||0,y:E.y||0},{x:x.x||0,y:x.y||0}]},w=n(g,T,h,t.type,E,x,t.diagramId);l(T,w)}}})),o.debug("Cose-bilkent rendering completed")},"render"),Vyt=Hyt;const Wyt=Object.freeze(Object.defineProperty({__proto__:null,render:Vyt},Symbol.toStringTag,{value:"Module"}));var U7=S((t,e)=>{const r=t.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),e.name&&r.attr("name",e.name),e.rx&&r.attr("rx",e.rx),e.ry&&r.attr("ry",e.ry),e.attrs!==void 0)for(const n in e.attrs)r.attr(n,e.attrs[n]);return e.class&&r.attr("class",e.class),r},"drawRect"),v2e=S((t,e)=>{const r={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};U7(t,r).lower()},"drawBackgroundRect"),Kyt=S((t,e)=>{const r=e.text.replace($b," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),e.class&&n.attr("class",e.class);const i=n.append("tspan");return i.attr("x",e.x+e.textMargin*2),i.text(r),n},"drawText"),rY=S((t,e,r,n)=>{const i=t.append("image");i.attr("x",e),i.attr("y",r);const a=Kp.sanitizeUrl(n);i.attr("xlink:href",a)},"drawImage"),nY=S((t,e,r,n)=>{const i=t.append("use");i.attr("x",e),i.attr("y",r);const a=Kp.sanitizeUrl(n);i.attr("xlink:href",`#${a}`)},"drawEmbeddedImage"),Xo=S(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),iY=S(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),_2e=S(()=>{let t=At(".mermaidTooltip");return t.empty()&&(t=At("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip"),P6=(function(){var t=S(function(De,Je,st,ct){for(st=st||{},ct=De.length;ct--;st[De[ct]]=Je);return st},"o"),e=[1,24],r=[1,25],n=[1,26],i=[1,27],a=[1,28],s=[1,63],o=[1,64],l=[1,65],u=[1,66],d=[1,67],h=[1,68],f=[1,69],p=[1,29],g=[1,30],m=[1,31],y=[1,32],v=[1,33],b=[1,34],_=[1,35],E=[1,36],x=[1,37],C=[1,38],T=[1,39],w=[1,40],N=[1,41],O=[1,42],M=[1,43],$=[1,44],F=[1,45],A=[1,46],I=[1,47],D=[1,48],L=[1,50],R=[1,51],P=[1,52],z=[1,53],B=[1,54],q=[1,55],Y=[1,56],Q=[1,57],H=[1,58],J=[1,59],Z=[1,60],pe=[14,42],re=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ce=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ae=[1,82],se=[1,83],xe=[1,84],Te=[1,85],Ge=[12,14,42],ze=[12,14,33,42],Xe=[12,14,33,42,76,77,79,80],Le=[12,33],Re=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qe={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:S(function(Je,st,ct,ot,it,Oe,U){var oe=Oe.length-1;switch(it){case 3:ot.setDirection("TB");break;case 4:ot.setDirection("BT");break;case 5:ot.setDirection("RL");break;case 6:ot.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:ot.setC4Type(Oe[oe-3]);break;case 19:ot.setTitle(Oe[oe].substring(6)),this.$=Oe[oe].substring(6);break;case 20:ot.setAccDescription(Oe[oe].substring(15)),this.$=Oe[oe].substring(15);break;case 21:this.$=Oe[oe].trim(),ot.setTitle(this.$);break;case 22:case 23:this.$=Oe[oe].trim(),ot.setAccDescription(this.$);break;case 28:Oe[oe].splice(2,0,"ENTERPRISE"),ot.addPersonOrSystemBoundary(...Oe[oe]),this.$=Oe[oe];break;case 29:Oe[oe].splice(2,0,"SYSTEM"),ot.addPersonOrSystemBoundary(...Oe[oe]),this.$=Oe[oe];break;case 30:ot.addPersonOrSystemBoundary(...Oe[oe]),this.$=Oe[oe];break;case 31:Oe[oe].splice(2,0,"CONTAINER"),ot.addContainerBoundary(...Oe[oe]),this.$=Oe[oe];break;case 32:ot.addDeploymentNode("node",...Oe[oe]),this.$=Oe[oe];break;case 33:ot.addDeploymentNode("nodeL",...Oe[oe]),this.$=Oe[oe];break;case 34:ot.addDeploymentNode("nodeR",...Oe[oe]),this.$=Oe[oe];break;case 35:ot.popBoundaryParseStack();break;case 39:ot.addPersonOrSystem("person",...Oe[oe]),this.$=Oe[oe];break;case 40:ot.addPersonOrSystem("external_person",...Oe[oe]),this.$=Oe[oe];break;case 41:ot.addPersonOrSystem("system",...Oe[oe]),this.$=Oe[oe];break;case 42:ot.addPersonOrSystem("system_db",...Oe[oe]),this.$=Oe[oe];break;case 43:ot.addPersonOrSystem("system_queue",...Oe[oe]),this.$=Oe[oe];break;case 44:ot.addPersonOrSystem("external_system",...Oe[oe]),this.$=Oe[oe];break;case 45:ot.addPersonOrSystem("external_system_db",...Oe[oe]),this.$=Oe[oe];break;case 46:ot.addPersonOrSystem("external_system_queue",...Oe[oe]),this.$=Oe[oe];break;case 47:ot.addContainer("container",...Oe[oe]),this.$=Oe[oe];break;case 48:ot.addContainer("container_db",...Oe[oe]),this.$=Oe[oe];break;case 49:ot.addContainer("container_queue",...Oe[oe]),this.$=Oe[oe];break;case 50:ot.addContainer("external_container",...Oe[oe]),this.$=Oe[oe];break;case 51:ot.addContainer("external_container_db",...Oe[oe]),this.$=Oe[oe];break;case 52:ot.addContainer("external_container_queue",...Oe[oe]),this.$=Oe[oe];break;case 53:ot.addComponent("component",...Oe[oe]),this.$=Oe[oe];break;case 54:ot.addComponent("component_db",...Oe[oe]),this.$=Oe[oe];break;case 55:ot.addComponent("component_queue",...Oe[oe]),this.$=Oe[oe];break;case 56:ot.addComponent("external_component",...Oe[oe]),this.$=Oe[oe];break;case 57:ot.addComponent("external_component_db",...Oe[oe]),this.$=Oe[oe];break;case 58:ot.addComponent("external_component_queue",...Oe[oe]),this.$=Oe[oe];break;case 60:ot.addRel("rel",...Oe[oe]),this.$=Oe[oe];break;case 61:ot.addRel("birel",...Oe[oe]),this.$=Oe[oe];break;case 62:ot.addRel("rel_u",...Oe[oe]),this.$=Oe[oe];break;case 63:ot.addRel("rel_d",...Oe[oe]),this.$=Oe[oe];break;case 64:ot.addRel("rel_l",...Oe[oe]),this.$=Oe[oe];break;case 65:ot.addRel("rel_r",...Oe[oe]),this.$=Oe[oe];break;case 66:ot.addRel("rel_b",...Oe[oe]),this.$=Oe[oe];break;case 67:Oe[oe].splice(0,1),ot.addRel("rel",...Oe[oe]),this.$=Oe[oe];break;case 68:ot.updateElStyle("update_el_style",...Oe[oe]),this.$=Oe[oe];break;case 69:ot.updateRelStyle("update_rel_style",...Oe[oe]),this.$=Oe[oe];break;case 70:ot.updateLayoutConfig("update_layout_config",...Oe[oe]),this.$=Oe[oe];break;case 71:this.$=[Oe[oe]];break;case 72:Oe[oe].unshift(Oe[oe-1]),this.$=Oe[oe];break;case 73:case 75:this.$=Oe[oe].trim();break;case 74:let de={};de[Oe[oe-1].trim()]=Oe[oe].trim(),this.$=de;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z},{13:70,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z},{13:71,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z},{13:72,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z},{13:73,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z},{14:[1,74]},t(pe,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:o,37:l,38:u,39:d,40:h,41:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z}),t(pe,[2,14]),t(re,[2,16],{12:[1,76]}),t(pe,[2,36],{12:[1,77]}),t(ce,[2,19]),t(ce,[2,20]),{25:[1,78]},{27:[1,79]},t(ce,[2,23]),{35:80,75:81,76:ae,77:se,79:xe,80:Te},{35:86,75:81,76:ae,77:se,79:xe,80:Te},{35:87,75:81,76:ae,77:se,79:xe,80:Te},{35:88,75:81,76:ae,77:se,79:xe,80:Te},{35:89,75:81,76:ae,77:se,79:xe,80:Te},{35:90,75:81,76:ae,77:se,79:xe,80:Te},{35:91,75:81,76:ae,77:se,79:xe,80:Te},{35:92,75:81,76:ae,77:se,79:xe,80:Te},{35:93,75:81,76:ae,77:se,79:xe,80:Te},{35:94,75:81,76:ae,77:se,79:xe,80:Te},{35:95,75:81,76:ae,77:se,79:xe,80:Te},{35:96,75:81,76:ae,77:se,79:xe,80:Te},{35:97,75:81,76:ae,77:se,79:xe,80:Te},{35:98,75:81,76:ae,77:se,79:xe,80:Te},{35:99,75:81,76:ae,77:se,79:xe,80:Te},{35:100,75:81,76:ae,77:se,79:xe,80:Te},{35:101,75:81,76:ae,77:se,79:xe,80:Te},{35:102,75:81,76:ae,77:se,79:xe,80:Te},{35:103,75:81,76:ae,77:se,79:xe,80:Te},{35:104,75:81,76:ae,77:se,79:xe,80:Te},t(Ge,[2,59]),{35:105,75:81,76:ae,77:se,79:xe,80:Te},{35:106,75:81,76:ae,77:se,79:xe,80:Te},{35:107,75:81,76:ae,77:se,79:xe,80:Te},{35:108,75:81,76:ae,77:se,79:xe,80:Te},{35:109,75:81,76:ae,77:se,79:xe,80:Te},{35:110,75:81,76:ae,77:se,79:xe,80:Te},{35:111,75:81,76:ae,77:se,79:xe,80:Te},{35:112,75:81,76:ae,77:se,79:xe,80:Te},{35:113,75:81,76:ae,77:se,79:xe,80:Te},{35:114,75:81,76:ae,77:se,79:xe,80:Te},{35:115,75:81,76:ae,77:se,79:xe,80:Te},{20:116,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z},{12:[1,118],33:[1,117]},{35:119,75:81,76:ae,77:se,79:xe,80:Te},{35:120,75:81,76:ae,77:se,79:xe,80:Te},{35:121,75:81,76:ae,77:se,79:xe,80:Te},{35:122,75:81,76:ae,77:se,79:xe,80:Te},{35:123,75:81,76:ae,77:se,79:xe,80:Te},{35:124,75:81,76:ae,77:se,79:xe,80:Te},{35:125,75:81,76:ae,77:se,79:xe,80:Te},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(pe,[2,15]),t(re,[2,17],{21:22,19:130,22:e,23:r,24:n,26:i,28:a}),t(pe,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:r,24:n,26:i,28:a,34:s,36:o,37:l,38:u,39:d,40:h,41:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_,51:E,52:x,53:C,54:T,55:w,56:N,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:R,66:P,67:z,68:B,69:q,70:Y,71:Q,72:H,73:J,74:Z}),t(ce,[2,21]),t(ce,[2,22]),t(Ge,[2,39]),t(ze,[2,71],{75:81,35:132,76:ae,77:se,79:xe,80:Te}),t(Xe,[2,73]),{78:[1,133]},t(Xe,[2,75]),t(Xe,[2,76]),t(Ge,[2,40]),t(Ge,[2,41]),t(Ge,[2,42]),t(Ge,[2,43]),t(Ge,[2,44]),t(Ge,[2,45]),t(Ge,[2,46]),t(Ge,[2,47]),t(Ge,[2,48]),t(Ge,[2,49]),t(Ge,[2,50]),t(Ge,[2,51]),t(Ge,[2,52]),t(Ge,[2,53]),t(Ge,[2,54]),t(Ge,[2,55]),t(Ge,[2,56]),t(Ge,[2,57]),t(Ge,[2,58]),t(Ge,[2,60]),t(Ge,[2,61]),t(Ge,[2,62]),t(Ge,[2,63]),t(Ge,[2,64]),t(Ge,[2,65]),t(Ge,[2,66]),t(Ge,[2,67]),t(Ge,[2,68]),t(Ge,[2,69]),t(Ge,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(Le,[2,28]),t(Le,[2,29]),t(Le,[2,30]),t(Le,[2,31]),t(Le,[2,32]),t(Le,[2,33]),t(Le,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(re,[2,18]),t(pe,[2,38]),t(ze,[2,72]),t(Xe,[2,74]),t(Ge,[2,24]),t(Ge,[2,35]),t(Re,[2,25]),t(Re,[2,26],{12:[1,138]}),t(Re,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:S(function(Je,st){if(st.recoverable)this.trace(Je);else{var ct=new Error(Je);throw ct.hash=st,ct}},"parseError"),parse:S(function(Je){var st=this,ct=[0],ot=[],it=[null],Oe=[],U=this.table,oe="",de=0,G=0,ie=2,j=1,V=Oe.slice.call(arguments,1),ue=Object.create(this.lexer),Fe={yy:{}};for(var me in this.yy)Object.prototype.hasOwnProperty.call(this.yy,me)&&(Fe.yy[me]=this.yy[me]);ue.setInput(Je,Fe.yy),Fe.yy.lexer=ue,Fe.yy.parser=this,typeof ue.yylloc>"u"&&(ue.yylloc={});var Ce=ue.yylloc;Oe.push(Ce);var ye=ue.options&&ue.options.ranges;typeof Fe.yy.parseError=="function"?this.parseError=Fe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(fe){ct.length=ct.length-2*fe,it.length=it.length-fe,Oe.length=Oe.length-fe}S(Me,"popStack");function Ie(){var fe;return fe=ot.pop()||ue.lex()||j,typeof fe!="number"&&(fe instanceof Array&&(ot=fe,fe=ot.pop()),fe=st.symbols_[fe]||fe),fe}S(Ie,"lex");for(var he,le,Be,ve,gt={},Et,et,dt,ft;;){if(le=ct[ct.length-1],this.defaultActions[le]?Be=this.defaultActions[le]:((he===null||typeof he>"u")&&(he=Ie()),Be=U[le]&&U[le][he]),typeof Be>"u"||!Be.length||!Be[0]){var mt="";ft=[];for(Et in U[le])this.terminals_[Et]&&Et>ie&&ft.push("'"+this.terminals_[Et]+"'");ue.showPosition?mt="Parse error on line "+(de+1)+`: `+ue.showPosition()+` Expecting `+ft.join(", ")+", got '"+(this.terminals_[he]||he)+"'":mt="Parse error on line "+(de+1)+": Unexpected "+(he==j?"end of input":"'"+(this.terminals_[he]||he)+"'"),this.parseError(mt,{text:ue.match,token:this.terminals_[he]||he,line:ue.yylineno,loc:Ce,expected:ft})}if(Be[0]instanceof Array&&Be.length>1)throw new Error("Parse Error: multiple actions possible at state: "+le+", token: "+he);switch(Be[0]){case 1:ct.push(he),it.push(ue.yytext),Oe.push(ue.yylloc),ct.push(Be[1]),he=null,G=ue.yyleng,oe=ue.yytext,de=ue.yylineno,Ce=ue.yylloc;break;case 2:if(et=this.productions_[Be[1]][1],gt.$=it[it.length-et],gt._$={first_line:Oe[Oe.length-(et||1)].first_line,last_line:Oe[Oe.length-1].last_line,first_column:Oe[Oe.length-(et||1)].first_column,last_column:Oe[Oe.length-1].last_column},ye&&(gt._$.range=[Oe[Oe.length-(et||1)].range[0],Oe[Oe.length-1].range[1]]),ve=this.performAction.apply(gt,[oe,G,de,Fe.yy,Be[1],it,Oe].concat(V)),typeof ve<"u")return ve;et&&(ct=ct.slice(0,-1*et*2),it=it.slice(0,-1*et),Oe=Oe.slice(0,-1*et)),ct.push(this.productions_[Be[1]][0]),it.push(gt.$),Oe.push(gt._$),dt=U[ct[ct.length-2]][ct[ct.length-1]],ct.push(dt);break;case 3:return!0}}return!0},"parse")},Ne=(function(){var De={EOF:1,parseError:S(function(st,ct){if(this.yy.parser)this.yy.parser.parseError(st,ct);else throw new Error(st)},"parseError"),setInput:S(function(Je,st){return this.yy=st||this.yy||{},this._input=Je,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var Je=this._input[0];this.yytext+=Je,this.yyleng++,this.offset++,this.match+=Je,this.matched+=Je;var st=Je.match(/(?:\r\n?|\n).*/g);return st?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Je},"input"),unput:S(function(Je){var st=Je.length,ct=Je.split(/(?:\r\n?|\n)/g);this._input=Je+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-st),this.offset-=st;var ot=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ct.length-1&&(this.yylineno-=ct.length-1);var it=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ct?(ct.length===ot.length?this.yylloc.first_column:0)+ot[ot.length-ct.length].length-ct[0].length:this.yylloc.first_column-st},this.options.ranges&&(this.yylloc.range=[it[0],it[0]+this.yyleng-st]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(Je){this.unput(this.match.slice(Je))},"less"),pastInput:S(function(){var Je=this.matched.substr(0,this.matched.length-this.match.length);return(Je.length>20?"...":"")+Je.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var Je=this.match;return Je.length<20&&(Je+=this._input.substr(0,20-Je.length)),(Je.substr(0,20)+(Je.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var Je=this.pastInput(),st=new Array(Je.length+1).join("-");return Je+this.upcomingInput()+` `+st+"^"},"showPosition"),test_match:S(function(Je,st){var ct,ot,it;if(this.options.backtrack_lexer&&(it={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(it.yylloc.range=this.yylloc.range.slice(0))),ot=Je[0].match(/(?:\r\n?|\n).*/g),ot&&(this.yylineno+=ot.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ot?ot[ot.length-1].length-ot[ot.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Je[0].length},this.yytext+=Je[0],this.match+=Je[0],this.matches=Je,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Je[0].length),this.matched+=Je[0],ct=this.performAction.call(this,this.yy,this,st,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ct)return ct;if(this._backtrack){for(var Oe in it)this[Oe]=it[Oe];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Je,st,ct,ot;this._more||(this.yytext="",this.match="");for(var it=this._currentRules(),Oe=0;Oest[0].length)){if(st=ct,ot=Oe,this.options.backtrack_lexer){if(Je=this.test_match(ct,it[Oe]),Je!==!1)return Je;if(this._backtrack){st=!1;continue}else return!1}else if(!this.options.flex)break}return st?(Je=this.test_match(st,it[ot]),Je!==!1?Je:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var st=this.next();return st||this.lex()},"lex"),begin:S(function(st){this.conditionStack.push(st)},"begin"),popState:S(function(){var st=this.conditionStack.length-1;return st>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(st){return st=this.conditionStack.length-1-Math.abs(st||0),st>=0?this.conditionStack[st]:"INITIAL"},"topState"),pushState:S(function(st){this.begin(st)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:S(function(st,ct,ot,it){switch(ot){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return De})();qe.lexer=Ne;function ut(){this.yy={}}return S(ut,"Parser"),ut.prototype=qe,qe.Parser=ut,new ut})();P6.parser=P6;var Kyt=P6,fc=[],Xd=[""],zs="global",ac="",ou=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],v4=[],aY="",sY=!1,B6=4,F6=2,b2e,Xyt=S(function(){return b2e},"getC4Type"),jyt=S(function(t){b2e=un(t,Ke())},"setC4Type"),Qyt=S(function(t,e,r,n,i,a,s,o,l){if(t==null||e===void 0||e===null||r===void 0||r===null||n===void 0||n===null)return;let u={};const d=v4.find(h=>h.from===e&&h.to===r);if(d?u=d:v4.push(u),u.type=t,u.from=e,u.to=r,u.label={text:n},i==null)u.techn={text:""};else if(typeof i=="object"){let[h,f]=Object.entries(i)[0];u[h]={text:f}}else u.techn={text:i};if(a==null)u.descr={text:""};else if(typeof a=="object"){let[h,f]=Object.entries(a)[0];u[h]={text:f}}else u.descr={text:a};if(typeof s=="object"){let[h,f]=Object.entries(s)[0];u[h]=f}else u.sprite=s;if(typeof o=="object"){let[h,f]=Object.entries(o)[0];u[h]=f}else u.tags=o;if(typeof l=="object"){let[h,f]=Object.entries(l)[0];u[h]=f}else u.link=l;u.wrap=zh()},"addRel"),Zyt=S(function(t,e,r,n,i,a,s){if(e===null||r===null)return;let o={};const l=fc.find(u=>u.alias===e);if(l&&e===l.alias?o=l:(o.alias=e,fc.push(o)),r==null?o.label={text:""}:o.label={text:r},n==null)o.descr={text:""};else if(typeof n=="object"){let[u,d]=Object.entries(n)[0];o[u]={text:d}}else o.descr={text:n};if(typeof i=="object"){let[u,d]=Object.entries(i)[0];o[u]=d}else o.sprite=i;if(typeof a=="object"){let[u,d]=Object.entries(a)[0];o[u]=d}else o.tags=a;if(typeof s=="object"){let[u,d]=Object.entries(s)[0];o[u]=d}else o.link=s;o.typeC4Shape={text:t},o.parentBoundary=zs,o.wrap=zh()},"addPersonOrSystem"),Jyt=S(function(t,e,r,n,i,a,s,o){if(e===null||r===null)return;let l={};const u=fc.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,fc.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.techn={text:""};else if(typeof n=="object"){let[d,h]=Object.entries(n)[0];l[d]={text:h}}else l.techn={text:n};if(i==null)l.descr={text:""};else if(typeof i=="object"){let[d,h]=Object.entries(i)[0];l[d]={text:h}}else l.descr={text:i};if(typeof a=="object"){let[d,h]=Object.entries(a)[0];l[d]=h}else l.sprite=a;if(typeof s=="object"){let[d,h]=Object.entries(s)[0];l[d]=h}else l.tags=s;if(typeof o=="object"){let[d,h]=Object.entries(o)[0];l[d]=h}else l.link=o;l.wrap=zh(),l.typeC4Shape={text:t},l.parentBoundary=zs},"addContainer"),evt=S(function(t,e,r,n,i,a,s,o){if(e===null||r===null)return;let l={};const u=fc.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,fc.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.techn={text:""};else if(typeof n=="object"){let[d,h]=Object.entries(n)[0];l[d]={text:h}}else l.techn={text:n};if(i==null)l.descr={text:""};else if(typeof i=="object"){let[d,h]=Object.entries(i)[0];l[d]={text:h}}else l.descr={text:i};if(typeof a=="object"){let[d,h]=Object.entries(a)[0];l[d]=h}else l.sprite=a;if(typeof s=="object"){let[d,h]=Object.entries(s)[0];l[d]=h}else l.tags=s;if(typeof o=="object"){let[d,h]=Object.entries(o)[0];l[d]=h}else l.link=o;l.wrap=zh(),l.typeC4Shape={text:t},l.parentBoundary=zs},"addComponent"),tvt=S(function(t,e,r,n,i){if(t===null||e===null)return;let a={};const s=ou.find(o=>o.alias===t);if(s&&t===s.alias?a=s:(a.alias=t,ou.push(a)),e==null?a.label={text:""}:a.label={text:e},r==null)a.type={text:"system"};else if(typeof r=="object"){let[o,l]=Object.entries(r)[0];a[o]={text:l}}else a.type={text:r};if(typeof n=="object"){let[o,l]=Object.entries(n)[0];a[o]=l}else a.tags=n;if(typeof i=="object"){let[o,l]=Object.entries(i)[0];a[o]=l}else a.link=i;a.parentBoundary=zs,a.wrap=zh(),ac=zs,zs=t,Xd.push(ac)},"addPersonOrSystemBoundary"),rvt=S(function(t,e,r,n,i){if(t===null||e===null)return;let a={};const s=ou.find(o=>o.alias===t);if(s&&t===s.alias?a=s:(a.alias=t,ou.push(a)),e==null?a.label={text:""}:a.label={text:e},r==null)a.type={text:"container"};else if(typeof r=="object"){let[o,l]=Object.entries(r)[0];a[o]={text:l}}else a.type={text:r};if(typeof n=="object"){let[o,l]=Object.entries(n)[0];a[o]=l}else a.tags=n;if(typeof i=="object"){let[o,l]=Object.entries(i)[0];a[o]=l}else a.link=i;a.parentBoundary=zs,a.wrap=zh(),ac=zs,zs=t,Xd.push(ac)},"addContainerBoundary"),nvt=S(function(t,e,r,n,i,a,s,o){if(e===null||r===null)return;let l={};const u=ou.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,ou.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.type={text:"node"};else if(typeof n=="object"){let[d,h]=Object.entries(n)[0];l[d]={text:h}}else l.type={text:n};if(i==null)l.descr={text:""};else if(typeof i=="object"){let[d,h]=Object.entries(i)[0];l[d]={text:h}}else l.descr={text:i};if(typeof s=="object"){let[d,h]=Object.entries(s)[0];l[d]=h}else l.tags=s;if(typeof o=="object"){let[d,h]=Object.entries(o)[0];l[d]=h}else l.link=o;l.nodeType=t,l.parentBoundary=zs,l.wrap=zh(),ac=zs,zs=e,Xd.push(ac)},"addDeploymentNode"),ivt=S(function(){zs=ac,Xd.pop(),ac=Xd.pop(),Xd.push(ac)},"popBoundaryParseStack"),avt=S(function(t,e,r,n,i,a,s,o,l,u,d){let h=fc.find(f=>f.alias===e);if(!(h===void 0&&(h=ou.find(f=>f.alias===e),h===void 0))){if(r!=null)if(typeof r=="object"){let[f,p]=Object.entries(r)[0];h[f]=p}else h.bgColor=r;if(n!=null)if(typeof n=="object"){let[f,p]=Object.entries(n)[0];h[f]=p}else h.fontColor=n;if(i!=null)if(typeof i=="object"){let[f,p]=Object.entries(i)[0];h[f]=p}else h.borderColor=i;if(a!=null)if(typeof a=="object"){let[f,p]=Object.entries(a)[0];h[f]=p}else h.shadowing=a;if(s!=null)if(typeof s=="object"){let[f,p]=Object.entries(s)[0];h[f]=p}else h.shape=s;if(o!=null)if(typeof o=="object"){let[f,p]=Object.entries(o)[0];h[f]=p}else h.sprite=o;if(l!=null)if(typeof l=="object"){let[f,p]=Object.entries(l)[0];h[f]=p}else h.techn=l;if(u!=null)if(typeof u=="object"){let[f,p]=Object.entries(u)[0];h[f]=p}else h.legendText=u;if(d!=null)if(typeof d=="object"){let[f,p]=Object.entries(d)[0];h[f]=p}else h.legendSprite=d}},"updateElStyle"),svt=S(function(t,e,r,n,i,a,s){const o=v4.find(l=>l.from===e&&l.to===r);if(o!==void 0){if(n!=null)if(typeof n=="object"){let[l,u]=Object.entries(n)[0];o[l]=u}else o.textColor=n;if(i!=null)if(typeof i=="object"){let[l,u]=Object.entries(i)[0];o[l]=u}else o.lineColor=i;if(a!=null)if(typeof a=="object"){let[l,u]=Object.entries(a)[0];o[l]=parseInt(u)}else o.offsetX=parseInt(a);if(s!=null)if(typeof s=="object"){let[l,u]=Object.entries(s)[0];o[l]=parseInt(u)}else o.offsetY=parseInt(s)}},"updateRelStyle"),ovt=S(function(t,e,r){let n=B6,i=F6;if(typeof e=="object"){const a=Object.values(e)[0];n=parseInt(a)}else n=parseInt(e);if(typeof r=="object"){const a=Object.values(r)[0];i=parseInt(a)}else i=parseInt(r);n>=1&&(B6=n),i>=1&&(F6=i)},"updateLayoutConfig"),lvt=S(function(){return B6},"getC4ShapeInRow"),cvt=S(function(){return F6},"getC4BoundaryInRow"),uvt=S(function(){return zs},"getCurrentBoundaryParse"),dvt=S(function(){return ac},"getParentBoundaryParse"),E2e=S(function(t){return t==null?fc:fc.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),hvt=S(function(t){return fc.find(e=>e.alias===t)},"getC4Shape"),fvt=S(function(t){return Object.keys(E2e(t))},"getC4ShapeKeys"),S2e=S(function(t){return t==null?ou:ou.filter(e=>e.parentBoundary===t)},"getBoundaries"),pvt=S2e,gvt=S(function(){return v4},"getRels"),mvt=S(function(){return aY},"getTitle"),yvt=S(function(t){sY=t},"setWrap"),zh=S(function(){return sY},"autoWrap"),vvt=S(function(){fc=[],ou=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],ac="",zs="global",Xd=[""],v4=[],Xd=[""],aY="",sY=!1,B6=4,F6=2},"clear"),_vt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},bvt={FILLED:0,OPEN:1},Evt={LEFTOF:0,RIGHTOF:1,OVER:2},Svt=S(function(t){aY=un(t,Ke())},"setTitle"),$B={addPersonOrSystem:Zyt,addPersonOrSystemBoundary:tvt,addContainer:Jyt,addContainerBoundary:rvt,addComponent:evt,addDeploymentNode:nvt,popBoundaryParseStack:ivt,addRel:Qyt,updateElStyle:avt,updateRelStyle:svt,updateLayoutConfig:ovt,autoWrap:zh,setWrap:yvt,getC4ShapeArray:E2e,getC4Shape:hvt,getC4ShapeKeys:fvt,getBoundaries:S2e,getBoundarys:pvt,getCurrentBoundaryParse:uvt,getParentBoundaryParse:dvt,getRels:gvt,getTitle:mvt,getC4Type:Xyt,getC4ShapeInRow:lvt,getC4BoundaryInRow:cvt,setAccTitle:ai,getAccTitle:yi,getAccDescription:_i,setAccDescription:vi,getConfig:S(()=>Ke().c4,"getConfig"),clear:vvt,LINETYPE:_vt,ARROWTYPE:bvt,PLACEMENT:Evt,setTitle:Svt,setC4Type:jyt},oY=S(function(t,e){return U7(t,e)},"drawRect"),T2e=S(function(t,e,r,n,i,a){const s=t.append("image");s.attr("width",e),s.attr("height",r),s.attr("x",n),s.attr("y",i);let o=a.startsWith("data:image/png;base64")?a:Kp.sanitizeUrl(a);s.attr("xlink:href",o)},"drawImage"),Tvt=S((t,e,r,n)=>{const i=t.append("g");let a=0;for(let s of e){let o=s.textColor?s.textColor:"#444444",l=s.lineColor?s.lineColor:"#444444",u=s.offsetX?parseInt(s.offsetX):0,d=s.offsetY?parseInt(s.offsetY):0,h="";if(a===0){let p=i.append("line");p.attr("x1",s.startPoint.x),p.attr("y1",s.startPoint.y),p.attr("x2",s.endPoint.x),p.attr("y2",s.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",l),p.style("fill","none"),s.type!=="rel_b"&&p.attr("marker-end","url("+h+"#"+n+"-arrowhead)"),(s.type==="birel"||s.type==="rel_b")&&p.attr("marker-start","url("+h+"#"+n+"-arrowend)"),a=-1}else{let p=i.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",l).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",s.startPoint.x).replaceAll("starty",s.startPoint.y).replaceAll("controlx",s.startPoint.x+(s.endPoint.x-s.startPoint.x)/2-(s.endPoint.x-s.startPoint.x)/4).replaceAll("controly",s.startPoint.y+(s.endPoint.y-s.startPoint.y)/2).replaceAll("stopx",s.endPoint.x).replaceAll("stopy",s.endPoint.y)),s.type!=="rel_b"&&p.attr("marker-end","url("+h+"#"+n+"-arrowhead)"),(s.type==="birel"||s.type==="rel_b")&&p.attr("marker-start","url("+h+"#"+n+"-arrowend)")}let f=r.messageFont();c0(r)(s.label.text,i,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+u,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+d,s.label.width,s.label.height,{fill:o},f),s.techn&&s.techn.text!==""&&(f=r.messageFont(),c0(r)("["+s.techn.text+"]",i,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+u,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+r.messageFontSize+5+d,Math.max(s.label.width,s.techn.width),s.techn.height,{fill:o,"font-style":"italic"},f))}},"drawRels"),xvt=S(function(t,e,r){const n=t.append("g");let i=e.bgColor?e.bgColor:"none",a=e.borderColor?e.borderColor:"#444444",s=e.fontColor?e.fontColor:"black",o={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(o={"stroke-width":1});let l={x:e.x,y:e.y,fill:i,stroke:a,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:o};oY(n,l);let u=r.boundaryFont();u.fontWeight="bold",u.fontSize=u.fontSize+2,u.fontColor=s,c0(r)(e.label.text,n,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},u),e.type&&e.type.text!==""&&(u=r.boundaryFont(),u.fontColor=s,c0(r)(e.type.text,n,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},u)),e.descr&&e.descr.text!==""&&(u=r.boundaryFont(),u.fontSize=u.fontSize-2,u.fontColor=s,c0(r)(e.descr.text,n,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},u))},"drawBoundary"),Cvt=S(function(t,e,r){let n=e.bgColor?e.bgColor:r[e.typeC4Shape.text+"_bg_color"],i=e.borderColor?e.borderColor:r[e.typeC4Shape.text+"_border_color"],a=e.fontColor?e.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const o=t.append("g");o.attr("class","person-man");const l=Xo();switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":l.x=e.x,l.y=e.y,l.fill=n,l.width=e.width,l.height=e.height,l.stroke=i,l.rx=2.5,l.ry=2.5,l.attrs={"stroke-width":.5},oY(o,l);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":o.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":o.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2));break}let u=Dvt(r,e.typeC4Shape.text);switch(o.append("text").attr("fill",a).attr("font-family",u.fontFamily).attr("font-size",u.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":T2e(o,48,48,e.x+e.width/2-24,e.y+e.image.Y,s);break}let d=r[e.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=a,c0(r)(e.label.text,o,e.x,e.y+e.label.Y,e.width,e.height,{fill:a},d),d=r[e.typeC4Shape.text+"Font"](),d.fontColor=a,e.techn&&e.techn?.text!==""?c0(r)(e.techn.text,o,e.x,e.y+e.techn.Y,e.width,e.height,{fill:a,"font-style":"italic"},d):e.type&&e.type.text!==""&&c0(r)(e.type.text,o,e.x,e.y+e.type.Y,e.width,e.height,{fill:a,"font-style":"italic"},d),e.descr&&e.descr.text!==""&&(d=r.personFont(),d.fontColor=a,c0(r)(e.descr.text,o,e.x,e.y+e.descr.Y,e.width,e.height,{fill:a},d)),e.height},"drawC4Shape"),wvt=S(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),kvt=S(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),Avt=S(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),Rvt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),Nvt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),Ivt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),Ovt=S(function(t,e){const n=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);n.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),n.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),Dvt=S((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"getC4ShapeFont"),c0=(function(){function t(i,a,s,o,l,u,d){const h=a.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("text-anchor","middle").text(i);n(h,d)}S(t,"byText");function e(i,a,s,o,l,u,d,h){const{fontSize:f,fontFamily:p,fontWeight:g}=h,m=i.split(qt.lineBreakRegex);for(let y=0;y=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>x2e)&&(r=this.nextData.startx+e.margin+_r.nextLinePaddingX,i=this.nextData.stopy+e.margin*2,this.nextData.stopx=n=r+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=a=i+e.height,this.nextData.cnt=1),e.x=r,e.y=i,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",a,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",a,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},UB(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},S(x1,"Bounds"),x1),UB=S(function(t){Vi(_r,t),t.fontFamily&&(_r.personFontFamily=_r.systemFontFamily=_r.messageFontFamily=t.fontFamily),t.fontSize&&(_r.personFontSize=_r.systemFontSize=_r.messageFontSize=t.fontSize),t.fontWeight&&(_r.personFontWeight=_r.systemFontWeight=_r.messageFontWeight=t.fontWeight)},"setConf"),H2=S((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"c4ShapeFont"),T5=S(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),Lvt=S(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function El(t,e,r,n,i){if(!e[t].width)if(r)e[t].text=jE(e[t].text,i,n),e[t].textLines=e[t].text.split(qt.lineBreakRegex).length,e[t].width=i,e[t].height=KC(e[t].text,n);else{let a=e[t].text.split(qt.lineBreakRegex);e[t].textLines=a.length;let s=0;e[t].height=0,e[t].width=0;for(const o of a)e[t].width=Math.max($s(o,n),e[t].width),s=KC(o,n),e[t].height=e[t].height+s}}S(El,"calcC4ShapeTextWH");var w2e=S(function(t,e,r){e.x=r.data.startx,e.y=r.data.starty,e.width=r.data.stopx-r.data.startx,e.height=r.data.stopy-r.data.starty,e.label.y=_r.c4ShapeMargin-35;let n=e.wrap&&_r.wrap,i=T5(_r);i.fontSize=i.fontSize+2,i.fontWeight="bold";let a=$s(e.label.text,i);El("label",e,n,i,a),Lc.drawBoundary(t,e,_r)},"drawBoundary"),k2e=S(function(t,e,r,n){let i=0;for(const a of n){i=0;const s=r[a];let o=H2(_r,s.typeC4Shape.text);switch(o.fontSize=o.fontSize-2,s.typeC4Shape.width=$s("«"+s.typeC4Shape.text+"»",o),s.typeC4Shape.height=o.fontSize+2,s.typeC4Shape.Y=_r.c4ShapePadding,i=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height);let l=s.wrap&&_r.wrap,u=_r.width-_r.c4ShapePadding*2,d=H2(_r,s.typeC4Shape.text);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",El("label",s,l,d,u),s.label.Y=i+8,i=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let p=H2(_r,s.typeC4Shape.text);El("type",s,l,p,u),s.type.Y=i+5,i=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let p=H2(_r,s.techn.text);El("techn",s,l,p,u),s.techn.Y=i+5,i=s.techn.Y+s.techn.height}let h=i,f=s.label.width;if(s.descr&&s.descr.text!==""){let p=H2(_r,s.typeC4Shape.text);El("descr",s,l,p,u),s.descr.Y=i+20,i=s.descr.Y+s.descr.height,f=Math.max(s.label.width,s.descr.width),h=i-s.descr.textLines*5}f=f+_r.c4ShapePadding,s.width=Math.max(s.width||_r.width,f,_r.width),s.height=Math.max(s.height||_r.height,h,_r.height),s.margin=s.margin||_r.c4ShapeMargin,t.insert(s),Lc.drawC4Shape(e,s,_r)}t.bumpLastMargin(_r.c4ShapeMargin)},"drawC4ShapeArray"),C1,sl=(C1=class{constructor(e,r){this.x=e,this.y=r}},S(C1,"Point"),C1),Dae=S(function(t,e){let r=t.x,n=t.y,i=e.x,a=e.y,s=r+t.width/2,o=n+t.height/2,l=Math.abs(r-i),u=Math.abs(n-a),d=u/l,h=t.height/t.width,f=null;return n==a&&ri?f=new sl(r,o):r==i&&na&&(f=new sl(s,n)),r>i&&n=d?f=new sl(r,o+d*t.width/2):f=new sl(s-l/u*t.height/2,n+t.height):r=d?f=new sl(r+t.width,o+d*t.width/2):f=new sl(s+l/u*t.height/2,n+t.height):ra?h>=d?f=new sl(r+t.width,o-d*t.width/2):f=new sl(s+t.height/2*l/u,n):r>i&&n>a&&(h>=d?f=new sl(r,o-t.width/2*d):f=new sl(s-t.height/2*l/u,n)),f},"getIntersectPoint"),Mvt=S(function(t,e){let r={x:0,y:0};r.x=e.x+e.width/2,r.y=e.y+e.height/2;let n=Dae(t,r);r.x=t.x+t.width/2,r.y=t.y+t.height/2;let i=Dae(e,r);return{startPoint:n,endPoint:i}},"getIntersectPoints"),Pvt=S(function(t,e,r,n,i){let a=0;for(let s of e){a=a+1;let o=s.wrap&&_r.wrap,l=Lvt(_r);n.db.getC4Type()==="C4Dynamic"&&(s.label.text=a+": "+s.label.text);let d=$s(s.label.text,l);El("label",s,o,l,d),s.techn&&s.techn.text!==""&&(d=$s(s.techn.text,l),El("techn",s,o,l,d)),s.descr&&s.descr.text!==""&&(d=$s(s.descr.text,l),El("descr",s,o,l,d));let h=r(s.from),f=r(s.to),p=Mvt(h,f);s.startPoint=p.startPoint,s.endPoint=p.endPoint}Lc.drawRels(t,e,_r,i)},"drawRels");function lY(t,e,r,n,i){let a=new C2e(i);a.data.widthLimit=r.data.widthLimit/Math.min(zB,n.length);for(let[s,o]of n.entries()){let l=0;o.image={width:0,height:0,Y:0},o.sprite&&(o.image.width=48,o.image.height=48,o.image.Y=l,l=o.image.Y+o.image.height);let u=o.wrap&&_r.wrap,d=T5(_r);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",El("label",o,u,d,a.data.widthLimit),o.label.Y=l+8,l=o.label.Y+o.label.height,o.type&&o.type.text!==""){o.type.text="["+o.type.text+"]";let g=T5(_r);El("type",o,u,g,a.data.widthLimit),o.type.Y=l+5,l=o.type.Y+o.type.height}if(o.descr&&o.descr.text!==""){let g=T5(_r);g.fontSize=g.fontSize-2,El("descr",o,u,g,a.data.widthLimit),o.descr.Y=l+20,l=o.descr.Y+o.descr.height}if(s==0||s%zB===0){let g=r.data.startx+_r.diagramMarginX,m=r.data.stopy+_r.diagramMarginY+l;a.setData(g,g,m,m)}else{let g=a.data.stopx!==a.data.startx?a.data.stopx+_r.diagramMarginX:a.data.startx,m=a.data.starty;a.setData(g,g,m,m)}a.name=o.alias;let h=i.db.getC4ShapeArray(o.alias),f=i.db.getC4ShapeKeys(o.alias);f.length>0&&k2e(a,t,h,f),e=o.alias;let p=i.db.getBoundaries(e);p.length>0&&lY(t,e,a,p,i),o.alias!=="global"&&w2e(t,o,a),r.data.stopy=Math.max(a.data.stopy+_r.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(a.data.stopx+_r.c4ShapeMargin,r.data.stopx),$6=Math.max($6,r.data.stopx),z6=Math.max(z6,r.data.stopy)}}S(lY,"drawInsideBoundary");var Bvt=S(function(t,e,r,n){_r=Ke().c4;const i=Ke().securityLevel;let a;i==="sandbox"&&(a=At("#i"+e));const s=At(i==="sandbox"?a.nodes()[0].contentDocument.body:"body");let o=n.db;n.db.setWrap(_r.wrap),x2e=o.getC4ShapeInRow(),zB=o.getC4BoundaryInRow(),ge.debug(`C:${JSON.stringify(_r,null,2)}`);const l=i==="sandbox"?s.select(`[id="${e}"]`):At(`[id="${e}"]`);Lc.insertComputerIcon(l,e),Lc.insertDatabaseIcon(l,e),Lc.insertClockIcon(l,e);let u=new C2e(n);u.setData(_r.diagramMarginX,_r.diagramMarginX,_r.diagramMarginY,_r.diagramMarginY),u.data.widthLimit=screen.availWidth,$6=_r.diagramMarginX,z6=_r.diagramMarginY;const d=n.db.getTitle();let h=n.db.getBoundaries("");lY(l,"",u,h,n),Lc.insertArrowHead(l,e),Lc.insertArrowEnd(l,e),Lc.insertArrowCrossHead(l,e),Lc.insertArrowFilledHead(l,e),Pvt(l,n.db.getRels(),n.db.getC4Shape,n,e),u.data.stopx=$6,u.data.stopy=z6;const f=u.data;let g=f.stopy-f.starty+2*_r.diagramMarginY;const y=f.stopx-f.startx+2*_r.diagramMarginX;d&&l.append("text").text(d).attr("x",(f.stopx-f.startx)/2-4*_r.diagramMarginX).attr("y",f.starty+_r.diagramMarginY),ua(l,g,y,_r.useMaxWidth);const v=d?60:0;l.attr("viewBox",f.startx-_r.diagramMarginX+" -"+(_r.diagramMarginY+v)+" "+y+" "+(g+v)),ge.debug("models:",f)},"draw"),Lae={drawPersonOrSystemArray:k2e,drawBoundary:w2e,setConf:UB,draw:Bvt},Fvt=S(t=>`.person { +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var st=this.next();return st||this.lex()},"lex"),begin:S(function(st){this.conditionStack.push(st)},"begin"),popState:S(function(){var st=this.conditionStack.length-1;return st>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(st){return st=this.conditionStack.length-1-Math.abs(st||0),st>=0?this.conditionStack[st]:"INITIAL"},"topState"),pushState:S(function(st){this.begin(st)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:S(function(st,ct,ot,it){switch(ot){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return De})();qe.lexer=Ne;function ut(){this.yy={}}return S(ut,"Parser"),ut.prototype=qe,qe.Parser=ut,new ut})();P6.parser=P6;var Xyt=P6,fc=[],Xd=[""],zs="global",ac="",ou=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],v4=[],aY="",sY=!1,B6=4,F6=2,b2e,jyt=S(function(){return b2e},"getC4Type"),Qyt=S(function(t){b2e=un(t,Ke())},"setC4Type"),Zyt=S(function(t,e,r,n,i,a,s,o,l){if(t==null||e===void 0||e===null||r===void 0||r===null||n===void 0||n===null)return;let u={};const d=v4.find(h=>h.from===e&&h.to===r);if(d?u=d:v4.push(u),u.type=t,u.from=e,u.to=r,u.label={text:n},i==null)u.techn={text:""};else if(typeof i=="object"){let[h,f]=Object.entries(i)[0];u[h]={text:f}}else u.techn={text:i};if(a==null)u.descr={text:""};else if(typeof a=="object"){let[h,f]=Object.entries(a)[0];u[h]={text:f}}else u.descr={text:a};if(typeof s=="object"){let[h,f]=Object.entries(s)[0];u[h]=f}else u.sprite=s;if(typeof o=="object"){let[h,f]=Object.entries(o)[0];u[h]=f}else u.tags=o;if(typeof l=="object"){let[h,f]=Object.entries(l)[0];u[h]=f}else u.link=l;u.wrap=zh()},"addRel"),Jyt=S(function(t,e,r,n,i,a,s){if(e===null||r===null)return;let o={};const l=fc.find(u=>u.alias===e);if(l&&e===l.alias?o=l:(o.alias=e,fc.push(o)),r==null?o.label={text:""}:o.label={text:r},n==null)o.descr={text:""};else if(typeof n=="object"){let[u,d]=Object.entries(n)[0];o[u]={text:d}}else o.descr={text:n};if(typeof i=="object"){let[u,d]=Object.entries(i)[0];o[u]=d}else o.sprite=i;if(typeof a=="object"){let[u,d]=Object.entries(a)[0];o[u]=d}else o.tags=a;if(typeof s=="object"){let[u,d]=Object.entries(s)[0];o[u]=d}else o.link=s;o.typeC4Shape={text:t},o.parentBoundary=zs,o.wrap=zh()},"addPersonOrSystem"),evt=S(function(t,e,r,n,i,a,s,o){if(e===null||r===null)return;let l={};const u=fc.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,fc.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.techn={text:""};else if(typeof n=="object"){let[d,h]=Object.entries(n)[0];l[d]={text:h}}else l.techn={text:n};if(i==null)l.descr={text:""};else if(typeof i=="object"){let[d,h]=Object.entries(i)[0];l[d]={text:h}}else l.descr={text:i};if(typeof a=="object"){let[d,h]=Object.entries(a)[0];l[d]=h}else l.sprite=a;if(typeof s=="object"){let[d,h]=Object.entries(s)[0];l[d]=h}else l.tags=s;if(typeof o=="object"){let[d,h]=Object.entries(o)[0];l[d]=h}else l.link=o;l.wrap=zh(),l.typeC4Shape={text:t},l.parentBoundary=zs},"addContainer"),tvt=S(function(t,e,r,n,i,a,s,o){if(e===null||r===null)return;let l={};const u=fc.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,fc.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.techn={text:""};else if(typeof n=="object"){let[d,h]=Object.entries(n)[0];l[d]={text:h}}else l.techn={text:n};if(i==null)l.descr={text:""};else if(typeof i=="object"){let[d,h]=Object.entries(i)[0];l[d]={text:h}}else l.descr={text:i};if(typeof a=="object"){let[d,h]=Object.entries(a)[0];l[d]=h}else l.sprite=a;if(typeof s=="object"){let[d,h]=Object.entries(s)[0];l[d]=h}else l.tags=s;if(typeof o=="object"){let[d,h]=Object.entries(o)[0];l[d]=h}else l.link=o;l.wrap=zh(),l.typeC4Shape={text:t},l.parentBoundary=zs},"addComponent"),rvt=S(function(t,e,r,n,i){if(t===null||e===null)return;let a={};const s=ou.find(o=>o.alias===t);if(s&&t===s.alias?a=s:(a.alias=t,ou.push(a)),e==null?a.label={text:""}:a.label={text:e},r==null)a.type={text:"system"};else if(typeof r=="object"){let[o,l]=Object.entries(r)[0];a[o]={text:l}}else a.type={text:r};if(typeof n=="object"){let[o,l]=Object.entries(n)[0];a[o]=l}else a.tags=n;if(typeof i=="object"){let[o,l]=Object.entries(i)[0];a[o]=l}else a.link=i;a.parentBoundary=zs,a.wrap=zh(),ac=zs,zs=t,Xd.push(ac)},"addPersonOrSystemBoundary"),nvt=S(function(t,e,r,n,i){if(t===null||e===null)return;let a={};const s=ou.find(o=>o.alias===t);if(s&&t===s.alias?a=s:(a.alias=t,ou.push(a)),e==null?a.label={text:""}:a.label={text:e},r==null)a.type={text:"container"};else if(typeof r=="object"){let[o,l]=Object.entries(r)[0];a[o]={text:l}}else a.type={text:r};if(typeof n=="object"){let[o,l]=Object.entries(n)[0];a[o]=l}else a.tags=n;if(typeof i=="object"){let[o,l]=Object.entries(i)[0];a[o]=l}else a.link=i;a.parentBoundary=zs,a.wrap=zh(),ac=zs,zs=t,Xd.push(ac)},"addContainerBoundary"),ivt=S(function(t,e,r,n,i,a,s,o){if(e===null||r===null)return;let l={};const u=ou.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,ou.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.type={text:"node"};else if(typeof n=="object"){let[d,h]=Object.entries(n)[0];l[d]={text:h}}else l.type={text:n};if(i==null)l.descr={text:""};else if(typeof i=="object"){let[d,h]=Object.entries(i)[0];l[d]={text:h}}else l.descr={text:i};if(typeof s=="object"){let[d,h]=Object.entries(s)[0];l[d]=h}else l.tags=s;if(typeof o=="object"){let[d,h]=Object.entries(o)[0];l[d]=h}else l.link=o;l.nodeType=t,l.parentBoundary=zs,l.wrap=zh(),ac=zs,zs=e,Xd.push(ac)},"addDeploymentNode"),avt=S(function(){zs=ac,Xd.pop(),ac=Xd.pop(),Xd.push(ac)},"popBoundaryParseStack"),svt=S(function(t,e,r,n,i,a,s,o,l,u,d){let h=fc.find(f=>f.alias===e);if(!(h===void 0&&(h=ou.find(f=>f.alias===e),h===void 0))){if(r!=null)if(typeof r=="object"){let[f,p]=Object.entries(r)[0];h[f]=p}else h.bgColor=r;if(n!=null)if(typeof n=="object"){let[f,p]=Object.entries(n)[0];h[f]=p}else h.fontColor=n;if(i!=null)if(typeof i=="object"){let[f,p]=Object.entries(i)[0];h[f]=p}else h.borderColor=i;if(a!=null)if(typeof a=="object"){let[f,p]=Object.entries(a)[0];h[f]=p}else h.shadowing=a;if(s!=null)if(typeof s=="object"){let[f,p]=Object.entries(s)[0];h[f]=p}else h.shape=s;if(o!=null)if(typeof o=="object"){let[f,p]=Object.entries(o)[0];h[f]=p}else h.sprite=o;if(l!=null)if(typeof l=="object"){let[f,p]=Object.entries(l)[0];h[f]=p}else h.techn=l;if(u!=null)if(typeof u=="object"){let[f,p]=Object.entries(u)[0];h[f]=p}else h.legendText=u;if(d!=null)if(typeof d=="object"){let[f,p]=Object.entries(d)[0];h[f]=p}else h.legendSprite=d}},"updateElStyle"),ovt=S(function(t,e,r,n,i,a,s){const o=v4.find(l=>l.from===e&&l.to===r);if(o!==void 0){if(n!=null)if(typeof n=="object"){let[l,u]=Object.entries(n)[0];o[l]=u}else o.textColor=n;if(i!=null)if(typeof i=="object"){let[l,u]=Object.entries(i)[0];o[l]=u}else o.lineColor=i;if(a!=null)if(typeof a=="object"){let[l,u]=Object.entries(a)[0];o[l]=parseInt(u)}else o.offsetX=parseInt(a);if(s!=null)if(typeof s=="object"){let[l,u]=Object.entries(s)[0];o[l]=parseInt(u)}else o.offsetY=parseInt(s)}},"updateRelStyle"),lvt=S(function(t,e,r){let n=B6,i=F6;if(typeof e=="object"){const a=Object.values(e)[0];n=parseInt(a)}else n=parseInt(e);if(typeof r=="object"){const a=Object.values(r)[0];i=parseInt(a)}else i=parseInt(r);n>=1&&(B6=n),i>=1&&(F6=i)},"updateLayoutConfig"),cvt=S(function(){return B6},"getC4ShapeInRow"),uvt=S(function(){return F6},"getC4BoundaryInRow"),dvt=S(function(){return zs},"getCurrentBoundaryParse"),hvt=S(function(){return ac},"getParentBoundaryParse"),E2e=S(function(t){return t==null?fc:fc.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),fvt=S(function(t){return fc.find(e=>e.alias===t)},"getC4Shape"),pvt=S(function(t){return Object.keys(E2e(t))},"getC4ShapeKeys"),S2e=S(function(t){return t==null?ou:ou.filter(e=>e.parentBoundary===t)},"getBoundaries"),gvt=S2e,mvt=S(function(){return v4},"getRels"),yvt=S(function(){return aY},"getTitle"),vvt=S(function(t){sY=t},"setWrap"),zh=S(function(){return sY},"autoWrap"),_vt=S(function(){fc=[],ou=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],ac="",zs="global",Xd=[""],v4=[],Xd=[""],aY="",sY=!1,B6=4,F6=2},"clear"),bvt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},Evt={FILLED:0,OPEN:1},Svt={LEFTOF:0,RIGHTOF:1,OVER:2},Tvt=S(function(t){aY=un(t,Ke())},"setTitle"),$B={addPersonOrSystem:Jyt,addPersonOrSystemBoundary:rvt,addContainer:evt,addContainerBoundary:nvt,addComponent:tvt,addDeploymentNode:ivt,popBoundaryParseStack:avt,addRel:Zyt,updateElStyle:svt,updateRelStyle:ovt,updateLayoutConfig:lvt,autoWrap:zh,setWrap:vvt,getC4ShapeArray:E2e,getC4Shape:fvt,getC4ShapeKeys:pvt,getBoundaries:S2e,getBoundarys:gvt,getCurrentBoundaryParse:dvt,getParentBoundaryParse:hvt,getRels:mvt,getTitle:yvt,getC4Type:jyt,getC4ShapeInRow:cvt,getC4BoundaryInRow:uvt,setAccTitle:ai,getAccTitle:yi,getAccDescription:_i,setAccDescription:vi,getConfig:S(()=>Ke().c4,"getConfig"),clear:_vt,LINETYPE:bvt,ARROWTYPE:Evt,PLACEMENT:Svt,setTitle:Tvt,setC4Type:Qyt},oY=S(function(t,e){return U7(t,e)},"drawRect"),T2e=S(function(t,e,r,n,i,a){const s=t.append("image");s.attr("width",e),s.attr("height",r),s.attr("x",n),s.attr("y",i);let o=a.startsWith("data:image/png;base64")?a:Kp.sanitizeUrl(a);s.attr("xlink:href",o)},"drawImage"),xvt=S((t,e,r,n)=>{const i=t.append("g");let a=0;for(let s of e){let o=s.textColor?s.textColor:"#444444",l=s.lineColor?s.lineColor:"#444444",u=s.offsetX?parseInt(s.offsetX):0,d=s.offsetY?parseInt(s.offsetY):0,h="";if(a===0){let p=i.append("line");p.attr("x1",s.startPoint.x),p.attr("y1",s.startPoint.y),p.attr("x2",s.endPoint.x),p.attr("y2",s.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",l),p.style("fill","none"),s.type!=="rel_b"&&p.attr("marker-end","url("+h+"#"+n+"-arrowhead)"),(s.type==="birel"||s.type==="rel_b")&&p.attr("marker-start","url("+h+"#"+n+"-arrowend)"),a=-1}else{let p=i.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",l).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",s.startPoint.x).replaceAll("starty",s.startPoint.y).replaceAll("controlx",s.startPoint.x+(s.endPoint.x-s.startPoint.x)/2-(s.endPoint.x-s.startPoint.x)/4).replaceAll("controly",s.startPoint.y+(s.endPoint.y-s.startPoint.y)/2).replaceAll("stopx",s.endPoint.x).replaceAll("stopy",s.endPoint.y)),s.type!=="rel_b"&&p.attr("marker-end","url("+h+"#"+n+"-arrowhead)"),(s.type==="birel"||s.type==="rel_b")&&p.attr("marker-start","url("+h+"#"+n+"-arrowend)")}let f=r.messageFont();c0(r)(s.label.text,i,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+u,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+d,s.label.width,s.label.height,{fill:o},f),s.techn&&s.techn.text!==""&&(f=r.messageFont(),c0(r)("["+s.techn.text+"]",i,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+u,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+r.messageFontSize+5+d,Math.max(s.label.width,s.techn.width),s.techn.height,{fill:o,"font-style":"italic"},f))}},"drawRels"),Cvt=S(function(t,e,r){const n=t.append("g");let i=e.bgColor?e.bgColor:"none",a=e.borderColor?e.borderColor:"#444444",s=e.fontColor?e.fontColor:"black",o={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(o={"stroke-width":1});let l={x:e.x,y:e.y,fill:i,stroke:a,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:o};oY(n,l);let u=r.boundaryFont();u.fontWeight="bold",u.fontSize=u.fontSize+2,u.fontColor=s,c0(r)(e.label.text,n,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},u),e.type&&e.type.text!==""&&(u=r.boundaryFont(),u.fontColor=s,c0(r)(e.type.text,n,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},u)),e.descr&&e.descr.text!==""&&(u=r.boundaryFont(),u.fontSize=u.fontSize-2,u.fontColor=s,c0(r)(e.descr.text,n,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},u))},"drawBoundary"),wvt=S(function(t,e,r){let n=e.bgColor?e.bgColor:r[e.typeC4Shape.text+"_bg_color"],i=e.borderColor?e.borderColor:r[e.typeC4Shape.text+"_border_color"],a=e.fontColor?e.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const o=t.append("g");o.attr("class","person-man");const l=Xo();switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":l.x=e.x,l.y=e.y,l.fill=n,l.width=e.width,l.height=e.height,l.stroke=i,l.rx=2.5,l.ry=2.5,l.attrs={"stroke-width":.5},oY(o,l);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":o.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":o.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2));break}let u=Lvt(r,e.typeC4Shape.text);switch(o.append("text").attr("fill",a).attr("font-family",u.fontFamily).attr("font-size",u.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":T2e(o,48,48,e.x+e.width/2-24,e.y+e.image.Y,s);break}let d=r[e.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=a,c0(r)(e.label.text,o,e.x,e.y+e.label.Y,e.width,e.height,{fill:a},d),d=r[e.typeC4Shape.text+"Font"](),d.fontColor=a,e.techn&&e.techn?.text!==""?c0(r)(e.techn.text,o,e.x,e.y+e.techn.Y,e.width,e.height,{fill:a,"font-style":"italic"},d):e.type&&e.type.text!==""&&c0(r)(e.type.text,o,e.x,e.y+e.type.Y,e.width,e.height,{fill:a,"font-style":"italic"},d),e.descr&&e.descr.text!==""&&(d=r.personFont(),d.fontColor=a,c0(r)(e.descr.text,o,e.x,e.y+e.descr.Y,e.width,e.height,{fill:a},d)),e.height},"drawC4Shape"),kvt=S(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),Avt=S(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),Rvt=S(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),Nvt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),Ivt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),Ovt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),Dvt=S(function(t,e){const n=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);n.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),n.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),Lvt=S((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"getC4ShapeFont"),c0=(function(){function t(i,a,s,o,l,u,d){const h=a.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("text-anchor","middle").text(i);n(h,d)}S(t,"byText");function e(i,a,s,o,l,u,d,h){const{fontSize:f,fontFamily:p,fontWeight:g}=h,m=i.split(qt.lineBreakRegex);for(let y=0;y=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>x2e)&&(r=this.nextData.startx+e.margin+_r.nextLinePaddingX,i=this.nextData.stopy+e.margin*2,this.nextData.stopx=n=r+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=a=i+e.height,this.nextData.cnt=1),e.x=r,e.y=i,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",a,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",a,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},UB(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},S(x1,"Bounds"),x1),UB=S(function(t){Vi(_r,t),t.fontFamily&&(_r.personFontFamily=_r.systemFontFamily=_r.messageFontFamily=t.fontFamily),t.fontSize&&(_r.personFontSize=_r.systemFontSize=_r.messageFontSize=t.fontSize),t.fontWeight&&(_r.personFontWeight=_r.systemFontWeight=_r.messageFontWeight=t.fontWeight)},"setConf"),H2=S((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"c4ShapeFont"),T5=S(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),Mvt=S(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function El(t,e,r,n,i){if(!e[t].width)if(r)e[t].text=jE(e[t].text,i,n),e[t].textLines=e[t].text.split(qt.lineBreakRegex).length,e[t].width=i,e[t].height=KC(e[t].text,n);else{let a=e[t].text.split(qt.lineBreakRegex);e[t].textLines=a.length;let s=0;e[t].height=0,e[t].width=0;for(const o of a)e[t].width=Math.max($s(o,n),e[t].width),s=KC(o,n),e[t].height=e[t].height+s}}S(El,"calcC4ShapeTextWH");var w2e=S(function(t,e,r){e.x=r.data.startx,e.y=r.data.starty,e.width=r.data.stopx-r.data.startx,e.height=r.data.stopy-r.data.starty,e.label.y=_r.c4ShapeMargin-35;let n=e.wrap&&_r.wrap,i=T5(_r);i.fontSize=i.fontSize+2,i.fontWeight="bold";let a=$s(e.label.text,i);El("label",e,n,i,a),Lc.drawBoundary(t,e,_r)},"drawBoundary"),k2e=S(function(t,e,r,n){let i=0;for(const a of n){i=0;const s=r[a];let o=H2(_r,s.typeC4Shape.text);switch(o.fontSize=o.fontSize-2,s.typeC4Shape.width=$s("«"+s.typeC4Shape.text+"»",o),s.typeC4Shape.height=o.fontSize+2,s.typeC4Shape.Y=_r.c4ShapePadding,i=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height);let l=s.wrap&&_r.wrap,u=_r.width-_r.c4ShapePadding*2,d=H2(_r,s.typeC4Shape.text);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",El("label",s,l,d,u),s.label.Y=i+8,i=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let p=H2(_r,s.typeC4Shape.text);El("type",s,l,p,u),s.type.Y=i+5,i=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let p=H2(_r,s.techn.text);El("techn",s,l,p,u),s.techn.Y=i+5,i=s.techn.Y+s.techn.height}let h=i,f=s.label.width;if(s.descr&&s.descr.text!==""){let p=H2(_r,s.typeC4Shape.text);El("descr",s,l,p,u),s.descr.Y=i+20,i=s.descr.Y+s.descr.height,f=Math.max(s.label.width,s.descr.width),h=i-s.descr.textLines*5}f=f+_r.c4ShapePadding,s.width=Math.max(s.width||_r.width,f,_r.width),s.height=Math.max(s.height||_r.height,h,_r.height),s.margin=s.margin||_r.c4ShapeMargin,t.insert(s),Lc.drawC4Shape(e,s,_r)}t.bumpLastMargin(_r.c4ShapeMargin)},"drawC4ShapeArray"),C1,sl=(C1=class{constructor(e,r){this.x=e,this.y=r}},S(C1,"Point"),C1),Dae=S(function(t,e){let r=t.x,n=t.y,i=e.x,a=e.y,s=r+t.width/2,o=n+t.height/2,l=Math.abs(r-i),u=Math.abs(n-a),d=u/l,h=t.height/t.width,f=null;return n==a&&ri?f=new sl(r,o):r==i&&na&&(f=new sl(s,n)),r>i&&n=d?f=new sl(r,o+d*t.width/2):f=new sl(s-l/u*t.height/2,n+t.height):r=d?f=new sl(r+t.width,o+d*t.width/2):f=new sl(s+l/u*t.height/2,n+t.height):ra?h>=d?f=new sl(r+t.width,o-d*t.width/2):f=new sl(s+t.height/2*l/u,n):r>i&&n>a&&(h>=d?f=new sl(r,o-t.width/2*d):f=new sl(s-t.height/2*l/u,n)),f},"getIntersectPoint"),Pvt=S(function(t,e){let r={x:0,y:0};r.x=e.x+e.width/2,r.y=e.y+e.height/2;let n=Dae(t,r);r.x=t.x+t.width/2,r.y=t.y+t.height/2;let i=Dae(e,r);return{startPoint:n,endPoint:i}},"getIntersectPoints"),Bvt=S(function(t,e,r,n,i){let a=0;for(let s of e){a=a+1;let o=s.wrap&&_r.wrap,l=Mvt(_r);n.db.getC4Type()==="C4Dynamic"&&(s.label.text=a+": "+s.label.text);let d=$s(s.label.text,l);El("label",s,o,l,d),s.techn&&s.techn.text!==""&&(d=$s(s.techn.text,l),El("techn",s,o,l,d)),s.descr&&s.descr.text!==""&&(d=$s(s.descr.text,l),El("descr",s,o,l,d));let h=r(s.from),f=r(s.to),p=Pvt(h,f);s.startPoint=p.startPoint,s.endPoint=p.endPoint}Lc.drawRels(t,e,_r,i)},"drawRels");function lY(t,e,r,n,i){let a=new C2e(i);a.data.widthLimit=r.data.widthLimit/Math.min(zB,n.length);for(let[s,o]of n.entries()){let l=0;o.image={width:0,height:0,Y:0},o.sprite&&(o.image.width=48,o.image.height=48,o.image.Y=l,l=o.image.Y+o.image.height);let u=o.wrap&&_r.wrap,d=T5(_r);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",El("label",o,u,d,a.data.widthLimit),o.label.Y=l+8,l=o.label.Y+o.label.height,o.type&&o.type.text!==""){o.type.text="["+o.type.text+"]";let g=T5(_r);El("type",o,u,g,a.data.widthLimit),o.type.Y=l+5,l=o.type.Y+o.type.height}if(o.descr&&o.descr.text!==""){let g=T5(_r);g.fontSize=g.fontSize-2,El("descr",o,u,g,a.data.widthLimit),o.descr.Y=l+20,l=o.descr.Y+o.descr.height}if(s==0||s%zB===0){let g=r.data.startx+_r.diagramMarginX,m=r.data.stopy+_r.diagramMarginY+l;a.setData(g,g,m,m)}else{let g=a.data.stopx!==a.data.startx?a.data.stopx+_r.diagramMarginX:a.data.startx,m=a.data.starty;a.setData(g,g,m,m)}a.name=o.alias;let h=i.db.getC4ShapeArray(o.alias),f=i.db.getC4ShapeKeys(o.alias);f.length>0&&k2e(a,t,h,f),e=o.alias;let p=i.db.getBoundaries(e);p.length>0&&lY(t,e,a,p,i),o.alias!=="global"&&w2e(t,o,a),r.data.stopy=Math.max(a.data.stopy+_r.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(a.data.stopx+_r.c4ShapeMargin,r.data.stopx),$6=Math.max($6,r.data.stopx),z6=Math.max(z6,r.data.stopy)}}S(lY,"drawInsideBoundary");var Fvt=S(function(t,e,r,n){_r=Ke().c4;const i=Ke().securityLevel;let a;i==="sandbox"&&(a=At("#i"+e));const s=At(i==="sandbox"?a.nodes()[0].contentDocument.body:"body");let o=n.db;n.db.setWrap(_r.wrap),x2e=o.getC4ShapeInRow(),zB=o.getC4BoundaryInRow(),ge.debug(`C:${JSON.stringify(_r,null,2)}`);const l=i==="sandbox"?s.select(`[id="${e}"]`):At(`[id="${e}"]`);Lc.insertComputerIcon(l,e),Lc.insertDatabaseIcon(l,e),Lc.insertClockIcon(l,e);let u=new C2e(n);u.setData(_r.diagramMarginX,_r.diagramMarginX,_r.diagramMarginY,_r.diagramMarginY),u.data.widthLimit=screen.availWidth,$6=_r.diagramMarginX,z6=_r.diagramMarginY;const d=n.db.getTitle();let h=n.db.getBoundaries("");lY(l,"",u,h,n),Lc.insertArrowHead(l,e),Lc.insertArrowEnd(l,e),Lc.insertArrowCrossHead(l,e),Lc.insertArrowFilledHead(l,e),Bvt(l,n.db.getRels(),n.db.getC4Shape,n,e),u.data.stopx=$6,u.data.stopy=z6;const f=u.data;let g=f.stopy-f.starty+2*_r.diagramMarginY;const y=f.stopx-f.startx+2*_r.diagramMarginX;d&&l.append("text").text(d).attr("x",(f.stopx-f.startx)/2-4*_r.diagramMarginX).attr("y",f.starty+_r.diagramMarginY),ua(l,g,y,_r.useMaxWidth);const v=d?60:0;l.attr("viewBox",f.startx-_r.diagramMarginX+" -"+(_r.diagramMarginY+v)+" "+y+" "+(g+v)),ge.debug("models:",f)},"draw"),Lae={drawPersonOrSystemArray:k2e,drawBoundary:w2e,setConf:UB,draw:Fvt},$vt=S(t=>`.person { stroke: ${t.personBorder}; fill: ${t.personBkg}; } -`,"getStyles"),$vt=Fvt,zvt={parser:Kyt,db:$B,renderer:Lae,styles:$vt,init:S(({c4:t,wrap:e})=>{Lae.setConf(t),$B.setWrap(e)},"init")};const Uvt=Object.freeze(Object.defineProperty({__proto__:null,diagram:zvt},Symbol.toStringTag,{value:"Module"}));var OT=S(()=>` +`,"getStyles"),zvt=$vt,Uvt={parser:Xyt,db:$B,renderer:Lae,styles:zvt,init:S(({c4:t,wrap:e})=>{Lae.setConf(t),$B.setWrap(e)},"init")};const Gvt=Object.freeze(Object.defineProperty({__proto__:null,diagram:Uvt},Symbol.toStringTag,{value:"Module"}));var OT=S(()=>` /* Font Awesome icon styling - consolidated */ .label-icon { display: inline-block; @@ -4994,21 +4994,21 @@ Expecting `+ft.join(", ")+", got '"+(this.terminals_[he]||he)+"'":mt="Parse erro stroke: revert; stroke-width: revert; } -`,"getIconStyles"),o2=S((t,e)=>{let r;return e==="sandbox"&&(r=At("#i"+t)),At(e==="sandbox"?r.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`)},"getDiagramElement"),sg=S((t,e,r,n)=>{t.attr("class",r);const{width:i,height:a,x:s,y:o}=Gvt(t,e);ua(t,a,i,n);const l=qvt(s,o,i,a,e);t.attr("viewBox",l),ge.debug(`viewBox configured: ${l} with padding: ${e}`)},"setupViewPortForSVG"),Gvt=S((t,e)=>{const r=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+e*2,height:r.height+e*2,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),qvt=S((t,e,r,n,i)=>`${t-i} ${e-i} ${r} ${n}`,"createViewBox"),Yvt="flowchart-",w1,Hvt=(w1=class{constructor(){this.vertexCounter=0,this.config=Ke(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=ai,this.setAccDescription=vi,this.setDiagramTitle=pi,this.getAccTitle=yi,this.getAccDescription=_i,this.getDiagramTitle=li,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(e){return qt.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(const r of this.vertices.values())if(r.id===e)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,r,n,i,a,s,o={},l){if(!e||e.trim().length===0)return;let u;if(l!==void 0){let p;l.includes(` +`,"getIconStyles"),o2=S((t,e)=>{let r;return e==="sandbox"&&(r=At("#i"+t)),At(e==="sandbox"?r.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`)},"getDiagramElement"),sg=S((t,e,r,n)=>{t.attr("class",r);const{width:i,height:a,x:s,y:o}=qvt(t,e);ua(t,a,i,n);const l=Yvt(s,o,i,a,e);t.attr("viewBox",l),ge.debug(`viewBox configured: ${l} with padding: ${e}`)},"setupViewPortForSVG"),qvt=S((t,e)=>{const r=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+e*2,height:r.height+e*2,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),Yvt=S((t,e,r,n,i)=>`${t-i} ${e-i} ${r} ${n}`,"createViewBox"),Hvt="flowchart-",w1,Vvt=(w1=class{constructor(){this.vertexCounter=0,this.config=Ke(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=ai,this.setAccDescription=vi,this.setDiagramTitle=pi,this.getAccTitle=yi,this.getAccDescription=_i,this.getDiagramTitle=li,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(e){return qt.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(const r of this.vertices.values())if(r.id===e)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,r,n,i,a,s,o={},l){if(!e||e.trim().length===0)return;let u;if(l!==void 0){let p;l.includes(` `)?p=l+` `:p=`{ `+l+` -}`,u=wk(p,{schema:Ck})}const d=this.edges.find(p=>p.id===e);if(d){const p=u;p?.animate!==void 0&&(d.animate=p.animate),p?.animation!==void 0&&(d.animation=p.animation),p?.curve!==void 0&&(d.interpolate=p.curve);return}let h,f=this.vertices.get(e);if(f===void 0&&(r===void 0&&n===void 0&&i!==void 0&&i!==null&&ge.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),f={id:e,labelType:"text",domId:Yvt+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,f)),this.vertexCounter++,r!==void 0?(this.config=Ke(),h=this.sanitizeText(r.text.trim()),f.labelType=r.type,h.startsWith('"')&&h.endsWith('"')&&(h=h.substring(1,h.length-1)),f.text=h):f.text===void 0&&(f.text=e),n!==void 0&&(f.type=n),i?.forEach(p=>{f.styles.push(p)}),a?.forEach(p=>{f.classes.push(p)}),s!==void 0&&(f.dir=s),f.props===void 0?f.props=o:o!==void 0&&Object.assign(f.props,o),u!==void 0){if(u.shape){if(u.shape!==u.shape.toLowerCase()||u.shape.includes("_"))throw new Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);if(!eme(u.shape))throw new Error(`No such shape: ${u.shape}.`);f.type=u?.shape}u?.label&&(f.text=u?.label,f.labelType=this.sanitizeNodeLabelType(u?.labelType)),u?.icon&&(f.icon=u?.icon,!u.label?.trim()&&f.text===e&&(f.text="")),u?.form&&(f.form=u?.form),u?.pos&&(f.pos=u?.pos),u?.img&&(f.img=u?.img,!u.label?.trim()&&f.text===e&&(f.text="")),u?.constraint&&(f.constraint=u.constraint),u.w&&(f.assetWidth=Number(u.w)),u.h&&(f.assetHeight=Number(u.h))}}addSingleLink(e,r,n,i){const o={start:e,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};ge.info("abc78 Got edge...",o);const l=n.text;if(l!==void 0&&(o.text=this.sanitizeText(l.text.trim()),o.text.startsWith('"')&&o.text.endsWith('"')&&(o.text=o.text.substring(1,o.text.length-1)),o.labelType=this.sanitizeNodeLabelType(l.type)),n!==void 0&&(o.type=n.type,o.stroke=n.stroke,o.length=n.length>10?10:n.length),i&&!this.edges.some(u=>u.id===i))o.id=i,o.isUserDefinedId=!0;else{const u=this.edges.filter(d=>d.start===o.start&&d.end===o.end);u.length===0?o.id=Vm(o.start,o.end,{counter:0,prefix:"L"}):o.id=Vm(o.start,o.end,{counter:u.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))ge.info("Pushing edge..."),this.edges.push(o);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. +}`,u=wk(p,{schema:Ck})}const d=this.edges.find(p=>p.id===e);if(d){const p=u;p?.animate!==void 0&&(d.animate=p.animate),p?.animation!==void 0&&(d.animation=p.animation),p?.curve!==void 0&&(d.interpolate=p.curve);return}let h,f=this.vertices.get(e);if(f===void 0&&(r===void 0&&n===void 0&&i!==void 0&&i!==null&&ge.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),f={id:e,labelType:"text",domId:Hvt+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,f)),this.vertexCounter++,r!==void 0?(this.config=Ke(),h=this.sanitizeText(r.text.trim()),f.labelType=r.type,h.startsWith('"')&&h.endsWith('"')&&(h=h.substring(1,h.length-1)),f.text=h):f.text===void 0&&(f.text=e),n!==void 0&&(f.type=n),i?.forEach(p=>{f.styles.push(p)}),a?.forEach(p=>{f.classes.push(p)}),s!==void 0&&(f.dir=s),f.props===void 0?f.props=o:o!==void 0&&Object.assign(f.props,o),u!==void 0){if(u.shape){if(u.shape!==u.shape.toLowerCase()||u.shape.includes("_"))throw new Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);if(!eme(u.shape))throw new Error(`No such shape: ${u.shape}.`);f.type=u?.shape}u?.label&&(f.text=u?.label,f.labelType=this.sanitizeNodeLabelType(u?.labelType)),u?.icon&&(f.icon=u?.icon,!u.label?.trim()&&f.text===e&&(f.text="")),u?.form&&(f.form=u?.form),u?.pos&&(f.pos=u?.pos),u?.img&&(f.img=u?.img,!u.label?.trim()&&f.text===e&&(f.text="")),u?.constraint&&(f.constraint=u.constraint),u.w&&(f.assetWidth=Number(u.w)),u.h&&(f.assetHeight=Number(u.h))}}addSingleLink(e,r,n,i){const o={start:e,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};ge.info("abc78 Got edge...",o);const l=n.text;if(l!==void 0&&(o.text=this.sanitizeText(l.text.trim()),o.text.startsWith('"')&&o.text.endsWith('"')&&(o.text=o.text.substring(1,o.text.length-1)),o.labelType=this.sanitizeNodeLabelType(l.type)),n!==void 0&&(o.type=n.type,o.stroke=n.stroke,o.length=n.length>10?10:n.length),i&&!this.edges.some(u=>u.id===i))o.id=i,o.isUserDefinedId=!0;else{const u=this.edges.filter(d=>d.start===o.start&&d.end===o.end);u.length===0?o.id=Vm(o.start,o.end,{counter:0,prefix:"L"}):o.id=Vm(o.start,o.end,{counter:u.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))ge.info("Pushing edge..."),this.edges.push(o);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. -You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,r,n){const i=this.isLinkData(n)?n.id.replace("@",""):void 0;ge.info("addLink",e,r,i);for(const a of e)for(const s of r){const o=a===e[e.length-1],l=s===r[0];o&&l?this.addSingleLink(a,s,n,i):this.addSingleLink(a,s,n,void 0)}}updateLinkInterpolate(e,r){e.forEach(n=>{n==="default"?this.edges.defaultInterpolate=r:this.edges[n].interpolate=r})}updateLink(e,r){e.forEach(n=>{if(typeof n=="number"&&n>=this.edges.length)throw new Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);n==="default"?this.edges.defaultStyle=r:(this.edges[n].style=r,(this.edges[n]?.style?.length??0)>0&&!this.edges[n]?.style?.some(i=>i?.startsWith("fill"))&&this.edges[n]?.style?.push("fill:none"))})}addClass(e,r){const n=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(i=>{let a=this.classes.get(i);a===void 0&&(a={id:i,styles:[],textStyles:[]},this.classes.set(i,a)),n?.forEach(s=>{if(/color/.exec(s)){const o=s.replace("fill","bgFill");a.textStyles.push(o)}a.styles.push(s)})})}setDirection(e){this.direction=e.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,r){for(const n of e.split(",")){const i=this.vertices.get(n);i&&i.classes.push(r);const a=this.edges.find(o=>o.id===n);a&&a.classes.push(r);const s=this.subGraphLookup.get(n);s&&s.classes.push(r)}}setTooltip(e,r){if(r!==void 0){r=this.sanitizeText(r);for(const n of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,r)}}setClickFun(e,r,n){if(Ke().securityLevel!=="loose"||r===void 0)return;let i=[];if(typeof n=="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s{const s=this.lookUpDomId(e),o=document.querySelector(`[id="${s}"]`);o!==null&&o.addEventListener("click",()=>{Wr.runFunc(r,...i)},!1)}))}setLink(e,r,n){e.split(",").forEach(i=>{const a=this.vertices.get(i);a!==void 0&&(a.link=Wr.formatUrl(r,this.config),a.linkTarget=n)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,n){e.split(",").forEach(i=>{this.setClickFun(i,r,n)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(r=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){const r=_2e();At(e).select("svg").selectAll("g.node").on("mouseover",a=>{const s=At(a.currentTarget),o=s.attr("title");if(o===null)return;const l=a.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(s.attr("title")).style("left",window.scrollX+l.left+(l.right-l.left)/2+"px").style("top",window.scrollY+l.bottom+"px"),r.html(nh.sanitize(o)),s.classed("hover",!0)}).on("mouseout",a=>{r.transition().duration(500).style("opacity",0),At(a.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=Ke(),oi()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,n){let i=e.text.trim(),a=n.text;e===n&&/\s/.exec(n.text)&&(i=void 0);const o=S(f=>{const p={boolean:{},number:{},string:{}},g=[];let m;return{nodeList:f.filter(function(v){const b=typeof v;return v.stmt&&v.stmt==="dir"?(m=v.value,!1):v.trim()===""?!1:b in p?p[b].hasOwnProperty(v)?!1:p[b][v]=!0:g.includes(v)?!1:g.push(v)}),dir:m}},"uniq")(r.flat()),l=o.nodeList;let u=o.dir;const d=Ke().flowchart??{};if(u=u??(d.inheritDir?this.getDirection()??Ke().direction??void 0:void 0),this.version==="gen-1")for(let f=0;f2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===e)return{result:!0,count:0};let i=0,a=1;for(;i=0){const o=this.indexNodes2(e,s);if(o.result)return{result:!0,count:a+o.count};a=a+o.count}i=i+1}return{result:!1,count:a}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let r=e.trim(),n="arrow_open";switch(r[0]){case"<":n="arrow_point",r=r.slice(1);break;case"x":n="arrow_cross",r=r.slice(1);break;case"o":n="arrow_circle",r=r.slice(1);break}let i="normal";return r.includes("=")&&(i="thick"),r.includes(".")&&(i="dotted"),{type:n,stroke:i}}countChar(e,r){const n=r.length;let i=0;for(let a=0;a":i="arrow_point",r.startsWith("<")&&(i="double_"+i,n=n.slice(1));break;case"o":i="arrow_circle",r.startsWith("o")&&(i="double_"+i,n=n.slice(1));break}let a="normal",s=n.length-1;n.startsWith("=")&&(a="thick"),n.startsWith("~")&&(a="invisible");const o=this.countChar(".",n);return o&&(a="dotted",s=o),{type:i,stroke:a,length:s}}destructLink(e,r){const n=this.destructEndLink(e);let i;if(r){if(i=this.destructStartLink(r),i.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(i.type==="arrow_open")i.type=n.type;else{if(i.type!==n.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return i.type==="double_arrow"&&(i.type="double_arrow_point"),i.length=n.length,i}return n}exists(e,r){for(const n of e)if(n.nodes.includes(r))return!0;return!1}makeUniq(e,r){const n=[];return e.nodes.forEach((i,a)=>{this.exists(r,i)||n.push(e.nodes[a])}),{nodes:n}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,r){return e.find(n=>n.id===r)}destructEdgeType(e){let r="none",n="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":n=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),n=r;break}return{arrowTypeStart:r,arrowTypeEnd:n}}addNodeFromVertex(e,r,n,i,a,s){const o=n.get(e.id),l=i.get(e.id)??!1,u=this.findNode(r,e.id);if(u)u.cssStyles=e.styles,u.cssCompiledStyles=this.getCompiledStyles(e.classes),u.cssClasses=e.classes.join(" ");else{const d={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:o,padding:a.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:s,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};l?r.push({...d,isGroup:!0,shape:"rect"}):r.push({...d,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let r=[];for(const n of e){const i=this.classes.get(n);i?.styles&&(r=[...r,...i.styles??[]].map(a=>a.trim())),i?.textStyles&&(r=[...r,...i.textStyles??[]].map(a=>a.trim()))}return r}getData(){const e=Ke(),r=[],n=[],i=this.getSubGraphs(),a=new Map,s=new Map;for(let u=i.length-1;u>=0;u--){const d=i[u];d.nodes.length>0&&s.set(d.id,!0);for(const h of d.nodes)a.set(h,d.id)}for(let u=i.length-1;u>=0;u--){const d=i[u];r.push({id:d.id,label:d.title,labelStyle:"",labelType:d.labelType,parentId:a.get(d.id),padding:8,cssCompiledStyles:this.getCompiledStyles(d.classes),cssClasses:d.classes.join(" "),shape:"rect",dir:d.dir,isGroup:!0,look:e.look})}this.getVertices().forEach(u=>{this.addNodeFromVertex(u,r,a,s,e,e.look||"classic")});const l=this.getEdges();return l.forEach((u,d)=>{const{arrowTypeStart:h,arrowTypeEnd:f}=this.destructEdgeType(u.type),p=[...l.defaultStyle??[]];u.style&&p.push(...u.style);const g={id:Vm(u.start,u.end,{counter:d,prefix:"L"},u.id),isUserDefinedId:u.isUserDefinedId,start:u.start,end:u.end,type:u.type??"normal",label:u.text,labelType:u.labelType,labelpos:"c",thickness:u.stroke,minlen:u.length,classes:u?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":h,arrowTypeEnd:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":f,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(u.classes),labelStyle:p,style:p,pattern:u.stroke,look:e.look,animate:u.animate,animation:u.animation,curve:u.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};n.push(g)}),{nodes:r,edges:n,other:{},config:e}}defaultConfig(){return A0e.flowchart}},S(w1,"FlowDB"),w1),Vvt=S(function(t,e){return e.db.getClasses()},"getClasses"),Wvt=S(async function(t,e,r,n){ge.info("REF0:"),ge.info("Drawing state diagram (v2)",e);const{securityLevel:i,flowchart:a,layout:s}=Ke();n.db.setDiagramId(e),ge.debug("Before getData: ");const o=n.db.getData();ge.debug("Data: ",o);const l=o2(e,i),u=n.db.getDirection();o.type=n.type,o.layoutAlgorithm=uT(s),o.layoutAlgorithm==="dagre"&&s==="elk"&&ge.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),o.direction=u,o.nodeSpacing=a?.nodeSpacing||50,o.rankSpacing=a?.rankSpacing||50,o.markers=["point","circle","cross"],o.diagramId=e,ge.debug("REF1:",o),await Yb(o,l);const d=o.config.flowchart?.diagramPadding??8;Wr.insertTitle(l,"flowchartTitleText",a?.titleTopMargin||0,n.db.getDiagramTitle()),sg(l,d,"flowchart",a?.useMaxWidth||!1)},"draw"),Kvt={getClasses:Vvt,draw:Wvt},GB=(function(){var t=S(function(Xt,kt,xt,$t){for(xt=xt||{},$t=Xt.length;$t--;xt[Xt[$t]]=kt);return xt},"o"),e=[1,4],r=[1,3],n=[1,5],i=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],a=[2,2],s=[1,13],o=[1,14],l=[1,15],u=[1,16],d=[1,23],h=[1,25],f=[1,26],p=[1,27],g=[1,50],m=[1,49],y=[1,29],v=[1,30],b=[1,31],_=[1,32],E=[1,33],x=[1,45],C=[1,47],T=[1,43],w=[1,48],N=[1,44],O=[1,51],M=[1,46],$=[1,52],F=[1,53],A=[1,34],I=[1,35],D=[1,36],L=[1,37],R=[1,38],P=[1,58],z=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],B=[1,62],q=[1,61],Y=[1,63],Q=[8,9,11,75,77,78],H=[1,79],J=[1,92],Z=[1,97],pe=[1,96],re=[1,93],ce=[1,89],ae=[1,95],se=[1,91],xe=[1,98],Te=[1,94],Ge=[1,99],ze=[1,90],Xe=[8,9,10,11,40,75,77,78],Le=[8,9,10,11,40,46,75,77,78],Re=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],qe=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Ne=[44,60,89,102,105,106,109,111,114,115,116],ut=[1,122],De=[1,123],Je=[1,125],st=[1,124],ct=[44,60,62,74,89,102,105,106,109,111,114,115,116],ot=[1,134],it=[1,148],Oe=[1,149],U=[1,150],oe=[1,151],de=[1,136],G=[1,138],ie=[1,142],j=[1,143],V=[1,144],ue=[1,145],Fe=[1,146],me=[1,147],Ce=[1,152],ye=[1,153],Me=[1,132],Ie=[1,133],he=[1,140],le=[1,135],Be=[1,139],ve=[1,137],gt=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Et=[1,155],et=[1,157],dt=[8,9,11],ft=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],mt=[1,177],fe=[1,173],It=[1,174],St=[1,178],Tt=[1,175],Nt=[1,176],Hr=[77,116,119],Pe=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],yt=[10,106],bt=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Ot=[1,248],Qt=[1,246],br=[1,250],Ct=[1,244],Ye=[1,245],pt=[1,247],Dt=[1,249],Zt=[1,251],wr=[1,269],Vr=[8,9,11,106],Kr=[8,9,10,11,60,84,105,106,109,110,111,112],Gn={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:S(function(kt,xt,$t,wt,kr,$e,qn){var Ue=$e.length-1;switch(kr){case 2:this.$=[];break;case 3:(!Array.isArray($e[Ue])||$e[Ue].length>0)&&$e[Ue-1].push($e[Ue]),this.$=$e[Ue-1];break;case 4:case 183:this.$=$e[Ue];break;case 11:wt.setDirection("TB"),this.$="TB";break;case 12:wt.setDirection($e[Ue-1]),this.$=$e[Ue-1];break;case 27:this.$=$e[Ue-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=wt.addSubGraph($e[Ue-6],$e[Ue-1],$e[Ue-4]);break;case 34:this.$=wt.addSubGraph($e[Ue-3],$e[Ue-1],$e[Ue-3]);break;case 35:this.$=wt.addSubGraph(void 0,$e[Ue-1],void 0);break;case 37:this.$=$e[Ue].trim(),wt.setAccTitle(this.$);break;case 38:case 39:this.$=$e[Ue].trim(),wt.setAccDescription(this.$);break;case 43:this.$=$e[Ue-1]+$e[Ue];break;case 44:this.$=$e[Ue];break;case 45:wt.addVertex($e[Ue-1][$e[Ue-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,$e[Ue]),wt.addLink($e[Ue-3].stmt,$e[Ue-1],$e[Ue-2]),this.$={stmt:$e[Ue-1],nodes:$e[Ue-1].concat($e[Ue-3].nodes)};break;case 46:wt.addLink($e[Ue-2].stmt,$e[Ue],$e[Ue-1]),this.$={stmt:$e[Ue],nodes:$e[Ue].concat($e[Ue-2].nodes)};break;case 47:wt.addLink($e[Ue-3].stmt,$e[Ue-1],$e[Ue-2]),this.$={stmt:$e[Ue-1],nodes:$e[Ue-1].concat($e[Ue-3].nodes)};break;case 48:this.$={stmt:$e[Ue-1],nodes:$e[Ue-1]};break;case 49:wt.addVertex($e[Ue-1][$e[Ue-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,$e[Ue]),this.$={stmt:$e[Ue-1],nodes:$e[Ue-1],shapeData:$e[Ue]};break;case 50:this.$={stmt:$e[Ue],nodes:$e[Ue]};break;case 51:this.$=[$e[Ue]];break;case 52:wt.addVertex($e[Ue-5][$e[Ue-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,$e[Ue-4]),this.$=$e[Ue-5].concat($e[Ue]);break;case 53:this.$=$e[Ue-4].concat($e[Ue]);break;case 54:this.$=$e[Ue];break;case 55:this.$=$e[Ue-2],wt.setClass($e[Ue-2],$e[Ue]);break;case 56:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"square");break;case 57:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"doublecircle");break;case 58:this.$=$e[Ue-5],wt.addVertex($e[Ue-5],$e[Ue-2],"circle");break;case 59:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"ellipse");break;case 60:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"stadium");break;case 61:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"subroutine");break;case 62:this.$=$e[Ue-7],wt.addVertex($e[Ue-7],$e[Ue-1],"rect",void 0,void 0,void 0,Object.fromEntries([[$e[Ue-5],$e[Ue-3]]]));break;case 63:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"cylinder");break;case 64:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"round");break;case 65:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"diamond");break;case 66:this.$=$e[Ue-5],wt.addVertex($e[Ue-5],$e[Ue-2],"hexagon");break;case 67:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"odd");break;case 68:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"trapezoid");break;case 69:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"inv_trapezoid");break;case 70:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"lean_right");break;case 71:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"lean_left");break;case 72:this.$=$e[Ue],wt.addVertex($e[Ue]);break;case 73:$e[Ue-1].text=$e[Ue],this.$=$e[Ue-1];break;case 74:case 75:$e[Ue-2].text=$e[Ue-1],this.$=$e[Ue-2];break;case 76:this.$=$e[Ue];break;case 77:var Yn=wt.destructLink($e[Ue],$e[Ue-2]);this.$={type:Yn.type,stroke:Yn.stroke,length:Yn.length,text:$e[Ue-1]};break;case 78:var Yn=wt.destructLink($e[Ue],$e[Ue-2]);this.$={type:Yn.type,stroke:Yn.stroke,length:Yn.length,text:$e[Ue-1],id:$e[Ue-3]};break;case 79:this.$={text:$e[Ue],type:"text"};break;case 80:this.$={text:$e[Ue-1].text+""+$e[Ue],type:$e[Ue-1].type};break;case 81:this.$={text:$e[Ue],type:"string"};break;case 82:this.$={text:$e[Ue],type:"markdown"};break;case 83:var Yn=wt.destructLink($e[Ue]);this.$={type:Yn.type,stroke:Yn.stroke,length:Yn.length};break;case 84:var Yn=wt.destructLink($e[Ue]);this.$={type:Yn.type,stroke:Yn.stroke,length:Yn.length,id:$e[Ue-1]};break;case 85:this.$=$e[Ue-1];break;case 86:this.$={text:$e[Ue],type:"text"};break;case 87:this.$={text:$e[Ue-1].text+""+$e[Ue],type:$e[Ue-1].type};break;case 88:this.$={text:$e[Ue],type:"string"};break;case 89:case 104:this.$={text:$e[Ue],type:"markdown"};break;case 101:this.$={text:$e[Ue],type:"text"};break;case 102:this.$={text:$e[Ue-1].text+""+$e[Ue],type:$e[Ue-1].type};break;case 103:this.$={text:$e[Ue],type:"text"};break;case 105:this.$=$e[Ue-4],wt.addClass($e[Ue-2],$e[Ue]);break;case 106:this.$=$e[Ue-4],wt.setClass($e[Ue-2],$e[Ue]);break;case 107:case 115:this.$=$e[Ue-1],wt.setClickEvent($e[Ue-1],$e[Ue]);break;case 108:case 116:this.$=$e[Ue-3],wt.setClickEvent($e[Ue-3],$e[Ue-2]),wt.setTooltip($e[Ue-3],$e[Ue]);break;case 109:this.$=$e[Ue-2],wt.setClickEvent($e[Ue-2],$e[Ue-1],$e[Ue]);break;case 110:this.$=$e[Ue-4],wt.setClickEvent($e[Ue-4],$e[Ue-3],$e[Ue-2]),wt.setTooltip($e[Ue-4],$e[Ue]);break;case 111:this.$=$e[Ue-2],wt.setLink($e[Ue-2],$e[Ue]);break;case 112:this.$=$e[Ue-4],wt.setLink($e[Ue-4],$e[Ue-2]),wt.setTooltip($e[Ue-4],$e[Ue]);break;case 113:this.$=$e[Ue-4],wt.setLink($e[Ue-4],$e[Ue-2],$e[Ue]);break;case 114:this.$=$e[Ue-6],wt.setLink($e[Ue-6],$e[Ue-4],$e[Ue]),wt.setTooltip($e[Ue-6],$e[Ue-2]);break;case 117:this.$=$e[Ue-1],wt.setLink($e[Ue-1],$e[Ue]);break;case 118:this.$=$e[Ue-3],wt.setLink($e[Ue-3],$e[Ue-2]),wt.setTooltip($e[Ue-3],$e[Ue]);break;case 119:this.$=$e[Ue-3],wt.setLink($e[Ue-3],$e[Ue-2],$e[Ue]);break;case 120:this.$=$e[Ue-5],wt.setLink($e[Ue-5],$e[Ue-4],$e[Ue]),wt.setTooltip($e[Ue-5],$e[Ue-2]);break;case 121:this.$=$e[Ue-4],wt.addVertex($e[Ue-2],void 0,void 0,$e[Ue]);break;case 122:this.$=$e[Ue-4],wt.updateLink([$e[Ue-2]],$e[Ue]);break;case 123:this.$=$e[Ue-4],wt.updateLink($e[Ue-2],$e[Ue]);break;case 124:this.$=$e[Ue-8],wt.updateLinkInterpolate([$e[Ue-6]],$e[Ue-2]),wt.updateLink([$e[Ue-6]],$e[Ue]);break;case 125:this.$=$e[Ue-8],wt.updateLinkInterpolate($e[Ue-6],$e[Ue-2]),wt.updateLink($e[Ue-6],$e[Ue]);break;case 126:this.$=$e[Ue-6],wt.updateLinkInterpolate([$e[Ue-4]],$e[Ue]);break;case 127:this.$=$e[Ue-6],wt.updateLinkInterpolate($e[Ue-4],$e[Ue]);break;case 128:case 130:this.$=[$e[Ue]];break;case 129:case 131:$e[Ue-2].push($e[Ue]),this.$=$e[Ue-2];break;case 133:this.$=$e[Ue-1]+$e[Ue];break;case 181:this.$=$e[Ue];break;case 182:this.$=$e[Ue-1]+""+$e[Ue];break;case 184:this.$=$e[Ue-1]+""+$e[Ue];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:e,10:r,12:n},{1:[3]},t(i,a,{5:6}),{4:7,9:e,10:r,12:n},{4:8,9:e,10:r,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:s,9:o,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,33:24,34:h,36:f,38:p,42:28,43:39,44:g,45:40,47:41,60:m,84:y,85:v,86:b,87:_,88:E,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:R},t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),{8:[1,55],9:[1,56],10:P,15:54,18:57},t(z,[2,3]),t(z,[2,4]),t(z,[2,5]),t(z,[2,6]),t(z,[2,7]),t(z,[2,8]),{8:B,9:q,11:Y,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:B,9:q,11:Y,21:68},{8:B,9:q,11:Y,21:69},{8:B,9:q,11:Y,21:70},{8:B,9:q,11:Y,21:71},{8:B,9:q,11:Y,21:72},{8:B,9:q,10:[1,73],11:Y,21:74},t(z,[2,36]),{35:[1,75]},{37:[1,76]},t(z,[2,39]),t(Q,[2,50],{18:77,39:78,10:P,40:H}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:J,44:Z,60:pe,80:[1,87],89:re,95:[1,84],97:[1,85],101:86,105:ce,106:ae,109:se,111:xe,114:Te,115:Ge,116:ze,120:88},t(z,[2,185]),t(z,[2,186]),t(z,[2,187]),t(z,[2,188]),t(z,[2,189]),t(Xe,[2,51]),t(Xe,[2,54],{46:[1,100]}),t(Le,[2,72],{113:113,29:[1,101],44:g,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:m,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:x,102:C,105:T,106:w,109:N,111:O,114:M,115:$,116:F}),t(Re,[2,181]),t(Re,[2,142]),t(Re,[2,143]),t(Re,[2,144]),t(Re,[2,145]),t(Re,[2,146]),t(Re,[2,147]),t(Re,[2,148]),t(Re,[2,149]),t(Re,[2,150]),t(Re,[2,151]),t(Re,[2,152]),t(i,[2,12]),t(i,[2,18]),t(i,[2,19]),{9:[1,114]},t(qe,[2,26],{18:115,10:P}),t(z,[2,27]),{42:116,43:39,44:g,45:40,47:41,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},t(z,[2,40]),t(z,[2,41]),t(z,[2,42]),t(Ne,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ut,81:De,116:Je,119:st},{75:[1,126],77:[1,127]},t(ct,[2,83]),t(z,[2,28]),t(z,[2,29]),t(z,[2,30]),t(z,[2,31]),t(z,[2,32]),{10:ot,12:it,14:Oe,27:U,28:128,32:oe,44:de,60:G,75:ie,80:[1,130],81:[1,131],83:141,84:j,85:V,86:ue,87:Fe,88:me,89:Ce,90:ye,91:129,105:Me,109:Ie,111:he,114:le,115:Be,116:ve},t(gt,a,{5:154}),t(z,[2,37]),t(z,[2,38]),t(Q,[2,48],{44:Et}),t(Q,[2,49],{18:156,10:P,40:et}),t(Xe,[2,44]),{44:g,47:158,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},{102:[1,159],103:160,105:[1,161]},{44:g,47:162,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},{44:g,47:163,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},t(dt,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(dt,[2,115],{120:168,10:[1,167],14:J,44:Z,60:pe,89:re,105:ce,106:ae,109:se,111:xe,114:Te,115:Ge,116:ze}),t(dt,[2,117],{10:[1,169]}),t(ft,[2,183]),t(ft,[2,170]),t(ft,[2,171]),t(ft,[2,172]),t(ft,[2,173]),t(ft,[2,174]),t(ft,[2,175]),t(ft,[2,176]),t(ft,[2,177]),t(ft,[2,178]),t(ft,[2,179]),t(ft,[2,180]),{44:g,47:170,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},{30:171,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:179,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:181,50:[1,180],67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:182,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:183,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:184,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{109:[1,185]},{30:186,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:187,65:[1,188],67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:189,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:190,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:191,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},t(Re,[2,182]),t(i,[2,20]),t(qe,[2,25]),t(Q,[2,46],{39:192,18:193,10:P,40:H}),t(Ne,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{77:[1,197],79:198,116:Je,119:st},t(Hr,[2,79]),t(Hr,[2,81]),t(Hr,[2,82]),t(Hr,[2,168]),t(Hr,[2,169]),{76:199,79:121,80:ut,81:De,116:Je,119:st},t(ct,[2,84]),{8:B,9:q,10:ot,11:Y,12:it,14:Oe,21:201,27:U,29:[1,200],32:oe,44:de,60:G,75:ie,83:141,84:j,85:V,86:ue,87:Fe,88:me,89:Ce,90:ye,91:202,105:Me,109:Ie,111:he,114:le,115:Be,116:ve},t(Pe,[2,101]),t(Pe,[2,103]),t(Pe,[2,104]),t(Pe,[2,157]),t(Pe,[2,158]),t(Pe,[2,159]),t(Pe,[2,160]),t(Pe,[2,161]),t(Pe,[2,162]),t(Pe,[2,163]),t(Pe,[2,164]),t(Pe,[2,165]),t(Pe,[2,166]),t(Pe,[2,167]),t(Pe,[2,90]),t(Pe,[2,91]),t(Pe,[2,92]),t(Pe,[2,93]),t(Pe,[2,94]),t(Pe,[2,95]),t(Pe,[2,96]),t(Pe,[2,97]),t(Pe,[2,98]),t(Pe,[2,99]),t(Pe,[2,100]),{6:11,7:12,8:s,9:o,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,203],33:24,34:h,36:f,38:p,42:28,43:39,44:g,45:40,47:41,60:m,84:y,85:v,86:b,87:_,88:E,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:R},{10:P,18:204},{44:[1,205]},t(Xe,[2,43]),{10:[1,206],44:g,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:113,114:M,115:$,116:F},{10:[1,207]},{10:[1,208],106:[1,209]},t(yt,[2,128]),{10:[1,210],44:g,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:113,114:M,115:$,116:F},{10:[1,211],44:g,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:113,114:M,115:$,116:F},{80:[1,212]},t(dt,[2,109],{10:[1,213]}),t(dt,[2,111],{10:[1,214]}),{80:[1,215]},t(ft,[2,184]),{80:[1,216],98:[1,217]},t(Xe,[2,55],{113:113,44:g,60:m,89:x,102:C,105:T,106:w,109:N,111:O,114:M,115:$,116:F}),{31:[1,218],67:mt,82:219,116:St,117:Tt,118:Nt},t(bt,[2,86]),t(bt,[2,88]),t(bt,[2,89]),t(bt,[2,153]),t(bt,[2,154]),t(bt,[2,155]),t(bt,[2,156]),{49:[1,220],67:mt,82:219,116:St,117:Tt,118:Nt},{30:221,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{51:[1,222],67:mt,82:219,116:St,117:Tt,118:Nt},{53:[1,223],67:mt,82:219,116:St,117:Tt,118:Nt},{55:[1,224],67:mt,82:219,116:St,117:Tt,118:Nt},{57:[1,225],67:mt,82:219,116:St,117:Tt,118:Nt},{60:[1,226]},{64:[1,227],67:mt,82:219,116:St,117:Tt,118:Nt},{66:[1,228],67:mt,82:219,116:St,117:Tt,118:Nt},{30:229,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{31:[1,230],67:mt,82:219,116:St,117:Tt,118:Nt},{67:mt,69:[1,231],71:[1,232],82:219,116:St,117:Tt,118:Nt},{67:mt,69:[1,234],71:[1,233],82:219,116:St,117:Tt,118:Nt},t(Q,[2,45],{18:156,10:P,40:et}),t(Q,[2,47],{44:Et}),t(Ne,[2,75]),t(Ne,[2,74]),{62:[1,235],67:mt,82:219,116:St,117:Tt,118:Nt},t(Ne,[2,77]),t(Hr,[2,80]),{77:[1,236],79:198,116:Je,119:st},{30:237,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},t(gt,a,{5:238}),t(Pe,[2,102]),t(z,[2,35]),{43:239,44:g,45:40,47:41,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},{10:P,18:240},{10:Ot,60:Qt,84:br,92:241,105:Ct,107:242,108:243,109:Ye,110:pt,111:Dt,112:Zt},{10:Ot,60:Qt,84:br,92:252,104:[1,253],105:Ct,107:242,108:243,109:Ye,110:pt,111:Dt,112:Zt},{10:Ot,60:Qt,84:br,92:254,104:[1,255],105:Ct,107:242,108:243,109:Ye,110:pt,111:Dt,112:Zt},{105:[1,256]},{10:Ot,60:Qt,84:br,92:257,105:Ct,107:242,108:243,109:Ye,110:pt,111:Dt,112:Zt},{44:g,47:258,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},t(dt,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(dt,[2,116]),t(dt,[2,118],{10:[1,262]}),t(dt,[2,119]),t(Le,[2,56]),t(bt,[2,87]),t(Le,[2,57]),{51:[1,263],67:mt,82:219,116:St,117:Tt,118:Nt},t(Le,[2,64]),t(Le,[2,59]),t(Le,[2,60]),t(Le,[2,61]),{109:[1,264]},t(Le,[2,63]),t(Le,[2,65]),{66:[1,265],67:mt,82:219,116:St,117:Tt,118:Nt},t(Le,[2,67]),t(Le,[2,68]),t(Le,[2,70]),t(Le,[2,69]),t(Le,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(Ne,[2,78]),{31:[1,266],67:mt,82:219,116:St,117:Tt,118:Nt},{6:11,7:12,8:s,9:o,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,267],33:24,34:h,36:f,38:p,42:28,43:39,44:g,45:40,47:41,60:m,84:y,85:v,86:b,87:_,88:E,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:R},t(Xe,[2,53]),{43:268,44:g,45:40,47:41,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},t(dt,[2,121],{106:wr}),t(Vr,[2,130],{108:270,10:Ot,60:Qt,84:br,105:Ct,109:Ye,110:pt,111:Dt,112:Zt}),t(Kr,[2,132]),t(Kr,[2,134]),t(Kr,[2,135]),t(Kr,[2,136]),t(Kr,[2,137]),t(Kr,[2,138]),t(Kr,[2,139]),t(Kr,[2,140]),t(Kr,[2,141]),t(dt,[2,122],{106:wr}),{10:[1,271]},t(dt,[2,123],{106:wr}),{10:[1,272]},t(yt,[2,129]),t(dt,[2,105],{106:wr}),t(dt,[2,106],{113:113,44:g,60:m,89:x,102:C,105:T,106:w,109:N,111:O,114:M,115:$,116:F}),t(dt,[2,110]),t(dt,[2,112],{10:[1,273]}),t(dt,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:B,9:q,11:Y,21:278},t(z,[2,34]),t(Xe,[2,52]),{10:Ot,60:Qt,84:br,105:Ct,107:279,108:243,109:Ye,110:pt,111:Dt,112:Zt},t(Kr,[2,133]),{14:J,44:Z,60:pe,89:re,101:280,105:ce,106:ae,109:se,111:xe,114:Te,115:Ge,116:ze,120:88},{14:J,44:Z,60:pe,89:re,101:281,105:ce,106:ae,109:se,111:xe,114:Te,115:Ge,116:ze,120:88},{98:[1,282]},t(dt,[2,120]),t(Le,[2,58]),{30:283,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},t(Le,[2,66]),t(gt,a,{5:284}),t(Vr,[2,131],{108:270,10:Ot,60:Qt,84:br,105:Ct,109:Ye,110:pt,111:Dt,112:Zt}),t(dt,[2,126],{120:168,10:[1,285],14:J,44:Z,60:pe,89:re,105:ce,106:ae,109:se,111:xe,114:Te,115:Ge,116:ze}),t(dt,[2,127],{120:168,10:[1,286],14:J,44:Z,60:pe,89:re,105:ce,106:ae,109:se,111:xe,114:Te,115:Ge,116:ze}),t(dt,[2,114]),{31:[1,287],67:mt,82:219,116:St,117:Tt,118:Nt},{6:11,7:12,8:s,9:o,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,288],33:24,34:h,36:f,38:p,42:28,43:39,44:g,45:40,47:41,60:m,84:y,85:v,86:b,87:_,88:E,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:R},{10:Ot,60:Qt,84:br,92:289,105:Ct,107:242,108:243,109:Ye,110:pt,111:Dt,112:Zt},{10:Ot,60:Qt,84:br,92:290,105:Ct,107:242,108:243,109:Ye,110:pt,111:Dt,112:Zt},t(Le,[2,62]),t(z,[2,33]),t(dt,[2,124],{106:wr}),t(dt,[2,125],{106:wr})],defaultActions:{},parseError:S(function(kt,xt){if(xt.recoverable)this.trace(kt);else{var $t=new Error(kt);throw $t.hash=xt,$t}},"parseError"),parse:S(function(kt){var xt=this,$t=[0],wt=[],kr=[null],$e=[],qn=this.table,Ue="",Yn=0,Kh=0,Xh=2,_2=1,ax=$e.slice.call(arguments,1),Gi=Object.create(this.lexer),Ec={yy:{}};for(var Lu in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Lu)&&(Ec.yy[Lu]=this.yy[Lu]);Gi.setInput(kt,Ec.yy),Ec.yy.lexer=Gi,Ec.yy.parser=this,typeof Gi.yylloc>"u"&&(Gi.yylloc={});var ld=Gi.yylloc;$e.push(ld);var no=Gi.options&&Gi.options.ranges;typeof Ec.yy.parseError=="function"?this.parseError=Ec.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b2(Er){$t.length=$t.length-2*Er,kr.length=kr.length-Er,$e.length=$e.length-Er}S(b2,"popStack");function cd(){var Er;return Er=wt.pop()||Gi.lex()||_2,typeof Er!="number"&&(Er instanceof Array&&(wt=Er,Er=wt.pop()),Er=xt.symbols_[Er]||Er),Er}S(cd,"lex");for(var vr,nl,yn,fn,io={},ys,vs,ud,rr;;){if(nl=$t[$t.length-1],this.defaultActions[nl]?yn=this.defaultActions[nl]:((vr===null||typeof vr>"u")&&(vr=cd()),yn=qn[nl]&&qn[nl][vr]),typeof yn>"u"||!yn.length||!yn[0]){var fr="";rr=[];for(ys in qn[nl])this.terminals_[ys]&&ys>Xh&&rr.push("'"+this.terminals_[ys]+"'");Gi.showPosition?fr="Parse error on line "+(Yn+1)+`: +You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,r,n){const i=this.isLinkData(n)?n.id.replace("@",""):void 0;ge.info("addLink",e,r,i);for(const a of e)for(const s of r){const o=a===e[e.length-1],l=s===r[0];o&&l?this.addSingleLink(a,s,n,i):this.addSingleLink(a,s,n,void 0)}}updateLinkInterpolate(e,r){e.forEach(n=>{n==="default"?this.edges.defaultInterpolate=r:this.edges[n].interpolate=r})}updateLink(e,r){e.forEach(n=>{if(typeof n=="number"&&n>=this.edges.length)throw new Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);n==="default"?this.edges.defaultStyle=r:(this.edges[n].style=r,(this.edges[n]?.style?.length??0)>0&&!this.edges[n]?.style?.some(i=>i?.startsWith("fill"))&&this.edges[n]?.style?.push("fill:none"))})}addClass(e,r){const n=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(i=>{let a=this.classes.get(i);a===void 0&&(a={id:i,styles:[],textStyles:[]},this.classes.set(i,a)),n?.forEach(s=>{if(/color/.exec(s)){const o=s.replace("fill","bgFill");a.textStyles.push(o)}a.styles.push(s)})})}setDirection(e){this.direction=e.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,r){for(const n of e.split(",")){const i=this.vertices.get(n);i&&i.classes.push(r);const a=this.edges.find(o=>o.id===n);a&&a.classes.push(r);const s=this.subGraphLookup.get(n);s&&s.classes.push(r)}}setTooltip(e,r){if(r!==void 0){r=this.sanitizeText(r);for(const n of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,r)}}setClickFun(e,r,n){if(Ke().securityLevel!=="loose"||r===void 0)return;let i=[];if(typeof n=="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s{const s=this.lookUpDomId(e),o=document.querySelector(`[id="${s}"]`);o!==null&&o.addEventListener("click",()=>{Wr.runFunc(r,...i)},!1)}))}setLink(e,r,n){e.split(",").forEach(i=>{const a=this.vertices.get(i);a!==void 0&&(a.link=Wr.formatUrl(r,this.config),a.linkTarget=n)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,n){e.split(",").forEach(i=>{this.setClickFun(i,r,n)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(r=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){const r=_2e();At(e).select("svg").selectAll("g.node").on("mouseover",a=>{const s=At(a.currentTarget),o=s.attr("title");if(o===null)return;const l=a.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(s.attr("title")).style("left",window.scrollX+l.left+(l.right-l.left)/2+"px").style("top",window.scrollY+l.bottom+"px"),r.html(nh.sanitize(o)),s.classed("hover",!0)}).on("mouseout",a=>{r.transition().duration(500).style("opacity",0),At(a.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=Ke(),oi()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,n){let i=e.text.trim(),a=n.text;e===n&&/\s/.exec(n.text)&&(i=void 0);const o=S(f=>{const p={boolean:{},number:{},string:{}},g=[];let m;return{nodeList:f.filter(function(v){const b=typeof v;return v.stmt&&v.stmt==="dir"?(m=v.value,!1):v.trim()===""?!1:b in p?p[b].hasOwnProperty(v)?!1:p[b][v]=!0:g.includes(v)?!1:g.push(v)}),dir:m}},"uniq")(r.flat()),l=o.nodeList;let u=o.dir;const d=Ke().flowchart??{};if(u=u??(d.inheritDir?this.getDirection()??Ke().direction??void 0:void 0),this.version==="gen-1")for(let f=0;f2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===e)return{result:!0,count:0};let i=0,a=1;for(;i=0){const o=this.indexNodes2(e,s);if(o.result)return{result:!0,count:a+o.count};a=a+o.count}i=i+1}return{result:!1,count:a}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let r=e.trim(),n="arrow_open";switch(r[0]){case"<":n="arrow_point",r=r.slice(1);break;case"x":n="arrow_cross",r=r.slice(1);break;case"o":n="arrow_circle",r=r.slice(1);break}let i="normal";return r.includes("=")&&(i="thick"),r.includes(".")&&(i="dotted"),{type:n,stroke:i}}countChar(e,r){const n=r.length;let i=0;for(let a=0;a":i="arrow_point",r.startsWith("<")&&(i="double_"+i,n=n.slice(1));break;case"o":i="arrow_circle",r.startsWith("o")&&(i="double_"+i,n=n.slice(1));break}let a="normal",s=n.length-1;n.startsWith("=")&&(a="thick"),n.startsWith("~")&&(a="invisible");const o=this.countChar(".",n);return o&&(a="dotted",s=o),{type:i,stroke:a,length:s}}destructLink(e,r){const n=this.destructEndLink(e);let i;if(r){if(i=this.destructStartLink(r),i.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(i.type==="arrow_open")i.type=n.type;else{if(i.type!==n.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return i.type==="double_arrow"&&(i.type="double_arrow_point"),i.length=n.length,i}return n}exists(e,r){for(const n of e)if(n.nodes.includes(r))return!0;return!1}makeUniq(e,r){const n=[];return e.nodes.forEach((i,a)=>{this.exists(r,i)||n.push(e.nodes[a])}),{nodes:n}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,r){return e.find(n=>n.id===r)}destructEdgeType(e){let r="none",n="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":n=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),n=r;break}return{arrowTypeStart:r,arrowTypeEnd:n}}addNodeFromVertex(e,r,n,i,a,s){const o=n.get(e.id),l=i.get(e.id)??!1,u=this.findNode(r,e.id);if(u)u.cssStyles=e.styles,u.cssCompiledStyles=this.getCompiledStyles(e.classes),u.cssClasses=e.classes.join(" ");else{const d={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:o,padding:a.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:s,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};l?r.push({...d,isGroup:!0,shape:"rect"}):r.push({...d,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let r=[];for(const n of e){const i=this.classes.get(n);i?.styles&&(r=[...r,...i.styles??[]].map(a=>a.trim())),i?.textStyles&&(r=[...r,...i.textStyles??[]].map(a=>a.trim()))}return r}getData(){const e=Ke(),r=[],n=[],i=this.getSubGraphs(),a=new Map,s=new Map;for(let u=i.length-1;u>=0;u--){const d=i[u];d.nodes.length>0&&s.set(d.id,!0);for(const h of d.nodes)a.set(h,d.id)}for(let u=i.length-1;u>=0;u--){const d=i[u];r.push({id:d.id,label:d.title,labelStyle:"",labelType:d.labelType,parentId:a.get(d.id),padding:8,cssCompiledStyles:this.getCompiledStyles(d.classes),cssClasses:d.classes.join(" "),shape:"rect",dir:d.dir,isGroup:!0,look:e.look})}this.getVertices().forEach(u=>{this.addNodeFromVertex(u,r,a,s,e,e.look||"classic")});const l=this.getEdges();return l.forEach((u,d)=>{const{arrowTypeStart:h,arrowTypeEnd:f}=this.destructEdgeType(u.type),p=[...l.defaultStyle??[]];u.style&&p.push(...u.style);const g={id:Vm(u.start,u.end,{counter:d,prefix:"L"},u.id),isUserDefinedId:u.isUserDefinedId,start:u.start,end:u.end,type:u.type??"normal",label:u.text,labelType:u.labelType,labelpos:"c",thickness:u.stroke,minlen:u.length,classes:u?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":h,arrowTypeEnd:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":f,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(u.classes),labelStyle:p,style:p,pattern:u.stroke,look:e.look,animate:u.animate,animation:u.animation,curve:u.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};n.push(g)}),{nodes:r,edges:n,other:{},config:e}}defaultConfig(){return A0e.flowchart}},S(w1,"FlowDB"),w1),Wvt=S(function(t,e){return e.db.getClasses()},"getClasses"),Kvt=S(async function(t,e,r,n){ge.info("REF0:"),ge.info("Drawing state diagram (v2)",e);const{securityLevel:i,flowchart:a,layout:s}=Ke();n.db.setDiagramId(e),ge.debug("Before getData: ");const o=n.db.getData();ge.debug("Data: ",o);const l=o2(e,i),u=n.db.getDirection();o.type=n.type,o.layoutAlgorithm=uT(s),o.layoutAlgorithm==="dagre"&&s==="elk"&&ge.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),o.direction=u,o.nodeSpacing=a?.nodeSpacing||50,o.rankSpacing=a?.rankSpacing||50,o.markers=["point","circle","cross"],o.diagramId=e,ge.debug("REF1:",o),await Yb(o,l);const d=o.config.flowchart?.diagramPadding??8;Wr.insertTitle(l,"flowchartTitleText",a?.titleTopMargin||0,n.db.getDiagramTitle()),sg(l,d,"flowchart",a?.useMaxWidth||!1)},"draw"),Xvt={getClasses:Wvt,draw:Kvt},GB=(function(){var t=S(function(Xt,kt,xt,$t){for(xt=xt||{},$t=Xt.length;$t--;xt[Xt[$t]]=kt);return xt},"o"),e=[1,4],r=[1,3],n=[1,5],i=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],a=[2,2],s=[1,13],o=[1,14],l=[1,15],u=[1,16],d=[1,23],h=[1,25],f=[1,26],p=[1,27],g=[1,50],m=[1,49],y=[1,29],v=[1,30],b=[1,31],_=[1,32],E=[1,33],x=[1,45],C=[1,47],T=[1,43],w=[1,48],N=[1,44],O=[1,51],M=[1,46],$=[1,52],F=[1,53],A=[1,34],I=[1,35],D=[1,36],L=[1,37],R=[1,38],P=[1,58],z=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],B=[1,62],q=[1,61],Y=[1,63],Q=[8,9,11,75,77,78],H=[1,79],J=[1,92],Z=[1,97],pe=[1,96],re=[1,93],ce=[1,89],ae=[1,95],se=[1,91],xe=[1,98],Te=[1,94],Ge=[1,99],ze=[1,90],Xe=[8,9,10,11,40,75,77,78],Le=[8,9,10,11,40,46,75,77,78],Re=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],qe=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Ne=[44,60,89,102,105,106,109,111,114,115,116],ut=[1,122],De=[1,123],Je=[1,125],st=[1,124],ct=[44,60,62,74,89,102,105,106,109,111,114,115,116],ot=[1,134],it=[1,148],Oe=[1,149],U=[1,150],oe=[1,151],de=[1,136],G=[1,138],ie=[1,142],j=[1,143],V=[1,144],ue=[1,145],Fe=[1,146],me=[1,147],Ce=[1,152],ye=[1,153],Me=[1,132],Ie=[1,133],he=[1,140],le=[1,135],Be=[1,139],ve=[1,137],gt=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Et=[1,155],et=[1,157],dt=[8,9,11],ft=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],mt=[1,177],fe=[1,173],It=[1,174],St=[1,178],Tt=[1,175],Nt=[1,176],Hr=[77,116,119],Pe=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],yt=[10,106],bt=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Ot=[1,248],Qt=[1,246],br=[1,250],Ct=[1,244],Ye=[1,245],pt=[1,247],Dt=[1,249],Zt=[1,251],wr=[1,269],Vr=[8,9,11,106],Kr=[8,9,10,11,60,84,105,106,109,110,111,112],Gn={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:S(function(kt,xt,$t,wt,kr,$e,qn){var Ue=$e.length-1;switch(kr){case 2:this.$=[];break;case 3:(!Array.isArray($e[Ue])||$e[Ue].length>0)&&$e[Ue-1].push($e[Ue]),this.$=$e[Ue-1];break;case 4:case 183:this.$=$e[Ue];break;case 11:wt.setDirection("TB"),this.$="TB";break;case 12:wt.setDirection($e[Ue-1]),this.$=$e[Ue-1];break;case 27:this.$=$e[Ue-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=wt.addSubGraph($e[Ue-6],$e[Ue-1],$e[Ue-4]);break;case 34:this.$=wt.addSubGraph($e[Ue-3],$e[Ue-1],$e[Ue-3]);break;case 35:this.$=wt.addSubGraph(void 0,$e[Ue-1],void 0);break;case 37:this.$=$e[Ue].trim(),wt.setAccTitle(this.$);break;case 38:case 39:this.$=$e[Ue].trim(),wt.setAccDescription(this.$);break;case 43:this.$=$e[Ue-1]+$e[Ue];break;case 44:this.$=$e[Ue];break;case 45:wt.addVertex($e[Ue-1][$e[Ue-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,$e[Ue]),wt.addLink($e[Ue-3].stmt,$e[Ue-1],$e[Ue-2]),this.$={stmt:$e[Ue-1],nodes:$e[Ue-1].concat($e[Ue-3].nodes)};break;case 46:wt.addLink($e[Ue-2].stmt,$e[Ue],$e[Ue-1]),this.$={stmt:$e[Ue],nodes:$e[Ue].concat($e[Ue-2].nodes)};break;case 47:wt.addLink($e[Ue-3].stmt,$e[Ue-1],$e[Ue-2]),this.$={stmt:$e[Ue-1],nodes:$e[Ue-1].concat($e[Ue-3].nodes)};break;case 48:this.$={stmt:$e[Ue-1],nodes:$e[Ue-1]};break;case 49:wt.addVertex($e[Ue-1][$e[Ue-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,$e[Ue]),this.$={stmt:$e[Ue-1],nodes:$e[Ue-1],shapeData:$e[Ue]};break;case 50:this.$={stmt:$e[Ue],nodes:$e[Ue]};break;case 51:this.$=[$e[Ue]];break;case 52:wt.addVertex($e[Ue-5][$e[Ue-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,$e[Ue-4]),this.$=$e[Ue-5].concat($e[Ue]);break;case 53:this.$=$e[Ue-4].concat($e[Ue]);break;case 54:this.$=$e[Ue];break;case 55:this.$=$e[Ue-2],wt.setClass($e[Ue-2],$e[Ue]);break;case 56:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"square");break;case 57:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"doublecircle");break;case 58:this.$=$e[Ue-5],wt.addVertex($e[Ue-5],$e[Ue-2],"circle");break;case 59:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"ellipse");break;case 60:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"stadium");break;case 61:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"subroutine");break;case 62:this.$=$e[Ue-7],wt.addVertex($e[Ue-7],$e[Ue-1],"rect",void 0,void 0,void 0,Object.fromEntries([[$e[Ue-5],$e[Ue-3]]]));break;case 63:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"cylinder");break;case 64:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"round");break;case 65:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"diamond");break;case 66:this.$=$e[Ue-5],wt.addVertex($e[Ue-5],$e[Ue-2],"hexagon");break;case 67:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"odd");break;case 68:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"trapezoid");break;case 69:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"inv_trapezoid");break;case 70:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"lean_right");break;case 71:this.$=$e[Ue-3],wt.addVertex($e[Ue-3],$e[Ue-1],"lean_left");break;case 72:this.$=$e[Ue],wt.addVertex($e[Ue]);break;case 73:$e[Ue-1].text=$e[Ue],this.$=$e[Ue-1];break;case 74:case 75:$e[Ue-2].text=$e[Ue-1],this.$=$e[Ue-2];break;case 76:this.$=$e[Ue];break;case 77:var Yn=wt.destructLink($e[Ue],$e[Ue-2]);this.$={type:Yn.type,stroke:Yn.stroke,length:Yn.length,text:$e[Ue-1]};break;case 78:var Yn=wt.destructLink($e[Ue],$e[Ue-2]);this.$={type:Yn.type,stroke:Yn.stroke,length:Yn.length,text:$e[Ue-1],id:$e[Ue-3]};break;case 79:this.$={text:$e[Ue],type:"text"};break;case 80:this.$={text:$e[Ue-1].text+""+$e[Ue],type:$e[Ue-1].type};break;case 81:this.$={text:$e[Ue],type:"string"};break;case 82:this.$={text:$e[Ue],type:"markdown"};break;case 83:var Yn=wt.destructLink($e[Ue]);this.$={type:Yn.type,stroke:Yn.stroke,length:Yn.length};break;case 84:var Yn=wt.destructLink($e[Ue]);this.$={type:Yn.type,stroke:Yn.stroke,length:Yn.length,id:$e[Ue-1]};break;case 85:this.$=$e[Ue-1];break;case 86:this.$={text:$e[Ue],type:"text"};break;case 87:this.$={text:$e[Ue-1].text+""+$e[Ue],type:$e[Ue-1].type};break;case 88:this.$={text:$e[Ue],type:"string"};break;case 89:case 104:this.$={text:$e[Ue],type:"markdown"};break;case 101:this.$={text:$e[Ue],type:"text"};break;case 102:this.$={text:$e[Ue-1].text+""+$e[Ue],type:$e[Ue-1].type};break;case 103:this.$={text:$e[Ue],type:"text"};break;case 105:this.$=$e[Ue-4],wt.addClass($e[Ue-2],$e[Ue]);break;case 106:this.$=$e[Ue-4],wt.setClass($e[Ue-2],$e[Ue]);break;case 107:case 115:this.$=$e[Ue-1],wt.setClickEvent($e[Ue-1],$e[Ue]);break;case 108:case 116:this.$=$e[Ue-3],wt.setClickEvent($e[Ue-3],$e[Ue-2]),wt.setTooltip($e[Ue-3],$e[Ue]);break;case 109:this.$=$e[Ue-2],wt.setClickEvent($e[Ue-2],$e[Ue-1],$e[Ue]);break;case 110:this.$=$e[Ue-4],wt.setClickEvent($e[Ue-4],$e[Ue-3],$e[Ue-2]),wt.setTooltip($e[Ue-4],$e[Ue]);break;case 111:this.$=$e[Ue-2],wt.setLink($e[Ue-2],$e[Ue]);break;case 112:this.$=$e[Ue-4],wt.setLink($e[Ue-4],$e[Ue-2]),wt.setTooltip($e[Ue-4],$e[Ue]);break;case 113:this.$=$e[Ue-4],wt.setLink($e[Ue-4],$e[Ue-2],$e[Ue]);break;case 114:this.$=$e[Ue-6],wt.setLink($e[Ue-6],$e[Ue-4],$e[Ue]),wt.setTooltip($e[Ue-6],$e[Ue-2]);break;case 117:this.$=$e[Ue-1],wt.setLink($e[Ue-1],$e[Ue]);break;case 118:this.$=$e[Ue-3],wt.setLink($e[Ue-3],$e[Ue-2]),wt.setTooltip($e[Ue-3],$e[Ue]);break;case 119:this.$=$e[Ue-3],wt.setLink($e[Ue-3],$e[Ue-2],$e[Ue]);break;case 120:this.$=$e[Ue-5],wt.setLink($e[Ue-5],$e[Ue-4],$e[Ue]),wt.setTooltip($e[Ue-5],$e[Ue-2]);break;case 121:this.$=$e[Ue-4],wt.addVertex($e[Ue-2],void 0,void 0,$e[Ue]);break;case 122:this.$=$e[Ue-4],wt.updateLink([$e[Ue-2]],$e[Ue]);break;case 123:this.$=$e[Ue-4],wt.updateLink($e[Ue-2],$e[Ue]);break;case 124:this.$=$e[Ue-8],wt.updateLinkInterpolate([$e[Ue-6]],$e[Ue-2]),wt.updateLink([$e[Ue-6]],$e[Ue]);break;case 125:this.$=$e[Ue-8],wt.updateLinkInterpolate($e[Ue-6],$e[Ue-2]),wt.updateLink($e[Ue-6],$e[Ue]);break;case 126:this.$=$e[Ue-6],wt.updateLinkInterpolate([$e[Ue-4]],$e[Ue]);break;case 127:this.$=$e[Ue-6],wt.updateLinkInterpolate($e[Ue-4],$e[Ue]);break;case 128:case 130:this.$=[$e[Ue]];break;case 129:case 131:$e[Ue-2].push($e[Ue]),this.$=$e[Ue-2];break;case 133:this.$=$e[Ue-1]+$e[Ue];break;case 181:this.$=$e[Ue];break;case 182:this.$=$e[Ue-1]+""+$e[Ue];break;case 184:this.$=$e[Ue-1]+""+$e[Ue];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:e,10:r,12:n},{1:[3]},t(i,a,{5:6}),{4:7,9:e,10:r,12:n},{4:8,9:e,10:r,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:s,9:o,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,33:24,34:h,36:f,38:p,42:28,43:39,44:g,45:40,47:41,60:m,84:y,85:v,86:b,87:_,88:E,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:R},t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),{8:[1,55],9:[1,56],10:P,15:54,18:57},t(z,[2,3]),t(z,[2,4]),t(z,[2,5]),t(z,[2,6]),t(z,[2,7]),t(z,[2,8]),{8:B,9:q,11:Y,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:B,9:q,11:Y,21:68},{8:B,9:q,11:Y,21:69},{8:B,9:q,11:Y,21:70},{8:B,9:q,11:Y,21:71},{8:B,9:q,11:Y,21:72},{8:B,9:q,10:[1,73],11:Y,21:74},t(z,[2,36]),{35:[1,75]},{37:[1,76]},t(z,[2,39]),t(Q,[2,50],{18:77,39:78,10:P,40:H}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:J,44:Z,60:pe,80:[1,87],89:re,95:[1,84],97:[1,85],101:86,105:ce,106:ae,109:se,111:xe,114:Te,115:Ge,116:ze,120:88},t(z,[2,185]),t(z,[2,186]),t(z,[2,187]),t(z,[2,188]),t(z,[2,189]),t(Xe,[2,51]),t(Xe,[2,54],{46:[1,100]}),t(Le,[2,72],{113:113,29:[1,101],44:g,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:m,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:x,102:C,105:T,106:w,109:N,111:O,114:M,115:$,116:F}),t(Re,[2,181]),t(Re,[2,142]),t(Re,[2,143]),t(Re,[2,144]),t(Re,[2,145]),t(Re,[2,146]),t(Re,[2,147]),t(Re,[2,148]),t(Re,[2,149]),t(Re,[2,150]),t(Re,[2,151]),t(Re,[2,152]),t(i,[2,12]),t(i,[2,18]),t(i,[2,19]),{9:[1,114]},t(qe,[2,26],{18:115,10:P}),t(z,[2,27]),{42:116,43:39,44:g,45:40,47:41,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},t(z,[2,40]),t(z,[2,41]),t(z,[2,42]),t(Ne,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ut,81:De,116:Je,119:st},{75:[1,126],77:[1,127]},t(ct,[2,83]),t(z,[2,28]),t(z,[2,29]),t(z,[2,30]),t(z,[2,31]),t(z,[2,32]),{10:ot,12:it,14:Oe,27:U,28:128,32:oe,44:de,60:G,75:ie,80:[1,130],81:[1,131],83:141,84:j,85:V,86:ue,87:Fe,88:me,89:Ce,90:ye,91:129,105:Me,109:Ie,111:he,114:le,115:Be,116:ve},t(gt,a,{5:154}),t(z,[2,37]),t(z,[2,38]),t(Q,[2,48],{44:Et}),t(Q,[2,49],{18:156,10:P,40:et}),t(Xe,[2,44]),{44:g,47:158,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},{102:[1,159],103:160,105:[1,161]},{44:g,47:162,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},{44:g,47:163,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},t(dt,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(dt,[2,115],{120:168,10:[1,167],14:J,44:Z,60:pe,89:re,105:ce,106:ae,109:se,111:xe,114:Te,115:Ge,116:ze}),t(dt,[2,117],{10:[1,169]}),t(ft,[2,183]),t(ft,[2,170]),t(ft,[2,171]),t(ft,[2,172]),t(ft,[2,173]),t(ft,[2,174]),t(ft,[2,175]),t(ft,[2,176]),t(ft,[2,177]),t(ft,[2,178]),t(ft,[2,179]),t(ft,[2,180]),{44:g,47:170,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},{30:171,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:179,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:181,50:[1,180],67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:182,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:183,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:184,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{109:[1,185]},{30:186,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:187,65:[1,188],67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:189,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:190,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{30:191,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},t(Re,[2,182]),t(i,[2,20]),t(qe,[2,25]),t(Q,[2,46],{39:192,18:193,10:P,40:H}),t(Ne,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{77:[1,197],79:198,116:Je,119:st},t(Hr,[2,79]),t(Hr,[2,81]),t(Hr,[2,82]),t(Hr,[2,168]),t(Hr,[2,169]),{76:199,79:121,80:ut,81:De,116:Je,119:st},t(ct,[2,84]),{8:B,9:q,10:ot,11:Y,12:it,14:Oe,21:201,27:U,29:[1,200],32:oe,44:de,60:G,75:ie,83:141,84:j,85:V,86:ue,87:Fe,88:me,89:Ce,90:ye,91:202,105:Me,109:Ie,111:he,114:le,115:Be,116:ve},t(Pe,[2,101]),t(Pe,[2,103]),t(Pe,[2,104]),t(Pe,[2,157]),t(Pe,[2,158]),t(Pe,[2,159]),t(Pe,[2,160]),t(Pe,[2,161]),t(Pe,[2,162]),t(Pe,[2,163]),t(Pe,[2,164]),t(Pe,[2,165]),t(Pe,[2,166]),t(Pe,[2,167]),t(Pe,[2,90]),t(Pe,[2,91]),t(Pe,[2,92]),t(Pe,[2,93]),t(Pe,[2,94]),t(Pe,[2,95]),t(Pe,[2,96]),t(Pe,[2,97]),t(Pe,[2,98]),t(Pe,[2,99]),t(Pe,[2,100]),{6:11,7:12,8:s,9:o,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,203],33:24,34:h,36:f,38:p,42:28,43:39,44:g,45:40,47:41,60:m,84:y,85:v,86:b,87:_,88:E,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:R},{10:P,18:204},{44:[1,205]},t(Xe,[2,43]),{10:[1,206],44:g,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:113,114:M,115:$,116:F},{10:[1,207]},{10:[1,208],106:[1,209]},t(yt,[2,128]),{10:[1,210],44:g,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:113,114:M,115:$,116:F},{10:[1,211],44:g,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:113,114:M,115:$,116:F},{80:[1,212]},t(dt,[2,109],{10:[1,213]}),t(dt,[2,111],{10:[1,214]}),{80:[1,215]},t(ft,[2,184]),{80:[1,216],98:[1,217]},t(Xe,[2,55],{113:113,44:g,60:m,89:x,102:C,105:T,106:w,109:N,111:O,114:M,115:$,116:F}),{31:[1,218],67:mt,82:219,116:St,117:Tt,118:Nt},t(bt,[2,86]),t(bt,[2,88]),t(bt,[2,89]),t(bt,[2,153]),t(bt,[2,154]),t(bt,[2,155]),t(bt,[2,156]),{49:[1,220],67:mt,82:219,116:St,117:Tt,118:Nt},{30:221,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{51:[1,222],67:mt,82:219,116:St,117:Tt,118:Nt},{53:[1,223],67:mt,82:219,116:St,117:Tt,118:Nt},{55:[1,224],67:mt,82:219,116:St,117:Tt,118:Nt},{57:[1,225],67:mt,82:219,116:St,117:Tt,118:Nt},{60:[1,226]},{64:[1,227],67:mt,82:219,116:St,117:Tt,118:Nt},{66:[1,228],67:mt,82:219,116:St,117:Tt,118:Nt},{30:229,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},{31:[1,230],67:mt,82:219,116:St,117:Tt,118:Nt},{67:mt,69:[1,231],71:[1,232],82:219,116:St,117:Tt,118:Nt},{67:mt,69:[1,234],71:[1,233],82:219,116:St,117:Tt,118:Nt},t(Q,[2,45],{18:156,10:P,40:et}),t(Q,[2,47],{44:Et}),t(Ne,[2,75]),t(Ne,[2,74]),{62:[1,235],67:mt,82:219,116:St,117:Tt,118:Nt},t(Ne,[2,77]),t(Hr,[2,80]),{77:[1,236],79:198,116:Je,119:st},{30:237,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},t(gt,a,{5:238}),t(Pe,[2,102]),t(z,[2,35]),{43:239,44:g,45:40,47:41,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},{10:P,18:240},{10:Ot,60:Qt,84:br,92:241,105:Ct,107:242,108:243,109:Ye,110:pt,111:Dt,112:Zt},{10:Ot,60:Qt,84:br,92:252,104:[1,253],105:Ct,107:242,108:243,109:Ye,110:pt,111:Dt,112:Zt},{10:Ot,60:Qt,84:br,92:254,104:[1,255],105:Ct,107:242,108:243,109:Ye,110:pt,111:Dt,112:Zt},{105:[1,256]},{10:Ot,60:Qt,84:br,92:257,105:Ct,107:242,108:243,109:Ye,110:pt,111:Dt,112:Zt},{44:g,47:258,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},t(dt,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(dt,[2,116]),t(dt,[2,118],{10:[1,262]}),t(dt,[2,119]),t(Le,[2,56]),t(bt,[2,87]),t(Le,[2,57]),{51:[1,263],67:mt,82:219,116:St,117:Tt,118:Nt},t(Le,[2,64]),t(Le,[2,59]),t(Le,[2,60]),t(Le,[2,61]),{109:[1,264]},t(Le,[2,63]),t(Le,[2,65]),{66:[1,265],67:mt,82:219,116:St,117:Tt,118:Nt},t(Le,[2,67]),t(Le,[2,68]),t(Le,[2,70]),t(Le,[2,69]),t(Le,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(Ne,[2,78]),{31:[1,266],67:mt,82:219,116:St,117:Tt,118:Nt},{6:11,7:12,8:s,9:o,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,267],33:24,34:h,36:f,38:p,42:28,43:39,44:g,45:40,47:41,60:m,84:y,85:v,86:b,87:_,88:E,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:R},t(Xe,[2,53]),{43:268,44:g,45:40,47:41,60:m,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F},t(dt,[2,121],{106:wr}),t(Vr,[2,130],{108:270,10:Ot,60:Qt,84:br,105:Ct,109:Ye,110:pt,111:Dt,112:Zt}),t(Kr,[2,132]),t(Kr,[2,134]),t(Kr,[2,135]),t(Kr,[2,136]),t(Kr,[2,137]),t(Kr,[2,138]),t(Kr,[2,139]),t(Kr,[2,140]),t(Kr,[2,141]),t(dt,[2,122],{106:wr}),{10:[1,271]},t(dt,[2,123],{106:wr}),{10:[1,272]},t(yt,[2,129]),t(dt,[2,105],{106:wr}),t(dt,[2,106],{113:113,44:g,60:m,89:x,102:C,105:T,106:w,109:N,111:O,114:M,115:$,116:F}),t(dt,[2,110]),t(dt,[2,112],{10:[1,273]}),t(dt,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:B,9:q,11:Y,21:278},t(z,[2,34]),t(Xe,[2,52]),{10:Ot,60:Qt,84:br,105:Ct,107:279,108:243,109:Ye,110:pt,111:Dt,112:Zt},t(Kr,[2,133]),{14:J,44:Z,60:pe,89:re,101:280,105:ce,106:ae,109:se,111:xe,114:Te,115:Ge,116:ze,120:88},{14:J,44:Z,60:pe,89:re,101:281,105:ce,106:ae,109:se,111:xe,114:Te,115:Ge,116:ze,120:88},{98:[1,282]},t(dt,[2,120]),t(Le,[2,58]),{30:283,67:mt,80:fe,81:It,82:172,116:St,117:Tt,118:Nt},t(Le,[2,66]),t(gt,a,{5:284}),t(Vr,[2,131],{108:270,10:Ot,60:Qt,84:br,105:Ct,109:Ye,110:pt,111:Dt,112:Zt}),t(dt,[2,126],{120:168,10:[1,285],14:J,44:Z,60:pe,89:re,105:ce,106:ae,109:se,111:xe,114:Te,115:Ge,116:ze}),t(dt,[2,127],{120:168,10:[1,286],14:J,44:Z,60:pe,89:re,105:ce,106:ae,109:se,111:xe,114:Te,115:Ge,116:ze}),t(dt,[2,114]),{31:[1,287],67:mt,82:219,116:St,117:Tt,118:Nt},{6:11,7:12,8:s,9:o,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,288],33:24,34:h,36:f,38:p,42:28,43:39,44:g,45:40,47:41,60:m,84:y,85:v,86:b,87:_,88:E,89:x,102:C,105:T,106:w,109:N,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:R},{10:Ot,60:Qt,84:br,92:289,105:Ct,107:242,108:243,109:Ye,110:pt,111:Dt,112:Zt},{10:Ot,60:Qt,84:br,92:290,105:Ct,107:242,108:243,109:Ye,110:pt,111:Dt,112:Zt},t(Le,[2,62]),t(z,[2,33]),t(dt,[2,124],{106:wr}),t(dt,[2,125],{106:wr})],defaultActions:{},parseError:S(function(kt,xt){if(xt.recoverable)this.trace(kt);else{var $t=new Error(kt);throw $t.hash=xt,$t}},"parseError"),parse:S(function(kt){var xt=this,$t=[0],wt=[],kr=[null],$e=[],qn=this.table,Ue="",Yn=0,Kh=0,Xh=2,_2=1,ax=$e.slice.call(arguments,1),Gi=Object.create(this.lexer),Ec={yy:{}};for(var Lu in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Lu)&&(Ec.yy[Lu]=this.yy[Lu]);Gi.setInput(kt,Ec.yy),Ec.yy.lexer=Gi,Ec.yy.parser=this,typeof Gi.yylloc>"u"&&(Gi.yylloc={});var ld=Gi.yylloc;$e.push(ld);var no=Gi.options&&Gi.options.ranges;typeof Ec.yy.parseError=="function"?this.parseError=Ec.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b2(Er){$t.length=$t.length-2*Er,kr.length=kr.length-Er,$e.length=$e.length-Er}S(b2,"popStack");function cd(){var Er;return Er=wt.pop()||Gi.lex()||_2,typeof Er!="number"&&(Er instanceof Array&&(wt=Er,Er=wt.pop()),Er=xt.symbols_[Er]||Er),Er}S(cd,"lex");for(var vr,nl,yn,fn,io={},ys,vs,ud,rr;;){if(nl=$t[$t.length-1],this.defaultActions[nl]?yn=this.defaultActions[nl]:((vr===null||typeof vr>"u")&&(vr=cd()),yn=qn[nl]&&qn[nl][vr]),typeof yn>"u"||!yn.length||!yn[0]){var fr="";rr=[];for(ys in qn[nl])this.terminals_[ys]&&ys>Xh&&rr.push("'"+this.terminals_[ys]+"'");Gi.showPosition?fr="Parse error on line "+(Yn+1)+`: `+Gi.showPosition()+` Expecting `+rr.join(", ")+", got '"+(this.terminals_[vr]||vr)+"'":fr="Parse error on line "+(Yn+1)+": Unexpected "+(vr==_2?"end of input":"'"+(this.terminals_[vr]||vr)+"'"),this.parseError(fr,{text:Gi.match,token:this.terminals_[vr]||vr,line:Gi.yylineno,loc:ld,expected:rr})}if(yn[0]instanceof Array&&yn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+nl+", token: "+vr);switch(yn[0]){case 1:$t.push(vr),kr.push(Gi.yytext),$e.push(Gi.yylloc),$t.push(yn[1]),vr=null,Kh=Gi.yyleng,Ue=Gi.yytext,Yn=Gi.yylineno,ld=Gi.yylloc;break;case 2:if(vs=this.productions_[yn[1]][1],io.$=kr[kr.length-vs],io._$={first_line:$e[$e.length-(vs||1)].first_line,last_line:$e[$e.length-1].last_line,first_column:$e[$e.length-(vs||1)].first_column,last_column:$e[$e.length-1].last_column},no&&(io._$.range=[$e[$e.length-(vs||1)].range[0],$e[$e.length-1].range[1]]),fn=this.performAction.apply(io,[Ue,Kh,Yn,Ec.yy,yn[1],kr,$e].concat(ax)),typeof fn<"u")return fn;vs&&($t=$t.slice(0,-1*vs*2),kr=kr.slice(0,-1*vs),$e=$e.slice(0,-1*vs)),$t.push(this.productions_[yn[1]][0]),kr.push(io.$),$e.push(io._$),ud=qn[$t[$t.length-2]][$t[$t.length-1]],$t.push(ud);break;case 3:return!0}}return!0},"parse")},ji=(function(){var Xt={EOF:1,parseError:S(function(xt,$t){if(this.yy.parser)this.yy.parser.parseError(xt,$t);else throw new Error(xt)},"parseError"),setInput:S(function(kt,xt){return this.yy=xt||this.yy||{},this._input=kt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var kt=this._input[0];this.yytext+=kt,this.yyleng++,this.offset++,this.match+=kt,this.matched+=kt;var xt=kt.match(/(?:\r\n?|\n).*/g);return xt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),kt},"input"),unput:S(function(kt){var xt=kt.length,$t=kt.split(/(?:\r\n?|\n)/g);this._input=kt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-xt),this.offset-=xt;var wt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),$t.length-1&&(this.yylineno-=$t.length-1);var kr=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:$t?($t.length===wt.length?this.yylloc.first_column:0)+wt[wt.length-$t.length].length-$t[0].length:this.yylloc.first_column-xt},this.options.ranges&&(this.yylloc.range=[kr[0],kr[0]+this.yyleng-xt]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(kt){this.unput(this.match.slice(kt))},"less"),pastInput:S(function(){var kt=this.matched.substr(0,this.matched.length-this.match.length);return(kt.length>20?"...":"")+kt.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var kt=this.match;return kt.length<20&&(kt+=this._input.substr(0,20-kt.length)),(kt.substr(0,20)+(kt.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var kt=this.pastInput(),xt=new Array(kt.length+1).join("-");return kt+this.upcomingInput()+` `+xt+"^"},"showPosition"),test_match:S(function(kt,xt){var $t,wt,kr;if(this.options.backtrack_lexer&&(kr={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(kr.yylloc.range=this.yylloc.range.slice(0))),wt=kt[0].match(/(?:\r\n?|\n).*/g),wt&&(this.yylineno+=wt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:wt?wt[wt.length-1].length-wt[wt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+kt[0].length},this.yytext+=kt[0],this.match+=kt[0],this.matches=kt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(kt[0].length),this.matched+=kt[0],$t=this.performAction.call(this,this.yy,this,xt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),$t)return $t;if(this._backtrack){for(var $e in kr)this[$e]=kr[$e];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var kt,xt,$t,wt;this._more||(this.yytext="",this.match="");for(var kr=this._currentRules(),$e=0;$ext[0].length)){if(xt=$t,wt=$e,this.options.backtrack_lexer){if(kt=this.test_match($t,kr[$e]),kt!==!1)return kt;if(this._backtrack){xt=!1;continue}else return!1}else if(!this.options.flex)break}return xt?(kt=this.test_match(xt,kr[wt]),kt!==!1?kt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var xt=this.next();return xt||this.lex()},"lex"),begin:S(function(xt){this.conditionStack.push(xt)},"begin"),popState:S(function(){var xt=this.conditionStack.length-1;return xt>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(xt){return xt=this.conditionStack.length-1-Math.abs(xt||0),xt>=0?this.conditionStack[xt]:"INITIAL"},"topState"),pushState:S(function(xt){this.begin(xt)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:S(function(xt,$t,wt,kr){switch(wt){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),$t.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const $e=/\n\s*/g;return $t.yytext=$t.yytext.replace($e,"
"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return xt.lex.firstGraph()&&this.begin("dir"),12;case 36:return xt.lex.firstGraph()&&this.begin("dir"),12;case 37:return xt.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 78;case 61:return 105;case 62:return 111;case 63:return 46;case 64:return 60;case 65:return 44;case 66:return 8;case 67:return 106;case 68:return 115;case 69:return this.popState(),77;case 70:return this.pushState("edgeText"),75;case 71:return 119;case 72:return this.popState(),77;case 73:return this.pushState("thickEdgeText"),75;case 74:return 119;case 75:return this.popState(),77;case 76:return this.pushState("dottedEdgeText"),75;case 77:return 119;case 78:return 77;case 79:return this.popState(),53;case 80:return"TEXT";case 81:return this.pushState("ellipseText"),52;case 82:return this.popState(),55;case 83:return this.pushState("text"),54;case 84:return this.popState(),57;case 85:return this.pushState("text"),56;case 86:return 58;case 87:return this.pushState("text"),67;case 88:return this.popState(),64;case 89:return this.pushState("text"),63;case 90:return this.popState(),49;case 91:return this.pushState("text"),48;case 92:return this.popState(),69;case 93:return this.popState(),71;case 94:return 117;case 95:return this.pushState("trapText"),68;case 96:return this.pushState("trapText"),70;case 97:return 118;case 98:return 67;case 99:return 90;case 100:return"SEP";case 101:return 89;case 102:return 115;case 103:return 111;case 104:return 44;case 105:return 109;case 106:return 114;case 107:return 116;case 108:return this.popState(),62;case 109:return this.pushState("text"),62;case 110:return this.popState(),51;case 111:return this.pushState("text"),50;case 112:return this.popState(),31;case 113:return this.pushState("text"),29;case 114:return this.popState(),66;case 115:return this.pushState("text"),65;case 116:return"TEXT";case 117:return"QUOTE";case 118:return 9;case 119:return 10;case 120:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeData:{rules:[8,11,12,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackargs:{rules:[17,18,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackname:{rules:[14,15,16,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},href:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},click:{rules:[21,24,33,34,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dottedEdgeText:{rules:[21,24,75,77,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},thickEdgeText:{rules:[21,24,72,74,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},edgeText:{rules:[21,24,69,71,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},trapText:{rules:[21,24,78,81,83,85,89,91,92,93,94,95,96,109,111,113,115],inclusive:!1},ellipseText:{rules:[21,24,78,79,80,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},text:{rules:[21,24,78,81,82,83,84,85,88,89,90,91,95,96,108,109,110,111,112,113,114,115,116],inclusive:!1},vertex:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr:{rules:[3,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_title:{rules:[1,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},md_string:{rules:[19,20,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},string:{rules:[21,22,23,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,75,76,78,81,83,85,86,87,89,91,95,96,97,98,99,100,101,102,103,104,105,106,107,109,111,113,115,117,118,119,120],inclusive:!0}}};return Xt})();Gn.lexer=ji;function Mt(){this.yy={}}return S(Mt,"Parser"),Mt.prototype=Gn,Gn.Parser=Mt,new Mt})();GB.parser=GB;var A2e=GB,R2e=Object.assign({},A2e);R2e.parse=t=>{const e=t.replace(/}\s*\n/g,`} -`);return A2e.parse(e)};var Xvt=R2e,jvt=S((t,e)=>{const r=hU,n=r(t,"r"),i=r(t,"g"),a=r(t,"b");return Jl(n,i,a,e)},"fade"),Qvt=S(t=>`.label { +`);return A2e.parse(e)};var jvt=R2e,Qvt=S((t,e)=>{const r=hU,n=r(t,"r"),i=r(t,"g"),a=r(t,"b");return Jl(n,i,a,e)},"fade"),Zvt=S(t=>`.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor||t.textColor}; } @@ -5095,7 +5095,7 @@ Expecting `+rr.join(", ")+", got '"+(this.terminals_[vr]||vr)+"'":fr="Parse erro /* For html labels only */ .labelBkg { - background-color: ${jvt(t.edgeLabelBackground,.5)}; + background-color: ${Qvt(t.edgeLabelBackground,.5)}; // background-color: } @@ -5155,12 +5155,12 @@ Expecting `+rr.join(", ")+", got '"+(this.terminals_[vr]||vr)+"'":fr="Parse erro text-align: center; } ${OT()} -`,"getStyles"),Zvt=Qvt,Jvt={parser:Xvt,get db(){return new Hvt},renderer:Kvt,styles:Zvt,init:S(t=>{t.flowchart||(t.flowchart={}),t.layout&&$M({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,$M({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")};const cY=Object.freeze(Object.defineProperty({__proto__:null,diagram:Jvt},Symbol.toStringTag,{value:"Module"}));var qB=(function(){var t=S(function(Ge,ze,Xe,Le){for(Xe=Xe||{},Le=Ge.length;Le--;Xe[Ge[Le]]=ze);return Xe},"o"),e=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],r=[1,10],n=[1,11],i=[1,12],a=[1,13],s=[1,23],o=[1,24],l=[1,25],u=[1,26],d=[1,27],h=[1,19],f=[1,28],p=[1,29],g=[1,20],m=[1,18],y=[1,21],v=[1,22],b=[1,36],_=[1,37],E=[1,38],x=[1,39],C=[1,40],T=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],w=[1,45],N=[1,46],O=[1,55],M=[40,48,50,51,52,70,71],$=[1,66],F=[1,64],A=[1,61],I=[1,65],D=[1,67],L=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],R=[65,66,67,68,69],P=[1,84],z=[1,83],B=[1,81],q=[1,82],Y=[6,10,42,47],Q=[6,10,13,41,42,47,48,49],H=[1,92],J=[1,91],Z=[1,90],pe=[19,58],re=[1,101],ce=[1,100],ae=[19,58,60,62],se={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:S(function(ze,Xe,Le,Re,qe,Ne,ut){var De=Ne.length-1;switch(qe){case 1:break;case 2:this.$=[];break;case 3:Ne[De-1].push(Ne[De]),this.$=Ne[De-1];break;case 4:case 5:this.$=Ne[De];break;case 6:case 7:this.$=[];break;case 8:Re.addEntity(Ne[De-4]),Re.addEntity(Ne[De-2]),Re.addRelationship(Ne[De-4],Ne[De],Ne[De-2],Ne[De-3]);break;case 9:Re.addEntity(Ne[De-8]),Re.addEntity(Ne[De-4]),Re.addRelationship(Ne[De-8],Ne[De],Ne[De-4],Ne[De-5]),Re.setClass([Ne[De-8]],Ne[De-6]),Re.setClass([Ne[De-4]],Ne[De-2]);break;case 10:Re.addEntity(Ne[De-6]),Re.addEntity(Ne[De-2]),Re.addRelationship(Ne[De-6],Ne[De],Ne[De-2],Ne[De-3]),Re.setClass([Ne[De-6]],Ne[De-4]);break;case 11:Re.addEntity(Ne[De-6]),Re.addEntity(Ne[De-4]),Re.addRelationship(Ne[De-6],Ne[De],Ne[De-4],Ne[De-5]),Re.setClass([Ne[De-4]],Ne[De-2]);break;case 12:Re.addEntity(Ne[De-3]),Re.addAttributes(Ne[De-3],Ne[De-1]);break;case 13:Re.addEntity(Ne[De-5]),Re.addAttributes(Ne[De-5],Ne[De-1]),Re.setClass([Ne[De-5]],Ne[De-3]);break;case 14:Re.addEntity(Ne[De-2]);break;case 15:Re.addEntity(Ne[De-4]),Re.setClass([Ne[De-4]],Ne[De-2]);break;case 16:Re.addEntity(Ne[De]);break;case 17:Re.addEntity(Ne[De-2]),Re.setClass([Ne[De-2]],Ne[De]);break;case 18:Re.addEntity(Ne[De-6],Ne[De-4]),Re.addAttributes(Ne[De-6],Ne[De-1]);break;case 19:Re.addEntity(Ne[De-8],Ne[De-6]),Re.addAttributes(Ne[De-8],Ne[De-1]),Re.setClass([Ne[De-8]],Ne[De-3]);break;case 20:Re.addEntity(Ne[De-5],Ne[De-3]);break;case 21:Re.addEntity(Ne[De-7],Ne[De-5]),Re.setClass([Ne[De-7]],Ne[De-2]);break;case 22:Re.addEntity(Ne[De-3],Ne[De-1]);break;case 23:Re.addEntity(Ne[De-5],Ne[De-3]),Re.setClass([Ne[De-5]],Ne[De]);break;case 24:case 25:this.$=Ne[De].trim(),Re.setAccTitle(this.$);break;case 26:case 27:this.$=Ne[De].trim(),Re.setAccDescription(this.$);break;case 32:Re.setDirection("TB");break;case 33:Re.setDirection("BT");break;case 34:Re.setDirection("RL");break;case 35:Re.setDirection("LR");break;case 36:this.$=Ne[De-3],Re.addClass(Ne[De-2],Ne[De-1]);break;case 37:case 38:case 59:case 67:this.$=[Ne[De]];break;case 39:case 40:this.$=Ne[De-2].concat([Ne[De]]);break;case 41:this.$=Ne[De-2],Re.setClass(Ne[De-1],Ne[De]);break;case 42:this.$=Ne[De-3],Re.addCssStyles(Ne[De-2],Ne[De-1]);break;case 43:this.$=[Ne[De]];break;case 44:Ne[De-2].push(Ne[De]),this.$=Ne[De-2];break;case 46:this.$=Ne[De-1]+Ne[De];break;case 54:case 79:case 80:this.$=Ne[De].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=Ne[De];break;case 60:Ne[De].push(Ne[De-1]),this.$=Ne[De];break;case 61:this.$={type:Ne[De-1],name:Ne[De]};break;case 62:this.$={type:Ne[De-2],name:Ne[De-1],keys:Ne[De]};break;case 63:this.$={type:Ne[De-2],name:Ne[De-1],comment:Ne[De]};break;case 64:this.$={type:Ne[De-3],name:Ne[De-2],keys:Ne[De-1],comment:Ne[De]};break;case 65:case 66:case 69:this.$=Ne[De];break;case 68:Ne[De-2].push(Ne[De]),this.$=Ne[De-2];break;case 70:this.$=Ne[De].replace(/"/g,"");break;case 71:this.$={cardA:Ne[De],relType:Ne[De-1],cardB:Ne[De-2]};break;case 72:this.$=Re.Cardinality.ZERO_OR_ONE;break;case 73:this.$=Re.Cardinality.ZERO_OR_MORE;break;case 74:this.$=Re.Cardinality.ONE_OR_MORE;break;case 75:this.$=Re.Cardinality.ONLY_ONE;break;case 76:this.$=Re.Cardinality.MD_PARENT;break;case 77:this.$=Re.Identification.NON_IDENTIFYING;break;case 78:this.$=Re.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:n,26:i,28:a,29:14,30:15,31:16,32:17,33:s,34:o,35:l,36:u,37:d,40:h,43:f,44:p,48:g,50:m,51:y,52:v},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:30,11:9,22:r,24:n,26:i,28:a,29:14,30:15,31:16,32:17,33:s,34:o,35:l,36:u,37:d,40:h,43:f,44:p,48:g,50:m,51:y,52:v},t(e,[2,5]),t(e,[2,6]),t(e,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:b,66:_,67:E,68:x,69:C}),{23:[1,41]},{25:[1,42]},{27:[1,43]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),t(e,[2,30]),t(e,[2,31]),t(T,[2,54]),t(T,[2,55]),t(T,[2,56]),t(T,[2,57]),t(T,[2,58]),t(e,[2,32]),t(e,[2,33]),t(e,[2,34]),t(e,[2,35]),{16:44,40:w,41:N},{16:47,40:w,41:N},{16:48,40:w,41:N},t(e,[2,4]),{11:49,40:h,48:g,50:m,51:y,52:v},{16:50,40:w,41:N},{18:51,19:[1,52],53:53,54:54,58:O},{11:56,40:h,48:g,50:m,51:y,52:v},{64:57,70:[1,58],71:[1,59]},t(M,[2,72]),t(M,[2,73]),t(M,[2,74]),t(M,[2,75]),t(M,[2,76]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),{13:$,38:60,41:F,42:A,45:62,46:63,48:I,49:D},t(L,[2,37]),t(L,[2,38]),{16:68,40:w,41:N,42:A},{13:$,38:69,41:F,42:A,45:62,46:63,48:I,49:D},{13:[1,70],15:[1,71]},t(e,[2,17],{63:35,12:72,17:[1,73],42:A,65:b,66:_,67:E,68:x,69:C}),{19:[1,74]},t(e,[2,14]),{18:75,19:[2,59],53:53,54:54,58:O},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:b,66:_,67:E,68:x,69:C},t(R,[2,77]),t(R,[2,78]),{6:P,10:z,39:80,42:B,47:q},{40:[1,85],41:[1,86]},t(Y,[2,43],{46:87,13:$,41:F,48:I,49:D}),t(Q,[2,45]),t(Q,[2,50]),t(Q,[2,51]),t(Q,[2,52]),t(Q,[2,53]),t(e,[2,41],{42:A}),{6:P,10:z,39:88,42:B,47:q},{14:89,40:H,50:J,72:Z},{16:93,40:w,41:N},{11:94,40:h,48:g,50:m,51:y,52:v},{18:95,19:[1,96],53:53,54:54,58:O},t(e,[2,12]),{19:[2,60]},t(pe,[2,61],{56:97,57:98,59:99,61:re,62:ce}),t([19,58,61,62],[2,66]),t(e,[2,22],{15:[1,103],17:[1,102]}),t([40,48,50,51,52],[2,71]),t(e,[2,36]),{13:$,41:F,45:104,46:63,48:I,49:D},t(e,[2,47]),t(e,[2,48]),t(e,[2,49]),t(L,[2,39]),t(L,[2,40]),t(Q,[2,46]),t(e,[2,42]),t(e,[2,8]),t(e,[2,79]),t(e,[2,80]),t(e,[2,81]),{13:[1,105],42:A},{13:[1,107],15:[1,106]},{19:[1,108]},t(e,[2,15]),t(pe,[2,62],{57:109,60:[1,110],62:ce}),t(pe,[2,63]),t(ae,[2,67]),t(pe,[2,70]),t(ae,[2,69]),{18:111,19:[1,112],53:53,54:54,58:O},{16:113,40:w,41:N},t(Y,[2,44],{46:87,13:$,41:F,48:I,49:D}),{14:114,40:H,50:J,72:Z},{16:115,40:w,41:N},{14:116,40:H,50:J,72:Z},t(e,[2,13]),t(pe,[2,64]),{59:117,61:re},{19:[1,118]},t(e,[2,20]),t(e,[2,23],{17:[1,119],42:A}),t(e,[2,11]),{13:[1,120],42:A},t(e,[2,10]),t(ae,[2,68]),t(e,[2,18]),{18:121,19:[1,122],53:53,54:54,58:O},{14:123,40:H,50:J,72:Z},{19:[1,124]},t(e,[2,21]),t(e,[2,9]),t(e,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:S(function(ze,Xe){if(Xe.recoverable)this.trace(ze);else{var Le=new Error(ze);throw Le.hash=Xe,Le}},"parseError"),parse:S(function(ze){var Xe=this,Le=[0],Re=[],qe=[null],Ne=[],ut=this.table,De="",Je=0,st=0,ct=2,ot=1,it=Ne.slice.call(arguments,1),Oe=Object.create(this.lexer),U={yy:{}};for(var oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,oe)&&(U.yy[oe]=this.yy[oe]);Oe.setInput(ze,U.yy),U.yy.lexer=Oe,U.yy.parser=this,typeof Oe.yylloc>"u"&&(Oe.yylloc={});var de=Oe.yylloc;Ne.push(de);var G=Oe.options&&Oe.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ie(Be){Le.length=Le.length-2*Be,qe.length=qe.length-Be,Ne.length=Ne.length-Be}S(ie,"popStack");function j(){var Be;return Be=Re.pop()||Oe.lex()||ot,typeof Be!="number"&&(Be instanceof Array&&(Re=Be,Be=Re.pop()),Be=Xe.symbols_[Be]||Be),Be}S(j,"lex");for(var V,ue,Fe,me,Ce={},ye,Me,Ie,he;;){if(ue=Le[Le.length-1],this.defaultActions[ue]?Fe=this.defaultActions[ue]:((V===null||typeof V>"u")&&(V=j()),Fe=ut[ue]&&ut[ue][V]),typeof Fe>"u"||!Fe.length||!Fe[0]){var le="";he=[];for(ye in ut[ue])this.terminals_[ye]&&ye>ct&&he.push("'"+this.terminals_[ye]+"'");Oe.showPosition?le="Parse error on line "+(Je+1)+`: +`,"getStyles"),Jvt=Zvt,e_t={parser:jvt,get db(){return new Vvt},renderer:Xvt,styles:Jvt,init:S(t=>{t.flowchart||(t.flowchart={}),t.layout&&$M({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,$M({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")};const cY=Object.freeze(Object.defineProperty({__proto__:null,diagram:e_t},Symbol.toStringTag,{value:"Module"}));var qB=(function(){var t=S(function(Ge,ze,Xe,Le){for(Xe=Xe||{},Le=Ge.length;Le--;Xe[Ge[Le]]=ze);return Xe},"o"),e=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],r=[1,10],n=[1,11],i=[1,12],a=[1,13],s=[1,23],o=[1,24],l=[1,25],u=[1,26],d=[1,27],h=[1,19],f=[1,28],p=[1,29],g=[1,20],m=[1,18],y=[1,21],v=[1,22],b=[1,36],_=[1,37],E=[1,38],x=[1,39],C=[1,40],T=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],w=[1,45],N=[1,46],O=[1,55],M=[40,48,50,51,52,70,71],$=[1,66],F=[1,64],A=[1,61],I=[1,65],D=[1,67],L=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],R=[65,66,67,68,69],P=[1,84],z=[1,83],B=[1,81],q=[1,82],Y=[6,10,42,47],Q=[6,10,13,41,42,47,48,49],H=[1,92],J=[1,91],Z=[1,90],pe=[19,58],re=[1,101],ce=[1,100],ae=[19,58,60,62],se={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:S(function(ze,Xe,Le,Re,qe,Ne,ut){var De=Ne.length-1;switch(qe){case 1:break;case 2:this.$=[];break;case 3:Ne[De-1].push(Ne[De]),this.$=Ne[De-1];break;case 4:case 5:this.$=Ne[De];break;case 6:case 7:this.$=[];break;case 8:Re.addEntity(Ne[De-4]),Re.addEntity(Ne[De-2]),Re.addRelationship(Ne[De-4],Ne[De],Ne[De-2],Ne[De-3]);break;case 9:Re.addEntity(Ne[De-8]),Re.addEntity(Ne[De-4]),Re.addRelationship(Ne[De-8],Ne[De],Ne[De-4],Ne[De-5]),Re.setClass([Ne[De-8]],Ne[De-6]),Re.setClass([Ne[De-4]],Ne[De-2]);break;case 10:Re.addEntity(Ne[De-6]),Re.addEntity(Ne[De-2]),Re.addRelationship(Ne[De-6],Ne[De],Ne[De-2],Ne[De-3]),Re.setClass([Ne[De-6]],Ne[De-4]);break;case 11:Re.addEntity(Ne[De-6]),Re.addEntity(Ne[De-4]),Re.addRelationship(Ne[De-6],Ne[De],Ne[De-4],Ne[De-5]),Re.setClass([Ne[De-4]],Ne[De-2]);break;case 12:Re.addEntity(Ne[De-3]),Re.addAttributes(Ne[De-3],Ne[De-1]);break;case 13:Re.addEntity(Ne[De-5]),Re.addAttributes(Ne[De-5],Ne[De-1]),Re.setClass([Ne[De-5]],Ne[De-3]);break;case 14:Re.addEntity(Ne[De-2]);break;case 15:Re.addEntity(Ne[De-4]),Re.setClass([Ne[De-4]],Ne[De-2]);break;case 16:Re.addEntity(Ne[De]);break;case 17:Re.addEntity(Ne[De-2]),Re.setClass([Ne[De-2]],Ne[De]);break;case 18:Re.addEntity(Ne[De-6],Ne[De-4]),Re.addAttributes(Ne[De-6],Ne[De-1]);break;case 19:Re.addEntity(Ne[De-8],Ne[De-6]),Re.addAttributes(Ne[De-8],Ne[De-1]),Re.setClass([Ne[De-8]],Ne[De-3]);break;case 20:Re.addEntity(Ne[De-5],Ne[De-3]);break;case 21:Re.addEntity(Ne[De-7],Ne[De-5]),Re.setClass([Ne[De-7]],Ne[De-2]);break;case 22:Re.addEntity(Ne[De-3],Ne[De-1]);break;case 23:Re.addEntity(Ne[De-5],Ne[De-3]),Re.setClass([Ne[De-5]],Ne[De]);break;case 24:case 25:this.$=Ne[De].trim(),Re.setAccTitle(this.$);break;case 26:case 27:this.$=Ne[De].trim(),Re.setAccDescription(this.$);break;case 32:Re.setDirection("TB");break;case 33:Re.setDirection("BT");break;case 34:Re.setDirection("RL");break;case 35:Re.setDirection("LR");break;case 36:this.$=Ne[De-3],Re.addClass(Ne[De-2],Ne[De-1]);break;case 37:case 38:case 59:case 67:this.$=[Ne[De]];break;case 39:case 40:this.$=Ne[De-2].concat([Ne[De]]);break;case 41:this.$=Ne[De-2],Re.setClass(Ne[De-1],Ne[De]);break;case 42:this.$=Ne[De-3],Re.addCssStyles(Ne[De-2],Ne[De-1]);break;case 43:this.$=[Ne[De]];break;case 44:Ne[De-2].push(Ne[De]),this.$=Ne[De-2];break;case 46:this.$=Ne[De-1]+Ne[De];break;case 54:case 79:case 80:this.$=Ne[De].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=Ne[De];break;case 60:Ne[De].push(Ne[De-1]),this.$=Ne[De];break;case 61:this.$={type:Ne[De-1],name:Ne[De]};break;case 62:this.$={type:Ne[De-2],name:Ne[De-1],keys:Ne[De]};break;case 63:this.$={type:Ne[De-2],name:Ne[De-1],comment:Ne[De]};break;case 64:this.$={type:Ne[De-3],name:Ne[De-2],keys:Ne[De-1],comment:Ne[De]};break;case 65:case 66:case 69:this.$=Ne[De];break;case 68:Ne[De-2].push(Ne[De]),this.$=Ne[De-2];break;case 70:this.$=Ne[De].replace(/"/g,"");break;case 71:this.$={cardA:Ne[De],relType:Ne[De-1],cardB:Ne[De-2]};break;case 72:this.$=Re.Cardinality.ZERO_OR_ONE;break;case 73:this.$=Re.Cardinality.ZERO_OR_MORE;break;case 74:this.$=Re.Cardinality.ONE_OR_MORE;break;case 75:this.$=Re.Cardinality.ONLY_ONE;break;case 76:this.$=Re.Cardinality.MD_PARENT;break;case 77:this.$=Re.Identification.NON_IDENTIFYING;break;case 78:this.$=Re.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:n,26:i,28:a,29:14,30:15,31:16,32:17,33:s,34:o,35:l,36:u,37:d,40:h,43:f,44:p,48:g,50:m,51:y,52:v},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:30,11:9,22:r,24:n,26:i,28:a,29:14,30:15,31:16,32:17,33:s,34:o,35:l,36:u,37:d,40:h,43:f,44:p,48:g,50:m,51:y,52:v},t(e,[2,5]),t(e,[2,6]),t(e,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:b,66:_,67:E,68:x,69:C}),{23:[1,41]},{25:[1,42]},{27:[1,43]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),t(e,[2,30]),t(e,[2,31]),t(T,[2,54]),t(T,[2,55]),t(T,[2,56]),t(T,[2,57]),t(T,[2,58]),t(e,[2,32]),t(e,[2,33]),t(e,[2,34]),t(e,[2,35]),{16:44,40:w,41:N},{16:47,40:w,41:N},{16:48,40:w,41:N},t(e,[2,4]),{11:49,40:h,48:g,50:m,51:y,52:v},{16:50,40:w,41:N},{18:51,19:[1,52],53:53,54:54,58:O},{11:56,40:h,48:g,50:m,51:y,52:v},{64:57,70:[1,58],71:[1,59]},t(M,[2,72]),t(M,[2,73]),t(M,[2,74]),t(M,[2,75]),t(M,[2,76]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),{13:$,38:60,41:F,42:A,45:62,46:63,48:I,49:D},t(L,[2,37]),t(L,[2,38]),{16:68,40:w,41:N,42:A},{13:$,38:69,41:F,42:A,45:62,46:63,48:I,49:D},{13:[1,70],15:[1,71]},t(e,[2,17],{63:35,12:72,17:[1,73],42:A,65:b,66:_,67:E,68:x,69:C}),{19:[1,74]},t(e,[2,14]),{18:75,19:[2,59],53:53,54:54,58:O},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:b,66:_,67:E,68:x,69:C},t(R,[2,77]),t(R,[2,78]),{6:P,10:z,39:80,42:B,47:q},{40:[1,85],41:[1,86]},t(Y,[2,43],{46:87,13:$,41:F,48:I,49:D}),t(Q,[2,45]),t(Q,[2,50]),t(Q,[2,51]),t(Q,[2,52]),t(Q,[2,53]),t(e,[2,41],{42:A}),{6:P,10:z,39:88,42:B,47:q},{14:89,40:H,50:J,72:Z},{16:93,40:w,41:N},{11:94,40:h,48:g,50:m,51:y,52:v},{18:95,19:[1,96],53:53,54:54,58:O},t(e,[2,12]),{19:[2,60]},t(pe,[2,61],{56:97,57:98,59:99,61:re,62:ce}),t([19,58,61,62],[2,66]),t(e,[2,22],{15:[1,103],17:[1,102]}),t([40,48,50,51,52],[2,71]),t(e,[2,36]),{13:$,41:F,45:104,46:63,48:I,49:D},t(e,[2,47]),t(e,[2,48]),t(e,[2,49]),t(L,[2,39]),t(L,[2,40]),t(Q,[2,46]),t(e,[2,42]),t(e,[2,8]),t(e,[2,79]),t(e,[2,80]),t(e,[2,81]),{13:[1,105],42:A},{13:[1,107],15:[1,106]},{19:[1,108]},t(e,[2,15]),t(pe,[2,62],{57:109,60:[1,110],62:ce}),t(pe,[2,63]),t(ae,[2,67]),t(pe,[2,70]),t(ae,[2,69]),{18:111,19:[1,112],53:53,54:54,58:O},{16:113,40:w,41:N},t(Y,[2,44],{46:87,13:$,41:F,48:I,49:D}),{14:114,40:H,50:J,72:Z},{16:115,40:w,41:N},{14:116,40:H,50:J,72:Z},t(e,[2,13]),t(pe,[2,64]),{59:117,61:re},{19:[1,118]},t(e,[2,20]),t(e,[2,23],{17:[1,119],42:A}),t(e,[2,11]),{13:[1,120],42:A},t(e,[2,10]),t(ae,[2,68]),t(e,[2,18]),{18:121,19:[1,122],53:53,54:54,58:O},{14:123,40:H,50:J,72:Z},{19:[1,124]},t(e,[2,21]),t(e,[2,9]),t(e,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:S(function(ze,Xe){if(Xe.recoverable)this.trace(ze);else{var Le=new Error(ze);throw Le.hash=Xe,Le}},"parseError"),parse:S(function(ze){var Xe=this,Le=[0],Re=[],qe=[null],Ne=[],ut=this.table,De="",Je=0,st=0,ct=2,ot=1,it=Ne.slice.call(arguments,1),Oe=Object.create(this.lexer),U={yy:{}};for(var oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,oe)&&(U.yy[oe]=this.yy[oe]);Oe.setInput(ze,U.yy),U.yy.lexer=Oe,U.yy.parser=this,typeof Oe.yylloc>"u"&&(Oe.yylloc={});var de=Oe.yylloc;Ne.push(de);var G=Oe.options&&Oe.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ie(Be){Le.length=Le.length-2*Be,qe.length=qe.length-Be,Ne.length=Ne.length-Be}S(ie,"popStack");function j(){var Be;return Be=Re.pop()||Oe.lex()||ot,typeof Be!="number"&&(Be instanceof Array&&(Re=Be,Be=Re.pop()),Be=Xe.symbols_[Be]||Be),Be}S(j,"lex");for(var V,ue,Fe,me,Ce={},ye,Me,Ie,he;;){if(ue=Le[Le.length-1],this.defaultActions[ue]?Fe=this.defaultActions[ue]:((V===null||typeof V>"u")&&(V=j()),Fe=ut[ue]&&ut[ue][V]),typeof Fe>"u"||!Fe.length||!Fe[0]){var le="";he=[];for(ye in ut[ue])this.terminals_[ye]&&ye>ct&&he.push("'"+this.terminals_[ye]+"'");Oe.showPosition?le="Parse error on line "+(Je+1)+`: `+Oe.showPosition()+` Expecting `+he.join(", ")+", got '"+(this.terminals_[V]||V)+"'":le="Parse error on line "+(Je+1)+": Unexpected "+(V==ot?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(le,{text:Oe.match,token:this.terminals_[V]||V,line:Oe.yylineno,loc:de,expected:he})}if(Fe[0]instanceof Array&&Fe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ue+", token: "+V);switch(Fe[0]){case 1:Le.push(V),qe.push(Oe.yytext),Ne.push(Oe.yylloc),Le.push(Fe[1]),V=null,st=Oe.yyleng,De=Oe.yytext,Je=Oe.yylineno,de=Oe.yylloc;break;case 2:if(Me=this.productions_[Fe[1]][1],Ce.$=qe[qe.length-Me],Ce._$={first_line:Ne[Ne.length-(Me||1)].first_line,last_line:Ne[Ne.length-1].last_line,first_column:Ne[Ne.length-(Me||1)].first_column,last_column:Ne[Ne.length-1].last_column},G&&(Ce._$.range=[Ne[Ne.length-(Me||1)].range[0],Ne[Ne.length-1].range[1]]),me=this.performAction.apply(Ce,[De,st,Je,U.yy,Fe[1],qe,Ne].concat(it)),typeof me<"u")return me;Me&&(Le=Le.slice(0,-1*Me*2),qe=qe.slice(0,-1*Me),Ne=Ne.slice(0,-1*Me)),Le.push(this.productions_[Fe[1]][0]),qe.push(Ce.$),Ne.push(Ce._$),Ie=ut[Le[Le.length-2]][Le[Le.length-1]],Le.push(Ie);break;case 3:return!0}}return!0},"parse")},xe=(function(){var Ge={EOF:1,parseError:S(function(Xe,Le){if(this.yy.parser)this.yy.parser.parseError(Xe,Le);else throw new Error(Xe)},"parseError"),setInput:S(function(ze,Xe){return this.yy=Xe||this.yy||{},this._input=ze,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var ze=this._input[0];this.yytext+=ze,this.yyleng++,this.offset++,this.match+=ze,this.matched+=ze;var Xe=ze.match(/(?:\r\n?|\n).*/g);return Xe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ze},"input"),unput:S(function(ze){var Xe=ze.length,Le=ze.split(/(?:\r\n?|\n)/g);this._input=ze+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Xe),this.offset-=Xe;var Re=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Le.length-1&&(this.yylineno-=Le.length-1);var qe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Le?(Le.length===Re.length?this.yylloc.first_column:0)+Re[Re.length-Le.length].length-Le[0].length:this.yylloc.first_column-Xe},this.options.ranges&&(this.yylloc.range=[qe[0],qe[0]+this.yyleng-Xe]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(ze){this.unput(this.match.slice(ze))},"less"),pastInput:S(function(){var ze=this.matched.substr(0,this.matched.length-this.match.length);return(ze.length>20?"...":"")+ze.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var ze=this.match;return ze.length<20&&(ze+=this._input.substr(0,20-ze.length)),(ze.substr(0,20)+(ze.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var ze=this.pastInput(),Xe=new Array(ze.length+1).join("-");return ze+this.upcomingInput()+` `+Xe+"^"},"showPosition"),test_match:S(function(ze,Xe){var Le,Re,qe;if(this.options.backtrack_lexer&&(qe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(qe.yylloc.range=this.yylloc.range.slice(0))),Re=ze[0].match(/(?:\r\n?|\n).*/g),Re&&(this.yylineno+=Re.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Re?Re[Re.length-1].length-Re[Re.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ze[0].length},this.yytext+=ze[0],this.match+=ze[0],this.matches=ze,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ze[0].length),this.matched+=ze[0],Le=this.performAction.call(this,this.yy,this,Xe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Le)return Le;if(this._backtrack){for(var Ne in qe)this[Ne]=qe[Ne];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ze,Xe,Le,Re;this._more||(this.yytext="",this.match="");for(var qe=this._currentRules(),Ne=0;NeXe[0].length)){if(Xe=Le,Re=Ne,this.options.backtrack_lexer){if(ze=this.test_match(Le,qe[Ne]),ze!==!1)return ze;if(this._backtrack){Xe=!1;continue}else return!1}else if(!this.options.flex)break}return Xe?(ze=this.test_match(Xe,qe[Re]),ze!==!1?ze:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var Xe=this.next();return Xe||this.lex()},"lex"),begin:S(function(Xe){this.conditionStack.push(Xe)},"begin"),popState:S(function(){var Xe=this.conditionStack.length-1;return Xe>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(Xe){return Xe=this.conditionStack.length-1-Math.abs(Xe||0),Xe>=0?this.conditionStack[Xe]:"INITIAL"},"topState"),pushState:S(function(Xe){this.begin(Xe)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(Xe,Le,Re,qe){switch(Re){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 72;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 61;case 25:return 58;case 26:return 58;case 27:return 62;case 28:break;case 29:return this.popState(),19;case 30:return Le.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 65;case 42:return 67;case 43:return 67;case 44:return 67;case 45:return 65;case 46:return 65;case 47:return 66;case 48:return 66;case 49:return 66;case 50:return 66;case 51:return 66;case 52:return 67;case 53:return 66;case 54:return 67;case 55:return 68;case 56:return 68;case 57:return 51;case 58:return 68;case 59:return 68;case 60:return 68;case 61:return 52;case 62:return 48;case 63:return 68;case 64:return 65;case 65:return 66;case 66:return 67;case 67:return 69;case 68:return 70;case 69:return 71;case 70:return 71;case 71:return 70;case 72:return 70;case 73:return 70;case 74:return 41;case 75:return 47;case 76:return 40;case 77:return Le.yytext[0];case 78:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,74,75],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,76,77,78],inclusive:!0}}};return Ge})();se.lexer=xe;function Te(){this.yy={}}return S(Te,"Parser"),Te.prototype=se,se.Parser=Te,new Te})();qB.parser=qB;var e_t=qB,k1,t_t=(k1=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=ai,this.getAccTitle=yi,this.setAccDescription=vi,this.getAccDescription=_i,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.getConfig=S(()=>Ke().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}addEntity(e,r=""){return this.entities.has(e)?!this.entities.get(e)?.alias&&r&&(this.entities.get(e).alias=r,ge.info(`Add alias '${r}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:r,shape:"erBox",look:Ke().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),ge.info("Added new entity :",e)),this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,r){const n=this.addEntity(e);let i;for(i=r.length-1;i>=0;i--)r[i].keys||(r[i].keys=[]),r[i].comment||(r[i].comment=""),n.attributes.push(r[i]),ge.debug("Added attribute ",r[i].name)}addRelationship(e,r,n,i){const a=this.entities.get(e),s=this.entities.get(n);if(!a||!s)return;const o={entityA:a.id,roleA:r,entityB:s.id,relSpec:i};this.relationships.push(o),ge.debug("Added new relationship :",o)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let r=[];for(const n of e){const i=this.classes.get(n);i?.styles&&(r=[...r,...i.styles??[]].map(a=>a.trim())),i?.textStyles&&(r=[...r,...i.textStyles??[]].map(a=>a.trim()))}return r}addCssStyles(e,r){for(const n of e){const i=this.entities.get(n);if(!r||!i)return;for(const a of r)i.cssStyles.push(a)}}addClass(e,r){e.forEach(n=>{let i=this.classes.get(n);i===void 0&&(i={id:n,styles:[],textStyles:[]},this.classes.set(n,i)),r&&r.forEach(function(a){if(/color/.exec(a)){const s=a.replace("fill","bgFill");i.textStyles.push(s)}i.styles.push(a)})})}setClass(e,r){for(const n of e){const i=this.entities.get(n);if(i)for(const a of r)i.cssClasses+=" "+a}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],oi()}getData(){const e=[],r=[],n=Ke();let i=0;for(const s of this.entities.keys()){const o=this.entities.get(s);o&&(o.cssCompiledStyles=this.getCompiledStyles(o.cssClasses.split(" ")),o.colorIndex=i++,e.push(o))}let a=0;for(const s of this.relationships){const o={id:Vm(s.entityA,s.entityB,{prefix:"id",counter:a++}),type:"normal",curve:"basis",start:s.entityA,end:s.entityB,label:s.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:s.relSpec.cardB.toLowerCase(),arrowTypeEnd:s.relSpec.cardA.toLowerCase(),pattern:s.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:n.look,labelType:"markdown"};r.push(o)}return{nodes:e,edges:r,other:{},config:n,direction:"TB"}}},S(k1,"ErDB"),k1),N2e={};uk(N2e,{draw:()=>r_t});var r_t=S(async function(t,e,r,n){ge.info("REF0:"),ge.info("Drawing er diagram (unified)",e);const{securityLevel:i,er:a,layout:s}=Ke(),o=n.db.getData(),l=o2(e,i);o.type=n.type,o.layoutAlgorithm=uT(s),o.config.flowchart.nodeSpacing=a?.nodeSpacing||140,o.config.flowchart.rankSpacing=a?.rankSpacing||80,o.direction=n.db.getDirection();const{config:u}=o,{look:d}=u;d==="neo"?o.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:o.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],o.diagramId=e,await Yb(o,l),o.layoutAlgorithm==="elk"&&l.select(".edges").lower();const h=l.selectAll('[id*="-background"]');Array.from(h).length>0&&h.each(function(){const p=At(this),m=p.attr("id").replace("-background",""),y=l.select(`#${CSS.escape(m)}`);if(!y.empty()){const v=y.attr("transform");p.attr("transform",v)}});const f=8;Wr.insertTitle(l,"erDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),sg(l,f,"erDiagram",a?.useMaxWidth??!0)},"draw"),Mae=S((t,e)=>{const r=hU,n=r(t,"r"),i=r(t,"g"),a=r(t,"b");return Jl(n,i,a,e)},"fade"),x5=new Set(["redux-color","redux-dark-color"]),n_t=S(t=>{const{theme:e,look:r,bkgColorArray:n,borderColorArray:i}=t;if(!x5.has(e))return"";const a=n?.length>0;let s="";for(let o=0;o0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(Xe){return Xe=this.conditionStack.length-1-Math.abs(Xe||0),Xe>=0?this.conditionStack[Xe]:"INITIAL"},"topState"),pushState:S(function(Xe){this.begin(Xe)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(Xe,Le,Re,qe){switch(Re){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 72;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 61;case 25:return 58;case 26:return 58;case 27:return 62;case 28:break;case 29:return this.popState(),19;case 30:return Le.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 65;case 42:return 67;case 43:return 67;case 44:return 67;case 45:return 65;case 46:return 65;case 47:return 66;case 48:return 66;case 49:return 66;case 50:return 66;case 51:return 66;case 52:return 67;case 53:return 66;case 54:return 67;case 55:return 68;case 56:return 68;case 57:return 51;case 58:return 68;case 59:return 68;case 60:return 68;case 61:return 52;case 62:return 48;case 63:return 68;case 64:return 65;case 65:return 66;case 66:return 67;case 67:return 69;case 68:return 70;case 69:return 71;case 70:return 71;case 71:return 70;case 72:return 70;case 73:return 70;case 74:return 41;case 75:return 47;case 76:return 40;case 77:return Le.yytext[0];case 78:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,74,75],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,76,77,78],inclusive:!0}}};return Ge})();se.lexer=xe;function Te(){this.yy={}}return S(Te,"Parser"),Te.prototype=se,se.Parser=Te,new Te})();qB.parser=qB;var t_t=qB,k1,r_t=(k1=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=ai,this.getAccTitle=yi,this.setAccDescription=vi,this.getAccDescription=_i,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.getConfig=S(()=>Ke().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}addEntity(e,r=""){return this.entities.has(e)?!this.entities.get(e)?.alias&&r&&(this.entities.get(e).alias=r,ge.info(`Add alias '${r}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:r,shape:"erBox",look:Ke().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),ge.info("Added new entity :",e)),this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,r){const n=this.addEntity(e);let i;for(i=r.length-1;i>=0;i--)r[i].keys||(r[i].keys=[]),r[i].comment||(r[i].comment=""),n.attributes.push(r[i]),ge.debug("Added attribute ",r[i].name)}addRelationship(e,r,n,i){const a=this.entities.get(e),s=this.entities.get(n);if(!a||!s)return;const o={entityA:a.id,roleA:r,entityB:s.id,relSpec:i};this.relationships.push(o),ge.debug("Added new relationship :",o)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let r=[];for(const n of e){const i=this.classes.get(n);i?.styles&&(r=[...r,...i.styles??[]].map(a=>a.trim())),i?.textStyles&&(r=[...r,...i.textStyles??[]].map(a=>a.trim()))}return r}addCssStyles(e,r){for(const n of e){const i=this.entities.get(n);if(!r||!i)return;for(const a of r)i.cssStyles.push(a)}}addClass(e,r){e.forEach(n=>{let i=this.classes.get(n);i===void 0&&(i={id:n,styles:[],textStyles:[]},this.classes.set(n,i)),r&&r.forEach(function(a){if(/color/.exec(a)){const s=a.replace("fill","bgFill");i.textStyles.push(s)}i.styles.push(a)})})}setClass(e,r){for(const n of e){const i=this.entities.get(n);if(i)for(const a of r)i.cssClasses+=" "+a}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],oi()}getData(){const e=[],r=[],n=Ke();let i=0;for(const s of this.entities.keys()){const o=this.entities.get(s);o&&(o.cssCompiledStyles=this.getCompiledStyles(o.cssClasses.split(" ")),o.colorIndex=i++,e.push(o))}let a=0;for(const s of this.relationships){const o={id:Vm(s.entityA,s.entityB,{prefix:"id",counter:a++}),type:"normal",curve:"basis",start:s.entityA,end:s.entityB,label:s.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:s.relSpec.cardB.toLowerCase(),arrowTypeEnd:s.relSpec.cardA.toLowerCase(),pattern:s.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:n.look,labelType:"markdown"};r.push(o)}return{nodes:e,edges:r,other:{},config:n,direction:"TB"}}},S(k1,"ErDB"),k1),N2e={};uk(N2e,{draw:()=>n_t});var n_t=S(async function(t,e,r,n){ge.info("REF0:"),ge.info("Drawing er diagram (unified)",e);const{securityLevel:i,er:a,layout:s}=Ke(),o=n.db.getData(),l=o2(e,i);o.type=n.type,o.layoutAlgorithm=uT(s),o.config.flowchart.nodeSpacing=a?.nodeSpacing||140,o.config.flowchart.rankSpacing=a?.rankSpacing||80,o.direction=n.db.getDirection();const{config:u}=o,{look:d}=u;d==="neo"?o.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:o.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],o.diagramId=e,await Yb(o,l),o.layoutAlgorithm==="elk"&&l.select(".edges").lower();const h=l.selectAll('[id*="-background"]');Array.from(h).length>0&&h.each(function(){const p=At(this),m=p.attr("id").replace("-background",""),y=l.select(`#${CSS.escape(m)}`);if(!y.empty()){const v=y.attr("transform");p.attr("transform",v)}});const f=8;Wr.insertTitle(l,"erDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),sg(l,f,"erDiagram",a?.useMaxWidth??!0)},"draw"),Mae=S((t,e)=>{const r=hU,n=r(t,"r"),i=r(t,"g"),a=r(t,"b");return Jl(n,i,a,e)},"fade"),x5=new Set(["redux-color","redux-dark-color"]),i_t=S(t=>{const{theme:e,look:r,bkgColorArray:n,borderColorArray:i}=t;if(!x5.has(e))return"";const a=n?.length>0;let s="";for(let o=0;o{const{look:e,theme:r,erEdgeLabelBackground:n,strokeWidth:i}=t;return` - ${n_t(t)} + `;return s},"genColor"),a_t=S(t=>{const{look:e,theme:r,erEdgeLabelBackground:n,strokeWidth:i}=t;return` + ${i_t(t)} .entityBox { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; @@ -5239,15 +5239,15 @@ Expecting `+he.join(", ")+", got '"+(this.terminals_[V]||V)+"'":le="Parse error [data-look=neo].labelBkg { background-color: ${Mae(t.tertiaryColor,.5)}; } -`},"getStyles"),a_t=i_t,s_t={parser:e_t,get db(){return new t_t},renderer:N2e,styles:a_t};const o_t=Object.freeze(Object.defineProperty({__proto__:null,diagram:s_t},Symbol.toStringTag,{value:"Module"}));function wu(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}S(wu,"populateCommonDb");var A1,uY=(A1=class{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}},S(A1,"ImperativeState"),A1),l_t=Object.create,DT=Object.defineProperty,c_t=Object.getOwnPropertyDescriptor,dY=Object.getOwnPropertyNames,u_t=Object.getPrototypeOf,d_t=Object.prototype.hasOwnProperty,k=(t,e)=>DT(t,"name",{value:e,configurable:!0}),h_t=(t,e)=>function(){return t&&(e=(0,t[dY(t)[0]])(t=0)),e},Zr=(t,e)=>function(){return e||(0,t[dY(t)[0]])((e={exports:{}}).exports,e),e.exports},Uh=(t,e)=>{for(var r in e)DT(t,r,{get:e[r],enumerable:!0})},hY=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of dY(e))!d_t.call(t,i)&&i!==r&&DT(t,i,{get:()=>e[i],enumerable:!(n=c_t(e,i))||n.enumerable});return t},G7=(t,e,r)=>(hY(t,e,"default"),r),fY=(t,e,r)=>(r=t!=null?l_t(u_t(t)):{},hY(DT(r,"default",{value:t,enumerable:!0}),t)),pY=t=>hY(DT({},"__esModule",{value:!0}),t),q7={};Uh(q7,{AnnotatedTextEdit:()=>Vu,ChangeAnnotation:()=>Cf,ChangeAnnotationIdentifier:()=>Ya,CodeAction:()=>TF,CodeActionContext:()=>SF,CodeActionKind:()=>EF,CodeActionTriggerKind:()=>wE,CodeDescription:()=>JB,CodeLens:()=>xF,Color:()=>w5,ColorInformation:()=>WB,ColorPresentation:()=>KB,Command:()=>xf,CompletionItem:()=>cF,CompletionItemKind:()=>nF,CompletionItemLabelDetails:()=>lF,CompletionItemTag:()=>aF,CompletionList:()=>uF,CreateFile:()=>sm,DeleteFile:()=>lm,Diagnostic:()=>SE,DiagnosticRelatedInformation:()=>k5,DiagnosticSeverity:()=>QB,DiagnosticTag:()=>ZB,DocumentHighlight:()=>gF,DocumentHighlightKind:()=>pF,DocumentLink:()=>wF,DocumentSymbol:()=>bF,DocumentUri:()=>YB,EOL:()=>O2e,FoldingRange:()=>jB,FoldingRangeKind:()=>XB,FormattingOptions:()=>CF,Hover:()=>dF,InlayHint:()=>MF,InlayHintKind:()=>N5,InlayHintLabelPart:()=>I5,InlineCompletionContext:()=>UF,InlineCompletionItem:()=>BF,InlineCompletionList:()=>FF,InlineCompletionTriggerKind:()=>$F,InlineValueContext:()=>LF,InlineValueEvaluatableExpression:()=>DF,InlineValueText:()=>IF,InlineValueVariableLookup:()=>OF,InsertReplaceEdit:()=>sF,InsertTextFormat:()=>iF,InsertTextMode:()=>oF,Location:()=>EE,LocationLink:()=>VB,MarkedString:()=>CE,MarkupContent:()=>cm,MarkupKind:()=>R5,OptionalVersionedTextDocumentIdentifier:()=>xE,ParameterInformation:()=>hF,Position:()=>xn,Range:()=>dn,RenameFile:()=>om,SelectedCompletionInfo:()=>zF,SelectionRange:()=>kF,SemanticTokenModifiers:()=>RF,SemanticTokenTypes:()=>AF,SemanticTokens:()=>NF,SignatureInformation:()=>fF,StringValue:()=>PF,SymbolInformation:()=>vF,SymbolKind:()=>mF,SymbolTag:()=>yF,TextDocument:()=>qF,TextDocumentEdit:()=>TE,TextDocumentIdentifier:()=>eF,TextDocumentItem:()=>rF,TextEdit:()=>Nc,URI:()=>C5,VersionedTextDocumentIdentifier:()=>tF,WorkspaceChange:()=>I2e,WorkspaceEdit:()=>A5,WorkspaceFolder:()=>GF,WorkspaceSymbol:()=>_F,integer:()=>HB,uinteger:()=>bE});var YB,C5,HB,bE,xn,dn,EE,VB,w5,WB,KB,XB,jB,k5,QB,ZB,JB,SE,xf,Nc,Cf,Ya,Vu,TE,sm,om,lm,A5,V2,SL,I2e,eF,tF,xE,rF,R5,cm,nF,iF,aF,sF,oF,lF,cF,uF,CE,dF,hF,fF,pF,gF,mF,yF,vF,_F,bF,EF,wE,SF,TF,xF,CF,wF,kF,AF,RF,NF,IF,OF,DF,LF,N5,I5,MF,PF,BF,FF,$F,zF,UF,GF,O2e,qF,Pae,ht,LT=h_t({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(i){function a(s){return typeof s=="string"}k(a,"is"),i.is=a})(YB||(YB={})),(function(i){function a(s){return typeof s=="string"}k(a,"is"),i.is=a})(C5||(C5={})),(function(i){i.MIN_VALUE=-2147483648,i.MAX_VALUE=2147483647;function a(s){return typeof s=="number"&&i.MIN_VALUE<=s&&s<=i.MAX_VALUE}k(a,"is"),i.is=a})(HB||(HB={})),(function(i){i.MIN_VALUE=0,i.MAX_VALUE=2147483647;function a(s){return typeof s=="number"&&i.MIN_VALUE<=s&&s<=i.MAX_VALUE}k(a,"is"),i.is=a})(bE||(bE={})),(function(i){function a(o,l){return o===Number.MAX_VALUE&&(o=bE.MAX_VALUE),l===Number.MAX_VALUE&&(l=bE.MAX_VALUE),{line:o,character:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.objectLiteral(l)&&ht.uinteger(l.line)&&ht.uinteger(l.character)}k(s,"is"),i.is=s})(xn||(xn={})),(function(i){function a(o,l,u,d){if(ht.uinteger(o)&&ht.uinteger(l)&&ht.uinteger(u)&&ht.uinteger(d))return{start:xn.create(o,l),end:xn.create(u,d)};if(xn.is(o)&&xn.is(l))return{start:o,end:l};throw new Error(`Range#create called with invalid arguments[${o}, ${l}, ${u}, ${d}]`)}k(a,"create"),i.create=a;function s(o){let l=o;return ht.objectLiteral(l)&&xn.is(l.start)&&xn.is(l.end)}k(s,"is"),i.is=s})(dn||(dn={})),(function(i){function a(o,l){return{uri:o,range:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.objectLiteral(l)&&dn.is(l.range)&&(ht.string(l.uri)||ht.undefined(l.uri))}k(s,"is"),i.is=s})(EE||(EE={})),(function(i){function a(o,l,u,d){return{targetUri:o,targetRange:l,targetSelectionRange:u,originSelectionRange:d}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.objectLiteral(l)&&dn.is(l.targetRange)&&ht.string(l.targetUri)&&dn.is(l.targetSelectionRange)&&(dn.is(l.originSelectionRange)||ht.undefined(l.originSelectionRange))}k(s,"is"),i.is=s})(VB||(VB={})),(function(i){function a(o,l,u,d){return{red:o,green:l,blue:u,alpha:d}}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&ht.numberRange(l.red,0,1)&&ht.numberRange(l.green,0,1)&&ht.numberRange(l.blue,0,1)&&ht.numberRange(l.alpha,0,1)}k(s,"is"),i.is=s})(w5||(w5={})),(function(i){function a(o,l){return{range:o,color:l}}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&dn.is(l.range)&&w5.is(l.color)}k(s,"is"),i.is=s})(WB||(WB={})),(function(i){function a(o,l,u){return{label:o,textEdit:l,additionalTextEdits:u}}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&ht.string(l.label)&&(ht.undefined(l.textEdit)||Nc.is(l))&&(ht.undefined(l.additionalTextEdits)||ht.typedArray(l.additionalTextEdits,Nc.is))}k(s,"is"),i.is=s})(KB||(KB={})),(function(i){i.Comment="comment",i.Imports="imports",i.Region="region"})(XB||(XB={})),(function(i){function a(o,l,u,d,h,f){const p={startLine:o,endLine:l};return ht.defined(u)&&(p.startCharacter=u),ht.defined(d)&&(p.endCharacter=d),ht.defined(h)&&(p.kind=h),ht.defined(f)&&(p.collapsedText=f),p}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&ht.uinteger(l.startLine)&&ht.uinteger(l.startLine)&&(ht.undefined(l.startCharacter)||ht.uinteger(l.startCharacter))&&(ht.undefined(l.endCharacter)||ht.uinteger(l.endCharacter))&&(ht.undefined(l.kind)||ht.string(l.kind))}k(s,"is"),i.is=s})(jB||(jB={})),(function(i){function a(o,l){return{location:o,message:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&EE.is(l.location)&&ht.string(l.message)}k(s,"is"),i.is=s})(k5||(k5={})),(function(i){i.Error=1,i.Warning=2,i.Information=3,i.Hint=4})(QB||(QB={})),(function(i){i.Unnecessary=1,i.Deprecated=2})(ZB||(ZB={})),(function(i){function a(s){const o=s;return ht.objectLiteral(o)&&ht.string(o.href)}k(a,"is"),i.is=a})(JB||(JB={})),(function(i){function a(o,l,u,d,h,f){let p={range:o,message:l};return ht.defined(u)&&(p.severity=u),ht.defined(d)&&(p.code=d),ht.defined(h)&&(p.source=h),ht.defined(f)&&(p.relatedInformation=f),p}k(a,"create"),i.create=a;function s(o){var l;let u=o;return ht.defined(u)&&dn.is(u.range)&&ht.string(u.message)&&(ht.number(u.severity)||ht.undefined(u.severity))&&(ht.integer(u.code)||ht.string(u.code)||ht.undefined(u.code))&&(ht.undefined(u.codeDescription)||ht.string((l=u.codeDescription)===null||l===void 0?void 0:l.href))&&(ht.string(u.source)||ht.undefined(u.source))&&(ht.undefined(u.relatedInformation)||ht.typedArray(u.relatedInformation,k5.is))}k(s,"is"),i.is=s})(SE||(SE={})),(function(i){function a(o,l,...u){let d={title:o,command:l};return ht.defined(u)&&u.length>0&&(d.arguments=u),d}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.string(l.title)&&ht.string(l.command)}k(s,"is"),i.is=s})(xf||(xf={})),(function(i){function a(u,d){return{range:u,newText:d}}k(a,"replace"),i.replace=a;function s(u,d){return{range:{start:u,end:u},newText:d}}k(s,"insert"),i.insert=s;function o(u){return{range:u,newText:""}}k(o,"del"),i.del=o;function l(u){const d=u;return ht.objectLiteral(d)&&ht.string(d.newText)&&dn.is(d.range)}k(l,"is"),i.is=l})(Nc||(Nc={})),(function(i){function a(o,l,u){const d={label:o};return l!==void 0&&(d.needsConfirmation=l),u!==void 0&&(d.description=u),d}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&ht.string(l.label)&&(ht.boolean(l.needsConfirmation)||l.needsConfirmation===void 0)&&(ht.string(l.description)||l.description===void 0)}k(s,"is"),i.is=s})(Cf||(Cf={})),(function(i){function a(s){const o=s;return ht.string(o)}k(a,"is"),i.is=a})(Ya||(Ya={})),(function(i){function a(u,d,h){return{range:u,newText:d,annotationId:h}}k(a,"replace"),i.replace=a;function s(u,d,h){return{range:{start:u,end:u},newText:d,annotationId:h}}k(s,"insert"),i.insert=s;function o(u,d){return{range:u,newText:"",annotationId:d}}k(o,"del"),i.del=o;function l(u){const d=u;return Nc.is(d)&&(Cf.is(d.annotationId)||Ya.is(d.annotationId))}k(l,"is"),i.is=l})(Vu||(Vu={})),(function(i){function a(o,l){return{textDocument:o,edits:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&xE.is(l.textDocument)&&Array.isArray(l.edits)}k(s,"is"),i.is=s})(TE||(TE={})),(function(i){function a(o,l,u){let d={kind:"create",uri:o};return l!==void 0&&(l.overwrite!==void 0||l.ignoreIfExists!==void 0)&&(d.options=l),u!==void 0&&(d.annotationId=u),d}k(a,"create"),i.create=a;function s(o){let l=o;return l&&l.kind==="create"&&ht.string(l.uri)&&(l.options===void 0||(l.options.overwrite===void 0||ht.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||ht.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Ya.is(l.annotationId))}k(s,"is"),i.is=s})(sm||(sm={})),(function(i){function a(o,l,u,d){let h={kind:"rename",oldUri:o,newUri:l};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(h.options=u),d!==void 0&&(h.annotationId=d),h}k(a,"create"),i.create=a;function s(o){let l=o;return l&&l.kind==="rename"&&ht.string(l.oldUri)&&ht.string(l.newUri)&&(l.options===void 0||(l.options.overwrite===void 0||ht.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||ht.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Ya.is(l.annotationId))}k(s,"is"),i.is=s})(om||(om={})),(function(i){function a(o,l,u){let d={kind:"delete",uri:o};return l!==void 0&&(l.recursive!==void 0||l.ignoreIfNotExists!==void 0)&&(d.options=l),u!==void 0&&(d.annotationId=u),d}k(a,"create"),i.create=a;function s(o){let l=o;return l&&l.kind==="delete"&&ht.string(l.uri)&&(l.options===void 0||(l.options.recursive===void 0||ht.boolean(l.options.recursive))&&(l.options.ignoreIfNotExists===void 0||ht.boolean(l.options.ignoreIfNotExists)))&&(l.annotationId===void 0||Ya.is(l.annotationId))}k(s,"is"),i.is=s})(lm||(lm={})),(function(i){function a(s){let o=s;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(l=>ht.string(l.kind)?sm.is(l)||om.is(l)||lm.is(l):TE.is(l)))}k(a,"is"),i.is=a})(A5||(A5={})),V2=(t=class{constructor(a,s){this.edits=a,this.changeAnnotations=s}insert(a,s,o){let l,u;if(o===void 0?l=Nc.insert(a,s):Ya.is(o)?(u=o,l=Vu.insert(a,s,o)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(o),l=Vu.insert(a,s,u)),this.edits.push(l),u!==void 0)return u}replace(a,s,o){let l,u;if(o===void 0?l=Nc.replace(a,s):Ya.is(o)?(u=o,l=Vu.replace(a,s,o)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(o),l=Vu.replace(a,s,u)),this.edits.push(l),u!==void 0)return u}delete(a,s){let o,l;if(s===void 0?o=Nc.del(a):Ya.is(s)?(l=s,o=Vu.del(a,s)):(this.assertChangeAnnotations(this.changeAnnotations),l=this.changeAnnotations.manage(s),o=Vu.del(a,l)),this.edits.push(o),l!==void 0)return l}add(a){this.edits.push(a)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(a){if(a===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},k(t,"TextEditChangeImpl"),t),SL=(e=class{constructor(a){this._annotations=a===void 0?Object.create(null):a,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(a,s){let o;if(Ya.is(a)?o=a:(o=this.nextId(),s=a),this._annotations[o]!==void 0)throw new Error(`Id ${o} is already in use.`);if(s===void 0)throw new Error(`No annotation provided for id ${o}`);return this._annotations[o]=s,this._size++,o}nextId(){return this._counter++,this._counter.toString()}},k(e,"ChangeAnnotations"),e),I2e=(r=class{constructor(a){this._textEditChanges=Object.create(null),a!==void 0?(this._workspaceEdit=a,a.documentChanges?(this._changeAnnotations=new SL(a.changeAnnotations),a.changeAnnotations=this._changeAnnotations.all(),a.documentChanges.forEach(s=>{if(TE.is(s)){const o=new V2(s.edits,this._changeAnnotations);this._textEditChanges[s.textDocument.uri]=o}})):a.changes&&Object.keys(a.changes).forEach(s=>{const o=new V2(a.changes[s]);this._textEditChanges[s]=o})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(a){if(xE.is(a)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const s={uri:a.uri,version:a.version};let o=this._textEditChanges[s.uri];if(!o){const l=[],u={textDocument:s,edits:l};this._workspaceEdit.documentChanges.push(u),o=new V2(l,this._changeAnnotations),this._textEditChanges[s.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let s=this._textEditChanges[a];if(!s){let o=[];this._workspaceEdit.changes[a]=o,s=new V2(o),this._textEditChanges[a]=s}return s}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new SL,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(a,s,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;Cf.is(s)||Ya.is(s)?l=s:o=s;let u,d;if(l===void 0?u=sm.create(a,o):(d=Ya.is(l)?l:this._changeAnnotations.manage(l),u=sm.create(a,o,d)),this._workspaceEdit.documentChanges.push(u),d!==void 0)return d}renameFile(a,s,o,l){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Cf.is(o)||Ya.is(o)?u=o:l=o;let d,h;if(u===void 0?d=om.create(a,s,l):(h=Ya.is(u)?u:this._changeAnnotations.manage(u),d=om.create(a,s,l,h)),this._workspaceEdit.documentChanges.push(d),h!==void 0)return h}deleteFile(a,s,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;Cf.is(s)||Ya.is(s)?l=s:o=s;let u,d;if(l===void 0?u=lm.create(a,o):(d=Ya.is(l)?l:this._changeAnnotations.manage(l),u=lm.create(a,o,d)),this._workspaceEdit.documentChanges.push(u),d!==void 0)return d}},k(r,"WorkspaceChange"),r),(function(i){function a(o){return{uri:o}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)}k(s,"is"),i.is=s})(eF||(eF={})),(function(i){function a(o,l){return{uri:o,version:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)&&ht.integer(l.version)}k(s,"is"),i.is=s})(tF||(tF={})),(function(i){function a(o,l){return{uri:o,version:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)&&(l.version===null||ht.integer(l.version))}k(s,"is"),i.is=s})(xE||(xE={})),(function(i){function a(o,l,u,d){return{uri:o,languageId:l,version:u,text:d}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)&&ht.string(l.languageId)&&ht.integer(l.version)&&ht.string(l.text)}k(s,"is"),i.is=s})(rF||(rF={})),(function(i){i.PlainText="plaintext",i.Markdown="markdown";function a(s){const o=s;return o===i.PlainText||o===i.Markdown}k(a,"is"),i.is=a})(R5||(R5={})),(function(i){function a(s){const o=s;return ht.objectLiteral(s)&&R5.is(o.kind)&&ht.string(o.value)}k(a,"is"),i.is=a})(cm||(cm={})),(function(i){i.Text=1,i.Method=2,i.Function=3,i.Constructor=4,i.Field=5,i.Variable=6,i.Class=7,i.Interface=8,i.Module=9,i.Property=10,i.Unit=11,i.Value=12,i.Enum=13,i.Keyword=14,i.Snippet=15,i.Color=16,i.File=17,i.Reference=18,i.Folder=19,i.EnumMember=20,i.Constant=21,i.Struct=22,i.Event=23,i.Operator=24,i.TypeParameter=25})(nF||(nF={})),(function(i){i.PlainText=1,i.Snippet=2})(iF||(iF={})),(function(i){i.Deprecated=1})(aF||(aF={})),(function(i){function a(o,l,u){return{newText:o,insert:l,replace:u}}k(a,"create"),i.create=a;function s(o){const l=o;return l&&ht.string(l.newText)&&dn.is(l.insert)&&dn.is(l.replace)}k(s,"is"),i.is=s})(sF||(sF={})),(function(i){i.asIs=1,i.adjustIndentation=2})(oF||(oF={})),(function(i){function a(s){const o=s;return o&&(ht.string(o.detail)||o.detail===void 0)&&(ht.string(o.description)||o.description===void 0)}k(a,"is"),i.is=a})(lF||(lF={})),(function(i){function a(s){return{label:s}}k(a,"create"),i.create=a})(cF||(cF={})),(function(i){function a(s,o){return{items:s||[],isIncomplete:!!o}}k(a,"create"),i.create=a})(uF||(uF={})),(function(i){function a(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}k(a,"fromPlainText"),i.fromPlainText=a;function s(o){const l=o;return ht.string(l)||ht.objectLiteral(l)&&ht.string(l.language)&&ht.string(l.value)}k(s,"is"),i.is=s})(CE||(CE={})),(function(i){function a(s){let o=s;return!!o&&ht.objectLiteral(o)&&(cm.is(o.contents)||CE.is(o.contents)||ht.typedArray(o.contents,CE.is))&&(s.range===void 0||dn.is(s.range))}k(a,"is"),i.is=a})(dF||(dF={})),(function(i){function a(s,o){return o?{label:s,documentation:o}:{label:s}}k(a,"create"),i.create=a})(hF||(hF={})),(function(i){function a(s,o,...l){let u={label:s};return ht.defined(o)&&(u.documentation=o),ht.defined(l)?u.parameters=l:u.parameters=[],u}k(a,"create"),i.create=a})(fF||(fF={})),(function(i){i.Text=1,i.Read=2,i.Write=3})(pF||(pF={})),(function(i){function a(s,o){let l={range:s};return ht.number(o)&&(l.kind=o),l}k(a,"create"),i.create=a})(gF||(gF={})),(function(i){i.File=1,i.Module=2,i.Namespace=3,i.Package=4,i.Class=5,i.Method=6,i.Property=7,i.Field=8,i.Constructor=9,i.Enum=10,i.Interface=11,i.Function=12,i.Variable=13,i.Constant=14,i.String=15,i.Number=16,i.Boolean=17,i.Array=18,i.Object=19,i.Key=20,i.Null=21,i.EnumMember=22,i.Struct=23,i.Event=24,i.Operator=25,i.TypeParameter=26})(mF||(mF={})),(function(i){i.Deprecated=1})(yF||(yF={})),(function(i){function a(s,o,l,u,d){let h={name:s,kind:o,location:{uri:u,range:l}};return d&&(h.containerName=d),h}k(a,"create"),i.create=a})(vF||(vF={})),(function(i){function a(s,o,l,u){return u!==void 0?{name:s,kind:o,location:{uri:l,range:u}}:{name:s,kind:o,location:{uri:l}}}k(a,"create"),i.create=a})(_F||(_F={})),(function(i){function a(o,l,u,d,h,f){let p={name:o,detail:l,kind:u,range:d,selectionRange:h};return f!==void 0&&(p.children=f),p}k(a,"create"),i.create=a;function s(o){let l=o;return l&&ht.string(l.name)&&ht.number(l.kind)&&dn.is(l.range)&&dn.is(l.selectionRange)&&(l.detail===void 0||ht.string(l.detail))&&(l.deprecated===void 0||ht.boolean(l.deprecated))&&(l.children===void 0||Array.isArray(l.children))&&(l.tags===void 0||Array.isArray(l.tags))}k(s,"is"),i.is=s})(bF||(bF={})),(function(i){i.Empty="",i.QuickFix="quickfix",i.Refactor="refactor",i.RefactorExtract="refactor.extract",i.RefactorInline="refactor.inline",i.RefactorRewrite="refactor.rewrite",i.Source="source",i.SourceOrganizeImports="source.organizeImports",i.SourceFixAll="source.fixAll"})(EF||(EF={})),(function(i){i.Invoked=1,i.Automatic=2})(wE||(wE={})),(function(i){function a(o,l,u){let d={diagnostics:o};return l!=null&&(d.only=l),u!=null&&(d.triggerKind=u),d}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.typedArray(l.diagnostics,SE.is)&&(l.only===void 0||ht.typedArray(l.only,ht.string))&&(l.triggerKind===void 0||l.triggerKind===wE.Invoked||l.triggerKind===wE.Automatic)}k(s,"is"),i.is=s})(SF||(SF={})),(function(i){function a(o,l,u){let d={title:o},h=!0;return typeof l=="string"?(h=!1,d.kind=l):xf.is(l)?d.command=l:d.edit=l,h&&u!==void 0&&(d.kind=u),d}k(a,"create"),i.create=a;function s(o){let l=o;return l&&ht.string(l.title)&&(l.diagnostics===void 0||ht.typedArray(l.diagnostics,SE.is))&&(l.kind===void 0||ht.string(l.kind))&&(l.edit!==void 0||l.command!==void 0)&&(l.command===void 0||xf.is(l.command))&&(l.isPreferred===void 0||ht.boolean(l.isPreferred))&&(l.edit===void 0||A5.is(l.edit))}k(s,"is"),i.is=s})(TF||(TF={})),(function(i){function a(o,l){let u={range:o};return ht.defined(l)&&(u.data=l),u}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&dn.is(l.range)&&(ht.undefined(l.command)||xf.is(l.command))}k(s,"is"),i.is=s})(xF||(xF={})),(function(i){function a(o,l){return{tabSize:o,insertSpaces:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.uinteger(l.tabSize)&&ht.boolean(l.insertSpaces)}k(s,"is"),i.is=s})(CF||(CF={})),(function(i){function a(o,l,u){return{range:o,target:l,data:u}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&dn.is(l.range)&&(ht.undefined(l.target)||ht.string(l.target))}k(s,"is"),i.is=s})(wF||(wF={})),(function(i){function a(o,l){return{range:o,parent:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.objectLiteral(l)&&dn.is(l.range)&&(l.parent===void 0||i.is(l.parent))}k(s,"is"),i.is=s})(kF||(kF={})),(function(i){i.namespace="namespace",i.type="type",i.class="class",i.enum="enum",i.interface="interface",i.struct="struct",i.typeParameter="typeParameter",i.parameter="parameter",i.variable="variable",i.property="property",i.enumMember="enumMember",i.event="event",i.function="function",i.method="method",i.macro="macro",i.keyword="keyword",i.modifier="modifier",i.comment="comment",i.string="string",i.number="number",i.regexp="regexp",i.operator="operator",i.decorator="decorator"})(AF||(AF={})),(function(i){i.declaration="declaration",i.definition="definition",i.readonly="readonly",i.static="static",i.deprecated="deprecated",i.abstract="abstract",i.async="async",i.modification="modification",i.documentation="documentation",i.defaultLibrary="defaultLibrary"})(RF||(RF={})),(function(i){function a(s){const o=s;return ht.objectLiteral(o)&&(o.resultId===void 0||typeof o.resultId=="string")&&Array.isArray(o.data)&&(o.data.length===0||typeof o.data[0]=="number")}k(a,"is"),i.is=a})(NF||(NF={})),(function(i){function a(o,l){return{range:o,text:l}}k(a,"create"),i.create=a;function s(o){const l=o;return l!=null&&dn.is(l.range)&&ht.string(l.text)}k(s,"is"),i.is=s})(IF||(IF={})),(function(i){function a(o,l,u){return{range:o,variableName:l,caseSensitiveLookup:u}}k(a,"create"),i.create=a;function s(o){const l=o;return l!=null&&dn.is(l.range)&&ht.boolean(l.caseSensitiveLookup)&&(ht.string(l.variableName)||l.variableName===void 0)}k(s,"is"),i.is=s})(OF||(OF={})),(function(i){function a(o,l){return{range:o,expression:l}}k(a,"create"),i.create=a;function s(o){const l=o;return l!=null&&dn.is(l.range)&&(ht.string(l.expression)||l.expression===void 0)}k(s,"is"),i.is=s})(DF||(DF={})),(function(i){function a(o,l){return{frameId:o,stoppedLocation:l}}k(a,"create"),i.create=a;function s(o){const l=o;return ht.defined(l)&&dn.is(o.stoppedLocation)}k(s,"is"),i.is=s})(LF||(LF={})),(function(i){i.Type=1,i.Parameter=2;function a(s){return s===1||s===2}k(a,"is"),i.is=a})(N5||(N5={})),(function(i){function a(o){return{value:o}}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&(l.tooltip===void 0||ht.string(l.tooltip)||cm.is(l.tooltip))&&(l.location===void 0||EE.is(l.location))&&(l.command===void 0||xf.is(l.command))}k(s,"is"),i.is=s})(I5||(I5={})),(function(i){function a(o,l,u){const d={position:o,label:l};return u!==void 0&&(d.kind=u),d}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&xn.is(l.position)&&(ht.string(l.label)||ht.typedArray(l.label,I5.is))&&(l.kind===void 0||N5.is(l.kind))&&l.textEdits===void 0||ht.typedArray(l.textEdits,Nc.is)&&(l.tooltip===void 0||ht.string(l.tooltip)||cm.is(l.tooltip))&&(l.paddingLeft===void 0||ht.boolean(l.paddingLeft))&&(l.paddingRight===void 0||ht.boolean(l.paddingRight))}k(s,"is"),i.is=s})(MF||(MF={})),(function(i){function a(s){return{kind:"snippet",value:s}}k(a,"createSnippet"),i.createSnippet=a})(PF||(PF={})),(function(i){function a(s,o,l,u){return{insertText:s,filterText:o,range:l,command:u}}k(a,"create"),i.create=a})(BF||(BF={})),(function(i){function a(s){return{items:s}}k(a,"create"),i.create=a})(FF||(FF={})),(function(i){i.Invoked=0,i.Automatic=1})($F||($F={})),(function(i){function a(s,o){return{range:s,text:o}}k(a,"create"),i.create=a})(zF||(zF={})),(function(i){function a(s,o){return{triggerKind:s,selectedCompletionInfo:o}}k(a,"create"),i.create=a})(UF||(UF={})),(function(i){function a(s){const o=s;return ht.objectLiteral(o)&&C5.is(o.uri)&&ht.string(o.name)}k(a,"is"),i.is=a})(GF||(GF={})),O2e=[` +`},"getStyles"),s_t=a_t,o_t={parser:t_t,get db(){return new r_t},renderer:N2e,styles:s_t};const l_t=Object.freeze(Object.defineProperty({__proto__:null,diagram:o_t},Symbol.toStringTag,{value:"Module"}));function wu(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}S(wu,"populateCommonDb");var A1,uY=(A1=class{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}},S(A1,"ImperativeState"),A1),c_t=Object.create,DT=Object.defineProperty,u_t=Object.getOwnPropertyDescriptor,dY=Object.getOwnPropertyNames,d_t=Object.getPrototypeOf,h_t=Object.prototype.hasOwnProperty,k=(t,e)=>DT(t,"name",{value:e,configurable:!0}),f_t=(t,e)=>function(){return t&&(e=(0,t[dY(t)[0]])(t=0)),e},Zr=(t,e)=>function(){return e||(0,t[dY(t)[0]])((e={exports:{}}).exports,e),e.exports},Uh=(t,e)=>{for(var r in e)DT(t,r,{get:e[r],enumerable:!0})},hY=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of dY(e))!h_t.call(t,i)&&i!==r&&DT(t,i,{get:()=>e[i],enumerable:!(n=u_t(e,i))||n.enumerable});return t},G7=(t,e,r)=>(hY(t,e,"default"),r),fY=(t,e,r)=>(r=t!=null?c_t(d_t(t)):{},hY(DT(r,"default",{value:t,enumerable:!0}),t)),pY=t=>hY(DT({},"__esModule",{value:!0}),t),q7={};Uh(q7,{AnnotatedTextEdit:()=>Vu,ChangeAnnotation:()=>Cf,ChangeAnnotationIdentifier:()=>Ya,CodeAction:()=>TF,CodeActionContext:()=>SF,CodeActionKind:()=>EF,CodeActionTriggerKind:()=>wE,CodeDescription:()=>JB,CodeLens:()=>xF,Color:()=>w5,ColorInformation:()=>WB,ColorPresentation:()=>KB,Command:()=>xf,CompletionItem:()=>cF,CompletionItemKind:()=>nF,CompletionItemLabelDetails:()=>lF,CompletionItemTag:()=>aF,CompletionList:()=>uF,CreateFile:()=>sm,DeleteFile:()=>lm,Diagnostic:()=>SE,DiagnosticRelatedInformation:()=>k5,DiagnosticSeverity:()=>QB,DiagnosticTag:()=>ZB,DocumentHighlight:()=>gF,DocumentHighlightKind:()=>pF,DocumentLink:()=>wF,DocumentSymbol:()=>bF,DocumentUri:()=>YB,EOL:()=>O2e,FoldingRange:()=>jB,FoldingRangeKind:()=>XB,FormattingOptions:()=>CF,Hover:()=>dF,InlayHint:()=>MF,InlayHintKind:()=>N5,InlayHintLabelPart:()=>I5,InlineCompletionContext:()=>UF,InlineCompletionItem:()=>BF,InlineCompletionList:()=>FF,InlineCompletionTriggerKind:()=>$F,InlineValueContext:()=>LF,InlineValueEvaluatableExpression:()=>DF,InlineValueText:()=>IF,InlineValueVariableLookup:()=>OF,InsertReplaceEdit:()=>sF,InsertTextFormat:()=>iF,InsertTextMode:()=>oF,Location:()=>EE,LocationLink:()=>VB,MarkedString:()=>CE,MarkupContent:()=>cm,MarkupKind:()=>R5,OptionalVersionedTextDocumentIdentifier:()=>xE,ParameterInformation:()=>hF,Position:()=>xn,Range:()=>dn,RenameFile:()=>om,SelectedCompletionInfo:()=>zF,SelectionRange:()=>kF,SemanticTokenModifiers:()=>RF,SemanticTokenTypes:()=>AF,SemanticTokens:()=>NF,SignatureInformation:()=>fF,StringValue:()=>PF,SymbolInformation:()=>vF,SymbolKind:()=>mF,SymbolTag:()=>yF,TextDocument:()=>qF,TextDocumentEdit:()=>TE,TextDocumentIdentifier:()=>eF,TextDocumentItem:()=>rF,TextEdit:()=>Nc,URI:()=>C5,VersionedTextDocumentIdentifier:()=>tF,WorkspaceChange:()=>I2e,WorkspaceEdit:()=>A5,WorkspaceFolder:()=>GF,WorkspaceSymbol:()=>_F,integer:()=>HB,uinteger:()=>bE});var YB,C5,HB,bE,xn,dn,EE,VB,w5,WB,KB,XB,jB,k5,QB,ZB,JB,SE,xf,Nc,Cf,Ya,Vu,TE,sm,om,lm,A5,V2,SL,I2e,eF,tF,xE,rF,R5,cm,nF,iF,aF,sF,oF,lF,cF,uF,CE,dF,hF,fF,pF,gF,mF,yF,vF,_F,bF,EF,wE,SF,TF,xF,CF,wF,kF,AF,RF,NF,IF,OF,DF,LF,N5,I5,MF,PF,BF,FF,$F,zF,UF,GF,O2e,qF,Pae,ht,LT=f_t({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(i){function a(s){return typeof s=="string"}k(a,"is"),i.is=a})(YB||(YB={})),(function(i){function a(s){return typeof s=="string"}k(a,"is"),i.is=a})(C5||(C5={})),(function(i){i.MIN_VALUE=-2147483648,i.MAX_VALUE=2147483647;function a(s){return typeof s=="number"&&i.MIN_VALUE<=s&&s<=i.MAX_VALUE}k(a,"is"),i.is=a})(HB||(HB={})),(function(i){i.MIN_VALUE=0,i.MAX_VALUE=2147483647;function a(s){return typeof s=="number"&&i.MIN_VALUE<=s&&s<=i.MAX_VALUE}k(a,"is"),i.is=a})(bE||(bE={})),(function(i){function a(o,l){return o===Number.MAX_VALUE&&(o=bE.MAX_VALUE),l===Number.MAX_VALUE&&(l=bE.MAX_VALUE),{line:o,character:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.objectLiteral(l)&&ht.uinteger(l.line)&&ht.uinteger(l.character)}k(s,"is"),i.is=s})(xn||(xn={})),(function(i){function a(o,l,u,d){if(ht.uinteger(o)&&ht.uinteger(l)&&ht.uinteger(u)&&ht.uinteger(d))return{start:xn.create(o,l),end:xn.create(u,d)};if(xn.is(o)&&xn.is(l))return{start:o,end:l};throw new Error(`Range#create called with invalid arguments[${o}, ${l}, ${u}, ${d}]`)}k(a,"create"),i.create=a;function s(o){let l=o;return ht.objectLiteral(l)&&xn.is(l.start)&&xn.is(l.end)}k(s,"is"),i.is=s})(dn||(dn={})),(function(i){function a(o,l){return{uri:o,range:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.objectLiteral(l)&&dn.is(l.range)&&(ht.string(l.uri)||ht.undefined(l.uri))}k(s,"is"),i.is=s})(EE||(EE={})),(function(i){function a(o,l,u,d){return{targetUri:o,targetRange:l,targetSelectionRange:u,originSelectionRange:d}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.objectLiteral(l)&&dn.is(l.targetRange)&&ht.string(l.targetUri)&&dn.is(l.targetSelectionRange)&&(dn.is(l.originSelectionRange)||ht.undefined(l.originSelectionRange))}k(s,"is"),i.is=s})(VB||(VB={})),(function(i){function a(o,l,u,d){return{red:o,green:l,blue:u,alpha:d}}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&ht.numberRange(l.red,0,1)&&ht.numberRange(l.green,0,1)&&ht.numberRange(l.blue,0,1)&&ht.numberRange(l.alpha,0,1)}k(s,"is"),i.is=s})(w5||(w5={})),(function(i){function a(o,l){return{range:o,color:l}}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&dn.is(l.range)&&w5.is(l.color)}k(s,"is"),i.is=s})(WB||(WB={})),(function(i){function a(o,l,u){return{label:o,textEdit:l,additionalTextEdits:u}}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&ht.string(l.label)&&(ht.undefined(l.textEdit)||Nc.is(l))&&(ht.undefined(l.additionalTextEdits)||ht.typedArray(l.additionalTextEdits,Nc.is))}k(s,"is"),i.is=s})(KB||(KB={})),(function(i){i.Comment="comment",i.Imports="imports",i.Region="region"})(XB||(XB={})),(function(i){function a(o,l,u,d,h,f){const p={startLine:o,endLine:l};return ht.defined(u)&&(p.startCharacter=u),ht.defined(d)&&(p.endCharacter=d),ht.defined(h)&&(p.kind=h),ht.defined(f)&&(p.collapsedText=f),p}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&ht.uinteger(l.startLine)&&ht.uinteger(l.startLine)&&(ht.undefined(l.startCharacter)||ht.uinteger(l.startCharacter))&&(ht.undefined(l.endCharacter)||ht.uinteger(l.endCharacter))&&(ht.undefined(l.kind)||ht.string(l.kind))}k(s,"is"),i.is=s})(jB||(jB={})),(function(i){function a(o,l){return{location:o,message:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&EE.is(l.location)&&ht.string(l.message)}k(s,"is"),i.is=s})(k5||(k5={})),(function(i){i.Error=1,i.Warning=2,i.Information=3,i.Hint=4})(QB||(QB={})),(function(i){i.Unnecessary=1,i.Deprecated=2})(ZB||(ZB={})),(function(i){function a(s){const o=s;return ht.objectLiteral(o)&&ht.string(o.href)}k(a,"is"),i.is=a})(JB||(JB={})),(function(i){function a(o,l,u,d,h,f){let p={range:o,message:l};return ht.defined(u)&&(p.severity=u),ht.defined(d)&&(p.code=d),ht.defined(h)&&(p.source=h),ht.defined(f)&&(p.relatedInformation=f),p}k(a,"create"),i.create=a;function s(o){var l;let u=o;return ht.defined(u)&&dn.is(u.range)&&ht.string(u.message)&&(ht.number(u.severity)||ht.undefined(u.severity))&&(ht.integer(u.code)||ht.string(u.code)||ht.undefined(u.code))&&(ht.undefined(u.codeDescription)||ht.string((l=u.codeDescription)===null||l===void 0?void 0:l.href))&&(ht.string(u.source)||ht.undefined(u.source))&&(ht.undefined(u.relatedInformation)||ht.typedArray(u.relatedInformation,k5.is))}k(s,"is"),i.is=s})(SE||(SE={})),(function(i){function a(o,l,...u){let d={title:o,command:l};return ht.defined(u)&&u.length>0&&(d.arguments=u),d}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.string(l.title)&&ht.string(l.command)}k(s,"is"),i.is=s})(xf||(xf={})),(function(i){function a(u,d){return{range:u,newText:d}}k(a,"replace"),i.replace=a;function s(u,d){return{range:{start:u,end:u},newText:d}}k(s,"insert"),i.insert=s;function o(u){return{range:u,newText:""}}k(o,"del"),i.del=o;function l(u){const d=u;return ht.objectLiteral(d)&&ht.string(d.newText)&&dn.is(d.range)}k(l,"is"),i.is=l})(Nc||(Nc={})),(function(i){function a(o,l,u){const d={label:o};return l!==void 0&&(d.needsConfirmation=l),u!==void 0&&(d.description=u),d}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&ht.string(l.label)&&(ht.boolean(l.needsConfirmation)||l.needsConfirmation===void 0)&&(ht.string(l.description)||l.description===void 0)}k(s,"is"),i.is=s})(Cf||(Cf={})),(function(i){function a(s){const o=s;return ht.string(o)}k(a,"is"),i.is=a})(Ya||(Ya={})),(function(i){function a(u,d,h){return{range:u,newText:d,annotationId:h}}k(a,"replace"),i.replace=a;function s(u,d,h){return{range:{start:u,end:u},newText:d,annotationId:h}}k(s,"insert"),i.insert=s;function o(u,d){return{range:u,newText:"",annotationId:d}}k(o,"del"),i.del=o;function l(u){const d=u;return Nc.is(d)&&(Cf.is(d.annotationId)||Ya.is(d.annotationId))}k(l,"is"),i.is=l})(Vu||(Vu={})),(function(i){function a(o,l){return{textDocument:o,edits:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&xE.is(l.textDocument)&&Array.isArray(l.edits)}k(s,"is"),i.is=s})(TE||(TE={})),(function(i){function a(o,l,u){let d={kind:"create",uri:o};return l!==void 0&&(l.overwrite!==void 0||l.ignoreIfExists!==void 0)&&(d.options=l),u!==void 0&&(d.annotationId=u),d}k(a,"create"),i.create=a;function s(o){let l=o;return l&&l.kind==="create"&&ht.string(l.uri)&&(l.options===void 0||(l.options.overwrite===void 0||ht.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||ht.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Ya.is(l.annotationId))}k(s,"is"),i.is=s})(sm||(sm={})),(function(i){function a(o,l,u,d){let h={kind:"rename",oldUri:o,newUri:l};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(h.options=u),d!==void 0&&(h.annotationId=d),h}k(a,"create"),i.create=a;function s(o){let l=o;return l&&l.kind==="rename"&&ht.string(l.oldUri)&&ht.string(l.newUri)&&(l.options===void 0||(l.options.overwrite===void 0||ht.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||ht.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Ya.is(l.annotationId))}k(s,"is"),i.is=s})(om||(om={})),(function(i){function a(o,l,u){let d={kind:"delete",uri:o};return l!==void 0&&(l.recursive!==void 0||l.ignoreIfNotExists!==void 0)&&(d.options=l),u!==void 0&&(d.annotationId=u),d}k(a,"create"),i.create=a;function s(o){let l=o;return l&&l.kind==="delete"&&ht.string(l.uri)&&(l.options===void 0||(l.options.recursive===void 0||ht.boolean(l.options.recursive))&&(l.options.ignoreIfNotExists===void 0||ht.boolean(l.options.ignoreIfNotExists)))&&(l.annotationId===void 0||Ya.is(l.annotationId))}k(s,"is"),i.is=s})(lm||(lm={})),(function(i){function a(s){let o=s;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(l=>ht.string(l.kind)?sm.is(l)||om.is(l)||lm.is(l):TE.is(l)))}k(a,"is"),i.is=a})(A5||(A5={})),V2=(t=class{constructor(a,s){this.edits=a,this.changeAnnotations=s}insert(a,s,o){let l,u;if(o===void 0?l=Nc.insert(a,s):Ya.is(o)?(u=o,l=Vu.insert(a,s,o)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(o),l=Vu.insert(a,s,u)),this.edits.push(l),u!==void 0)return u}replace(a,s,o){let l,u;if(o===void 0?l=Nc.replace(a,s):Ya.is(o)?(u=o,l=Vu.replace(a,s,o)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(o),l=Vu.replace(a,s,u)),this.edits.push(l),u!==void 0)return u}delete(a,s){let o,l;if(s===void 0?o=Nc.del(a):Ya.is(s)?(l=s,o=Vu.del(a,s)):(this.assertChangeAnnotations(this.changeAnnotations),l=this.changeAnnotations.manage(s),o=Vu.del(a,l)),this.edits.push(o),l!==void 0)return l}add(a){this.edits.push(a)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(a){if(a===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},k(t,"TextEditChangeImpl"),t),SL=(e=class{constructor(a){this._annotations=a===void 0?Object.create(null):a,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(a,s){let o;if(Ya.is(a)?o=a:(o=this.nextId(),s=a),this._annotations[o]!==void 0)throw new Error(`Id ${o} is already in use.`);if(s===void 0)throw new Error(`No annotation provided for id ${o}`);return this._annotations[o]=s,this._size++,o}nextId(){return this._counter++,this._counter.toString()}},k(e,"ChangeAnnotations"),e),I2e=(r=class{constructor(a){this._textEditChanges=Object.create(null),a!==void 0?(this._workspaceEdit=a,a.documentChanges?(this._changeAnnotations=new SL(a.changeAnnotations),a.changeAnnotations=this._changeAnnotations.all(),a.documentChanges.forEach(s=>{if(TE.is(s)){const o=new V2(s.edits,this._changeAnnotations);this._textEditChanges[s.textDocument.uri]=o}})):a.changes&&Object.keys(a.changes).forEach(s=>{const o=new V2(a.changes[s]);this._textEditChanges[s]=o})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(a){if(xE.is(a)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const s={uri:a.uri,version:a.version};let o=this._textEditChanges[s.uri];if(!o){const l=[],u={textDocument:s,edits:l};this._workspaceEdit.documentChanges.push(u),o=new V2(l,this._changeAnnotations),this._textEditChanges[s.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let s=this._textEditChanges[a];if(!s){let o=[];this._workspaceEdit.changes[a]=o,s=new V2(o),this._textEditChanges[a]=s}return s}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new SL,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(a,s,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;Cf.is(s)||Ya.is(s)?l=s:o=s;let u,d;if(l===void 0?u=sm.create(a,o):(d=Ya.is(l)?l:this._changeAnnotations.manage(l),u=sm.create(a,o,d)),this._workspaceEdit.documentChanges.push(u),d!==void 0)return d}renameFile(a,s,o,l){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Cf.is(o)||Ya.is(o)?u=o:l=o;let d,h;if(u===void 0?d=om.create(a,s,l):(h=Ya.is(u)?u:this._changeAnnotations.manage(u),d=om.create(a,s,l,h)),this._workspaceEdit.documentChanges.push(d),h!==void 0)return h}deleteFile(a,s,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;Cf.is(s)||Ya.is(s)?l=s:o=s;let u,d;if(l===void 0?u=lm.create(a,o):(d=Ya.is(l)?l:this._changeAnnotations.manage(l),u=lm.create(a,o,d)),this._workspaceEdit.documentChanges.push(u),d!==void 0)return d}},k(r,"WorkspaceChange"),r),(function(i){function a(o){return{uri:o}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)}k(s,"is"),i.is=s})(eF||(eF={})),(function(i){function a(o,l){return{uri:o,version:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)&&ht.integer(l.version)}k(s,"is"),i.is=s})(tF||(tF={})),(function(i){function a(o,l){return{uri:o,version:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)&&(l.version===null||ht.integer(l.version))}k(s,"is"),i.is=s})(xE||(xE={})),(function(i){function a(o,l,u,d){return{uri:o,languageId:l,version:u,text:d}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)&&ht.string(l.languageId)&&ht.integer(l.version)&&ht.string(l.text)}k(s,"is"),i.is=s})(rF||(rF={})),(function(i){i.PlainText="plaintext",i.Markdown="markdown";function a(s){const o=s;return o===i.PlainText||o===i.Markdown}k(a,"is"),i.is=a})(R5||(R5={})),(function(i){function a(s){const o=s;return ht.objectLiteral(s)&&R5.is(o.kind)&&ht.string(o.value)}k(a,"is"),i.is=a})(cm||(cm={})),(function(i){i.Text=1,i.Method=2,i.Function=3,i.Constructor=4,i.Field=5,i.Variable=6,i.Class=7,i.Interface=8,i.Module=9,i.Property=10,i.Unit=11,i.Value=12,i.Enum=13,i.Keyword=14,i.Snippet=15,i.Color=16,i.File=17,i.Reference=18,i.Folder=19,i.EnumMember=20,i.Constant=21,i.Struct=22,i.Event=23,i.Operator=24,i.TypeParameter=25})(nF||(nF={})),(function(i){i.PlainText=1,i.Snippet=2})(iF||(iF={})),(function(i){i.Deprecated=1})(aF||(aF={})),(function(i){function a(o,l,u){return{newText:o,insert:l,replace:u}}k(a,"create"),i.create=a;function s(o){const l=o;return l&&ht.string(l.newText)&&dn.is(l.insert)&&dn.is(l.replace)}k(s,"is"),i.is=s})(sF||(sF={})),(function(i){i.asIs=1,i.adjustIndentation=2})(oF||(oF={})),(function(i){function a(s){const o=s;return o&&(ht.string(o.detail)||o.detail===void 0)&&(ht.string(o.description)||o.description===void 0)}k(a,"is"),i.is=a})(lF||(lF={})),(function(i){function a(s){return{label:s}}k(a,"create"),i.create=a})(cF||(cF={})),(function(i){function a(s,o){return{items:s||[],isIncomplete:!!o}}k(a,"create"),i.create=a})(uF||(uF={})),(function(i){function a(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}k(a,"fromPlainText"),i.fromPlainText=a;function s(o){const l=o;return ht.string(l)||ht.objectLiteral(l)&&ht.string(l.language)&&ht.string(l.value)}k(s,"is"),i.is=s})(CE||(CE={})),(function(i){function a(s){let o=s;return!!o&&ht.objectLiteral(o)&&(cm.is(o.contents)||CE.is(o.contents)||ht.typedArray(o.contents,CE.is))&&(s.range===void 0||dn.is(s.range))}k(a,"is"),i.is=a})(dF||(dF={})),(function(i){function a(s,o){return o?{label:s,documentation:o}:{label:s}}k(a,"create"),i.create=a})(hF||(hF={})),(function(i){function a(s,o,...l){let u={label:s};return ht.defined(o)&&(u.documentation=o),ht.defined(l)?u.parameters=l:u.parameters=[],u}k(a,"create"),i.create=a})(fF||(fF={})),(function(i){i.Text=1,i.Read=2,i.Write=3})(pF||(pF={})),(function(i){function a(s,o){let l={range:s};return ht.number(o)&&(l.kind=o),l}k(a,"create"),i.create=a})(gF||(gF={})),(function(i){i.File=1,i.Module=2,i.Namespace=3,i.Package=4,i.Class=5,i.Method=6,i.Property=7,i.Field=8,i.Constructor=9,i.Enum=10,i.Interface=11,i.Function=12,i.Variable=13,i.Constant=14,i.String=15,i.Number=16,i.Boolean=17,i.Array=18,i.Object=19,i.Key=20,i.Null=21,i.EnumMember=22,i.Struct=23,i.Event=24,i.Operator=25,i.TypeParameter=26})(mF||(mF={})),(function(i){i.Deprecated=1})(yF||(yF={})),(function(i){function a(s,o,l,u,d){let h={name:s,kind:o,location:{uri:u,range:l}};return d&&(h.containerName=d),h}k(a,"create"),i.create=a})(vF||(vF={})),(function(i){function a(s,o,l,u){return u!==void 0?{name:s,kind:o,location:{uri:l,range:u}}:{name:s,kind:o,location:{uri:l}}}k(a,"create"),i.create=a})(_F||(_F={})),(function(i){function a(o,l,u,d,h,f){let p={name:o,detail:l,kind:u,range:d,selectionRange:h};return f!==void 0&&(p.children=f),p}k(a,"create"),i.create=a;function s(o){let l=o;return l&&ht.string(l.name)&&ht.number(l.kind)&&dn.is(l.range)&&dn.is(l.selectionRange)&&(l.detail===void 0||ht.string(l.detail))&&(l.deprecated===void 0||ht.boolean(l.deprecated))&&(l.children===void 0||Array.isArray(l.children))&&(l.tags===void 0||Array.isArray(l.tags))}k(s,"is"),i.is=s})(bF||(bF={})),(function(i){i.Empty="",i.QuickFix="quickfix",i.Refactor="refactor",i.RefactorExtract="refactor.extract",i.RefactorInline="refactor.inline",i.RefactorRewrite="refactor.rewrite",i.Source="source",i.SourceOrganizeImports="source.organizeImports",i.SourceFixAll="source.fixAll"})(EF||(EF={})),(function(i){i.Invoked=1,i.Automatic=2})(wE||(wE={})),(function(i){function a(o,l,u){let d={diagnostics:o};return l!=null&&(d.only=l),u!=null&&(d.triggerKind=u),d}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.typedArray(l.diagnostics,SE.is)&&(l.only===void 0||ht.typedArray(l.only,ht.string))&&(l.triggerKind===void 0||l.triggerKind===wE.Invoked||l.triggerKind===wE.Automatic)}k(s,"is"),i.is=s})(SF||(SF={})),(function(i){function a(o,l,u){let d={title:o},h=!0;return typeof l=="string"?(h=!1,d.kind=l):xf.is(l)?d.command=l:d.edit=l,h&&u!==void 0&&(d.kind=u),d}k(a,"create"),i.create=a;function s(o){let l=o;return l&&ht.string(l.title)&&(l.diagnostics===void 0||ht.typedArray(l.diagnostics,SE.is))&&(l.kind===void 0||ht.string(l.kind))&&(l.edit!==void 0||l.command!==void 0)&&(l.command===void 0||xf.is(l.command))&&(l.isPreferred===void 0||ht.boolean(l.isPreferred))&&(l.edit===void 0||A5.is(l.edit))}k(s,"is"),i.is=s})(TF||(TF={})),(function(i){function a(o,l){let u={range:o};return ht.defined(l)&&(u.data=l),u}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&dn.is(l.range)&&(ht.undefined(l.command)||xf.is(l.command))}k(s,"is"),i.is=s})(xF||(xF={})),(function(i){function a(o,l){return{tabSize:o,insertSpaces:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&ht.uinteger(l.tabSize)&&ht.boolean(l.insertSpaces)}k(s,"is"),i.is=s})(CF||(CF={})),(function(i){function a(o,l,u){return{range:o,target:l,data:u}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.defined(l)&&dn.is(l.range)&&(ht.undefined(l.target)||ht.string(l.target))}k(s,"is"),i.is=s})(wF||(wF={})),(function(i){function a(o,l){return{range:o,parent:l}}k(a,"create"),i.create=a;function s(o){let l=o;return ht.objectLiteral(l)&&dn.is(l.range)&&(l.parent===void 0||i.is(l.parent))}k(s,"is"),i.is=s})(kF||(kF={})),(function(i){i.namespace="namespace",i.type="type",i.class="class",i.enum="enum",i.interface="interface",i.struct="struct",i.typeParameter="typeParameter",i.parameter="parameter",i.variable="variable",i.property="property",i.enumMember="enumMember",i.event="event",i.function="function",i.method="method",i.macro="macro",i.keyword="keyword",i.modifier="modifier",i.comment="comment",i.string="string",i.number="number",i.regexp="regexp",i.operator="operator",i.decorator="decorator"})(AF||(AF={})),(function(i){i.declaration="declaration",i.definition="definition",i.readonly="readonly",i.static="static",i.deprecated="deprecated",i.abstract="abstract",i.async="async",i.modification="modification",i.documentation="documentation",i.defaultLibrary="defaultLibrary"})(RF||(RF={})),(function(i){function a(s){const o=s;return ht.objectLiteral(o)&&(o.resultId===void 0||typeof o.resultId=="string")&&Array.isArray(o.data)&&(o.data.length===0||typeof o.data[0]=="number")}k(a,"is"),i.is=a})(NF||(NF={})),(function(i){function a(o,l){return{range:o,text:l}}k(a,"create"),i.create=a;function s(o){const l=o;return l!=null&&dn.is(l.range)&&ht.string(l.text)}k(s,"is"),i.is=s})(IF||(IF={})),(function(i){function a(o,l,u){return{range:o,variableName:l,caseSensitiveLookup:u}}k(a,"create"),i.create=a;function s(o){const l=o;return l!=null&&dn.is(l.range)&&ht.boolean(l.caseSensitiveLookup)&&(ht.string(l.variableName)||l.variableName===void 0)}k(s,"is"),i.is=s})(OF||(OF={})),(function(i){function a(o,l){return{range:o,expression:l}}k(a,"create"),i.create=a;function s(o){const l=o;return l!=null&&dn.is(l.range)&&(ht.string(l.expression)||l.expression===void 0)}k(s,"is"),i.is=s})(DF||(DF={})),(function(i){function a(o,l){return{frameId:o,stoppedLocation:l}}k(a,"create"),i.create=a;function s(o){const l=o;return ht.defined(l)&&dn.is(o.stoppedLocation)}k(s,"is"),i.is=s})(LF||(LF={})),(function(i){i.Type=1,i.Parameter=2;function a(s){return s===1||s===2}k(a,"is"),i.is=a})(N5||(N5={})),(function(i){function a(o){return{value:o}}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&(l.tooltip===void 0||ht.string(l.tooltip)||cm.is(l.tooltip))&&(l.location===void 0||EE.is(l.location))&&(l.command===void 0||xf.is(l.command))}k(s,"is"),i.is=s})(I5||(I5={})),(function(i){function a(o,l,u){const d={position:o,label:l};return u!==void 0&&(d.kind=u),d}k(a,"create"),i.create=a;function s(o){const l=o;return ht.objectLiteral(l)&&xn.is(l.position)&&(ht.string(l.label)||ht.typedArray(l.label,I5.is))&&(l.kind===void 0||N5.is(l.kind))&&l.textEdits===void 0||ht.typedArray(l.textEdits,Nc.is)&&(l.tooltip===void 0||ht.string(l.tooltip)||cm.is(l.tooltip))&&(l.paddingLeft===void 0||ht.boolean(l.paddingLeft))&&(l.paddingRight===void 0||ht.boolean(l.paddingRight))}k(s,"is"),i.is=s})(MF||(MF={})),(function(i){function a(s){return{kind:"snippet",value:s}}k(a,"createSnippet"),i.createSnippet=a})(PF||(PF={})),(function(i){function a(s,o,l,u){return{insertText:s,filterText:o,range:l,command:u}}k(a,"create"),i.create=a})(BF||(BF={})),(function(i){function a(s){return{items:s}}k(a,"create"),i.create=a})(FF||(FF={})),(function(i){i.Invoked=0,i.Automatic=1})($F||($F={})),(function(i){function a(s,o){return{range:s,text:o}}k(a,"create"),i.create=a})(zF||(zF={})),(function(i){function a(s,o){return{triggerKind:s,selectedCompletionInfo:o}}k(a,"create"),i.create=a})(UF||(UF={})),(function(i){function a(s){const o=s;return ht.objectLiteral(o)&&C5.is(o.uri)&&ht.string(o.name)}k(a,"is"),i.is=a})(GF||(GF={})),O2e=[` `,`\r `,"\r"],(function(i){function a(u,d,h,f){return new Pae(u,d,h,f)}k(a,"create"),i.create=a;function s(u){let d=u;return!!(ht.defined(d)&&ht.string(d.uri)&&(ht.undefined(d.languageId)||ht.string(d.languageId))&&ht.uinteger(d.lineCount)&&ht.func(d.getText)&&ht.func(d.positionAt)&&ht.func(d.offsetAt))}k(s,"is"),i.is=s;function o(u,d){let h=u.getText(),f=l(d,(g,m)=>{let y=g.range.start.line-m.range.start.line;return y===0?g.range.start.character-m.range.start.character:y}),p=h.length;for(let g=f.length-1;g>=0;g--){let m=f[g],y=u.offsetAt(m.range.start),v=u.offsetAt(m.range.end);if(v<=p)h=h.substring(0,y)+m.newText+h.substring(v,h.length);else throw new Error("Overlapping edit");p=y}return h}k(o,"applyEdits"),i.applyEdits=o;function l(u,d){if(u.length<=1)return u;const h=u.length/2|0,f=u.slice(0,h),p=u.slice(h);l(f,d),l(p,d);let g=0,m=0,y=0;for(;g0&&a.push(s.length),this._lineOffsets=a}return this._lineOffsets}positionAt(a){a=Math.max(Math.min(a,this._content.length),0);let s=this.getLineOffsets(),o=0,l=s.length;if(l===0)return xn.create(0,a);for(;oa?l=d:o=d+1}let u=o-1;return xn.create(u,a-s[u])}offsetAt(a){let s=this.getLineOffsets();if(a.line>=s.length)return this._content.length;if(a.line<0)return 0;let o=s[a.line],l=a.line+1"u"}k(o,"undefined"),i.undefined=o;function l(v){return v===!0||v===!1}k(l,"boolean"),i.boolean=l;function u(v){return a.call(v)==="[object String]"}k(u,"string"),i.string=u;function d(v){return a.call(v)==="[object Number]"}k(d,"number"),i.number=d;function h(v,b,_){return a.call(v)==="[object Number]"&&b<=v&&v<=_}k(h,"numberRange"),i.numberRange=h;function f(v){return a.call(v)==="[object Number]"&&-2147483648<=v&&v<=2147483647}k(f,"integer"),i.integer=f;function p(v){return a.call(v)==="[object Number]"&&0<=v&&v<=2147483647}k(p,"uinteger"),i.uinteger=p;function g(v){return a.call(v)==="[object Function]"}k(g,"func"),i.func=g;function m(v){return v!==null&&typeof v=="object"}k(m,"objectLiteral"),i.objectLiteral=m;function y(v,b){return Array.isArray(v)&&v.every(b)}k(y,"typedArray"),i.typedArray=y})(ht||(ht={}))}}),og=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var e;function r(){if(e===void 0)throw new Error("No runtime abstraction layer installed");return e}k(r,"RAL"),(function(n){function i(a){if(a===void 0)throw new Error("No runtime abstraction layer provided");e=a}k(i,"install"),n.install=i})(r||(r={})),t.default=r}}),MT=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0;function e(l){return l===!0||l===!1}k(e,"boolean"),t.boolean=e;function r(l){return typeof l=="string"||l instanceof String}k(r,"string"),t.string=r;function n(l){return typeof l=="number"||l instanceof Number}k(n,"number"),t.number=n;function i(l){return l instanceof Error}k(i,"error"),t.error=i;function a(l){return typeof l=="function"}k(a,"func"),t.func=a;function s(l){return Array.isArray(l)}k(s,"array"),t.array=s;function o(l){return s(l)&&l.every(u=>r(u))}k(o,"stringArray"),t.stringArray=o}}),l2=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(t){var a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var e=og(),r;(function(o){const l={dispose(){}};o.None=function(){return l}})(r||(t.Event=r={}));var n=(a=class{add(l,u=null,d){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(l),this._contexts.push(u),Array.isArray(d)&&d.push({dispose:k(()=>this.remove(l,u),"dispose")})}remove(l,u=null){if(!this._callbacks)return;let d=!1;for(let h=0,f=this._callbacks.length;h{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(l,u);const h={dispose:k(()=>{this._callbacks&&(this._callbacks.remove(l,u),h.dispose=s._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(d)&&d.push(h),h}),this._event}fire(l){this._callbacks&&this._callbacks.invoke.call(this._callbacks,l)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}},k(s,"Emitter"),s);t.Emitter=i,i._noop=function(){}}}),Y7=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(t){var l,u;Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;var e=og(),r=MT(),n=l2(),i;(function(d){d.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),d.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n.Event.None});function h(f){const p=f;return p&&(p===d.None||p===d.Cancelled||r.boolean(p.isCancellationRequested)&&!!p.onCancellationRequested)}k(h,"is"),d.is=h})(i||(t.CancellationToken=i={}));var a=Object.freeze(function(d,h){const f=(0,e.default)().timer.setTimeout(d.bind(h),0);return{dispose(){f.dispose()}}}),s=(l=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},k(l,"MutableToken"),l),o=(u=class{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token.cancel():this._token=i.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=i.None}},k(u,"CancellationTokenSource"),u);t.CancellationTokenSource=o}}),D2e=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(t){var F,A,I,D,L,R,P,z,B,q,Y,Q,H,J,Z,pe,re,ce,ae,se,xe,Te,Ge,ze,Xe;Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;var e=MT(),r;(function(Le){Le.ParseError=-32700,Le.InvalidRequest=-32600,Le.MethodNotFound=-32601,Le.InvalidParams=-32602,Le.InternalError=-32603,Le.jsonrpcReservedErrorRangeStart=-32099,Le.serverErrorStart=-32099,Le.MessageWriteError=-32099,Le.MessageReadError=-32098,Le.PendingResponseRejected=-32097,Le.ConnectionInactive=-32096,Le.ServerNotInitialized=-32002,Le.UnknownErrorCode=-32001,Le.jsonrpcReservedErrorRangeEnd=-32e3,Le.serverErrorEnd=-32e3})(r||(t.ErrorCodes=r={}));var n=(F=class extends Error{constructor(Re,qe,Ne){super(qe),this.code=e.number(Re)?Re:r.UnknownErrorCode,this.data=Ne,Object.setPrototypeOf(this,F.prototype)}toJson(){const Re={code:this.code,message:this.message};return this.data!==void 0&&(Re.data=this.data),Re}},k(F,"ResponseError"),F);t.ResponseError=n;var i=(A=class{constructor(Re){this.kind=Re}static is(Re){return Re===A.auto||Re===A.byName||Re===A.byPosition}toString(){return this.kind}},k(A,"ParameterStructures"),A);t.ParameterStructures=i,i.auto=new i("auto"),i.byPosition=new i("byPosition"),i.byName=new i("byName");var a=(I=class{constructor(Re,qe){this.method=Re,this.numberOfParams=qe}get parameterStructures(){return i.auto}},k(I,"AbstractMessageSignature"),I);t.AbstractMessageSignature=a;var s=(D=class extends a{constructor(Re){super(Re,0)}},k(D,"RequestType0"),D);t.RequestType0=s;var o=(L=class extends a{constructor(Re,qe=i.auto){super(Re,1),this._parameterStructures=qe}get parameterStructures(){return this._parameterStructures}},k(L,"RequestType"),L);t.RequestType=o;var l=(R=class extends a{constructor(Re,qe=i.auto){super(Re,1),this._parameterStructures=qe}get parameterStructures(){return this._parameterStructures}},k(R,"RequestType1"),R);t.RequestType1=l;var u=(P=class extends a{constructor(Re){super(Re,2)}},k(P,"RequestType2"),P);t.RequestType2=u;var d=(z=class extends a{constructor(Re){super(Re,3)}},k(z,"RequestType3"),z);t.RequestType3=d;var h=(B=class extends a{constructor(Re){super(Re,4)}},k(B,"RequestType4"),B);t.RequestType4=h;var f=(q=class extends a{constructor(Re){super(Re,5)}},k(q,"RequestType5"),q);t.RequestType5=f;var p=(Y=class extends a{constructor(Re){super(Re,6)}},k(Y,"RequestType6"),Y);t.RequestType6=p;var g=(Q=class extends a{constructor(Re){super(Re,7)}},k(Q,"RequestType7"),Q);t.RequestType7=g;var m=(H=class extends a{constructor(Re){super(Re,8)}},k(H,"RequestType8"),H);t.RequestType8=m;var y=(J=class extends a{constructor(Re){super(Re,9)}},k(J,"RequestType9"),J);t.RequestType9=y;var v=(Z=class extends a{constructor(Re,qe=i.auto){super(Re,1),this._parameterStructures=qe}get parameterStructures(){return this._parameterStructures}},k(Z,"NotificationType"),Z);t.NotificationType=v;var b=(pe=class extends a{constructor(Re){super(Re,0)}},k(pe,"NotificationType0"),pe);t.NotificationType0=b;var _=(re=class extends a{constructor(Re,qe=i.auto){super(Re,1),this._parameterStructures=qe}get parameterStructures(){return this._parameterStructures}},k(re,"NotificationType1"),re);t.NotificationType1=_;var E=(ce=class extends a{constructor(Re){super(Re,2)}},k(ce,"NotificationType2"),ce);t.NotificationType2=E;var x=(ae=class extends a{constructor(Re){super(Re,3)}},k(ae,"NotificationType3"),ae);t.NotificationType3=x;var C=(se=class extends a{constructor(Re){super(Re,4)}},k(se,"NotificationType4"),se);t.NotificationType4=C;var T=(xe=class extends a{constructor(Re){super(Re,5)}},k(xe,"NotificationType5"),xe);t.NotificationType5=T;var w=(Te=class extends a{constructor(Re){super(Re,6)}},k(Te,"NotificationType6"),Te);t.NotificationType6=w;var N=(Ge=class extends a{constructor(Re){super(Re,7)}},k(Ge,"NotificationType7"),Ge);t.NotificationType7=N;var O=(ze=class extends a{constructor(Re){super(Re,8)}},k(ze,"NotificationType8"),ze);t.NotificationType8=O;var M=(Xe=class extends a{constructor(Re){super(Re,9)}},k(Xe,"NotificationType9"),Xe);t.NotificationType9=M;var $;(function(Le){function Re(ut){const De=ut;return De&&e.string(De.method)&&(e.string(De.id)||e.number(De.id))}k(Re,"isRequest"),Le.isRequest=Re;function qe(ut){const De=ut;return De&&e.string(De.method)&&ut.id===void 0}k(qe,"isNotification"),Le.isNotification=qe;function Ne(ut){const De=ut;return De&&(De.result!==void 0||!!De.error)&&(e.string(De.id)||e.number(De.id)||De.id===null)}k(Ne,"isResponse"),Le.isResponse=Ne})($||(t.Message=$={}))}}),L2e=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(t){var a,s;var e;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0;var r;(function(o){o.None=0,o.First=1,o.AsOld=o.First,o.Last=2,o.AsNew=o.Last})(r||(t.Touch=r={}));var n=(a=class{constructor(){this[e]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(l){return this._map.has(l)}get(l,u=r.None){const d=this._map.get(l);if(d)return u!==r.None&&this.touch(d,u),d.value}set(l,u,d=r.None){let h=this._map.get(l);if(h)h.value=u,d!==r.None&&this.touch(h,d);else{switch(h={key:l,value:u,next:void 0,previous:void 0},d){case r.None:this.addItemLast(h);break;case r.First:this.addItemFirst(h);break;case r.Last:this.addItemLast(h);break;default:this.addItemLast(h);break}this._map.set(l,h),this._size++}return this}delete(l){return!!this.remove(l)}remove(l){const u=this._map.get(l);if(u)return this._map.delete(l),this.removeItem(u),this._size--,u.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const l=this._head;return this._map.delete(l.key),this.removeItem(l),this._size--,l.value}forEach(l,u){const d=this._state;let h=this._head;for(;h;){if(u?l.bind(u)(h.value,h.key,this):l(h.value,h.key,this),this._state!==d)throw new Error("LinkedMap got modified during iteration.");h=h.next}}keys(){const l=this._state;let u=this._head;const d={[Symbol.iterator]:()=>d,next:k(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(u){const h={value:u.key,done:!1};return u=u.next,h}else return{value:void 0,done:!0}},"next")};return d}values(){const l=this._state;let u=this._head;const d={[Symbol.iterator]:()=>d,next:k(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(u){const h={value:u.value,done:!1};return u=u.next,h}else return{value:void 0,done:!0}},"next")};return d}entries(){const l=this._state;let u=this._head;const d={[Symbol.iterator]:()=>d,next:k(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(u){const h={value:[u.key,u.value],done:!1};return u=u.next,h}else return{value:void 0,done:!0}},"next")};return d}[(e=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(l){if(l>=this.size)return;if(l===0){this.clear();return}let u=this._head,d=this.size;for(;u&&d>l;)this._map.delete(u.key),u=u.next,d--;this._head=u,this._size=d,u&&(u.previous=void 0),this._state++}addItemFirst(l){if(!this._head&&!this._tail)this._tail=l;else if(this._head)l.next=this._head,this._head.previous=l;else throw new Error("Invalid list");this._head=l,this._state++}addItemLast(l){if(!this._head&&!this._tail)this._head=l;else if(this._tail)l.previous=this._tail,this._tail.next=l;else throw new Error("Invalid list");this._tail=l,this._state++}removeItem(l){if(l===this._head&&l===this._tail)this._head=void 0,this._tail=void 0;else if(l===this._head){if(!l.next)throw new Error("Invalid list");l.next.previous=void 0,this._head=l.next}else if(l===this._tail){if(!l.previous)throw new Error("Invalid list");l.previous.next=void 0,this._tail=l.previous}else{const u=l.next,d=l.previous;if(!u||!d)throw new Error("Invalid list");u.previous=d,d.next=u}l.next=void 0,l.previous=void 0,this._state++}touch(l,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(u!==r.First&&u!==r.Last)){if(u===r.First){if(l===this._head)return;const d=l.next,h=l.previous;l===this._tail?(h.next=void 0,this._tail=h):(d.previous=h,h.next=d),l.previous=void 0,l.next=this._head,this._head.previous=l,this._head=l,this._state++}else if(u===r.Last){if(l===this._tail)return;const d=l.next,h=l.previous;l===this._head?(d.previous=void 0,this._head=d):(d.previous=h,h.next=d),l.next=void 0,l.previous=this._tail,this._tail.next=l,this._tail=l,this._state++}}}toJSON(){const l=[];return this.forEach((u,d)=>{l.push([d,u])}),l}fromJSON(l){this.clear();for(const[u,d]of l)this.set(u,d)}},k(a,"LinkedMap"),a);t.LinkedMap=n;var i=(s=class extends n{constructor(l,u=1){super(),this._limit=l,this._ratio=Math.min(Math.max(0,u),1)}get limit(){return this._limit}set limit(l){this._limit=l,this.checkTrim()}get ratio(){return this._ratio}set ratio(l){this._ratio=Math.min(Math.max(0,l),1),this.checkTrim()}get(l,u=r.AsNew){return super.get(l,u)}peek(l){return super.get(l,r.None)}set(l,u){return super.set(l,u,r.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}},k(s,"LRUCache"),s);t.LRUCache=i}}),f_t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0;var e;(function(r){function n(i){return{dispose:i}}k(n,"create"),r.create=n})(e||(t.Disposable=e={}))}}),p_t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(t){var o,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;var e=Y7(),r;(function(h){h.Continue=0,h.Cancelled=1})(r||(r={}));var n=(o=class{constructor(){this.buffers=new Map}enableCancellation(f){if(f.id===null)return;const p=new SharedArrayBuffer(4),g=new Int32Array(p,0,1);g[0]=r.Continue,this.buffers.set(f.id,p),f.$cancellationData=p}async sendCancellation(f,p){const g=this.buffers.get(p);if(g===void 0)return;const m=new Int32Array(g,0,1);Atomics.store(m,0,r.Cancelled)}cleanup(f){this.buffers.delete(f)}dispose(){this.buffers.clear()}},k(o,"SharedArraySenderStrategy"),o);t.SharedArraySenderStrategy=n;var i=(l=class{constructor(f){this.data=new Int32Array(f,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},k(l,"SharedArrayBufferCancellationToken"),l),a=(u=class{constructor(f){this.token=new i(f)}cancel(){}dispose(){}},k(u,"SharedArrayBufferCancellationTokenSource"),u),s=(d=class{constructor(){this.kind="request"}createCancellationTokenSource(f){const p=f.$cancellationData;return p===void 0?new e.CancellationTokenSource:new a(p)}},k(d,"SharedArrayReceiverStrategy"),d);t.SharedArrayReceiverStrategy=s}}),M2e=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;var e=og(),r=(n=class{constructor(a=1){if(a<=0)throw new Error("Capacity must be greater than 0");this._capacity=a,this._active=0,this._waiting=[]}lock(a){return new Promise((s,o)=>{this._waiting.push({thunk:a,resolve:s,reject:o}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,e.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const a=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const s=a.thunk();s instanceof Promise?s.then(o=>{this._active--,a.resolve(o),this.runNext()},o=>{this._active--,a.reject(o),this.runNext()}):(this._active--,a.resolve(s),this.runNext())}catch(s){this._active--,a.reject(s),this.runNext()}}},k(n,"Semaphore"),n);t.Semaphore=r}}),g_t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(t){var u,d;Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;var e=og(),r=MT(),n=l2(),i=M2e(),a;(function(h){function f(p){let g=p;return g&&r.func(g.listen)&&r.func(g.dispose)&&r.func(g.onError)&&r.func(g.onClose)&&r.func(g.onPartialMessage)}k(f,"is"),h.is=f})(a||(t.MessageReader=a={}));var s=(u=class{constructor(){this.errorEmitter=new n.Emitter,this.closeEmitter=new n.Emitter,this.partialMessageEmitter=new n.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(f){this.errorEmitter.fire(this.asError(f))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(f){this.partialMessageEmitter.fire(f)}asError(f){return f instanceof Error?f:new Error(`Reader received error. Reason: ${r.string(f.message)?f.message:"unknown"}`)}},k(u,"AbstractMessageReader"),u);t.AbstractMessageReader=s;var o;(function(h){function f(p){let g,m;const y=new Map;let v;const b=new Map;if(p===void 0||typeof p=="string")g=p??"utf-8";else{if(g=p.charset??"utf-8",p.contentDecoder!==void 0&&(m=p.contentDecoder,y.set(m.name,m)),p.contentDecoders!==void 0)for(const _ of p.contentDecoders)y.set(_.name,_);if(p.contentTypeDecoder!==void 0&&(v=p.contentTypeDecoder,b.set(v.name,v)),p.contentTypeDecoders!==void 0)for(const _ of p.contentTypeDecoders)b.set(_.name,_)}return v===void 0&&(v=(0,e.default)().applicationJson.decoder,b.set(v.name,v)),{charset:g,contentDecoder:m,contentDecoders:y,contentTypeDecoder:v,contentTypeDecoders:b}}k(f,"fromOptions"),h.fromOptions=f})(o||(o={}));var l=(d=class extends s{constructor(f,p){super(),this.readable=f,this.options=o.fromOptions(p),this.buffer=(0,e.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new i.Semaphore(1)}set partialMessageTimeout(f){this._partialMessageTimeout=f}get partialMessageTimeout(){return this._partialMessageTimeout}listen(f){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=f;const p=this.readable.onData(g=>{this.onData(g)});return this.readable.onError(g=>this.fireError(g)),this.readable.onClose(()=>this.fireClose()),p}onData(f){try{for(this.buffer.append(f);;){if(this.nextMessageLength===-1){const g=this.buffer.tryReadHeaders(!0);if(!g)return;const m=g.get("content-length");if(!m){this.fireError(new Error(`Header must provide a Content-Length property. -${JSON.stringify(Object.fromEntries(g))}`));return}const y=parseInt(m);if(isNaN(y)){this.fireError(new Error(`Content-Length value must be a number. Got ${m}`));return}this.nextMessageLength=y}const p=this.buffer.tryReadBody(this.nextMessageLength);if(p===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const g=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(p):p,m=await this.options.contentTypeDecoder.decode(g,this.options);this.callback(m)}).catch(g=>{this.fireError(g)})}}catch(p){this.fireError(p)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,e.default)().timer.setTimeout((f,p)=>{this.partialMessageTimer=void 0,f===this.messageToken&&(this.firePartialMessage({messageToken:f,waitingTime:p}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}},k(d,"ReadableStreamMessageReader"),d);t.ReadableStreamMessageReader=l}}),m_t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(t){var h,f;Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;var e=og(),r=MT(),n=M2e(),i=l2(),a="Content-Length: ",s=`\r -`,o;(function(p){function g(m){let y=m;return y&&r.func(y.dispose)&&r.func(y.onClose)&&r.func(y.onError)&&r.func(y.write)}k(g,"is"),p.is=g})(o||(t.MessageWriter=o={}));var l=(h=class{constructor(){this.errorEmitter=new i.Emitter,this.closeEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(g,m,y){this.errorEmitter.fire([this.asError(g),m,y])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(g){return g instanceof Error?g:new Error(`Writer received error. Reason: ${r.string(g.message)?g.message:"unknown"}`)}},k(h,"AbstractMessageWriter"),h);t.AbstractMessageWriter=l;var u;(function(p){function g(m){return m===void 0||typeof m=="string"?{charset:m??"utf-8",contentTypeEncoder:(0,e.default)().applicationJson.encoder}:{charset:m.charset??"utf-8",contentEncoder:m.contentEncoder,contentTypeEncoder:m.contentTypeEncoder??(0,e.default)().applicationJson.encoder}}k(g,"fromOptions"),p.fromOptions=g})(u||(u={}));var d=(f=class extends l{constructor(g,m){super(),this.writable=g,this.options=u.fromOptions(m),this.errorCount=0,this.writeSemaphore=new n.Semaphore(1),this.writable.onError(y=>this.fireError(y)),this.writable.onClose(()=>this.fireClose())}async write(g){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(g,this.options).then(y=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(y):y).then(y=>{const v=[];return v.push(a,y.byteLength.toString(),s),v.push(s),this.doWrite(g,v,y)},y=>{throw this.fireError(y),y}))}async doWrite(g,m,y){try{return await this.writable.write(m.join(""),"ascii"),this.writable.write(y)}catch(v){return this.handleError(v,g),Promise.reject(v)}}handleError(g,m){this.errorCount++,this.fireError(g,m,this.errorCount)}end(){this.writable.end()}},k(f,"WriteableStreamMessageWriter"),f);t.WriteableStreamMessageWriter=d}}),y_t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(t){var a;Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0;var e=13,r=10,n=`\r +`&&l++}o&&s.length>0&&a.push(s.length),this._lineOffsets=a}return this._lineOffsets}positionAt(a){a=Math.max(Math.min(a,this._content.length),0);let s=this.getLineOffsets(),o=0,l=s.length;if(l===0)return xn.create(0,a);for(;oa?l=d:o=d+1}let u=o-1;return xn.create(u,a-s[u])}offsetAt(a){let s=this.getLineOffsets();if(a.line>=s.length)return this._content.length;if(a.line<0)return 0;let o=s[a.line],l=a.line+1"u"}k(o,"undefined"),i.undefined=o;function l(v){return v===!0||v===!1}k(l,"boolean"),i.boolean=l;function u(v){return a.call(v)==="[object String]"}k(u,"string"),i.string=u;function d(v){return a.call(v)==="[object Number]"}k(d,"number"),i.number=d;function h(v,b,_){return a.call(v)==="[object Number]"&&b<=v&&v<=_}k(h,"numberRange"),i.numberRange=h;function f(v){return a.call(v)==="[object Number]"&&-2147483648<=v&&v<=2147483647}k(f,"integer"),i.integer=f;function p(v){return a.call(v)==="[object Number]"&&0<=v&&v<=2147483647}k(p,"uinteger"),i.uinteger=p;function g(v){return a.call(v)==="[object Function]"}k(g,"func"),i.func=g;function m(v){return v!==null&&typeof v=="object"}k(m,"objectLiteral"),i.objectLiteral=m;function y(v,b){return Array.isArray(v)&&v.every(b)}k(y,"typedArray"),i.typedArray=y})(ht||(ht={}))}}),og=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var e;function r(){if(e===void 0)throw new Error("No runtime abstraction layer installed");return e}k(r,"RAL"),(function(n){function i(a){if(a===void 0)throw new Error("No runtime abstraction layer provided");e=a}k(i,"install"),n.install=i})(r||(r={})),t.default=r}}),MT=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0;function e(l){return l===!0||l===!1}k(e,"boolean"),t.boolean=e;function r(l){return typeof l=="string"||l instanceof String}k(r,"string"),t.string=r;function n(l){return typeof l=="number"||l instanceof Number}k(n,"number"),t.number=n;function i(l){return l instanceof Error}k(i,"error"),t.error=i;function a(l){return typeof l=="function"}k(a,"func"),t.func=a;function s(l){return Array.isArray(l)}k(s,"array"),t.array=s;function o(l){return s(l)&&l.every(u=>r(u))}k(o,"stringArray"),t.stringArray=o}}),l2=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(t){var a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var e=og(),r;(function(o){const l={dispose(){}};o.None=function(){return l}})(r||(t.Event=r={}));var n=(a=class{add(l,u=null,d){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(l),this._contexts.push(u),Array.isArray(d)&&d.push({dispose:k(()=>this.remove(l,u),"dispose")})}remove(l,u=null){if(!this._callbacks)return;let d=!1;for(let h=0,f=this._callbacks.length;h{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(l,u);const h={dispose:k(()=>{this._callbacks&&(this._callbacks.remove(l,u),h.dispose=s._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(d)&&d.push(h),h}),this._event}fire(l){this._callbacks&&this._callbacks.invoke.call(this._callbacks,l)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}},k(s,"Emitter"),s);t.Emitter=i,i._noop=function(){}}}),Y7=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(t){var l,u;Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;var e=og(),r=MT(),n=l2(),i;(function(d){d.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),d.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n.Event.None});function h(f){const p=f;return p&&(p===d.None||p===d.Cancelled||r.boolean(p.isCancellationRequested)&&!!p.onCancellationRequested)}k(h,"is"),d.is=h})(i||(t.CancellationToken=i={}));var a=Object.freeze(function(d,h){const f=(0,e.default)().timer.setTimeout(d.bind(h),0);return{dispose(){f.dispose()}}}),s=(l=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},k(l,"MutableToken"),l),o=(u=class{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token.cancel():this._token=i.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=i.None}},k(u,"CancellationTokenSource"),u);t.CancellationTokenSource=o}}),D2e=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(t){var F,A,I,D,L,R,P,z,B,q,Y,Q,H,J,Z,pe,re,ce,ae,se,xe,Te,Ge,ze,Xe;Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;var e=MT(),r;(function(Le){Le.ParseError=-32700,Le.InvalidRequest=-32600,Le.MethodNotFound=-32601,Le.InvalidParams=-32602,Le.InternalError=-32603,Le.jsonrpcReservedErrorRangeStart=-32099,Le.serverErrorStart=-32099,Le.MessageWriteError=-32099,Le.MessageReadError=-32098,Le.PendingResponseRejected=-32097,Le.ConnectionInactive=-32096,Le.ServerNotInitialized=-32002,Le.UnknownErrorCode=-32001,Le.jsonrpcReservedErrorRangeEnd=-32e3,Le.serverErrorEnd=-32e3})(r||(t.ErrorCodes=r={}));var n=(F=class extends Error{constructor(Re,qe,Ne){super(qe),this.code=e.number(Re)?Re:r.UnknownErrorCode,this.data=Ne,Object.setPrototypeOf(this,F.prototype)}toJson(){const Re={code:this.code,message:this.message};return this.data!==void 0&&(Re.data=this.data),Re}},k(F,"ResponseError"),F);t.ResponseError=n;var i=(A=class{constructor(Re){this.kind=Re}static is(Re){return Re===A.auto||Re===A.byName||Re===A.byPosition}toString(){return this.kind}},k(A,"ParameterStructures"),A);t.ParameterStructures=i,i.auto=new i("auto"),i.byPosition=new i("byPosition"),i.byName=new i("byName");var a=(I=class{constructor(Re,qe){this.method=Re,this.numberOfParams=qe}get parameterStructures(){return i.auto}},k(I,"AbstractMessageSignature"),I);t.AbstractMessageSignature=a;var s=(D=class extends a{constructor(Re){super(Re,0)}},k(D,"RequestType0"),D);t.RequestType0=s;var o=(L=class extends a{constructor(Re,qe=i.auto){super(Re,1),this._parameterStructures=qe}get parameterStructures(){return this._parameterStructures}},k(L,"RequestType"),L);t.RequestType=o;var l=(R=class extends a{constructor(Re,qe=i.auto){super(Re,1),this._parameterStructures=qe}get parameterStructures(){return this._parameterStructures}},k(R,"RequestType1"),R);t.RequestType1=l;var u=(P=class extends a{constructor(Re){super(Re,2)}},k(P,"RequestType2"),P);t.RequestType2=u;var d=(z=class extends a{constructor(Re){super(Re,3)}},k(z,"RequestType3"),z);t.RequestType3=d;var h=(B=class extends a{constructor(Re){super(Re,4)}},k(B,"RequestType4"),B);t.RequestType4=h;var f=(q=class extends a{constructor(Re){super(Re,5)}},k(q,"RequestType5"),q);t.RequestType5=f;var p=(Y=class extends a{constructor(Re){super(Re,6)}},k(Y,"RequestType6"),Y);t.RequestType6=p;var g=(Q=class extends a{constructor(Re){super(Re,7)}},k(Q,"RequestType7"),Q);t.RequestType7=g;var m=(H=class extends a{constructor(Re){super(Re,8)}},k(H,"RequestType8"),H);t.RequestType8=m;var y=(J=class extends a{constructor(Re){super(Re,9)}},k(J,"RequestType9"),J);t.RequestType9=y;var v=(Z=class extends a{constructor(Re,qe=i.auto){super(Re,1),this._parameterStructures=qe}get parameterStructures(){return this._parameterStructures}},k(Z,"NotificationType"),Z);t.NotificationType=v;var b=(pe=class extends a{constructor(Re){super(Re,0)}},k(pe,"NotificationType0"),pe);t.NotificationType0=b;var _=(re=class extends a{constructor(Re,qe=i.auto){super(Re,1),this._parameterStructures=qe}get parameterStructures(){return this._parameterStructures}},k(re,"NotificationType1"),re);t.NotificationType1=_;var E=(ce=class extends a{constructor(Re){super(Re,2)}},k(ce,"NotificationType2"),ce);t.NotificationType2=E;var x=(ae=class extends a{constructor(Re){super(Re,3)}},k(ae,"NotificationType3"),ae);t.NotificationType3=x;var C=(se=class extends a{constructor(Re){super(Re,4)}},k(se,"NotificationType4"),se);t.NotificationType4=C;var T=(xe=class extends a{constructor(Re){super(Re,5)}},k(xe,"NotificationType5"),xe);t.NotificationType5=T;var w=(Te=class extends a{constructor(Re){super(Re,6)}},k(Te,"NotificationType6"),Te);t.NotificationType6=w;var N=(Ge=class extends a{constructor(Re){super(Re,7)}},k(Ge,"NotificationType7"),Ge);t.NotificationType7=N;var O=(ze=class extends a{constructor(Re){super(Re,8)}},k(ze,"NotificationType8"),ze);t.NotificationType8=O;var M=(Xe=class extends a{constructor(Re){super(Re,9)}},k(Xe,"NotificationType9"),Xe);t.NotificationType9=M;var $;(function(Le){function Re(ut){const De=ut;return De&&e.string(De.method)&&(e.string(De.id)||e.number(De.id))}k(Re,"isRequest"),Le.isRequest=Re;function qe(ut){const De=ut;return De&&e.string(De.method)&&ut.id===void 0}k(qe,"isNotification"),Le.isNotification=qe;function Ne(ut){const De=ut;return De&&(De.result!==void 0||!!De.error)&&(e.string(De.id)||e.number(De.id)||De.id===null)}k(Ne,"isResponse"),Le.isResponse=Ne})($||(t.Message=$={}))}}),L2e=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(t){var a,s;var e;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0;var r;(function(o){o.None=0,o.First=1,o.AsOld=o.First,o.Last=2,o.AsNew=o.Last})(r||(t.Touch=r={}));var n=(a=class{constructor(){this[e]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(l){return this._map.has(l)}get(l,u=r.None){const d=this._map.get(l);if(d)return u!==r.None&&this.touch(d,u),d.value}set(l,u,d=r.None){let h=this._map.get(l);if(h)h.value=u,d!==r.None&&this.touch(h,d);else{switch(h={key:l,value:u,next:void 0,previous:void 0},d){case r.None:this.addItemLast(h);break;case r.First:this.addItemFirst(h);break;case r.Last:this.addItemLast(h);break;default:this.addItemLast(h);break}this._map.set(l,h),this._size++}return this}delete(l){return!!this.remove(l)}remove(l){const u=this._map.get(l);if(u)return this._map.delete(l),this.removeItem(u),this._size--,u.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const l=this._head;return this._map.delete(l.key),this.removeItem(l),this._size--,l.value}forEach(l,u){const d=this._state;let h=this._head;for(;h;){if(u?l.bind(u)(h.value,h.key,this):l(h.value,h.key,this),this._state!==d)throw new Error("LinkedMap got modified during iteration.");h=h.next}}keys(){const l=this._state;let u=this._head;const d={[Symbol.iterator]:()=>d,next:k(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(u){const h={value:u.key,done:!1};return u=u.next,h}else return{value:void 0,done:!0}},"next")};return d}values(){const l=this._state;let u=this._head;const d={[Symbol.iterator]:()=>d,next:k(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(u){const h={value:u.value,done:!1};return u=u.next,h}else return{value:void 0,done:!0}},"next")};return d}entries(){const l=this._state;let u=this._head;const d={[Symbol.iterator]:()=>d,next:k(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(u){const h={value:[u.key,u.value],done:!1};return u=u.next,h}else return{value:void 0,done:!0}},"next")};return d}[(e=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(l){if(l>=this.size)return;if(l===0){this.clear();return}let u=this._head,d=this.size;for(;u&&d>l;)this._map.delete(u.key),u=u.next,d--;this._head=u,this._size=d,u&&(u.previous=void 0),this._state++}addItemFirst(l){if(!this._head&&!this._tail)this._tail=l;else if(this._head)l.next=this._head,this._head.previous=l;else throw new Error("Invalid list");this._head=l,this._state++}addItemLast(l){if(!this._head&&!this._tail)this._head=l;else if(this._tail)l.previous=this._tail,this._tail.next=l;else throw new Error("Invalid list");this._tail=l,this._state++}removeItem(l){if(l===this._head&&l===this._tail)this._head=void 0,this._tail=void 0;else if(l===this._head){if(!l.next)throw new Error("Invalid list");l.next.previous=void 0,this._head=l.next}else if(l===this._tail){if(!l.previous)throw new Error("Invalid list");l.previous.next=void 0,this._tail=l.previous}else{const u=l.next,d=l.previous;if(!u||!d)throw new Error("Invalid list");u.previous=d,d.next=u}l.next=void 0,l.previous=void 0,this._state++}touch(l,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(u!==r.First&&u!==r.Last)){if(u===r.First){if(l===this._head)return;const d=l.next,h=l.previous;l===this._tail?(h.next=void 0,this._tail=h):(d.previous=h,h.next=d),l.previous=void 0,l.next=this._head,this._head.previous=l,this._head=l,this._state++}else if(u===r.Last){if(l===this._tail)return;const d=l.next,h=l.previous;l===this._head?(d.previous=void 0,this._head=d):(d.previous=h,h.next=d),l.next=void 0,l.previous=this._tail,this._tail.next=l,this._tail=l,this._state++}}}toJSON(){const l=[];return this.forEach((u,d)=>{l.push([d,u])}),l}fromJSON(l){this.clear();for(const[u,d]of l)this.set(u,d)}},k(a,"LinkedMap"),a);t.LinkedMap=n;var i=(s=class extends n{constructor(l,u=1){super(),this._limit=l,this._ratio=Math.min(Math.max(0,u),1)}get limit(){return this._limit}set limit(l){this._limit=l,this.checkTrim()}get ratio(){return this._ratio}set ratio(l){this._ratio=Math.min(Math.max(0,l),1),this.checkTrim()}get(l,u=r.AsNew){return super.get(l,u)}peek(l){return super.get(l,r.None)}set(l,u){return super.set(l,u,r.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}},k(s,"LRUCache"),s);t.LRUCache=i}}),p_t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0;var e;(function(r){function n(i){return{dispose:i}}k(n,"create"),r.create=n})(e||(t.Disposable=e={}))}}),g_t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(t){var o,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;var e=Y7(),r;(function(h){h.Continue=0,h.Cancelled=1})(r||(r={}));var n=(o=class{constructor(){this.buffers=new Map}enableCancellation(f){if(f.id===null)return;const p=new SharedArrayBuffer(4),g=new Int32Array(p,0,1);g[0]=r.Continue,this.buffers.set(f.id,p),f.$cancellationData=p}async sendCancellation(f,p){const g=this.buffers.get(p);if(g===void 0)return;const m=new Int32Array(g,0,1);Atomics.store(m,0,r.Cancelled)}cleanup(f){this.buffers.delete(f)}dispose(){this.buffers.clear()}},k(o,"SharedArraySenderStrategy"),o);t.SharedArraySenderStrategy=n;var i=(l=class{constructor(f){this.data=new Int32Array(f,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},k(l,"SharedArrayBufferCancellationToken"),l),a=(u=class{constructor(f){this.token=new i(f)}cancel(){}dispose(){}},k(u,"SharedArrayBufferCancellationTokenSource"),u),s=(d=class{constructor(){this.kind="request"}createCancellationTokenSource(f){const p=f.$cancellationData;return p===void 0?new e.CancellationTokenSource:new a(p)}},k(d,"SharedArrayReceiverStrategy"),d);t.SharedArrayReceiverStrategy=s}}),M2e=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;var e=og(),r=(n=class{constructor(a=1){if(a<=0)throw new Error("Capacity must be greater than 0");this._capacity=a,this._active=0,this._waiting=[]}lock(a){return new Promise((s,o)=>{this._waiting.push({thunk:a,resolve:s,reject:o}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,e.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const a=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const s=a.thunk();s instanceof Promise?s.then(o=>{this._active--,a.resolve(o),this.runNext()},o=>{this._active--,a.reject(o),this.runNext()}):(this._active--,a.resolve(s),this.runNext())}catch(s){this._active--,a.reject(s),this.runNext()}}},k(n,"Semaphore"),n);t.Semaphore=r}}),m_t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(t){var u,d;Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;var e=og(),r=MT(),n=l2(),i=M2e(),a;(function(h){function f(p){let g=p;return g&&r.func(g.listen)&&r.func(g.dispose)&&r.func(g.onError)&&r.func(g.onClose)&&r.func(g.onPartialMessage)}k(f,"is"),h.is=f})(a||(t.MessageReader=a={}));var s=(u=class{constructor(){this.errorEmitter=new n.Emitter,this.closeEmitter=new n.Emitter,this.partialMessageEmitter=new n.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(f){this.errorEmitter.fire(this.asError(f))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(f){this.partialMessageEmitter.fire(f)}asError(f){return f instanceof Error?f:new Error(`Reader received error. Reason: ${r.string(f.message)?f.message:"unknown"}`)}},k(u,"AbstractMessageReader"),u);t.AbstractMessageReader=s;var o;(function(h){function f(p){let g,m;const y=new Map;let v;const b=new Map;if(p===void 0||typeof p=="string")g=p??"utf-8";else{if(g=p.charset??"utf-8",p.contentDecoder!==void 0&&(m=p.contentDecoder,y.set(m.name,m)),p.contentDecoders!==void 0)for(const _ of p.contentDecoders)y.set(_.name,_);if(p.contentTypeDecoder!==void 0&&(v=p.contentTypeDecoder,b.set(v.name,v)),p.contentTypeDecoders!==void 0)for(const _ of p.contentTypeDecoders)b.set(_.name,_)}return v===void 0&&(v=(0,e.default)().applicationJson.decoder,b.set(v.name,v)),{charset:g,contentDecoder:m,contentDecoders:y,contentTypeDecoder:v,contentTypeDecoders:b}}k(f,"fromOptions"),h.fromOptions=f})(o||(o={}));var l=(d=class extends s{constructor(f,p){super(),this.readable=f,this.options=o.fromOptions(p),this.buffer=(0,e.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new i.Semaphore(1)}set partialMessageTimeout(f){this._partialMessageTimeout=f}get partialMessageTimeout(){return this._partialMessageTimeout}listen(f){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=f;const p=this.readable.onData(g=>{this.onData(g)});return this.readable.onError(g=>this.fireError(g)),this.readable.onClose(()=>this.fireClose()),p}onData(f){try{for(this.buffer.append(f);;){if(this.nextMessageLength===-1){const g=this.buffer.tryReadHeaders(!0);if(!g)return;const m=g.get("content-length");if(!m){this.fireError(new Error(`Header must provide a Content-Length property. +${JSON.stringify(Object.fromEntries(g))}`));return}const y=parseInt(m);if(isNaN(y)){this.fireError(new Error(`Content-Length value must be a number. Got ${m}`));return}this.nextMessageLength=y}const p=this.buffer.tryReadBody(this.nextMessageLength);if(p===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const g=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(p):p,m=await this.options.contentTypeDecoder.decode(g,this.options);this.callback(m)}).catch(g=>{this.fireError(g)})}}catch(p){this.fireError(p)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,e.default)().timer.setTimeout((f,p)=>{this.partialMessageTimer=void 0,f===this.messageToken&&(this.firePartialMessage({messageToken:f,waitingTime:p}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}},k(d,"ReadableStreamMessageReader"),d);t.ReadableStreamMessageReader=l}}),y_t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(t){var h,f;Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;var e=og(),r=MT(),n=M2e(),i=l2(),a="Content-Length: ",s=`\r +`,o;(function(p){function g(m){let y=m;return y&&r.func(y.dispose)&&r.func(y.onClose)&&r.func(y.onError)&&r.func(y.write)}k(g,"is"),p.is=g})(o||(t.MessageWriter=o={}));var l=(h=class{constructor(){this.errorEmitter=new i.Emitter,this.closeEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(g,m,y){this.errorEmitter.fire([this.asError(g),m,y])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(g){return g instanceof Error?g:new Error(`Writer received error. Reason: ${r.string(g.message)?g.message:"unknown"}`)}},k(h,"AbstractMessageWriter"),h);t.AbstractMessageWriter=l;var u;(function(p){function g(m){return m===void 0||typeof m=="string"?{charset:m??"utf-8",contentTypeEncoder:(0,e.default)().applicationJson.encoder}:{charset:m.charset??"utf-8",contentEncoder:m.contentEncoder,contentTypeEncoder:m.contentTypeEncoder??(0,e.default)().applicationJson.encoder}}k(g,"fromOptions"),p.fromOptions=g})(u||(u={}));var d=(f=class extends l{constructor(g,m){super(),this.writable=g,this.options=u.fromOptions(m),this.errorCount=0,this.writeSemaphore=new n.Semaphore(1),this.writable.onError(y=>this.fireError(y)),this.writable.onClose(()=>this.fireClose())}async write(g){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(g,this.options).then(y=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(y):y).then(y=>{const v=[];return v.push(a,y.byteLength.toString(),s),v.push(s),this.doWrite(g,v,y)},y=>{throw this.fireError(y),y}))}async doWrite(g,m,y){try{return await this.writable.write(m.join(""),"ascii"),this.writable.write(y)}catch(v){return this.handleError(v,g),Promise.reject(v)}}handleError(g,m){this.errorCount++,this.fireError(g,m,this.errorCount)}end(){this.writable.end()}},k(f,"WriteableStreamMessageWriter"),f);t.WriteableStreamMessageWriter=d}}),v_t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(t){var a;Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0;var e=13,r=10,n=`\r `,i=(a=class{constructor(o="utf-8"){this._encoding=o,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(o){const l=typeof o=="string"?this.fromString(o,this._encoding):o;this._chunks.push(l),this._totalLength+=l.byteLength}tryReadHeaders(o=!1){if(this._chunks.length===0)return;let l=0,u=0,d=0,h=0;e:for(;uthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===o){const h=this._chunks[0];return this._chunks.shift(),this._totalLength-=o,this.asNative(h)}if(this._chunks[0].byteLength>o){const h=this._chunks[0],f=this.asNative(h,o);return this._chunks[0]=h.slice(o),this._totalLength-=o,f}const l=this.allocNative(o);let u=0,d=0;for(;o>0;){const h=this._chunks[d];if(h.byteLength>o){const f=h.slice(0,o);l.set(f,u),u+=o,this._chunks[d]=h.slice(o),this._totalLength-=o,o-=o}else l.set(h,u),u+=h.byteLength,this._chunks.shift(),this._totalLength-=h.byteLength,o-=h.byteLength}return l}},k(a,"AbstractMessageBuffer"),a);t.AbstractMessageBuffer=i}}),v_t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(t){var F,A;Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;var e=og(),r=MT(),n=D2e(),i=L2e(),a=l2(),s=Y7(),o;(function(I){I.type=new n.NotificationType("$/cancelRequest")})(o||(o={}));var l;(function(I){function D(L){return typeof L=="string"||typeof L=="number"}k(D,"is"),I.is=D})(l||(t.ProgressToken=l={}));var u;(function(I){I.type=new n.NotificationType("$/progress")})(u||(u={}));var d=(F=class{constructor(){}},k(F,"ProgressType"),F);t.ProgressType=d;var h;(function(I){function D(L){return r.func(L)}k(D,"is"),I.is=D})(h||(h={})),t.NullLogger=Object.freeze({error:k(()=>{},"error"),warn:k(()=>{},"warn"),info:k(()=>{},"info"),log:k(()=>{},"log")});var f;(function(I){I[I.Off=0]="Off",I[I.Messages=1]="Messages",I[I.Compact=2]="Compact",I[I.Verbose=3]="Verbose"})(f||(t.Trace=f={}));var p;(function(I){I.Off="off",I.Messages="messages",I.Compact="compact",I.Verbose="verbose"})(p||(t.TraceValues=p={})),(function(I){function D(R){if(!r.string(R))return I.Off;switch(R=R.toLowerCase(),R){case"off":return I.Off;case"messages":return I.Messages;case"compact":return I.Compact;case"verbose":return I.Verbose;default:return I.Off}}k(D,"fromString"),I.fromString=D;function L(R){switch(R){case I.Off:return"off";case I.Messages:return"messages";case I.Compact:return"compact";case I.Verbose:return"verbose";default:return"off"}}k(L,"toString"),I.toString=L})(f||(t.Trace=f={}));var g;(function(I){I.Text="text",I.JSON="json"})(g||(t.TraceFormat=g={})),(function(I){function D(L){return r.string(L)?(L=L.toLowerCase(),L==="json"?I.JSON:I.Text):I.Text}k(D,"fromString"),I.fromString=D})(g||(t.TraceFormat=g={}));var m;(function(I){I.type=new n.NotificationType("$/setTrace")})(m||(t.SetTraceNotification=m={}));var y;(function(I){I.type=new n.NotificationType("$/logTrace")})(y||(t.LogTraceNotification=y={}));var v;(function(I){I[I.Closed=1]="Closed",I[I.Disposed=2]="Disposed",I[I.AlreadyListening=3]="AlreadyListening"})(v||(t.ConnectionErrors=v={}));var b=(A=class extends Error{constructor(D,L){super(L),this.code=D,Object.setPrototypeOf(this,A.prototype)}},k(A,"ConnectionError"),A);t.ConnectionError=b;var _;(function(I){function D(L){const R=L;return R&&r.func(R.cancelUndispatched)}k(D,"is"),I.is=D})(_||(t.ConnectionStrategy=_={}));var E;(function(I){function D(L){const R=L;return R&&(R.kind===void 0||R.kind==="id")&&r.func(R.createCancellationTokenSource)&&(R.dispose===void 0||r.func(R.dispose))}k(D,"is"),I.is=D})(E||(t.IdCancellationReceiverStrategy=E={}));var x;(function(I){function D(L){const R=L;return R&&R.kind==="request"&&r.func(R.createCancellationTokenSource)&&(R.dispose===void 0||r.func(R.dispose))}k(D,"is"),I.is=D})(x||(t.RequestCancellationReceiverStrategy=x={}));var C;(function(I){I.Message=Object.freeze({createCancellationTokenSource(L){return new s.CancellationTokenSource}});function D(L){return E.is(L)||x.is(L)}k(D,"is"),I.is=D})(C||(t.CancellationReceiverStrategy=C={}));var T;(function(I){I.Message=Object.freeze({sendCancellation(L,R){return L.sendNotification(o.type,{id:R})},cleanup(L){}});function D(L){const R=L;return R&&r.func(R.sendCancellation)&&r.func(R.cleanup)}k(D,"is"),I.is=D})(T||(t.CancellationSenderStrategy=T={}));var w;(function(I){I.Message=Object.freeze({receiver:C.Message,sender:T.Message});function D(L){const R=L;return R&&C.is(R.receiver)&&T.is(R.sender)}k(D,"is"),I.is=D})(w||(t.CancellationStrategy=w={}));var N;(function(I){function D(L){const R=L;return R&&r.func(R.handleMessage)}k(D,"is"),I.is=D})(N||(t.MessageStrategy=N={}));var O;(function(I){function D(L){const R=L;return R&&(w.is(R.cancellationStrategy)||_.is(R.connectionStrategy)||N.is(R.messageStrategy))}k(D,"is"),I.is=D})(O||(t.ConnectionOptions=O={}));var M;(function(I){I[I.New=1]="New",I[I.Listening=2]="Listening",I[I.Closed=3]="Closed",I[I.Disposed=4]="Disposed"})(M||(M={}));function $(I,D,L,R){const P=L!==void 0?L:t.NullLogger;let z=0,B=0,q=0;const Y="2.0";let Q;const H=new Map;let J;const Z=new Map,pe=new Map;let re,ce=new i.LinkedMap,ae=new Map,se=new Set,xe=new Map,Te=f.Off,Ge=g.Text,ze,Xe=M.New;const Le=new a.Emitter,Re=new a.Emitter,qe=new a.Emitter,Ne=new a.Emitter,ut=new a.Emitter,De=R&&R.cancellationStrategy?R.cancellationStrategy:w.Message;function Je(Pe){if(Pe===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+Pe.toString()}k(Je,"createRequestQueueKey");function st(Pe){return Pe===null?"res-unknown-"+(++q).toString():"res-"+Pe.toString()}k(st,"createResponseQueueKey");function ct(){return"not-"+(++B).toString()}k(ct,"createNotificationQueueKey");function ot(Pe,yt){n.Message.isRequest(yt)?Pe.set(Je(yt.id),yt):n.Message.isResponse(yt)?Pe.set(st(yt.id),yt):Pe.set(ct(),yt)}k(ot,"addMessageToQueue");function it(Pe){}k(it,"cancelUndispatched");function Oe(){return Xe===M.Listening}k(Oe,"isListening");function U(){return Xe===M.Closed}k(U,"isClosed");function oe(){return Xe===M.Disposed}k(oe,"isDisposed");function de(){(Xe===M.New||Xe===M.Listening)&&(Xe=M.Closed,Re.fire(void 0))}k(de,"closeHandler");function G(Pe){Le.fire([Pe,void 0,void 0])}k(G,"readErrorHandler");function ie(Pe){Le.fire(Pe)}k(ie,"writeErrorHandler"),I.onClose(de),I.onError(G),D.onClose(de),D.onError(ie);function j(){re||ce.size===0||(re=(0,e.default)().timer.setImmediate(()=>{re=void 0,ue()}))}k(j,"triggerMessageQueue");function V(Pe){n.Message.isRequest(Pe)?me(Pe):n.Message.isNotification(Pe)?ye(Pe):n.Message.isResponse(Pe)?Ce(Pe):Me(Pe)}k(V,"handleMessage");function ue(){if(ce.size===0)return;const Pe=ce.shift();try{const yt=R?.messageStrategy;N.is(yt)?yt.handleMessage(Pe,V):V(Pe)}finally{j()}}k(ue,"processMessageQueue");const Fe=k(Pe=>{try{if(n.Message.isNotification(Pe)&&Pe.method===o.type.method){const yt=Pe.params.id,bt=Je(yt),Ot=ce.get(bt);if(n.Message.isRequest(Ot)){const br=R?.connectionStrategy,Ct=br&&br.cancelUndispatched?br.cancelUndispatched(Ot,it):void 0;if(Ct&&(Ct.error!==void 0||Ct.result!==void 0)){ce.delete(bt),xe.delete(yt),Ct.id=Ot.id,Be(Ct,Pe.method,Date.now()),D.write(Ct).catch(()=>P.error("Sending response for canceled message failed."));return}}const Qt=xe.get(yt);if(Qt!==void 0){Qt.cancel(),gt(Pe);return}else se.add(yt)}ot(ce,Pe)}finally{j()}},"callback");function me(Pe){if(oe())return;function yt(pt,Dt,Zt){const wr={jsonrpc:Y,id:Pe.id};pt instanceof n.ResponseError?wr.error=pt.toJson():wr.result=pt===void 0?null:pt,Be(wr,Dt,Zt),D.write(wr).catch(()=>P.error("Sending response failed."))}k(yt,"reply");function bt(pt,Dt,Zt){const wr={jsonrpc:Y,id:Pe.id,error:pt.toJson()};Be(wr,Dt,Zt),D.write(wr).catch(()=>P.error("Sending response failed."))}k(bt,"replyError");function Ot(pt,Dt,Zt){pt===void 0&&(pt=null);const wr={jsonrpc:Y,id:Pe.id,result:pt};Be(wr,Dt,Zt),D.write(wr).catch(()=>P.error("Sending response failed."))}k(Ot,"replySuccess"),ve(Pe);const Qt=H.get(Pe.method);let br,Ct;Qt&&(br=Qt.type,Ct=Qt.handler);const Ye=Date.now();if(Ct||Q){const pt=Pe.id??String(Date.now()),Dt=E.is(De.receiver)?De.receiver.createCancellationTokenSource(pt):De.receiver.createCancellationTokenSource(Pe);Pe.id!==null&&se.has(Pe.id)&&Dt.cancel(),Pe.id!==null&&xe.set(pt,Dt);try{let Zt;if(Ct)if(Pe.params===void 0){if(br!==void 0&&br.numberOfParams!==0){bt(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${Pe.method} defines ${br.numberOfParams} params but received none.`),Pe.method,Ye);return}Zt=Ct(Dt.token)}else if(Array.isArray(Pe.params)){if(br!==void 0&&br.parameterStructures===n.ParameterStructures.byName){bt(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${Pe.method} defines parameters by name but received parameters by position`),Pe.method,Ye);return}Zt=Ct(...Pe.params,Dt.token)}else{if(br!==void 0&&br.parameterStructures===n.ParameterStructures.byPosition){bt(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${Pe.method} defines parameters by position but received parameters by name`),Pe.method,Ye);return}Zt=Ct(Pe.params,Dt.token)}else Q&&(Zt=Q(Pe.method,Pe.params,Dt.token));const wr=Zt;Zt?wr.then?wr.then(Vr=>{xe.delete(pt),yt(Vr,Pe.method,Ye)},Vr=>{xe.delete(pt),Vr instanceof n.ResponseError?bt(Vr,Pe.method,Ye):Vr&&r.string(Vr.message)?bt(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Pe.method} failed with message: ${Vr.message}`),Pe.method,Ye):bt(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Pe.method} failed unexpectedly without providing any details.`),Pe.method,Ye)}):(xe.delete(pt),yt(Zt,Pe.method,Ye)):(xe.delete(pt),Ot(Zt,Pe.method,Ye))}catch(Zt){xe.delete(pt),Zt instanceof n.ResponseError?yt(Zt,Pe.method,Ye):Zt&&r.string(Zt.message)?bt(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Pe.method} failed with message: ${Zt.message}`),Pe.method,Ye):bt(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Pe.method} failed unexpectedly without providing any details.`),Pe.method,Ye)}}else bt(new n.ResponseError(n.ErrorCodes.MethodNotFound,`Unhandled method ${Pe.method}`),Pe.method,Ye)}k(me,"handleRequest");function Ce(Pe){if(!oe())if(Pe.id===null)Pe.error?P.error(`Received response message without id: Error is: +${y}`);const b=y.substr(0,v),_=y.substr(v+1).trim();p.set(o?b.toLowerCase():b,_)}return p}tryReadBody(o){if(!(this._totalLengththis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===o){const h=this._chunks[0];return this._chunks.shift(),this._totalLength-=o,this.asNative(h)}if(this._chunks[0].byteLength>o){const h=this._chunks[0],f=this.asNative(h,o);return this._chunks[0]=h.slice(o),this._totalLength-=o,f}const l=this.allocNative(o);let u=0,d=0;for(;o>0;){const h=this._chunks[d];if(h.byteLength>o){const f=h.slice(0,o);l.set(f,u),u+=o,this._chunks[d]=h.slice(o),this._totalLength-=o,o-=o}else l.set(h,u),u+=h.byteLength,this._chunks.shift(),this._totalLength-=h.byteLength,o-=h.byteLength}return l}},k(a,"AbstractMessageBuffer"),a);t.AbstractMessageBuffer=i}}),__t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(t){var F,A;Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;var e=og(),r=MT(),n=D2e(),i=L2e(),a=l2(),s=Y7(),o;(function(I){I.type=new n.NotificationType("$/cancelRequest")})(o||(o={}));var l;(function(I){function D(L){return typeof L=="string"||typeof L=="number"}k(D,"is"),I.is=D})(l||(t.ProgressToken=l={}));var u;(function(I){I.type=new n.NotificationType("$/progress")})(u||(u={}));var d=(F=class{constructor(){}},k(F,"ProgressType"),F);t.ProgressType=d;var h;(function(I){function D(L){return r.func(L)}k(D,"is"),I.is=D})(h||(h={})),t.NullLogger=Object.freeze({error:k(()=>{},"error"),warn:k(()=>{},"warn"),info:k(()=>{},"info"),log:k(()=>{},"log")});var f;(function(I){I[I.Off=0]="Off",I[I.Messages=1]="Messages",I[I.Compact=2]="Compact",I[I.Verbose=3]="Verbose"})(f||(t.Trace=f={}));var p;(function(I){I.Off="off",I.Messages="messages",I.Compact="compact",I.Verbose="verbose"})(p||(t.TraceValues=p={})),(function(I){function D(R){if(!r.string(R))return I.Off;switch(R=R.toLowerCase(),R){case"off":return I.Off;case"messages":return I.Messages;case"compact":return I.Compact;case"verbose":return I.Verbose;default:return I.Off}}k(D,"fromString"),I.fromString=D;function L(R){switch(R){case I.Off:return"off";case I.Messages:return"messages";case I.Compact:return"compact";case I.Verbose:return"verbose";default:return"off"}}k(L,"toString"),I.toString=L})(f||(t.Trace=f={}));var g;(function(I){I.Text="text",I.JSON="json"})(g||(t.TraceFormat=g={})),(function(I){function D(L){return r.string(L)?(L=L.toLowerCase(),L==="json"?I.JSON:I.Text):I.Text}k(D,"fromString"),I.fromString=D})(g||(t.TraceFormat=g={}));var m;(function(I){I.type=new n.NotificationType("$/setTrace")})(m||(t.SetTraceNotification=m={}));var y;(function(I){I.type=new n.NotificationType("$/logTrace")})(y||(t.LogTraceNotification=y={}));var v;(function(I){I[I.Closed=1]="Closed",I[I.Disposed=2]="Disposed",I[I.AlreadyListening=3]="AlreadyListening"})(v||(t.ConnectionErrors=v={}));var b=(A=class extends Error{constructor(D,L){super(L),this.code=D,Object.setPrototypeOf(this,A.prototype)}},k(A,"ConnectionError"),A);t.ConnectionError=b;var _;(function(I){function D(L){const R=L;return R&&r.func(R.cancelUndispatched)}k(D,"is"),I.is=D})(_||(t.ConnectionStrategy=_={}));var E;(function(I){function D(L){const R=L;return R&&(R.kind===void 0||R.kind==="id")&&r.func(R.createCancellationTokenSource)&&(R.dispose===void 0||r.func(R.dispose))}k(D,"is"),I.is=D})(E||(t.IdCancellationReceiverStrategy=E={}));var x;(function(I){function D(L){const R=L;return R&&R.kind==="request"&&r.func(R.createCancellationTokenSource)&&(R.dispose===void 0||r.func(R.dispose))}k(D,"is"),I.is=D})(x||(t.RequestCancellationReceiverStrategy=x={}));var C;(function(I){I.Message=Object.freeze({createCancellationTokenSource(L){return new s.CancellationTokenSource}});function D(L){return E.is(L)||x.is(L)}k(D,"is"),I.is=D})(C||(t.CancellationReceiverStrategy=C={}));var T;(function(I){I.Message=Object.freeze({sendCancellation(L,R){return L.sendNotification(o.type,{id:R})},cleanup(L){}});function D(L){const R=L;return R&&r.func(R.sendCancellation)&&r.func(R.cleanup)}k(D,"is"),I.is=D})(T||(t.CancellationSenderStrategy=T={}));var w;(function(I){I.Message=Object.freeze({receiver:C.Message,sender:T.Message});function D(L){const R=L;return R&&C.is(R.receiver)&&T.is(R.sender)}k(D,"is"),I.is=D})(w||(t.CancellationStrategy=w={}));var N;(function(I){function D(L){const R=L;return R&&r.func(R.handleMessage)}k(D,"is"),I.is=D})(N||(t.MessageStrategy=N={}));var O;(function(I){function D(L){const R=L;return R&&(w.is(R.cancellationStrategy)||_.is(R.connectionStrategy)||N.is(R.messageStrategy))}k(D,"is"),I.is=D})(O||(t.ConnectionOptions=O={}));var M;(function(I){I[I.New=1]="New",I[I.Listening=2]="Listening",I[I.Closed=3]="Closed",I[I.Disposed=4]="Disposed"})(M||(M={}));function $(I,D,L,R){const P=L!==void 0?L:t.NullLogger;let z=0,B=0,q=0;const Y="2.0";let Q;const H=new Map;let J;const Z=new Map,pe=new Map;let re,ce=new i.LinkedMap,ae=new Map,se=new Set,xe=new Map,Te=f.Off,Ge=g.Text,ze,Xe=M.New;const Le=new a.Emitter,Re=new a.Emitter,qe=new a.Emitter,Ne=new a.Emitter,ut=new a.Emitter,De=R&&R.cancellationStrategy?R.cancellationStrategy:w.Message;function Je(Pe){if(Pe===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+Pe.toString()}k(Je,"createRequestQueueKey");function st(Pe){return Pe===null?"res-unknown-"+(++q).toString():"res-"+Pe.toString()}k(st,"createResponseQueueKey");function ct(){return"not-"+(++B).toString()}k(ct,"createNotificationQueueKey");function ot(Pe,yt){n.Message.isRequest(yt)?Pe.set(Je(yt.id),yt):n.Message.isResponse(yt)?Pe.set(st(yt.id),yt):Pe.set(ct(),yt)}k(ot,"addMessageToQueue");function it(Pe){}k(it,"cancelUndispatched");function Oe(){return Xe===M.Listening}k(Oe,"isListening");function U(){return Xe===M.Closed}k(U,"isClosed");function oe(){return Xe===M.Disposed}k(oe,"isDisposed");function de(){(Xe===M.New||Xe===M.Listening)&&(Xe=M.Closed,Re.fire(void 0))}k(de,"closeHandler");function G(Pe){Le.fire([Pe,void 0,void 0])}k(G,"readErrorHandler");function ie(Pe){Le.fire(Pe)}k(ie,"writeErrorHandler"),I.onClose(de),I.onError(G),D.onClose(de),D.onError(ie);function j(){re||ce.size===0||(re=(0,e.default)().timer.setImmediate(()=>{re=void 0,ue()}))}k(j,"triggerMessageQueue");function V(Pe){n.Message.isRequest(Pe)?me(Pe):n.Message.isNotification(Pe)?ye(Pe):n.Message.isResponse(Pe)?Ce(Pe):Me(Pe)}k(V,"handleMessage");function ue(){if(ce.size===0)return;const Pe=ce.shift();try{const yt=R?.messageStrategy;N.is(yt)?yt.handleMessage(Pe,V):V(Pe)}finally{j()}}k(ue,"processMessageQueue");const Fe=k(Pe=>{try{if(n.Message.isNotification(Pe)&&Pe.method===o.type.method){const yt=Pe.params.id,bt=Je(yt),Ot=ce.get(bt);if(n.Message.isRequest(Ot)){const br=R?.connectionStrategy,Ct=br&&br.cancelUndispatched?br.cancelUndispatched(Ot,it):void 0;if(Ct&&(Ct.error!==void 0||Ct.result!==void 0)){ce.delete(bt),xe.delete(yt),Ct.id=Ot.id,Be(Ct,Pe.method,Date.now()),D.write(Ct).catch(()=>P.error("Sending response for canceled message failed."));return}}const Qt=xe.get(yt);if(Qt!==void 0){Qt.cancel(),gt(Pe);return}else se.add(yt)}ot(ce,Pe)}finally{j()}},"callback");function me(Pe){if(oe())return;function yt(pt,Dt,Zt){const wr={jsonrpc:Y,id:Pe.id};pt instanceof n.ResponseError?wr.error=pt.toJson():wr.result=pt===void 0?null:pt,Be(wr,Dt,Zt),D.write(wr).catch(()=>P.error("Sending response failed."))}k(yt,"reply");function bt(pt,Dt,Zt){const wr={jsonrpc:Y,id:Pe.id,error:pt.toJson()};Be(wr,Dt,Zt),D.write(wr).catch(()=>P.error("Sending response failed."))}k(bt,"replyError");function Ot(pt,Dt,Zt){pt===void 0&&(pt=null);const wr={jsonrpc:Y,id:Pe.id,result:pt};Be(wr,Dt,Zt),D.write(wr).catch(()=>P.error("Sending response failed."))}k(Ot,"replySuccess"),ve(Pe);const Qt=H.get(Pe.method);let br,Ct;Qt&&(br=Qt.type,Ct=Qt.handler);const Ye=Date.now();if(Ct||Q){const pt=Pe.id??String(Date.now()),Dt=E.is(De.receiver)?De.receiver.createCancellationTokenSource(pt):De.receiver.createCancellationTokenSource(Pe);Pe.id!==null&&se.has(Pe.id)&&Dt.cancel(),Pe.id!==null&&xe.set(pt,Dt);try{let Zt;if(Ct)if(Pe.params===void 0){if(br!==void 0&&br.numberOfParams!==0){bt(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${Pe.method} defines ${br.numberOfParams} params but received none.`),Pe.method,Ye);return}Zt=Ct(Dt.token)}else if(Array.isArray(Pe.params)){if(br!==void 0&&br.parameterStructures===n.ParameterStructures.byName){bt(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${Pe.method} defines parameters by name but received parameters by position`),Pe.method,Ye);return}Zt=Ct(...Pe.params,Dt.token)}else{if(br!==void 0&&br.parameterStructures===n.ParameterStructures.byPosition){bt(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${Pe.method} defines parameters by position but received parameters by name`),Pe.method,Ye);return}Zt=Ct(Pe.params,Dt.token)}else Q&&(Zt=Q(Pe.method,Pe.params,Dt.token));const wr=Zt;Zt?wr.then?wr.then(Vr=>{xe.delete(pt),yt(Vr,Pe.method,Ye)},Vr=>{xe.delete(pt),Vr instanceof n.ResponseError?bt(Vr,Pe.method,Ye):Vr&&r.string(Vr.message)?bt(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Pe.method} failed with message: ${Vr.message}`),Pe.method,Ye):bt(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Pe.method} failed unexpectedly without providing any details.`),Pe.method,Ye)}):(xe.delete(pt),yt(Zt,Pe.method,Ye)):(xe.delete(pt),Ot(Zt,Pe.method,Ye))}catch(Zt){xe.delete(pt),Zt instanceof n.ResponseError?yt(Zt,Pe.method,Ye):Zt&&r.string(Zt.message)?bt(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Pe.method} failed with message: ${Zt.message}`),Pe.method,Ye):bt(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Pe.method} failed unexpectedly without providing any details.`),Pe.method,Ye)}}else bt(new n.ResponseError(n.ErrorCodes.MethodNotFound,`Unhandled method ${Pe.method}`),Pe.method,Ye)}k(me,"handleRequest");function Ce(Pe){if(!oe())if(Pe.id===null)Pe.error?P.error(`Received response message without id: Error is: ${JSON.stringify(Pe.error,void 0,4)}`):P.error("Received response message without id. No further error information provided.");else{const yt=Pe.id,bt=ae.get(yt);if(Et(Pe,bt),bt!==void 0){ae.delete(yt);try{if(Pe.error){const Ot=Pe.error;bt.reject(new n.ResponseError(Ot.code,Ot.message,Ot.data))}else if(Pe.result!==void 0)bt.resolve(Pe.result);else throw new Error("Should never happen.")}catch(Ot){Ot.message?P.error(`Response handler '${bt.method}' failed with message: ${Ot.message}`):P.error(`Response handler '${bt.method}' failed unexpectedly.`)}}}}k(Ce,"handleResponse");function ye(Pe){if(oe())return;let yt,bt;if(Pe.method===o.type.method){const Ot=Pe.params.id;se.delete(Ot),gt(Pe);return}else{const Ot=Z.get(Pe.method);Ot&&(bt=Ot.handler,yt=Ot.type)}if(bt||J)try{if(gt(Pe),bt)if(Pe.params===void 0)yt!==void 0&&yt.numberOfParams!==0&&yt.parameterStructures!==n.ParameterStructures.byName&&P.error(`Notification ${Pe.method} defines ${yt.numberOfParams} params but received none.`),bt();else if(Array.isArray(Pe.params)){const Ot=Pe.params;Pe.method===u.type.method&&Ot.length===2&&l.is(Ot[0])?bt({token:Ot[0],value:Ot[1]}):(yt!==void 0&&(yt.parameterStructures===n.ParameterStructures.byName&&P.error(`Notification ${Pe.method} defines parameters by name but received parameters by position`),yt.numberOfParams!==Pe.params.length&&P.error(`Notification ${Pe.method} defines ${yt.numberOfParams} params but received ${Ot.length} arguments`)),bt(...Ot))}else yt!==void 0&&yt.parameterStructures===n.ParameterStructures.byPosition&&P.error(`Notification ${Pe.method} defines parameters by position but received parameters by name`),bt(Pe.params);else J&&J(Pe.method,Pe.params)}catch(Ot){Ot.message?P.error(`Notification handler '${Pe.method}' failed with message: ${Ot.message}`):P.error(`Notification handler '${Pe.method}' failed unexpectedly.`)}else qe.fire(Pe)}k(ye,"handleNotification");function Me(Pe){if(!Pe){P.error("Received empty message.");return}P.error(`Received message which is neither a response nor a notification message: ${JSON.stringify(Pe,null,4)}`);const yt=Pe;if(r.string(yt.id)||r.number(yt.id)){const bt=yt.id,Ot=ae.get(bt);Ot&&Ot.reject(new Error("The received response has neither a result nor an error property."))}}k(Me,"handleInvalidMessage");function Ie(Pe){if(Pe!=null)switch(Te){case f.Verbose:return JSON.stringify(Pe,null,4);case f.Compact:return JSON.stringify(Pe);default:return}}k(Ie,"stringifyTrace");function he(Pe){if(!(Te===f.Off||!ze))if(Ge===g.Text){let yt;(Te===f.Verbose||Te===f.Compact)&&Pe.params&&(yt=`Params: ${Ie(Pe.params)} @@ -5273,18 +5273,18 @@ ${JSON.stringify(Pe,null,4)}`);const yt=Pe;if(r.string(yt.id)||r.number(yt.id)){ `:Pe.error===void 0&&(bt=`No result returned. -`)),yt){const Ot=Pe.error?` Request failed: ${Pe.error.message} (${Pe.error.code}).`:"";ze.log(`Received response '${yt.method} - (${Pe.id})' in ${Date.now()-yt.timerStart}ms.${Ot}`,bt)}else ze.log(`Received response ${Pe.id} without active response promise.`,bt)}else et("receive-response",Pe)}k(Et,"traceReceivedResponse");function et(Pe,yt){if(!ze||Te===f.Off)return;const bt={isLSPMessage:!0,type:Pe,message:yt,timestamp:Date.now()};ze.log(bt)}k(et,"logLSPMessage");function dt(){if(U())throw new b(v.Closed,"Connection is closed.");if(oe())throw new b(v.Disposed,"Connection is disposed.")}k(dt,"throwIfClosedOrDisposed");function ft(){if(Oe())throw new b(v.AlreadyListening,"Connection is already listening")}k(ft,"throwIfListening");function mt(){if(!Oe())throw new Error("Call listen() first.")}k(mt,"throwIfNotListening");function fe(Pe){return Pe===void 0?null:Pe}k(fe,"undefinedToNull");function It(Pe){if(Pe!==null)return Pe}k(It,"nullToUndefined");function St(Pe){return Pe!=null&&!Array.isArray(Pe)&&typeof Pe=="object"}k(St,"isNamedParam");function Tt(Pe,yt){switch(Pe){case n.ParameterStructures.auto:return St(yt)?It(yt):[fe(yt)];case n.ParameterStructures.byName:if(!St(yt))throw new Error("Received parameters by name but param is not an object literal.");return It(yt);case n.ParameterStructures.byPosition:return[fe(yt)];default:throw new Error(`Unknown parameter structure ${Pe.toString()}`)}}k(Tt,"computeSingleParam");function Nt(Pe,yt){let bt;const Ot=Pe.numberOfParams;switch(Ot){case 0:bt=void 0;break;case 1:bt=Tt(Pe.parameterStructures,yt[0]);break;default:bt=[];for(let Qt=0;Qt{dt();let bt,Ot;if(r.string(Pe)){bt=Pe;const br=yt[0];let Ct=0,Ye=n.ParameterStructures.auto;n.ParameterStructures.is(br)&&(Ct=1,Ye=br);let pt=yt.length;const Dt=pt-Ct;switch(Dt){case 0:Ot=void 0;break;case 1:Ot=Tt(Ye,yt[Ct]);break;default:if(Ye===n.ParameterStructures.byName)throw new Error(`Received ${Dt} parameters for 'by Name' notification parameter structure.`);Ot=yt.slice(Ct,pt).map(Zt=>fe(Zt));break}}else{const br=yt;bt=Pe.method,Ot=Nt(Pe,br)}const Qt={jsonrpc:Y,method:bt,params:Ot};return le(Qt),D.write(Qt).catch(br=>{throw P.error("Sending notification failed."),br})},"sendNotification"),onNotification:k((Pe,yt)=>{dt();let bt;return r.func(Pe)?J=Pe:yt&&(r.string(Pe)?(bt=Pe,Z.set(Pe,{type:void 0,handler:yt})):(bt=Pe.method,Z.set(Pe.method,{type:Pe,handler:yt}))),{dispose:k(()=>{bt!==void 0?Z.delete(bt):J=void 0},"dispose")}},"onNotification"),onProgress:k((Pe,yt,bt)=>{if(pe.has(yt))throw new Error(`Progress handler for token ${yt} already registered`);return pe.set(yt,bt),{dispose:k(()=>{pe.delete(yt)},"dispose")}},"onProgress"),sendProgress:k((Pe,yt,bt)=>Hr.sendNotification(u.type,{token:yt,value:bt}),"sendProgress"),onUnhandledProgress:Ne.event,sendRequest:k((Pe,...yt)=>{dt(),mt();let bt,Ot,Qt;if(r.string(Pe)){bt=Pe;const pt=yt[0],Dt=yt[yt.length-1];let Zt=0,wr=n.ParameterStructures.auto;n.ParameterStructures.is(pt)&&(Zt=1,wr=pt);let Vr=yt.length;s.CancellationToken.is(Dt)&&(Vr=Vr-1,Qt=Dt);const Kr=Vr-Zt;switch(Kr){case 0:Ot=void 0;break;case 1:Ot=Tt(wr,yt[Zt]);break;default:if(wr===n.ParameterStructures.byName)throw new Error(`Received ${Kr} parameters for 'by Name' request parameter structure.`);Ot=yt.slice(Zt,Vr).map(Gn=>fe(Gn));break}}else{const pt=yt;bt=Pe.method,Ot=Nt(Pe,pt);const Dt=Pe.numberOfParams;Qt=s.CancellationToken.is(pt[Dt])?pt[Dt]:void 0}const br=z++;let Ct;Qt&&(Ct=Qt.onCancellationRequested(()=>{const pt=De.sender.sendCancellation(Hr,br);return pt===void 0?(P.log(`Received no promise from cancellation strategy when cancelling id ${br}`),Promise.resolve()):pt.catch(()=>{P.log(`Sending cancellation messages for id ${br} failed`)})}));const Ye={jsonrpc:Y,id:br,method:bt,params:Ot};return he(Ye),typeof De.sender.enableCancellation=="function"&&De.sender.enableCancellation(Ye),new Promise(async(pt,Dt)=>{const Zt=k(Kr=>{pt(Kr),De.sender.cleanup(br),Ct?.dispose()},"resolveWithCleanup"),wr=k(Kr=>{Dt(Kr),De.sender.cleanup(br),Ct?.dispose()},"rejectWithCleanup"),Vr={method:bt,timerStart:Date.now(),resolve:Zt,reject:wr};try{await D.write(Ye),ae.set(br,Vr)}catch(Kr){throw P.error("Sending request failed."),Vr.reject(new n.ResponseError(n.ErrorCodes.MessageWriteError,Kr.message?Kr.message:"Unknown reason")),Kr}})},"sendRequest"),onRequest:k((Pe,yt)=>{dt();let bt=null;return h.is(Pe)?(bt=void 0,Q=Pe):r.string(Pe)?(bt=null,yt!==void 0&&(bt=Pe,H.set(Pe,{handler:yt,type:void 0}))):yt!==void 0&&(bt=Pe.method,H.set(Pe.method,{type:Pe,handler:yt})),{dispose:k(()=>{bt!==null&&(bt!==void 0?H.delete(bt):Q=void 0)},"dispose")}},"onRequest"),hasPendingResponse:k(()=>ae.size>0,"hasPendingResponse"),trace:k(async(Pe,yt,bt)=>{let Ot=!1,Qt=g.Text;bt!==void 0&&(r.boolean(bt)?Ot=bt:(Ot=bt.sendNotification||!1,Qt=bt.traceFormat||g.Text)),Te=Pe,Ge=Qt,Te===f.Off?ze=void 0:ze=yt,Ot&&!U()&&!oe()&&await Hr.sendNotification(m.type,{value:f.toString(Pe)})},"trace"),onError:Le.event,onClose:Re.event,onUnhandledNotification:qe.event,onDispose:ut.event,end:k(()=>{D.end()},"end"),dispose:k(()=>{if(oe())return;Xe=M.Disposed,ut.fire(void 0);const Pe=new n.ResponseError(n.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const yt of ae.values())yt.reject(Pe);ae=new Map,xe=new Map,se=new Set,ce=new i.LinkedMap,r.func(D.dispose)&&D.dispose(),r.func(I.dispose)&&I.dispose()},"dispose"),listen:k(()=>{dt(),ft(),Xe=M.Listening,I.listen(Fe)},"listen"),inspect:k(()=>{(0,e.default)().console.log("inspect")},"inspect")};return Hr.onNotification(y.type,Pe=>{if(Te===f.Off||!ze)return;const yt=Te===f.Verbose||Te===f.Compact;ze.log(Pe.message,yt?Pe.verbose:void 0)}),Hr.onNotification(u.type,Pe=>{const yt=pe.get(Pe.token);yt?yt(Pe.value):Ne.fire(Pe)}),Hr}k($,"createMessageConnection"),t.createMessageConnection=$}}),YF=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=void 0;var e=D2e();Object.defineProperty(t,"Message",{enumerable:!0,get:k(function(){return e.Message},"get")}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:k(function(){return e.RequestType},"get")}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:k(function(){return e.RequestType0},"get")}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:k(function(){return e.RequestType1},"get")}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:k(function(){return e.RequestType2},"get")}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:k(function(){return e.RequestType3},"get")}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:k(function(){return e.RequestType4},"get")}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:k(function(){return e.RequestType5},"get")}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:k(function(){return e.RequestType6},"get")}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:k(function(){return e.RequestType7},"get")}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:k(function(){return e.RequestType8},"get")}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:k(function(){return e.RequestType9},"get")}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:k(function(){return e.ResponseError},"get")}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:k(function(){return e.ErrorCodes},"get")}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:k(function(){return e.NotificationType},"get")}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:k(function(){return e.NotificationType0},"get")}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:k(function(){return e.NotificationType1},"get")}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:k(function(){return e.NotificationType2},"get")}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:k(function(){return e.NotificationType3},"get")}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:k(function(){return e.NotificationType4},"get")}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:k(function(){return e.NotificationType5},"get")}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:k(function(){return e.NotificationType6},"get")}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:k(function(){return e.NotificationType7},"get")}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:k(function(){return e.NotificationType8},"get")}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:k(function(){return e.NotificationType9},"get")}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:k(function(){return e.ParameterStructures},"get")});var r=L2e();Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:k(function(){return r.LinkedMap},"get")}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:k(function(){return r.LRUCache},"get")}),Object.defineProperty(t,"Touch",{enumerable:!0,get:k(function(){return r.Touch},"get")});var n=f_t();Object.defineProperty(t,"Disposable",{enumerable:!0,get:k(function(){return n.Disposable},"get")});var i=l2();Object.defineProperty(t,"Event",{enumerable:!0,get:k(function(){return i.Event},"get")}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:k(function(){return i.Emitter},"get")});var a=Y7();Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:k(function(){return a.CancellationTokenSource},"get")}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:k(function(){return a.CancellationToken},"get")});var s=p_t();Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:k(function(){return s.SharedArraySenderStrategy},"get")}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:k(function(){return s.SharedArrayReceiverStrategy},"get")});var o=g_t();Object.defineProperty(t,"MessageReader",{enumerable:!0,get:k(function(){return o.MessageReader},"get")}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:k(function(){return o.AbstractMessageReader},"get")}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:k(function(){return o.ReadableStreamMessageReader},"get")});var l=m_t();Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:k(function(){return l.MessageWriter},"get")}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:k(function(){return l.AbstractMessageWriter},"get")}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:k(function(){return l.WriteableStreamMessageWriter},"get")});var u=y_t();Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:k(function(){return u.AbstractMessageBuffer},"get")});var d=v_t();Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:k(function(){return d.ConnectionStrategy},"get")}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:k(function(){return d.ConnectionOptions},"get")}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:k(function(){return d.NullLogger},"get")}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:k(function(){return d.createMessageConnection},"get")}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:k(function(){return d.ProgressToken},"get")}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:k(function(){return d.ProgressType},"get")}),Object.defineProperty(t,"Trace",{enumerable:!0,get:k(function(){return d.Trace},"get")}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:k(function(){return d.TraceValues},"get")}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:k(function(){return d.TraceFormat},"get")}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:k(function(){return d.SetTraceNotification},"get")}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:k(function(){return d.LogTraceNotification},"get")}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:k(function(){return d.ConnectionErrors},"get")}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:k(function(){return d.ConnectionError},"get")}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:k(function(){return d.CancellationReceiverStrategy},"get")}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:k(function(){return d.CancellationSenderStrategy},"get")}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:k(function(){return d.CancellationStrategy},"get")}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:k(function(){return d.MessageStrategy},"get")});var h=og();t.RAL=h.default}}),__t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(t){var l,u,d;Object.defineProperty(t,"__esModule",{value:!0});var e=YF(),r=(l=class extends e.AbstractMessageBuffer{constructor(f="utf-8"){super(f),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return l.emptyBuffer}fromString(f,p){return new TextEncoder().encode(f)}toString(f,p){return p==="ascii"?this.asciiDecoder.decode(f):new TextDecoder(p).decode(f)}asNative(f,p){return p===void 0?f:f.slice(0,p)}allocNative(f){return new Uint8Array(f)}},k(l,"MessageBuffer"),l);r.emptyBuffer=new Uint8Array(0);var n=(u=class{constructor(f){this.socket=f,this._onData=new e.Emitter,this._messageListener=p=>{p.data.arrayBuffer().then(m=>{this._onData.fire(new Uint8Array(m))},()=>{(0,e.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(f){return this.socket.addEventListener("close",f),e.Disposable.create(()=>this.socket.removeEventListener("close",f))}onError(f){return this.socket.addEventListener("error",f),e.Disposable.create(()=>this.socket.removeEventListener("error",f))}onEnd(f){return this.socket.addEventListener("end",f),e.Disposable.create(()=>this.socket.removeEventListener("end",f))}onData(f){return this._onData.event(f)}},k(u,"ReadableStreamWrapper"),u),i=(d=class{constructor(f){this.socket=f}onClose(f){return this.socket.addEventListener("close",f),e.Disposable.create(()=>this.socket.removeEventListener("close",f))}onError(f){return this.socket.addEventListener("error",f),e.Disposable.create(()=>this.socket.removeEventListener("error",f))}onEnd(f){return this.socket.addEventListener("end",f),e.Disposable.create(()=>this.socket.removeEventListener("end",f))}write(f,p){if(typeof f=="string"){if(p!==void 0&&p!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${p}`);this.socket.send(f)}else this.socket.send(f);return Promise.resolve()}end(){this.socket.close()}},k(d,"WritableStreamWrapper"),d),a=new TextEncoder,s=Object.freeze({messageBuffer:Object.freeze({create:k(h=>new r(h),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:k((h,f)=>{if(f.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${f.charset}`);return Promise.resolve(a.encode(JSON.stringify(h,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:k((h,f)=>{if(!(h instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(f.charset).decode(h)))},"decode")})}),stream:Object.freeze({asReadableStream:k(h=>new n(h),"asReadableStream"),asWritableStream:k(h=>new i(h),"asWritableStream")}),console,timer:Object.freeze({setTimeout(h,f,...p){const g=setTimeout(h,f,...p);return{dispose:k(()=>clearTimeout(g),"dispose")}},setImmediate(h,...f){const p=setTimeout(h,0,...f);return{dispose:k(()=>clearTimeout(p),"dispose")}},setInterval(h,f,...p){const g=setInterval(h,f,...p);return{dispose:k(()=>clearInterval(g),"dispose")}}})});function o(){return s}k(o,"RIL"),(function(h){function f(){e.RAL.install(s)}k(f,"install"),h.install=f})(o||(o={})),t.default=o}}),c2=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(t){var l,u;var e=t&&t.__createBinding||(Object.create?(function(d,h,f,p){p===void 0&&(p=f);var g=Object.getOwnPropertyDescriptor(h,f);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:k(function(){return h[f]},"get")}),Object.defineProperty(d,p,g)}):(function(d,h,f,p){p===void 0&&(p=f),d[p]=h[f]})),r=t&&t.__exportStar||function(d,h){for(var f in d)f!=="default"&&!Object.prototype.hasOwnProperty.call(h,f)&&e(h,d,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0;var n=__t();n.default.install();var i=YF();r(YF(),t);var a=(l=class extends i.AbstractMessageReader{constructor(h){super(),this._onData=new i.Emitter,this._messageListener=f=>{this._onData.fire(f.data)},h.addEventListener("error",f=>this.fireError(f)),h.onmessage=this._messageListener}listen(h){return this._onData.event(h)}},k(l,"BrowserMessageReader"),l);t.BrowserMessageReader=a;var s=(u=class extends i.AbstractMessageWriter{constructor(h){super(),this.port=h,this.errorCount=0,h.addEventListener("error",f=>this.fireError(f))}write(h){try{return this.port.postMessage(h),Promise.resolve()}catch(f){return this.handleError(f,h),Promise.reject(f)}}handleError(h,f){this.errorCount++,this.fireError(h,f,this.errorCount)}end(){}},k(u,"BrowserMessageWriter"),u);t.BrowserMessageWriter=s;function o(d,h,f,p){return f===void 0&&(f=i.NullLogger),i.ConnectionStrategy.is(p)&&(p={connectionStrategy:p}),(0,i.createMessageConnection)(d,h,f,p)}k(o,"createMessageConnection"),t.createMessageConnection=o}}),Bae=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(t,e){e.exports=c2()}}),Ii=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(t){var l,u,d,h,f;Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=t.MessageDirection=void 0;var e=c2(),r;(function(p){p.clientToServer="clientToServer",p.serverToClient="serverToClient",p.both="both"})(r||(t.MessageDirection=r={}));var n=(l=class{constructor(g){this.method=g}},k(l,"RegistrationType"),l);t.RegistrationType=n;var i=(u=class extends e.RequestType0{constructor(g){super(g)}},k(u,"ProtocolRequestType0"),u);t.ProtocolRequestType0=i;var a=(d=class extends e.RequestType{constructor(g){super(g,e.ParameterStructures.byName)}},k(d,"ProtocolRequestType"),d);t.ProtocolRequestType=a;var s=(h=class extends e.NotificationType0{constructor(g){super(g)}},k(h,"ProtocolNotificationType0"),h);t.ProtocolNotificationType0=s;var o=(f=class extends e.NotificationType{constructor(g){super(g,e.ParameterStructures.byName)}},k(f,"ProtocolNotificationType"),f);t.ProtocolNotificationType=o}}),gY=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0;function e(d){return d===!0||d===!1}k(e,"boolean"),t.boolean=e;function r(d){return typeof d=="string"||d instanceof String}k(r,"string"),t.string=r;function n(d){return typeof d=="number"||d instanceof Number}k(n,"number"),t.number=n;function i(d){return d instanceof Error}k(i,"error"),t.error=i;function a(d){return typeof d=="function"}k(a,"func"),t.func=a;function s(d){return Array.isArray(d)}k(s,"array"),t.array=s;function o(d){return s(d)&&d.every(h=>r(h))}k(o,"stringArray"),t.stringArray=o;function l(d,h){return Array.isArray(d)&&d.every(h)}k(l,"typedArray"),t.typedArray=l;function u(d){return d!==null&&typeof d=="object"}k(u,"objectLiteral"),t.objectLiteral=u}}),b_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;var e=Ii(),r;(function(n){n.method="textDocument/implementation",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ImplementationRequest=r={}))}}),E_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;var e=Ii(),r;(function(n){n.method="textDocument/typeDefinition",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.TypeDefinitionRequest=r={}))}}),S_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;var e=Ii(),r;(function(i){i.method="workspace/workspaceFolders",i.messageDirection=e.MessageDirection.serverToClient,i.type=new e.ProtocolRequestType0(i.method)})(r||(t.WorkspaceFoldersRequest=r={}));var n;(function(i){i.method="workspace/didChangeWorkspaceFolders",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolNotificationType(i.method)})(n||(t.DidChangeWorkspaceFoldersNotification=n={}))}}),T_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;var e=Ii(),r;(function(n){n.method="workspace/configuration",n.messageDirection=e.MessageDirection.serverToClient,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ConfigurationRequest=r={}))}}),x_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;var e=Ii(),r;(function(i){i.method="textDocument/documentColor",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.DocumentColorRequest=r={}));var n;(function(i){i.method="textDocument/colorPresentation",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(n||(t.ColorPresentationRequest=n={}))}}),C_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=void 0;var e=Ii(),r;(function(i){i.method="textDocument/foldingRange",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.FoldingRangeRequest=r={}));var n;(function(i){i.method="workspace/foldingRange/refresh",i.messageDirection=e.MessageDirection.serverToClient,i.type=new e.ProtocolRequestType0(i.method)})(n||(t.FoldingRangeRefreshRequest=n={}))}}),w_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;var e=Ii(),r;(function(n){n.method="textDocument/declaration",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.DeclarationRequest=r={}))}}),k_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;var e=Ii(),r;(function(n){n.method="textDocument/selectionRange",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.SelectionRangeRequest=r={}))}}),A_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;var e=c2(),r=Ii(),n;(function(s){s.type=new e.ProgressType;function o(l){return l===s.type}k(o,"is"),s.is=o})(n||(t.WorkDoneProgress=n={}));var i;(function(s){s.method="window/workDoneProgress/create",s.messageDirection=r.MessageDirection.serverToClient,s.type=new r.ProtocolRequestType(s.method)})(i||(t.WorkDoneProgressCreateRequest=i={}));var a;(function(s){s.method="window/workDoneProgress/cancel",s.messageDirection=r.MessageDirection.clientToServer,s.type=new r.ProtocolNotificationType(s.method)})(a||(t.WorkDoneProgressCancelNotification=a={}))}}),R_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;var e=Ii(),r;(function(a){a.method="textDocument/prepareCallHierarchy",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.CallHierarchyPrepareRequest=r={}));var n;(function(a){a.method="callHierarchy/incomingCalls",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(n||(t.CallHierarchyIncomingCallsRequest=n={}));var i;(function(a){a.method="callHierarchy/outgoingCalls",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(i||(t.CallHierarchyOutgoingCallsRequest=i={}))}}),N_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;var e=Ii(),r;(function(l){l.Relative="relative"})(r||(t.TokenFormat=r={}));var n;(function(l){l.method="textDocument/semanticTokens",l.type=new e.RegistrationType(l.method)})(n||(t.SemanticTokensRegistrationType=n={}));var i;(function(l){l.method="textDocument/semanticTokens/full",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(i||(t.SemanticTokensRequest=i={}));var a;(function(l){l.method="textDocument/semanticTokens/full/delta",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(a||(t.SemanticTokensDeltaRequest=a={}));var s;(function(l){l.method="textDocument/semanticTokens/range",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(s||(t.SemanticTokensRangeRequest=s={}));var o;(function(l){l.method="workspace/semanticTokens/refresh",l.messageDirection=e.MessageDirection.serverToClient,l.type=new e.ProtocolRequestType0(l.method)})(o||(t.SemanticTokensRefreshRequest=o={}))}}),I_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;var e=Ii(),r;(function(n){n.method="window/showDocument",n.messageDirection=e.MessageDirection.serverToClient,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ShowDocumentRequest=r={}))}}),O_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;var e=Ii(),r;(function(n){n.method="textDocument/linkedEditingRange",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.LinkedEditingRangeRequest=r={}))}}),D_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;var e=Ii(),r;(function(u){u.file="file",u.folder="folder"})(r||(t.FileOperationPatternKind=r={}));var n;(function(u){u.method="workspace/willCreateFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(n||(t.WillCreateFilesRequest=n={}));var i;(function(u){u.method="workspace/didCreateFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(i||(t.DidCreateFilesNotification=i={}));var a;(function(u){u.method="workspace/willRenameFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(a||(t.WillRenameFilesRequest=a={}));var s;(function(u){u.method="workspace/didRenameFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(s||(t.DidRenameFilesNotification=s={}));var o;(function(u){u.method="workspace/didDeleteFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(o||(t.DidDeleteFilesNotification=o={}));var l;(function(u){u.method="workspace/willDeleteFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(l||(t.WillDeleteFilesRequest=l={}))}}),L_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;var e=Ii(),r;(function(a){a.document="document",a.project="project",a.group="group",a.scheme="scheme",a.global="global"})(r||(t.UniquenessLevel=r={}));var n;(function(a){a.$import="import",a.$export="export",a.local="local"})(n||(t.MonikerKind=n={}));var i;(function(a){a.method="textDocument/moniker",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(i||(t.MonikerRequest=i={}))}}),M_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;var e=Ii(),r;(function(a){a.method="textDocument/prepareTypeHierarchy",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.TypeHierarchyPrepareRequest=r={}));var n;(function(a){a.method="typeHierarchy/supertypes",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(n||(t.TypeHierarchySupertypesRequest=n={}));var i;(function(a){a.method="typeHierarchy/subtypes",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(i||(t.TypeHierarchySubtypesRequest=i={}))}}),P_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;var e=Ii(),r;(function(i){i.method="textDocument/inlineValue",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.InlineValueRequest=r={}));var n;(function(i){i.method="workspace/inlineValue/refresh",i.messageDirection=e.MessageDirection.serverToClient,i.type=new e.ProtocolRequestType0(i.method)})(n||(t.InlineValueRefreshRequest=n={}))}}),B_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;var e=Ii(),r;(function(a){a.method="textDocument/inlayHint",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.InlayHintRequest=r={}));var n;(function(a){a.method="inlayHint/resolve",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(n||(t.InlayHintResolveRequest=n={}));var i;(function(a){a.method="workspace/inlayHint/refresh",a.messageDirection=e.MessageDirection.serverToClient,a.type=new e.ProtocolRequestType0(a.method)})(i||(t.InlayHintRefreshRequest=i={}))}}),F_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;var e=c2(),r=gY(),n=Ii(),i;(function(u){function d(h){const f=h;return f&&r.boolean(f.retriggerRequest)}k(d,"is"),u.is=d})(i||(t.DiagnosticServerCancellationData=i={}));var a;(function(u){u.Full="full",u.Unchanged="unchanged"})(a||(t.DocumentDiagnosticReportKind=a={}));var s;(function(u){u.method="textDocument/diagnostic",u.messageDirection=n.MessageDirection.clientToServer,u.type=new n.ProtocolRequestType(u.method),u.partialResult=new e.ProgressType})(s||(t.DocumentDiagnosticRequest=s={}));var o;(function(u){u.method="workspace/diagnostic",u.messageDirection=n.MessageDirection.clientToServer,u.type=new n.ProtocolRequestType(u.method),u.partialResult=new e.ProgressType})(o||(t.WorkspaceDiagnosticRequest=o={}));var l;(function(u){u.method="workspace/diagnostic/refresh",u.messageDirection=n.MessageDirection.serverToClient,u.type=new n.ProtocolRequestType0(u.method)})(l||(t.DiagnosticRefreshRequest=l={}))}}),$_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;var e=(LT(),pY(q7)),r=gY(),n=Ii(),i;(function(g){g.Markup=1,g.Code=2;function m(y){return y===1||y===2}k(m,"is"),g.is=m})(i||(t.NotebookCellKind=i={}));var a;(function(g){function m(b,_){const E={executionOrder:b};return(_===!0||_===!1)&&(E.success=_),E}k(m,"create"),g.create=m;function y(b){const _=b;return r.objectLiteral(_)&&e.uinteger.is(_.executionOrder)&&(_.success===void 0||r.boolean(_.success))}k(y,"is"),g.is=y;function v(b,_){return b===_?!0:b==null||_===null||_===void 0?!1:b.executionOrder===_.executionOrder&&b.success===_.success}k(v,"equals"),g.equals=v})(a||(t.ExecutionSummary=a={}));var s;(function(g){function m(_,E){return{kind:_,document:E}}k(m,"create"),g.create=m;function y(_){const E=_;return r.objectLiteral(E)&&i.is(E.kind)&&e.DocumentUri.is(E.document)&&(E.metadata===void 0||r.objectLiteral(E.metadata))}k(y,"is"),g.is=y;function v(_,E){const x=new Set;return _.document!==E.document&&x.add("document"),_.kind!==E.kind&&x.add("kind"),_.executionSummary!==E.executionSummary&&x.add("executionSummary"),(_.metadata!==void 0||E.metadata!==void 0)&&!b(_.metadata,E.metadata)&&x.add("metadata"),(_.executionSummary!==void 0||E.executionSummary!==void 0)&&!a.equals(_.executionSummary,E.executionSummary)&&x.add("executionSummary"),x}k(v,"diff"),g.diff=v;function b(_,E){if(_===E)return!0;if(_==null||E===null||E===void 0||typeof _!=typeof E||typeof _!="object")return!1;const x=Array.isArray(_),C=Array.isArray(E);if(x!==C)return!1;if(x&&C){if(_.length!==E.length)return!1;for(let T=0;T<_.length;T++)if(!b(_[T],E[T]))return!1}if(r.objectLiteral(_)&&r.objectLiteral(E)){const T=Object.keys(_),w=Object.keys(E);if(T.length!==w.length||(T.sort(),w.sort(),!b(T,w)))return!1;for(let N=0;N0}k(It,"hasId"),fe.hasId=It})(R||(t.StaticRegistrationOptions=R={}));var P;(function(fe){function It(St){const Tt=St;return Tt&&(Tt.documentSelector===null||$.is(Tt.documentSelector))}k(It,"is"),fe.is=It})(P||(t.TextDocumentRegistrationOptions=P={}));var z;(function(fe){function It(Tt){const Nt=Tt;return n.objectLiteral(Nt)&&(Nt.workDoneProgress===void 0||n.boolean(Nt.workDoneProgress))}k(It,"is"),fe.is=It;function St(Tt){const Nt=Tt;return Nt&&n.boolean(Nt.workDoneProgress)}k(St,"hasWorkDoneProgress"),fe.hasWorkDoneProgress=St})(z||(t.WorkDoneProgressOptions=z={}));var B;(function(fe){fe.method="initialize",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(B||(t.InitializeRequest=B={}));var q;(function(fe){fe.unknownProtocolVersion=1})(q||(t.InitializeErrorCodes=q={}));var Y;(function(fe){fe.method="initialized",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(Y||(t.InitializedNotification=Y={}));var Q;(function(fe){fe.method="shutdown",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType0(fe.method)})(Q||(t.ShutdownRequest=Q={}));var H;(function(fe){fe.method="exit",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType0(fe.method)})(H||(t.ExitNotification=H={}));var J;(function(fe){fe.method="workspace/didChangeConfiguration",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(J||(t.DidChangeConfigurationNotification=J={}));var Z;(function(fe){fe.Error=1,fe.Warning=2,fe.Info=3,fe.Log=4,fe.Debug=5})(Z||(t.MessageType=Z={}));var pe;(function(fe){fe.method="window/showMessage",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolNotificationType(fe.method)})(pe||(t.ShowMessageNotification=pe={}));var re;(function(fe){fe.method="window/showMessageRequest",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolRequestType(fe.method)})(re||(t.ShowMessageRequest=re={}));var ce;(function(fe){fe.method="window/logMessage",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolNotificationType(fe.method)})(ce||(t.LogMessageNotification=ce={}));var ae;(function(fe){fe.method="telemetry/event",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolNotificationType(fe.method)})(ae||(t.TelemetryEventNotification=ae={}));var se;(function(fe){fe.None=0,fe.Full=1,fe.Incremental=2})(se||(t.TextDocumentSyncKind=se={}));var xe;(function(fe){fe.method="textDocument/didOpen",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(xe||(t.DidOpenTextDocumentNotification=xe={}));var Te;(function(fe){function It(Tt){let Nt=Tt;return Nt!=null&&typeof Nt.text=="string"&&Nt.range!==void 0&&(Nt.rangeLength===void 0||typeof Nt.rangeLength=="number")}k(It,"isIncremental"),fe.isIncremental=It;function St(Tt){let Nt=Tt;return Nt!=null&&typeof Nt.text=="string"&&Nt.range===void 0&&Nt.rangeLength===void 0}k(St,"isFull"),fe.isFull=St})(Te||(t.TextDocumentContentChangeEvent=Te={}));var Ge;(function(fe){fe.method="textDocument/didChange",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(Ge||(t.DidChangeTextDocumentNotification=Ge={}));var ze;(function(fe){fe.method="textDocument/didClose",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(ze||(t.DidCloseTextDocumentNotification=ze={}));var Xe;(function(fe){fe.method="textDocument/didSave",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(Xe||(t.DidSaveTextDocumentNotification=Xe={}));var Le;(function(fe){fe.Manual=1,fe.AfterDelay=2,fe.FocusOut=3})(Le||(t.TextDocumentSaveReason=Le={}));var Re;(function(fe){fe.method="textDocument/willSave",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(Re||(t.WillSaveTextDocumentNotification=Re={}));var qe;(function(fe){fe.method="textDocument/willSaveWaitUntil",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(qe||(t.WillSaveTextDocumentWaitUntilRequest=qe={}));var Ne;(function(fe){fe.method="workspace/didChangeWatchedFiles",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(Ne||(t.DidChangeWatchedFilesNotification=Ne={}));var ut;(function(fe){fe.Created=1,fe.Changed=2,fe.Deleted=3})(ut||(t.FileChangeType=ut={}));var De;(function(fe){function It(St){const Tt=St;return n.objectLiteral(Tt)&&(r.URI.is(Tt.baseUri)||r.WorkspaceFolder.is(Tt.baseUri))&&n.string(Tt.pattern)}k(It,"is"),fe.is=It})(De||(t.RelativePattern=De={}));var Je;(function(fe){fe.Create=1,fe.Change=2,fe.Delete=4})(Je||(t.WatchKind=Je={}));var st;(function(fe){fe.method="textDocument/publishDiagnostics",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolNotificationType(fe.method)})(st||(t.PublishDiagnosticsNotification=st={}));var ct;(function(fe){fe.Invoked=1,fe.TriggerCharacter=2,fe.TriggerForIncompleteCompletions=3})(ct||(t.CompletionTriggerKind=ct={}));var ot;(function(fe){fe.method="textDocument/completion",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(ot||(t.CompletionRequest=ot={}));var it;(function(fe){fe.method="completionItem/resolve",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(it||(t.CompletionResolveRequest=it={}));var Oe;(function(fe){fe.method="textDocument/hover",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(Oe||(t.HoverRequest=Oe={}));var U;(function(fe){fe.Invoked=1,fe.TriggerCharacter=2,fe.ContentChange=3})(U||(t.SignatureHelpTriggerKind=U={}));var oe;(function(fe){fe.method="textDocument/signatureHelp",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(oe||(t.SignatureHelpRequest=oe={}));var de;(function(fe){fe.method="textDocument/definition",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(de||(t.DefinitionRequest=de={}));var G;(function(fe){fe.method="textDocument/references",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(G||(t.ReferencesRequest=G={}));var ie;(function(fe){fe.method="textDocument/documentHighlight",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(ie||(t.DocumentHighlightRequest=ie={}));var j;(function(fe){fe.method="textDocument/documentSymbol",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(j||(t.DocumentSymbolRequest=j={}));var V;(function(fe){fe.method="textDocument/codeAction",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(V||(t.CodeActionRequest=V={}));var ue;(function(fe){fe.method="codeAction/resolve",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(ue||(t.CodeActionResolveRequest=ue={}));var Fe;(function(fe){fe.method="workspace/symbol",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(Fe||(t.WorkspaceSymbolRequest=Fe={}));var me;(function(fe){fe.method="workspaceSymbol/resolve",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(me||(t.WorkspaceSymbolResolveRequest=me={}));var Ce;(function(fe){fe.method="textDocument/codeLens",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(Ce||(t.CodeLensRequest=Ce={}));var ye;(function(fe){fe.method="codeLens/resolve",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(ye||(t.CodeLensResolveRequest=ye={}));var Me;(function(fe){fe.method="workspace/codeLens/refresh",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolRequestType0(fe.method)})(Me||(t.CodeLensRefreshRequest=Me={}));var Ie;(function(fe){fe.method="textDocument/documentLink",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(Ie||(t.DocumentLinkRequest=Ie={}));var he;(function(fe){fe.method="documentLink/resolve",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(he||(t.DocumentLinkResolveRequest=he={}));var le;(function(fe){fe.method="textDocument/formatting",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(le||(t.DocumentFormattingRequest=le={}));var Be;(function(fe){fe.method="textDocument/rangeFormatting",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(Be||(t.DocumentRangeFormattingRequest=Be={}));var ve;(function(fe){fe.method="textDocument/rangesFormatting",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(ve||(t.DocumentRangesFormattingRequest=ve={}));var gt;(function(fe){fe.method="textDocument/onTypeFormatting",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(gt||(t.DocumentOnTypeFormattingRequest=gt={}));var Et;(function(fe){fe.Identifier=1})(Et||(t.PrepareSupportDefaultBehavior=Et={}));var et;(function(fe){fe.method="textDocument/rename",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(et||(t.RenameRequest=et={}));var dt;(function(fe){fe.method="textDocument/prepareRename",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(dt||(t.PrepareRenameRequest=dt={}));var ft;(function(fe){fe.method="workspace/executeCommand",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(ft||(t.ExecuteCommandRequest=ft={}));var mt;(function(fe){fe.method="workspace/applyEdit",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolRequestType("workspace/applyEdit")})(mt||(t.ApplyWorkspaceEditRequest=mt={}))}}),G_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;var e=c2();function r(n,i,a,s){return e.ConnectionStrategy.is(s)&&(s={connectionStrategy:s}),(0,e.createMessageConnection)(n,i,a,s)}k(r,"createProtocolConnection"),t.createProtocolConnection=r}}),q_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(t){var e=t&&t.__createBinding||(Object.create?(function(a,s,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(s,o);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:k(function(){return s[o]},"get")}),Object.defineProperty(a,l,u)}):(function(a,s,o,l){l===void 0&&(l=o),a[l]=s[o]})),r=t&&t.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,r(c2(),t),r((LT(),pY(q7)),t),r(Ii(),t),r(U_t(),t);var n=G_t();Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:k(function(){return n.createProtocolConnection},"get")});var i;(function(a){a.lspReservedErrorRangeStart=-32899,a.RequestFailed=-32803,a.ServerCancelled=-32802,a.ContentModified=-32801,a.RequestCancelled=-32800,a.lspReservedErrorRangeEnd=-32800})(i||(t.LSPErrorCodes=i={}))}}),Y_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(t){var e=t&&t.__createBinding||(Object.create?(function(a,s,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(s,o);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:k(function(){return s[o]},"get")}),Object.defineProperty(a,l,u)}):(function(a,s,o,l){l===void 0&&(l=o),a[l]=s[o]})),r=t&&t.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;var n=Bae();r(Bae(),t),r(q_t(),t);function i(a,s,o,l){return(0,n.createMessageConnection)(a,s,o,l)}k(i,"createProtocolConnection"),t.createProtocolConnection=i}}),P2e={};Uh(P2e,{AbstractAstReflection:()=>vY,AbstractCstNode:()=>bV,AbstractLangiumParser:()=>SV,AbstractParserErrorMessageProvider:()=>xwe,AbstractThreadedAsyncParser:()=>pwt,AstUtils:()=>_Y,BiMap:()=>xw,Cancellation:()=>Xn,CompositeCstNodeImpl:()=>zA,ContextCache:()=>WA,CstNodeBuilder:()=>Ewe,CstUtils:()=>mY,DEFAULT_TOKENIZE_OPTIONS:()=>zV,DONE_RESULT:()=>Ns,DatatypeSymbol:()=>bw,DefaultAstNodeDescriptionProvider:()=>eke,DefaultAstNodeLocator:()=>rke,DefaultAsyncParser:()=>bke,DefaultCommentProvider:()=>_ke,DefaultConfigurationProvider:()=>nke,DefaultDocumentBuilder:()=>ike,DefaultDocumentValidator:()=>Jwe,DefaultHydrator:()=>Ske,DefaultIndexManager:()=>ake,DefaultJsonSerializer:()=>Xwe,DefaultLangiumDocumentFactory:()=>zwe,DefaultLangiumDocuments:()=>Uwe,DefaultLangiumProfiler:()=>_wt,DefaultLexer:()=>UV,DefaultLexerErrorMessageProvider:()=>oke,DefaultLinker:()=>Gwe,DefaultNameProvider:()=>qwe,DefaultReferenceDescriptionProvider:()=>tke,DefaultReferences:()=>Ywe,DefaultScopeComputation:()=>Hwe,DefaultScopeProvider:()=>Kwe,DefaultServiceRegistry:()=>jwe,DefaultTokenBuilder:()=>qA,DefaultValueConverter:()=>RV,DefaultWorkspaceLock:()=>Eke,DefaultWorkspaceManager:()=>ske,Deferred:()=>F0,Disposable:()=>pp,DisposableCache:()=>VA,DocumentCache:()=>Wwe,DocumentState:()=>sn,DocumentValidator:()=>gl,EMPTY_SCOPE:()=>uwt,EMPTY_STREAM:()=>gb,EmptyFileSystem:()=>Fl,EmptyFileSystemProvider:()=>Cke,ErrorWithLocation:()=>J7,GrammarAST:()=>$2e,GrammarUtils:()=>XY,IndentationAwareLexer:()=>mwt,IndentationAwareTokenBuilder:()=>xke,JSDocDocumentationProvider:()=>vke,LangiumCompletionParser:()=>Cwe,LangiumParser:()=>Twe,LangiumParserErrorMessageProvider:()=>TV,LeafCstNodeImpl:()=>_w,LexingMode:()=>op,MapScope:()=>cwt,Module:()=>C$,MultiMap:()=>$0,MultiMapScope:()=>Vwe,OperationCancelled:()=>Qc,ParserWorker:()=>gwt,ProfilingTask:()=>kke,Reduction:()=>b4,RefResolving:()=>Rf,RegExpUtils:()=>QY,RootCstNodeImpl:()=>EV,SimpleCache:()=>MV,StreamImpl:()=>jc,StreamScope:()=>E$,TextDocument:()=>Sw,TreeStreamImpl:()=>mb,URI:()=>Lo,UriTrie:()=>DV,UriUtils:()=>Fs,VALIDATE_EACH_NODE:()=>Zwe,ValidationCategory:()=>Cw,ValidationRegistry:()=>Qwe,ValueConverter:()=>Mc,WorkspaceCache:()=>PV,assertCondition:()=>jY,assertUnreachable:()=>Gh,createCompletionParser:()=>wV,createDefaultCoreModule:()=>Zo,createDefaultSharedCoreModule:()=>Jo,createGrammarConfig:()=>gH,createLangiumParser:()=>kV,createParser:()=>UA,delayNextTick:()=>YA,diagnosticData:()=>sp,eagerLoad:()=>KV,getDiagnosticRange:()=>FV,indentationBuilderDefaultOptions:()=>k$,inject:()=>gi,interruptAndCheck:()=>Ma,isAstNode:()=>ea,isAstNodeDescription:()=>yY,isAstNodeWithComment:()=>BV,isCompositeCstNode:()=>N0,isIMultiModeLexerDefinition:()=>jA,isJSDoc:()=>qV,isLeafCstNode:()=>lg,isLinkingError:()=>Bf,isMultiReference:()=>tu,isNamed:()=>LV,isOperationCancelled:()=>kg,isReference:()=>Bs,isRootCstNode:()=>H7,isTokenTypeArray:()=>XA,isTokenTypeDictionary:()=>ww,loadGrammarFromJson:()=>el,parseJSDoc:()=>GV,prepareLangiumParser:()=>AV,setInterruptionPeriod:()=>NV,startCancelableOperation:()=>HA,stream:()=>Mn,toDiagnosticData:()=>$V,toDiagnosticSeverity:()=>bS});var mY={};Uh(mY,{DefaultNameRegexp:()=>YY,RangeComparison:()=>zc,compareRange:()=>GY,findCommentNode:()=>HY,findDeclarationNodeAtOffset:()=>iEe,findLeafNodeAtOffset:()=>Z7,findLeafNodeBeforeOffset:()=>VY,flattenCst:()=>nEe,getDatatypeNode:()=>rEe,getInteriorNodes:()=>oEe,getNextNode:()=>aEe,getPreviousNode:()=>KY,getStartlineNode:()=>sEe,inRange:()=>qY,isChildNode:()=>UY,isCommentNode:()=>nw,streamCst:()=>bb,toDocumentSegment:()=>Eb,tokenToRange:()=>E4});function ea(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}k(ea,"isAstNode");function Bs(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"ref"in t}k(Bs,"isReference");function tu(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"items"in t}k(tu,"isMultiReference");function yY(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}k(yY,"isAstNodeDescription");function Bf(t){return typeof t=="object"&&t!==null&&typeof t.info=="object"&&typeof t.message=="string"}k(Bf,"isLinkingError");var R1,vY=(R1=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){const r=this.types[e.container.$type];if(!r)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);const n=r.properties[e.property]?.referenceType;if(!n)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){const r=this.types[e];return r||{name:e,properties:{},superTypes:[]}}isInstance(e,r){return ea(e)&&this.isSubtype(e.$type,r)}isSubtype(e,r){if(e===r)return!0;let n=this.subtypes[e];n||(n=this.subtypes[e]={});const i=n[r];if(i!==void 0)return i;{const a=this.types[e],s=a?a.superTypes.some(o=>this.isSubtype(o,r)):!1;return n[r]=s,s}}getAllSubTypes(e){const r=this.allSubtypes[e];if(r)return r;{const n=this.getAllTypes(),i=[];for(const a of n)this.isSubtype(a,e)&&i.push(a);return this.allSubtypes[e]=i,i}}},k(R1,"AbstractAstReflection"),R1);function N0(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}k(N0,"isCompositeCstNode");function lg(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}k(lg,"isLeafCstNode");function H7(t){return N0(t)&&typeof t.fullText=="string"}k(H7,"isRootCstNode");var lo,jc=(lo=class{constructor(e,r){this.startFn=e,this.nextFn=r}iterator(){const e={state:this.startFn(),next:k(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let r=0,n=e.next();for(;!n.done;)r++,n=e.next();return r}toArray(){const e=[],r=this.iterator();let n;do n=r.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,r){const n=this.map(i=>[e?e(i):i,r?r(i):i]);return new Map(n)}toString(){return this.join()}concat(e){return new lo(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),r=>{let n;if(!r.firstDone){do if(n=this.nextFn(r.first),!n.done)return n;while(!n.done);r.firstDone=!0}do if(n=r.iterator.next(),!n.done)return n;while(!n.done);return Ns})}join(e=","){const r=this.iterator();let n="",i,a=!1;do i=r.next(),i.done||(a&&(n+=e),n+=B2e(i.value)),a=!0;while(!i.done);return n}indexOf(e,r=0){const n=this.iterator();let i=0,a=n.next();for(;!a.done;){if(i>=r&&a.value===e)return i;a=n.next(),i++}return-1}every(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(!e(n.value))return!1;n=r.next()}return!0}some(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(e(n.value))return!0;n=r.next()}return!1}forEach(e){const r=this.iterator();let n=0,i=r.next();for(;!i.done;)e(i.value,n),i=r.next(),n++}map(e){return new lo(this.startFn,r=>{const{done:n,value:i}=this.nextFn(r);return n?Ns:{done:!1,value:e(i)}})}filter(e){return new lo(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&e(n.value))return n;while(!n.done);return Ns})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,r){const n=this.iterator();let i=r,a=n.next();for(;!a.done;)i===void 0?i=a.value:i=e(i,a.value),a=n.next();return i}reduceRight(e,r){return this.recursiveReduce(this.iterator(),e,r)}recursiveReduce(e,r,n){const i=e.next();if(i.done)return n;const a=this.recursiveReduce(e,r,n);return a===void 0?i.value:r(a,i.value)}find(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(e(n.value))return n.value;n=r.next()}}findIndex(e){const r=this.iterator();let n=0,i=r.next();for(;!i.done;){if(e(i.value))return n;i=r.next(),n++}return-1}includes(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(n.value===e)return!0;n=r.next()}return!1}flatMap(e){return new lo(()=>({this:this.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:n,value:i}=this.nextFn(r.this);if(!n){const a=e(i);if(_4(a))r.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}}while(r.iterator);return Ns})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const r=e>1?this.flat(e-1):this;return new lo(()=>({this:r.startFn()}),n=>{do{if(n.iterator){const s=n.iterator.next();if(s.done)n.iterator=void 0;else return s}const{done:i,value:a}=r.nextFn(n.this);if(!i)if(_4(a))n.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}while(n.iterator);return Ns})}head(){const r=this.iterator().next();if(!r.done)return r.value}tail(e=1){return new lo(()=>{const r=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),r=>(r.size++,r.size>e?Ns:this.nextFn(r.state)))}distinct(e){return new lo(()=>({set:new Set,internalState:this.startFn()}),r=>{let n;do if(n=this.nextFn(r.internalState),!n.done){const i=e?e(n.value):n.value;if(!r.set.has(i))return r.set.add(i),n}while(!n.done);return Ns})}exclude(e,r){const n=new Set;for(const i of e){const a=r?r(i):i;n.add(a)}return this.filter(i=>{const a=r?r(i):i;return!n.has(a)})}},k(lo,"StreamImpl"),lo);function B2e(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}k(B2e,"toString");function _4(t){return!!t&&typeof t[Symbol.iterator]=="function"}k(_4,"isIterable");var gb=new jc(()=>{},()=>Ns),Ns=Object.freeze({done:!0,value:void 0});function Mn(...t){if(t.length===1){const e=t[0];if(e instanceof jc)return e;if(_4(e))return new jc(()=>e[Symbol.iterator](),r=>r.next());if(typeof e.length=="number")return new jc(()=>({index:0}),r=>r.index1?new jc(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const r=e.iterator.next();if(!r.done)return r;e.iterator=void 0}if(e.array){if(e.arrIndex({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[r(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const s=i.iterators[i.iterators.length-1].next();if(s.done)i.iterators.pop();else return i.iterators.push(r(s.value)[Symbol.iterator]()),s}return Ns})}iterator(){const e={state:this.startFn(),next:k(()=>this.nextFn(e.state),"next"),prune:k(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}},k(N1,"TreeStreamImpl"),N1),b4;(function(t){function e(a){return a.reduce((s,o)=>s+o,0)}k(e,"sum"),t.sum=e;function r(a){return a.reduce((s,o)=>s*o,0)}k(r,"product"),t.product=r;function n(a){return a.reduce((s,o)=>Math.min(s,o))}k(n,"min"),t.min=n;function i(a){return a.reduce((s,o)=>Math.max(s,o))}k(i,"max"),t.max=i})(b4||(b4={}));var _Y={};Uh(_Y,{assignMandatoryProperties:()=>bY,copyAstNode:()=>q6,findRootNode:()=>r1,getContainerOfType:()=>cg,getDocument:()=>sc,getReferenceNodes:()=>U6,hasContainerOfType:()=>F2e,linkContentToContainer:()=>yb,streamAllContents:()=>rd,streamAst:()=>oc,streamContents:()=>PT,streamReferences:()=>vb});function yb(t,e={}){for(const[r,n]of Object.entries(t))r.startsWith("$")||(Array.isArray(n)?n.forEach((i,a)=>{ea(i)&&(i.$container=t,i.$containerProperty=r,i.$containerIndex=a,e.deep&&yb(i,e))}):ea(n)&&(n.$container=t,n.$containerProperty=r,e.deep&&yb(n,e)))}k(yb,"linkContentToContainer");function cg(t,e){let r=t;for(;r;){if(e(r))return r;r=r.$container}}k(cg,"getContainerOfType");function F2e(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.$container}return!1}k(F2e,"hasContainerOfType");function sc(t){const r=r1(t).$document;if(!r)throw new Error("AST node has no document.");return r}k(sc,"getDocument");function r1(t){for(;t.$container;)t=t.$container;return t}k(r1,"findRootNode");function U6(t){return Bs(t)?t.ref?[t.ref]:[]:tu(t)?t.items.map(e=>e.ref):[]}k(U6,"getReferenceNodes");function PT(t,e){if(!t)throw new Error("Node must be an AstNode.");const r=e?.range;return new jc(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),n=>{for(;n.keyIndexPT(r,e))}k(rd,"streamAllContents");function oc(t,e){if(t){if(e?.range&&!G6(t,e.range))return new mb(t,()=>[])}else throw new Error("Root node must be an AstNode.");return new mb(t,r=>PT(r,e),{includeRoot:!0})}k(oc,"streamAst");function G6(t,e){if(!e)return!0;const r=t.$cstNode?.range;return r?qY(r,e):!1}k(G6,"isAstNodeInRange");function vb(t){return new jc(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndexso,AbstractParserRule:()=>sS,AbstractRule:()=>Nm,AbstractType:()=>Ro,Action:()=>Cd,Alternatives:()=>oS,ArrayLiteral:()=>Y6,ArrayType:()=>H6,Assignment:()=>wd,BooleanLiteral:()=>V6,CharacterRange:()=>kd,Condition:()=>Ad,Conjunction:()=>lS,CrossReference:()=>Rd,Disjunction:()=>cS,EndOfFile:()=>W6,Grammar:()=>Xu,GrammarImport:()=>K6,Group:()=>Ff,InferredType:()=>X6,InfixRule:()=>Ic,InfixRuleOperatorList:()=>uS,InfixRuleOperators:()=>j6,Interface:()=>Im,Keyword:()=>Om,LangiumGrammarAstReflection:()=>zY,LangiumGrammarTerminals:()=>H_t,NamedArgument:()=>Dm,NegatedToken:()=>$f,Negation:()=>Q6,NumberLiteral:()=>Z6,Parameter:()=>Lm,ParameterReference:()=>J6,ParserRule:()=>zl,ReferenceType:()=>dS,RegexToken:()=>zf,ReturnType:()=>ew,RuleCall:()=>Uf,SimpleType:()=>Mm,StringLiteral:()=>tw,TerminalAlternatives:()=>Gf,TerminalElement:()=>oo,TerminalGroup:()=>qf,TerminalRule:()=>ju,TerminalRuleCall:()=>Yf,Type:()=>hS,TypeAttribute:()=>Hf,TypeDefinition:()=>Vf,UnionType:()=>rw,UnorderedGroup:()=>fS,UntilToken:()=>Wf,ValueLiteral:()=>Kf,Wildcard:()=>Pm,isAbstractElement:()=>V7,isAbstractParserRule:()=>ug,isAbstractRule:()=>z2e,isAbstractType:()=>U2e,isAction:()=>Th,isAlternatives:()=>W7,isArrayLiteral:()=>G2e,isArrayType:()=>SY,isAssignment:()=>I0,isBooleanLiteral:()=>TY,isCharacterRange:()=>xY,isCondition:()=>q2e,isConjunction:()=>CY,isCrossReference:()=>dg,isDisjunction:()=>wY,isEndOfFile:()=>kY,isGrammar:()=>Y2e,isGrammarImport:()=>H2e,isGroup:()=>hg,isInferredType:()=>BT,isInfixRule:()=>_b,isInfixRuleOperatorList:()=>V2e,isInfixRuleOperators:()=>W2e,isInterface:()=>AY,isKeyword:()=>O0,isNamedArgument:()=>K2e,isNegatedToken:()=>RY,isNegation:()=>NY,isNumberLiteral:()=>X2e,isParameter:()=>j2e,isParameterReference:()=>IY,isParserRule:()=>Hs,isReferenceType:()=>OY,isRegexToken:()=>DY,isReturnType:()=>LY,isRuleCall:()=>D0,isSimpleType:()=>K7,isStringLiteral:()=>Q2e,isTerminalAlternatives:()=>MY,isTerminalElement:()=>Z2e,isTerminalGroup:()=>PY,isTerminalRule:()=>Pl,isTerminalRuleCall:()=>X7,isType:()=>j7,isTypeAttribute:()=>J2e,isTypeDefinition:()=>eEe,isUnionType:()=>BY,isUnorderedGroup:()=>Q7,isUntilToken:()=>FY,isValueLiteral:()=>tEe,isWildcard:()=>$Y,reflection:()=>Dr});var H_t={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},so={$type:"AbstractElement",cardinality:"cardinality"};function V7(t){return Dr.isInstance(t,so.$type)}k(V7,"isAbstractElement");var sS={$type:"AbstractParserRule"};function ug(t){return Dr.isInstance(t,sS.$type)}k(ug,"isAbstractParserRule");var Nm={$type:"AbstractRule"};function z2e(t){return Dr.isInstance(t,Nm.$type)}k(z2e,"isAbstractRule");var Ro={$type:"AbstractType"};function U2e(t){return Dr.isInstance(t,Ro.$type)}k(U2e,"isAbstractType");var Cd={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function Th(t){return Dr.isInstance(t,Cd.$type)}k(Th,"isAction");var oS={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function W7(t){return Dr.isInstance(t,oS.$type)}k(W7,"isAlternatives");var Y6={$type:"ArrayLiteral",elements:"elements"};function G2e(t){return Dr.isInstance(t,Y6.$type)}k(G2e,"isArrayLiteral");var H6={$type:"ArrayType",elementType:"elementType"};function SY(t){return Dr.isInstance(t,H6.$type)}k(SY,"isArrayType");var wd={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function I0(t){return Dr.isInstance(t,wd.$type)}k(I0,"isAssignment");var V6={$type:"BooleanLiteral",true:"true"};function TY(t){return Dr.isInstance(t,V6.$type)}k(TY,"isBooleanLiteral");var kd={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function xY(t){return Dr.isInstance(t,kd.$type)}k(xY,"isCharacterRange");var Ad={$type:"Condition"};function q2e(t){return Dr.isInstance(t,Ad.$type)}k(q2e,"isCondition");var lS={$type:"Conjunction",left:"left",right:"right"};function CY(t){return Dr.isInstance(t,lS.$type)}k(CY,"isConjunction");var Rd={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function dg(t){return Dr.isInstance(t,Rd.$type)}k(dg,"isCrossReference");var cS={$type:"Disjunction",left:"left",right:"right"};function wY(t){return Dr.isInstance(t,cS.$type)}k(wY,"isDisjunction");var W6={$type:"EndOfFile",cardinality:"cardinality"};function kY(t){return Dr.isInstance(t,W6.$type)}k(kY,"isEndOfFile");var Xu={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function Y2e(t){return Dr.isInstance(t,Xu.$type)}k(Y2e,"isGrammar");var K6={$type:"GrammarImport",path:"path"};function H2e(t){return Dr.isInstance(t,K6.$type)}k(H2e,"isGrammarImport");var Ff={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function hg(t){return Dr.isInstance(t,Ff.$type)}k(hg,"isGroup");var X6={$type:"InferredType",name:"name"};function BT(t){return Dr.isInstance(t,X6.$type)}k(BT,"isInferredType");var Ic={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function _b(t){return Dr.isInstance(t,Ic.$type)}k(_b,"isInfixRule");var uS={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function V2e(t){return Dr.isInstance(t,uS.$type)}k(V2e,"isInfixRuleOperatorList");var j6={$type:"InfixRuleOperators",precedences:"precedences"};function W2e(t){return Dr.isInstance(t,j6.$type)}k(W2e,"isInfixRuleOperators");var Im={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function AY(t){return Dr.isInstance(t,Im.$type)}k(AY,"isInterface");var Om={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function O0(t){return Dr.isInstance(t,Om.$type)}k(O0,"isKeyword");var Dm={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function K2e(t){return Dr.isInstance(t,Dm.$type)}k(K2e,"isNamedArgument");var $f={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function RY(t){return Dr.isInstance(t,$f.$type)}k(RY,"isNegatedToken");var Q6={$type:"Negation",value:"value"};function NY(t){return Dr.isInstance(t,Q6.$type)}k(NY,"isNegation");var Z6={$type:"NumberLiteral",value:"value"};function X2e(t){return Dr.isInstance(t,Z6.$type)}k(X2e,"isNumberLiteral");var Lm={$type:"Parameter",name:"name"};function j2e(t){return Dr.isInstance(t,Lm.$type)}k(j2e,"isParameter");var J6={$type:"ParameterReference",parameter:"parameter"};function IY(t){return Dr.isInstance(t,J6.$type)}k(IY,"isParameterReference");var zl={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function Hs(t){return Dr.isInstance(t,zl.$type)}k(Hs,"isParserRule");var dS={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function OY(t){return Dr.isInstance(t,dS.$type)}k(OY,"isReferenceType");var zf={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function DY(t){return Dr.isInstance(t,zf.$type)}k(DY,"isRegexToken");var ew={$type:"ReturnType",name:"name"};function LY(t){return Dr.isInstance(t,ew.$type)}k(LY,"isReturnType");var Uf={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function D0(t){return Dr.isInstance(t,Uf.$type)}k(D0,"isRuleCall");var Mm={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function K7(t){return Dr.isInstance(t,Mm.$type)}k(K7,"isSimpleType");var tw={$type:"StringLiteral",value:"value"};function Q2e(t){return Dr.isInstance(t,tw.$type)}k(Q2e,"isStringLiteral");var Gf={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function MY(t){return Dr.isInstance(t,Gf.$type)}k(MY,"isTerminalAlternatives");var oo={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function Z2e(t){return Dr.isInstance(t,oo.$type)}k(Z2e,"isTerminalElement");var qf={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function PY(t){return Dr.isInstance(t,qf.$type)}k(PY,"isTerminalGroup");var ju={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function Pl(t){return Dr.isInstance(t,ju.$type)}k(Pl,"isTerminalRule");var Yf={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function X7(t){return Dr.isInstance(t,Yf.$type)}k(X7,"isTerminalRuleCall");var hS={$type:"Type",name:"name",type:"type"};function j7(t){return Dr.isInstance(t,hS.$type)}k(j7,"isType");var Hf={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function J2e(t){return Dr.isInstance(t,Hf.$type)}k(J2e,"isTypeAttribute");var Vf={$type:"TypeDefinition"};function eEe(t){return Dr.isInstance(t,Vf.$type)}k(eEe,"isTypeDefinition");var rw={$type:"UnionType",types:"types"};function BY(t){return Dr.isInstance(t,rw.$type)}k(BY,"isUnionType");var fS={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function Q7(t){return Dr.isInstance(t,fS.$type)}k(Q7,"isUnorderedGroup");var Wf={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function FY(t){return Dr.isInstance(t,Wf.$type)}k(FY,"isUntilToken");var Kf={$type:"ValueLiteral"};function tEe(t){return Dr.isInstance(t,Kf.$type)}k(tEe,"isValueLiteral");var Pm={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function $Y(t){return Dr.isInstance(t,Pm.$type)}k($Y,"isWildcard");var I1,zY=(I1=class extends vY{constructor(){super(...arguments),this.types={AbstractElement:{name:so.$type,properties:{cardinality:{name:so.cardinality}},superTypes:[]},AbstractParserRule:{name:sS.$type,properties:{},superTypes:[Nm.$type,Ro.$type]},AbstractRule:{name:Nm.$type,properties:{},superTypes:[]},AbstractType:{name:Ro.$type,properties:{},superTypes:[]},Action:{name:Cd.$type,properties:{cardinality:{name:Cd.cardinality},feature:{name:Cd.feature},inferredType:{name:Cd.inferredType},operator:{name:Cd.operator},type:{name:Cd.type,referenceType:Ro.$type}},superTypes:[so.$type]},Alternatives:{name:oS.$type,properties:{cardinality:{name:oS.cardinality},elements:{name:oS.elements,defaultValue:[]}},superTypes:[so.$type]},ArrayLiteral:{name:Y6.$type,properties:{elements:{name:Y6.elements,defaultValue:[]}},superTypes:[Kf.$type]},ArrayType:{name:H6.$type,properties:{elementType:{name:H6.elementType}},superTypes:[Vf.$type]},Assignment:{name:wd.$type,properties:{cardinality:{name:wd.cardinality},feature:{name:wd.feature},operator:{name:wd.operator},predicate:{name:wd.predicate},terminal:{name:wd.terminal}},superTypes:[so.$type]},BooleanLiteral:{name:V6.$type,properties:{true:{name:V6.true,defaultValue:!1}},superTypes:[Ad.$type,Kf.$type]},CharacterRange:{name:kd.$type,properties:{cardinality:{name:kd.cardinality},left:{name:kd.left},lookahead:{name:kd.lookahead},parenthesized:{name:kd.parenthesized,defaultValue:!1},right:{name:kd.right}},superTypes:[oo.$type]},Condition:{name:Ad.$type,properties:{},superTypes:[]},Conjunction:{name:lS.$type,properties:{left:{name:lS.left},right:{name:lS.right}},superTypes:[Ad.$type]},CrossReference:{name:Rd.$type,properties:{cardinality:{name:Rd.cardinality},deprecatedSyntax:{name:Rd.deprecatedSyntax,defaultValue:!1},isMulti:{name:Rd.isMulti,defaultValue:!1},terminal:{name:Rd.terminal},type:{name:Rd.type,referenceType:Ro.$type}},superTypes:[so.$type]},Disjunction:{name:cS.$type,properties:{left:{name:cS.left},right:{name:cS.right}},superTypes:[Ad.$type]},EndOfFile:{name:W6.$type,properties:{cardinality:{name:W6.cardinality}},superTypes:[so.$type]},Grammar:{name:Xu.$type,properties:{imports:{name:Xu.imports,defaultValue:[]},interfaces:{name:Xu.interfaces,defaultValue:[]},isDeclared:{name:Xu.isDeclared,defaultValue:!1},name:{name:Xu.name},rules:{name:Xu.rules,defaultValue:[]},types:{name:Xu.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:K6.$type,properties:{path:{name:K6.path}},superTypes:[]},Group:{name:Ff.$type,properties:{cardinality:{name:Ff.cardinality},elements:{name:Ff.elements,defaultValue:[]},guardCondition:{name:Ff.guardCondition},predicate:{name:Ff.predicate}},superTypes:[so.$type]},InferredType:{name:X6.$type,properties:{name:{name:X6.name}},superTypes:[Ro.$type]},InfixRule:{name:Ic.$type,properties:{call:{name:Ic.call},dataType:{name:Ic.dataType},inferredType:{name:Ic.inferredType},name:{name:Ic.name},operators:{name:Ic.operators},parameters:{name:Ic.parameters,defaultValue:[]},returnType:{name:Ic.returnType,referenceType:Ro.$type}},superTypes:[sS.$type]},InfixRuleOperatorList:{name:uS.$type,properties:{associativity:{name:uS.associativity},operators:{name:uS.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:j6.$type,properties:{precedences:{name:j6.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Im.$type,properties:{attributes:{name:Im.attributes,defaultValue:[]},name:{name:Im.name},superTypes:{name:Im.superTypes,defaultValue:[],referenceType:Ro.$type}},superTypes:[Ro.$type]},Keyword:{name:Om.$type,properties:{cardinality:{name:Om.cardinality},predicate:{name:Om.predicate},value:{name:Om.value}},superTypes:[so.$type]},NamedArgument:{name:Dm.$type,properties:{calledByName:{name:Dm.calledByName,defaultValue:!1},parameter:{name:Dm.parameter,referenceType:Lm.$type},value:{name:Dm.value}},superTypes:[]},NegatedToken:{name:$f.$type,properties:{cardinality:{name:$f.cardinality},lookahead:{name:$f.lookahead},parenthesized:{name:$f.parenthesized,defaultValue:!1},terminal:{name:$f.terminal}},superTypes:[oo.$type]},Negation:{name:Q6.$type,properties:{value:{name:Q6.value}},superTypes:[Ad.$type]},NumberLiteral:{name:Z6.$type,properties:{value:{name:Z6.value}},superTypes:[Kf.$type]},Parameter:{name:Lm.$type,properties:{name:{name:Lm.name}},superTypes:[]},ParameterReference:{name:J6.$type,properties:{parameter:{name:J6.parameter,referenceType:Lm.$type}},superTypes:[Ad.$type]},ParserRule:{name:zl.$type,properties:{dataType:{name:zl.dataType},definition:{name:zl.definition},entry:{name:zl.entry,defaultValue:!1},fragment:{name:zl.fragment,defaultValue:!1},inferredType:{name:zl.inferredType},name:{name:zl.name},parameters:{name:zl.parameters,defaultValue:[]},returnType:{name:zl.returnType,referenceType:Ro.$type}},superTypes:[sS.$type]},ReferenceType:{name:dS.$type,properties:{isMulti:{name:dS.isMulti,defaultValue:!1},referenceType:{name:dS.referenceType}},superTypes:[Vf.$type]},RegexToken:{name:zf.$type,properties:{cardinality:{name:zf.cardinality},lookahead:{name:zf.lookahead},parenthesized:{name:zf.parenthesized,defaultValue:!1},regex:{name:zf.regex}},superTypes:[oo.$type]},ReturnType:{name:ew.$type,properties:{name:{name:ew.name}},superTypes:[]},RuleCall:{name:Uf.$type,properties:{arguments:{name:Uf.arguments,defaultValue:[]},cardinality:{name:Uf.cardinality},predicate:{name:Uf.predicate},rule:{name:Uf.rule,referenceType:Nm.$type}},superTypes:[so.$type]},SimpleType:{name:Mm.$type,properties:{primitiveType:{name:Mm.primitiveType},stringType:{name:Mm.stringType},typeRef:{name:Mm.typeRef,referenceType:Ro.$type}},superTypes:[Vf.$type]},StringLiteral:{name:tw.$type,properties:{value:{name:tw.value}},superTypes:[Kf.$type]},TerminalAlternatives:{name:Gf.$type,properties:{cardinality:{name:Gf.cardinality},elements:{name:Gf.elements,defaultValue:[]},lookahead:{name:Gf.lookahead},parenthesized:{name:Gf.parenthesized,defaultValue:!1}},superTypes:[oo.$type]},TerminalElement:{name:oo.$type,properties:{cardinality:{name:oo.cardinality},lookahead:{name:oo.lookahead},parenthesized:{name:oo.parenthesized,defaultValue:!1}},superTypes:[so.$type]},TerminalGroup:{name:qf.$type,properties:{cardinality:{name:qf.cardinality},elements:{name:qf.elements,defaultValue:[]},lookahead:{name:qf.lookahead},parenthesized:{name:qf.parenthesized,defaultValue:!1}},superTypes:[oo.$type]},TerminalRule:{name:ju.$type,properties:{definition:{name:ju.definition},fragment:{name:ju.fragment,defaultValue:!1},hidden:{name:ju.hidden,defaultValue:!1},name:{name:ju.name},type:{name:ju.type}},superTypes:[Nm.$type]},TerminalRuleCall:{name:Yf.$type,properties:{cardinality:{name:Yf.cardinality},lookahead:{name:Yf.lookahead},parenthesized:{name:Yf.parenthesized,defaultValue:!1},rule:{name:Yf.rule,referenceType:ju.$type}},superTypes:[oo.$type]},Type:{name:hS.$type,properties:{name:{name:hS.name},type:{name:hS.type}},superTypes:[Ro.$type]},TypeAttribute:{name:Hf.$type,properties:{defaultValue:{name:Hf.defaultValue},isOptional:{name:Hf.isOptional,defaultValue:!1},name:{name:Hf.name},type:{name:Hf.type}},superTypes:[]},TypeDefinition:{name:Vf.$type,properties:{},superTypes:[]},UnionType:{name:rw.$type,properties:{types:{name:rw.types,defaultValue:[]}},superTypes:[Vf.$type]},UnorderedGroup:{name:fS.$type,properties:{cardinality:{name:fS.cardinality},elements:{name:fS.elements,defaultValue:[]}},superTypes:[so.$type]},UntilToken:{name:Wf.$type,properties:{cardinality:{name:Wf.cardinality},lookahead:{name:Wf.lookahead},parenthesized:{name:Wf.parenthesized,defaultValue:!1},terminal:{name:Wf.terminal}},superTypes:[oo.$type]},ValueLiteral:{name:Kf.$type,properties:{},superTypes:[]},Wildcard:{name:Pm.$type,properties:{cardinality:{name:Pm.cardinality},lookahead:{name:Pm.lookahead},parenthesized:{name:Pm.parenthesized,defaultValue:!1}},superTypes:[oo.$type]}}}},k(I1,"LangiumGrammarAstReflection"),I1),Dr=new zY;function rEe(t){let e=t,r=!1;for(;e;){const n=cg(e.grammarSource,Hs);if(n&&n.dataType)e=e.container,r=!0;else return r?e:void 0}}k(rEe,"getDatatypeNode");function bb(t){return new mb(t,e=>N0(e)?e.content:[],{includeRoot:!0})}k(bb,"streamCst");function nEe(t){return bb(t).filter(lg)}k(nEe,"flattenCst");function UY(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}k(UY,"isChildNode");function E4(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}k(E4,"tokenToRange");function Eb(t){if(!t)return;const{offset:e,end:r,range:n}=t;return{range:n,offset:e,end:r,length:r-e}}k(Eb,"toDocumentSegment");var zc;(function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.OverlapFront=2]="OverlapFront",t[t.OverlapBack=3]="OverlapBack",t[t.Inside=4]="Inside",t[t.Outside=5]="Outside"})(zc||(zc={}));function GY(t,e){if(t.end.linee.end.line||t.start.line===e.end.line&&t.start.character>=e.end.character)return zc.After;const r=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,n=t.end.linezc.After}k(qY,"inRange");var YY=/^[\w\p{L}]$/u;function iEe(t,e,r=YY){if(t){if(e>0){const n=e-t.offset,i=t.text.charAt(n);r.test(i)||e--}return Z7(t,e)}}k(iEe,"findDeclarationNodeAtOffset");function HY(t,e){if(t){const r=KY(t,!0);if(r&&nw(r,e))return r;if(H7(t)){const n=t.content.findIndex(i=>!i.hidden);for(let i=n-1;i>=0;i--){const a=t.content[i];if(nw(a,e))return a}}}}k(HY,"findCommentNode");function nw(t,e){return lg(t)&&e.includes(t.tokenType.name)}k(nw,"isCommentNode");function Z7(t,e){if(lg(t))return t;if(N0(t)){const r=WY(t,e,!1);if(r)return Z7(r,e)}}k(Z7,"findLeafNodeAtOffset");function VY(t,e){if(lg(t))return t;if(N0(t)){const r=WY(t,e,!0);if(r)return VY(r,e)}}k(VY,"findLeafNodeBeforeOffset");function WY(t,e,r){let n=0,i=t.content.length-1,a;for(;n<=i;){const s=Math.floor((n+i)/2),o=t.content[s];if(o.offset<=e&&o.end>e)return o;o.end<=e?(a=r?o:void 0,n=s+1):i=s-1}return a}k(WY,"binarySearch");function KY(t,e=!0){for(;t.container;){const r=t.container;let n=r.content.indexOf(t);for(;n>0;){n--;const i=r.content[n];if(e||!i.hidden)return i}t=r}}k(KY,"getPreviousNode");function aEe(t,e=!0){for(;t.container;){const r=t.container;let n=r.content.indexOf(t);const i=r.content.length-1;for(;nlH,findNameAssignment:()=>sA,findNodeForKeyword:()=>oH,findNodeForProperty:()=>nA,findNodesForKeyword:()=>mEe,findNodesForKeywordInternal:()=>aA,findNodesForProperty:()=>sH,getActionAtElement:()=>uH,getActionType:()=>hH,getAllReachableRules:()=>rA,getAllRulesUsedForCrossReferences:()=>gEe,getCrossReferenceTerminal:()=>iH,getEntryRule:()=>tH,getExplicitRuleType:()=>$T,getHiddenRules:()=>rH,getRuleType:()=>fH,getRuleTypeName:()=>EEe,getTypeName:()=>Bp,isArrayCardinality:()=>vEe,isArrayOperator:()=>_Ee,isCommentTerminal:()=>aH,isDataType:()=>bEe,isDataTypeRule:()=>FT,isOptionalCardinality:()=>yEe,terminalRegex:()=>zT});var O1,J7=(O1=class extends Error{constructor(e,r){super(e?`${r} at ${e.range.start.line}:${e.range.start.character}`:r)}},k(O1,"ErrorWithLocation"),O1);function Gh(t,e="Error: Got unexpected value."){throw new Error(e)}k(Gh,"assertUnreachable");function jY(t,e="Error: Condition is violated."){if(!t)throw new Error(e)}k(jY,"assertCondition");var QY={};Uh(QY,{NEWLINE_REGEXP:()=>dEe,escapeRegExp:()=>u2,getTerminalParts:()=>fEe,isMultilineComment:()=>ZY,isWhitespace:()=>tA,partialMatches:()=>JY,partialRegExp:()=>eH,whitespaceCharacters:()=>pEe});function Pr(t){return t.charCodeAt(0)}k(Pr,"cc");function O5(t,e){Array.isArray(t)?t.forEach(function(r){e.push(r)}):e.push(t)}k(O5,"insertToSet");function um(t,e){if(t[e]===!0)throw"duplicate flag "+e;t[e],t[e]=!0}k(um,"addFlag");function wf(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}k(wf,"ASSERT_EXISTS");function cEe(){throw Error("Internal Error - Should never get here!")}k(cEe,"ASSERT_NEVER_REACH_HERE");function VF(t){return t.type==="Character"}k(VF,"isCharacter");var iw=[];for(let t=Pr("0");t<=Pr("9");t++)iw.push(t);var aw=[Pr("_")].concat(iw);for(let t=Pr("a");t<=Pr("z");t++)aw.push(t);for(let t=Pr("A");t<=Pr("Z");t++)aw.push(t);var Fae=[Pr(" "),Pr("\f"),Pr(` -`),Pr("\r"),Pr(" "),Pr("\v"),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr("\u2028"),Pr("\u2029"),Pr(" "),Pr(" "),Pr(" "),Pr("\uFEFF")],V_t=/[0-9a-fA-F]/,h3=/[0-9]/,W_t=/[1-9]/,D1,uEe=(D1=class{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const r=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":um(n,"global");break;case"i":um(n,"ignoreCase");break;case"m":um(n,"multiLine");break;case"u":um(n,"unicode");break;case"y":um(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:r,loc:this.loc(0)}}disjunction(){const e=[],r=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(r)}}alternative(){const e=[],r=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(r)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":r="Lookbehind";break;case"!":r="NegativeLookbehind"}break}}wf(r);const n=this.disjunction();return this.consumeChar(")"),{type:r,value:n,loc:this.loc(e)}}return cEe()}quantifier(e=!1){let r;const n=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),r={atLeast:i,atMost:a}):r={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&r===void 0)return;wf(r);break}if(!(e===!0&&r===void 0)&&wf(r))return this.peekChar(0)==="?"?(this.consumeChar("?"),r.greedy=!1):r.greedy=!0,r.type="Quantifier",r.loc=this.loc(n),r}atom(){let e;const r=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),wf(e))return e.loc=this.loc(r),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Pr(` +`)),yt){const Ot=Pe.error?` Request failed: ${Pe.error.message} (${Pe.error.code}).`:"";ze.log(`Received response '${yt.method} - (${Pe.id})' in ${Date.now()-yt.timerStart}ms.${Ot}`,bt)}else ze.log(`Received response ${Pe.id} without active response promise.`,bt)}else et("receive-response",Pe)}k(Et,"traceReceivedResponse");function et(Pe,yt){if(!ze||Te===f.Off)return;const bt={isLSPMessage:!0,type:Pe,message:yt,timestamp:Date.now()};ze.log(bt)}k(et,"logLSPMessage");function dt(){if(U())throw new b(v.Closed,"Connection is closed.");if(oe())throw new b(v.Disposed,"Connection is disposed.")}k(dt,"throwIfClosedOrDisposed");function ft(){if(Oe())throw new b(v.AlreadyListening,"Connection is already listening")}k(ft,"throwIfListening");function mt(){if(!Oe())throw new Error("Call listen() first.")}k(mt,"throwIfNotListening");function fe(Pe){return Pe===void 0?null:Pe}k(fe,"undefinedToNull");function It(Pe){if(Pe!==null)return Pe}k(It,"nullToUndefined");function St(Pe){return Pe!=null&&!Array.isArray(Pe)&&typeof Pe=="object"}k(St,"isNamedParam");function Tt(Pe,yt){switch(Pe){case n.ParameterStructures.auto:return St(yt)?It(yt):[fe(yt)];case n.ParameterStructures.byName:if(!St(yt))throw new Error("Received parameters by name but param is not an object literal.");return It(yt);case n.ParameterStructures.byPosition:return[fe(yt)];default:throw new Error(`Unknown parameter structure ${Pe.toString()}`)}}k(Tt,"computeSingleParam");function Nt(Pe,yt){let bt;const Ot=Pe.numberOfParams;switch(Ot){case 0:bt=void 0;break;case 1:bt=Tt(Pe.parameterStructures,yt[0]);break;default:bt=[];for(let Qt=0;Qt{dt();let bt,Ot;if(r.string(Pe)){bt=Pe;const br=yt[0];let Ct=0,Ye=n.ParameterStructures.auto;n.ParameterStructures.is(br)&&(Ct=1,Ye=br);let pt=yt.length;const Dt=pt-Ct;switch(Dt){case 0:Ot=void 0;break;case 1:Ot=Tt(Ye,yt[Ct]);break;default:if(Ye===n.ParameterStructures.byName)throw new Error(`Received ${Dt} parameters for 'by Name' notification parameter structure.`);Ot=yt.slice(Ct,pt).map(Zt=>fe(Zt));break}}else{const br=yt;bt=Pe.method,Ot=Nt(Pe,br)}const Qt={jsonrpc:Y,method:bt,params:Ot};return le(Qt),D.write(Qt).catch(br=>{throw P.error("Sending notification failed."),br})},"sendNotification"),onNotification:k((Pe,yt)=>{dt();let bt;return r.func(Pe)?J=Pe:yt&&(r.string(Pe)?(bt=Pe,Z.set(Pe,{type:void 0,handler:yt})):(bt=Pe.method,Z.set(Pe.method,{type:Pe,handler:yt}))),{dispose:k(()=>{bt!==void 0?Z.delete(bt):J=void 0},"dispose")}},"onNotification"),onProgress:k((Pe,yt,bt)=>{if(pe.has(yt))throw new Error(`Progress handler for token ${yt} already registered`);return pe.set(yt,bt),{dispose:k(()=>{pe.delete(yt)},"dispose")}},"onProgress"),sendProgress:k((Pe,yt,bt)=>Hr.sendNotification(u.type,{token:yt,value:bt}),"sendProgress"),onUnhandledProgress:Ne.event,sendRequest:k((Pe,...yt)=>{dt(),mt();let bt,Ot,Qt;if(r.string(Pe)){bt=Pe;const pt=yt[0],Dt=yt[yt.length-1];let Zt=0,wr=n.ParameterStructures.auto;n.ParameterStructures.is(pt)&&(Zt=1,wr=pt);let Vr=yt.length;s.CancellationToken.is(Dt)&&(Vr=Vr-1,Qt=Dt);const Kr=Vr-Zt;switch(Kr){case 0:Ot=void 0;break;case 1:Ot=Tt(wr,yt[Zt]);break;default:if(wr===n.ParameterStructures.byName)throw new Error(`Received ${Kr} parameters for 'by Name' request parameter structure.`);Ot=yt.slice(Zt,Vr).map(Gn=>fe(Gn));break}}else{const pt=yt;bt=Pe.method,Ot=Nt(Pe,pt);const Dt=Pe.numberOfParams;Qt=s.CancellationToken.is(pt[Dt])?pt[Dt]:void 0}const br=z++;let Ct;Qt&&(Ct=Qt.onCancellationRequested(()=>{const pt=De.sender.sendCancellation(Hr,br);return pt===void 0?(P.log(`Received no promise from cancellation strategy when cancelling id ${br}`),Promise.resolve()):pt.catch(()=>{P.log(`Sending cancellation messages for id ${br} failed`)})}));const Ye={jsonrpc:Y,id:br,method:bt,params:Ot};return he(Ye),typeof De.sender.enableCancellation=="function"&&De.sender.enableCancellation(Ye),new Promise(async(pt,Dt)=>{const Zt=k(Kr=>{pt(Kr),De.sender.cleanup(br),Ct?.dispose()},"resolveWithCleanup"),wr=k(Kr=>{Dt(Kr),De.sender.cleanup(br),Ct?.dispose()},"rejectWithCleanup"),Vr={method:bt,timerStart:Date.now(),resolve:Zt,reject:wr};try{await D.write(Ye),ae.set(br,Vr)}catch(Kr){throw P.error("Sending request failed."),Vr.reject(new n.ResponseError(n.ErrorCodes.MessageWriteError,Kr.message?Kr.message:"Unknown reason")),Kr}})},"sendRequest"),onRequest:k((Pe,yt)=>{dt();let bt=null;return h.is(Pe)?(bt=void 0,Q=Pe):r.string(Pe)?(bt=null,yt!==void 0&&(bt=Pe,H.set(Pe,{handler:yt,type:void 0}))):yt!==void 0&&(bt=Pe.method,H.set(Pe.method,{type:Pe,handler:yt})),{dispose:k(()=>{bt!==null&&(bt!==void 0?H.delete(bt):Q=void 0)},"dispose")}},"onRequest"),hasPendingResponse:k(()=>ae.size>0,"hasPendingResponse"),trace:k(async(Pe,yt,bt)=>{let Ot=!1,Qt=g.Text;bt!==void 0&&(r.boolean(bt)?Ot=bt:(Ot=bt.sendNotification||!1,Qt=bt.traceFormat||g.Text)),Te=Pe,Ge=Qt,Te===f.Off?ze=void 0:ze=yt,Ot&&!U()&&!oe()&&await Hr.sendNotification(m.type,{value:f.toString(Pe)})},"trace"),onError:Le.event,onClose:Re.event,onUnhandledNotification:qe.event,onDispose:ut.event,end:k(()=>{D.end()},"end"),dispose:k(()=>{if(oe())return;Xe=M.Disposed,ut.fire(void 0);const Pe=new n.ResponseError(n.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const yt of ae.values())yt.reject(Pe);ae=new Map,xe=new Map,se=new Set,ce=new i.LinkedMap,r.func(D.dispose)&&D.dispose(),r.func(I.dispose)&&I.dispose()},"dispose"),listen:k(()=>{dt(),ft(),Xe=M.Listening,I.listen(Fe)},"listen"),inspect:k(()=>{(0,e.default)().console.log("inspect")},"inspect")};return Hr.onNotification(y.type,Pe=>{if(Te===f.Off||!ze)return;const yt=Te===f.Verbose||Te===f.Compact;ze.log(Pe.message,yt?Pe.verbose:void 0)}),Hr.onNotification(u.type,Pe=>{const yt=pe.get(Pe.token);yt?yt(Pe.value):Ne.fire(Pe)}),Hr}k($,"createMessageConnection"),t.createMessageConnection=$}}),YF=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=void 0;var e=D2e();Object.defineProperty(t,"Message",{enumerable:!0,get:k(function(){return e.Message},"get")}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:k(function(){return e.RequestType},"get")}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:k(function(){return e.RequestType0},"get")}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:k(function(){return e.RequestType1},"get")}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:k(function(){return e.RequestType2},"get")}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:k(function(){return e.RequestType3},"get")}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:k(function(){return e.RequestType4},"get")}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:k(function(){return e.RequestType5},"get")}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:k(function(){return e.RequestType6},"get")}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:k(function(){return e.RequestType7},"get")}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:k(function(){return e.RequestType8},"get")}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:k(function(){return e.RequestType9},"get")}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:k(function(){return e.ResponseError},"get")}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:k(function(){return e.ErrorCodes},"get")}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:k(function(){return e.NotificationType},"get")}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:k(function(){return e.NotificationType0},"get")}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:k(function(){return e.NotificationType1},"get")}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:k(function(){return e.NotificationType2},"get")}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:k(function(){return e.NotificationType3},"get")}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:k(function(){return e.NotificationType4},"get")}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:k(function(){return e.NotificationType5},"get")}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:k(function(){return e.NotificationType6},"get")}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:k(function(){return e.NotificationType7},"get")}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:k(function(){return e.NotificationType8},"get")}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:k(function(){return e.NotificationType9},"get")}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:k(function(){return e.ParameterStructures},"get")});var r=L2e();Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:k(function(){return r.LinkedMap},"get")}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:k(function(){return r.LRUCache},"get")}),Object.defineProperty(t,"Touch",{enumerable:!0,get:k(function(){return r.Touch},"get")});var n=p_t();Object.defineProperty(t,"Disposable",{enumerable:!0,get:k(function(){return n.Disposable},"get")});var i=l2();Object.defineProperty(t,"Event",{enumerable:!0,get:k(function(){return i.Event},"get")}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:k(function(){return i.Emitter},"get")});var a=Y7();Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:k(function(){return a.CancellationTokenSource},"get")}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:k(function(){return a.CancellationToken},"get")});var s=g_t();Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:k(function(){return s.SharedArraySenderStrategy},"get")}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:k(function(){return s.SharedArrayReceiverStrategy},"get")});var o=m_t();Object.defineProperty(t,"MessageReader",{enumerable:!0,get:k(function(){return o.MessageReader},"get")}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:k(function(){return o.AbstractMessageReader},"get")}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:k(function(){return o.ReadableStreamMessageReader},"get")});var l=y_t();Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:k(function(){return l.MessageWriter},"get")}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:k(function(){return l.AbstractMessageWriter},"get")}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:k(function(){return l.WriteableStreamMessageWriter},"get")});var u=v_t();Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:k(function(){return u.AbstractMessageBuffer},"get")});var d=__t();Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:k(function(){return d.ConnectionStrategy},"get")}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:k(function(){return d.ConnectionOptions},"get")}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:k(function(){return d.NullLogger},"get")}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:k(function(){return d.createMessageConnection},"get")}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:k(function(){return d.ProgressToken},"get")}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:k(function(){return d.ProgressType},"get")}),Object.defineProperty(t,"Trace",{enumerable:!0,get:k(function(){return d.Trace},"get")}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:k(function(){return d.TraceValues},"get")}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:k(function(){return d.TraceFormat},"get")}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:k(function(){return d.SetTraceNotification},"get")}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:k(function(){return d.LogTraceNotification},"get")}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:k(function(){return d.ConnectionErrors},"get")}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:k(function(){return d.ConnectionError},"get")}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:k(function(){return d.CancellationReceiverStrategy},"get")}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:k(function(){return d.CancellationSenderStrategy},"get")}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:k(function(){return d.CancellationStrategy},"get")}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:k(function(){return d.MessageStrategy},"get")});var h=og();t.RAL=h.default}}),b_t=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(t){var l,u,d;Object.defineProperty(t,"__esModule",{value:!0});var e=YF(),r=(l=class extends e.AbstractMessageBuffer{constructor(f="utf-8"){super(f),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return l.emptyBuffer}fromString(f,p){return new TextEncoder().encode(f)}toString(f,p){return p==="ascii"?this.asciiDecoder.decode(f):new TextDecoder(p).decode(f)}asNative(f,p){return p===void 0?f:f.slice(0,p)}allocNative(f){return new Uint8Array(f)}},k(l,"MessageBuffer"),l);r.emptyBuffer=new Uint8Array(0);var n=(u=class{constructor(f){this.socket=f,this._onData=new e.Emitter,this._messageListener=p=>{p.data.arrayBuffer().then(m=>{this._onData.fire(new Uint8Array(m))},()=>{(0,e.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(f){return this.socket.addEventListener("close",f),e.Disposable.create(()=>this.socket.removeEventListener("close",f))}onError(f){return this.socket.addEventListener("error",f),e.Disposable.create(()=>this.socket.removeEventListener("error",f))}onEnd(f){return this.socket.addEventListener("end",f),e.Disposable.create(()=>this.socket.removeEventListener("end",f))}onData(f){return this._onData.event(f)}},k(u,"ReadableStreamWrapper"),u),i=(d=class{constructor(f){this.socket=f}onClose(f){return this.socket.addEventListener("close",f),e.Disposable.create(()=>this.socket.removeEventListener("close",f))}onError(f){return this.socket.addEventListener("error",f),e.Disposable.create(()=>this.socket.removeEventListener("error",f))}onEnd(f){return this.socket.addEventListener("end",f),e.Disposable.create(()=>this.socket.removeEventListener("end",f))}write(f,p){if(typeof f=="string"){if(p!==void 0&&p!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${p}`);this.socket.send(f)}else this.socket.send(f);return Promise.resolve()}end(){this.socket.close()}},k(d,"WritableStreamWrapper"),d),a=new TextEncoder,s=Object.freeze({messageBuffer:Object.freeze({create:k(h=>new r(h),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:k((h,f)=>{if(f.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${f.charset}`);return Promise.resolve(a.encode(JSON.stringify(h,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:k((h,f)=>{if(!(h instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(f.charset).decode(h)))},"decode")})}),stream:Object.freeze({asReadableStream:k(h=>new n(h),"asReadableStream"),asWritableStream:k(h=>new i(h),"asWritableStream")}),console,timer:Object.freeze({setTimeout(h,f,...p){const g=setTimeout(h,f,...p);return{dispose:k(()=>clearTimeout(g),"dispose")}},setImmediate(h,...f){const p=setTimeout(h,0,...f);return{dispose:k(()=>clearTimeout(p),"dispose")}},setInterval(h,f,...p){const g=setInterval(h,f,...p);return{dispose:k(()=>clearInterval(g),"dispose")}}})});function o(){return s}k(o,"RIL"),(function(h){function f(){e.RAL.install(s)}k(f,"install"),h.install=f})(o||(o={})),t.default=o}}),c2=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(t){var l,u;var e=t&&t.__createBinding||(Object.create?(function(d,h,f,p){p===void 0&&(p=f);var g=Object.getOwnPropertyDescriptor(h,f);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:k(function(){return h[f]},"get")}),Object.defineProperty(d,p,g)}):(function(d,h,f,p){p===void 0&&(p=f),d[p]=h[f]})),r=t&&t.__exportStar||function(d,h){for(var f in d)f!=="default"&&!Object.prototype.hasOwnProperty.call(h,f)&&e(h,d,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0;var n=b_t();n.default.install();var i=YF();r(YF(),t);var a=(l=class extends i.AbstractMessageReader{constructor(h){super(),this._onData=new i.Emitter,this._messageListener=f=>{this._onData.fire(f.data)},h.addEventListener("error",f=>this.fireError(f)),h.onmessage=this._messageListener}listen(h){return this._onData.event(h)}},k(l,"BrowserMessageReader"),l);t.BrowserMessageReader=a;var s=(u=class extends i.AbstractMessageWriter{constructor(h){super(),this.port=h,this.errorCount=0,h.addEventListener("error",f=>this.fireError(f))}write(h){try{return this.port.postMessage(h),Promise.resolve()}catch(f){return this.handleError(f,h),Promise.reject(f)}}handleError(h,f){this.errorCount++,this.fireError(h,f,this.errorCount)}end(){}},k(u,"BrowserMessageWriter"),u);t.BrowserMessageWriter=s;function o(d,h,f,p){return f===void 0&&(f=i.NullLogger),i.ConnectionStrategy.is(p)&&(p={connectionStrategy:p}),(0,i.createMessageConnection)(d,h,f,p)}k(o,"createMessageConnection"),t.createMessageConnection=o}}),Bae=Zr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(t,e){e.exports=c2()}}),Ii=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(t){var l,u,d,h,f;Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=t.MessageDirection=void 0;var e=c2(),r;(function(p){p.clientToServer="clientToServer",p.serverToClient="serverToClient",p.both="both"})(r||(t.MessageDirection=r={}));var n=(l=class{constructor(g){this.method=g}},k(l,"RegistrationType"),l);t.RegistrationType=n;var i=(u=class extends e.RequestType0{constructor(g){super(g)}},k(u,"ProtocolRequestType0"),u);t.ProtocolRequestType0=i;var a=(d=class extends e.RequestType{constructor(g){super(g,e.ParameterStructures.byName)}},k(d,"ProtocolRequestType"),d);t.ProtocolRequestType=a;var s=(h=class extends e.NotificationType0{constructor(g){super(g)}},k(h,"ProtocolNotificationType0"),h);t.ProtocolNotificationType0=s;var o=(f=class extends e.NotificationType{constructor(g){super(g,e.ParameterStructures.byName)}},k(f,"ProtocolNotificationType"),f);t.ProtocolNotificationType=o}}),gY=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0;function e(d){return d===!0||d===!1}k(e,"boolean"),t.boolean=e;function r(d){return typeof d=="string"||d instanceof String}k(r,"string"),t.string=r;function n(d){return typeof d=="number"||d instanceof Number}k(n,"number"),t.number=n;function i(d){return d instanceof Error}k(i,"error"),t.error=i;function a(d){return typeof d=="function"}k(a,"func"),t.func=a;function s(d){return Array.isArray(d)}k(s,"array"),t.array=s;function o(d){return s(d)&&d.every(h=>r(h))}k(o,"stringArray"),t.stringArray=o;function l(d,h){return Array.isArray(d)&&d.every(h)}k(l,"typedArray"),t.typedArray=l;function u(d){return d!==null&&typeof d=="object"}k(u,"objectLiteral"),t.objectLiteral=u}}),E_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;var e=Ii(),r;(function(n){n.method="textDocument/implementation",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ImplementationRequest=r={}))}}),S_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;var e=Ii(),r;(function(n){n.method="textDocument/typeDefinition",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.TypeDefinitionRequest=r={}))}}),T_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;var e=Ii(),r;(function(i){i.method="workspace/workspaceFolders",i.messageDirection=e.MessageDirection.serverToClient,i.type=new e.ProtocolRequestType0(i.method)})(r||(t.WorkspaceFoldersRequest=r={}));var n;(function(i){i.method="workspace/didChangeWorkspaceFolders",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolNotificationType(i.method)})(n||(t.DidChangeWorkspaceFoldersNotification=n={}))}}),x_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;var e=Ii(),r;(function(n){n.method="workspace/configuration",n.messageDirection=e.MessageDirection.serverToClient,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ConfigurationRequest=r={}))}}),C_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;var e=Ii(),r;(function(i){i.method="textDocument/documentColor",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.DocumentColorRequest=r={}));var n;(function(i){i.method="textDocument/colorPresentation",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(n||(t.ColorPresentationRequest=n={}))}}),w_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=void 0;var e=Ii(),r;(function(i){i.method="textDocument/foldingRange",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.FoldingRangeRequest=r={}));var n;(function(i){i.method="workspace/foldingRange/refresh",i.messageDirection=e.MessageDirection.serverToClient,i.type=new e.ProtocolRequestType0(i.method)})(n||(t.FoldingRangeRefreshRequest=n={}))}}),k_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;var e=Ii(),r;(function(n){n.method="textDocument/declaration",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.DeclarationRequest=r={}))}}),A_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;var e=Ii(),r;(function(n){n.method="textDocument/selectionRange",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.SelectionRangeRequest=r={}))}}),R_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;var e=c2(),r=Ii(),n;(function(s){s.type=new e.ProgressType;function o(l){return l===s.type}k(o,"is"),s.is=o})(n||(t.WorkDoneProgress=n={}));var i;(function(s){s.method="window/workDoneProgress/create",s.messageDirection=r.MessageDirection.serverToClient,s.type=new r.ProtocolRequestType(s.method)})(i||(t.WorkDoneProgressCreateRequest=i={}));var a;(function(s){s.method="window/workDoneProgress/cancel",s.messageDirection=r.MessageDirection.clientToServer,s.type=new r.ProtocolNotificationType(s.method)})(a||(t.WorkDoneProgressCancelNotification=a={}))}}),N_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;var e=Ii(),r;(function(a){a.method="textDocument/prepareCallHierarchy",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.CallHierarchyPrepareRequest=r={}));var n;(function(a){a.method="callHierarchy/incomingCalls",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(n||(t.CallHierarchyIncomingCallsRequest=n={}));var i;(function(a){a.method="callHierarchy/outgoingCalls",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(i||(t.CallHierarchyOutgoingCallsRequest=i={}))}}),I_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;var e=Ii(),r;(function(l){l.Relative="relative"})(r||(t.TokenFormat=r={}));var n;(function(l){l.method="textDocument/semanticTokens",l.type=new e.RegistrationType(l.method)})(n||(t.SemanticTokensRegistrationType=n={}));var i;(function(l){l.method="textDocument/semanticTokens/full",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(i||(t.SemanticTokensRequest=i={}));var a;(function(l){l.method="textDocument/semanticTokens/full/delta",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(a||(t.SemanticTokensDeltaRequest=a={}));var s;(function(l){l.method="textDocument/semanticTokens/range",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(s||(t.SemanticTokensRangeRequest=s={}));var o;(function(l){l.method="workspace/semanticTokens/refresh",l.messageDirection=e.MessageDirection.serverToClient,l.type=new e.ProtocolRequestType0(l.method)})(o||(t.SemanticTokensRefreshRequest=o={}))}}),O_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;var e=Ii(),r;(function(n){n.method="window/showDocument",n.messageDirection=e.MessageDirection.serverToClient,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ShowDocumentRequest=r={}))}}),D_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;var e=Ii(),r;(function(n){n.method="textDocument/linkedEditingRange",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.LinkedEditingRangeRequest=r={}))}}),L_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;var e=Ii(),r;(function(u){u.file="file",u.folder="folder"})(r||(t.FileOperationPatternKind=r={}));var n;(function(u){u.method="workspace/willCreateFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(n||(t.WillCreateFilesRequest=n={}));var i;(function(u){u.method="workspace/didCreateFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(i||(t.DidCreateFilesNotification=i={}));var a;(function(u){u.method="workspace/willRenameFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(a||(t.WillRenameFilesRequest=a={}));var s;(function(u){u.method="workspace/didRenameFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(s||(t.DidRenameFilesNotification=s={}));var o;(function(u){u.method="workspace/didDeleteFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(o||(t.DidDeleteFilesNotification=o={}));var l;(function(u){u.method="workspace/willDeleteFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(l||(t.WillDeleteFilesRequest=l={}))}}),M_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;var e=Ii(),r;(function(a){a.document="document",a.project="project",a.group="group",a.scheme="scheme",a.global="global"})(r||(t.UniquenessLevel=r={}));var n;(function(a){a.$import="import",a.$export="export",a.local="local"})(n||(t.MonikerKind=n={}));var i;(function(a){a.method="textDocument/moniker",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(i||(t.MonikerRequest=i={}))}}),P_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;var e=Ii(),r;(function(a){a.method="textDocument/prepareTypeHierarchy",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.TypeHierarchyPrepareRequest=r={}));var n;(function(a){a.method="typeHierarchy/supertypes",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(n||(t.TypeHierarchySupertypesRequest=n={}));var i;(function(a){a.method="typeHierarchy/subtypes",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(i||(t.TypeHierarchySubtypesRequest=i={}))}}),B_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;var e=Ii(),r;(function(i){i.method="textDocument/inlineValue",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.InlineValueRequest=r={}));var n;(function(i){i.method="workspace/inlineValue/refresh",i.messageDirection=e.MessageDirection.serverToClient,i.type=new e.ProtocolRequestType0(i.method)})(n||(t.InlineValueRefreshRequest=n={}))}}),F_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;var e=Ii(),r;(function(a){a.method="textDocument/inlayHint",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.InlayHintRequest=r={}));var n;(function(a){a.method="inlayHint/resolve",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(n||(t.InlayHintResolveRequest=n={}));var i;(function(a){a.method="workspace/inlayHint/refresh",a.messageDirection=e.MessageDirection.serverToClient,a.type=new e.ProtocolRequestType0(a.method)})(i||(t.InlayHintRefreshRequest=i={}))}}),$_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;var e=c2(),r=gY(),n=Ii(),i;(function(u){function d(h){const f=h;return f&&r.boolean(f.retriggerRequest)}k(d,"is"),u.is=d})(i||(t.DiagnosticServerCancellationData=i={}));var a;(function(u){u.Full="full",u.Unchanged="unchanged"})(a||(t.DocumentDiagnosticReportKind=a={}));var s;(function(u){u.method="textDocument/diagnostic",u.messageDirection=n.MessageDirection.clientToServer,u.type=new n.ProtocolRequestType(u.method),u.partialResult=new e.ProgressType})(s||(t.DocumentDiagnosticRequest=s={}));var o;(function(u){u.method="workspace/diagnostic",u.messageDirection=n.MessageDirection.clientToServer,u.type=new n.ProtocolRequestType(u.method),u.partialResult=new e.ProgressType})(o||(t.WorkspaceDiagnosticRequest=o={}));var l;(function(u){u.method="workspace/diagnostic/refresh",u.messageDirection=n.MessageDirection.serverToClient,u.type=new n.ProtocolRequestType0(u.method)})(l||(t.DiagnosticRefreshRequest=l={}))}}),z_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;var e=(LT(),pY(q7)),r=gY(),n=Ii(),i;(function(g){g.Markup=1,g.Code=2;function m(y){return y===1||y===2}k(m,"is"),g.is=m})(i||(t.NotebookCellKind=i={}));var a;(function(g){function m(b,_){const E={executionOrder:b};return(_===!0||_===!1)&&(E.success=_),E}k(m,"create"),g.create=m;function y(b){const _=b;return r.objectLiteral(_)&&e.uinteger.is(_.executionOrder)&&(_.success===void 0||r.boolean(_.success))}k(y,"is"),g.is=y;function v(b,_){return b===_?!0:b==null||_===null||_===void 0?!1:b.executionOrder===_.executionOrder&&b.success===_.success}k(v,"equals"),g.equals=v})(a||(t.ExecutionSummary=a={}));var s;(function(g){function m(_,E){return{kind:_,document:E}}k(m,"create"),g.create=m;function y(_){const E=_;return r.objectLiteral(E)&&i.is(E.kind)&&e.DocumentUri.is(E.document)&&(E.metadata===void 0||r.objectLiteral(E.metadata))}k(y,"is"),g.is=y;function v(_,E){const x=new Set;return _.document!==E.document&&x.add("document"),_.kind!==E.kind&&x.add("kind"),_.executionSummary!==E.executionSummary&&x.add("executionSummary"),(_.metadata!==void 0||E.metadata!==void 0)&&!b(_.metadata,E.metadata)&&x.add("metadata"),(_.executionSummary!==void 0||E.executionSummary!==void 0)&&!a.equals(_.executionSummary,E.executionSummary)&&x.add("executionSummary"),x}k(v,"diff"),g.diff=v;function b(_,E){if(_===E)return!0;if(_==null||E===null||E===void 0||typeof _!=typeof E||typeof _!="object")return!1;const x=Array.isArray(_),C=Array.isArray(E);if(x!==C)return!1;if(x&&C){if(_.length!==E.length)return!1;for(let T=0;T<_.length;T++)if(!b(_[T],E[T]))return!1}if(r.objectLiteral(_)&&r.objectLiteral(E)){const T=Object.keys(_),w=Object.keys(E);if(T.length!==w.length||(T.sort(),w.sort(),!b(T,w)))return!1;for(let N=0;N0}k(It,"hasId"),fe.hasId=It})(R||(t.StaticRegistrationOptions=R={}));var P;(function(fe){function It(St){const Tt=St;return Tt&&(Tt.documentSelector===null||$.is(Tt.documentSelector))}k(It,"is"),fe.is=It})(P||(t.TextDocumentRegistrationOptions=P={}));var z;(function(fe){function It(Tt){const Nt=Tt;return n.objectLiteral(Nt)&&(Nt.workDoneProgress===void 0||n.boolean(Nt.workDoneProgress))}k(It,"is"),fe.is=It;function St(Tt){const Nt=Tt;return Nt&&n.boolean(Nt.workDoneProgress)}k(St,"hasWorkDoneProgress"),fe.hasWorkDoneProgress=St})(z||(t.WorkDoneProgressOptions=z={}));var B;(function(fe){fe.method="initialize",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(B||(t.InitializeRequest=B={}));var q;(function(fe){fe.unknownProtocolVersion=1})(q||(t.InitializeErrorCodes=q={}));var Y;(function(fe){fe.method="initialized",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(Y||(t.InitializedNotification=Y={}));var Q;(function(fe){fe.method="shutdown",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType0(fe.method)})(Q||(t.ShutdownRequest=Q={}));var H;(function(fe){fe.method="exit",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType0(fe.method)})(H||(t.ExitNotification=H={}));var J;(function(fe){fe.method="workspace/didChangeConfiguration",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(J||(t.DidChangeConfigurationNotification=J={}));var Z;(function(fe){fe.Error=1,fe.Warning=2,fe.Info=3,fe.Log=4,fe.Debug=5})(Z||(t.MessageType=Z={}));var pe;(function(fe){fe.method="window/showMessage",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolNotificationType(fe.method)})(pe||(t.ShowMessageNotification=pe={}));var re;(function(fe){fe.method="window/showMessageRequest",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolRequestType(fe.method)})(re||(t.ShowMessageRequest=re={}));var ce;(function(fe){fe.method="window/logMessage",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolNotificationType(fe.method)})(ce||(t.LogMessageNotification=ce={}));var ae;(function(fe){fe.method="telemetry/event",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolNotificationType(fe.method)})(ae||(t.TelemetryEventNotification=ae={}));var se;(function(fe){fe.None=0,fe.Full=1,fe.Incremental=2})(se||(t.TextDocumentSyncKind=se={}));var xe;(function(fe){fe.method="textDocument/didOpen",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(xe||(t.DidOpenTextDocumentNotification=xe={}));var Te;(function(fe){function It(Tt){let Nt=Tt;return Nt!=null&&typeof Nt.text=="string"&&Nt.range!==void 0&&(Nt.rangeLength===void 0||typeof Nt.rangeLength=="number")}k(It,"isIncremental"),fe.isIncremental=It;function St(Tt){let Nt=Tt;return Nt!=null&&typeof Nt.text=="string"&&Nt.range===void 0&&Nt.rangeLength===void 0}k(St,"isFull"),fe.isFull=St})(Te||(t.TextDocumentContentChangeEvent=Te={}));var Ge;(function(fe){fe.method="textDocument/didChange",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(Ge||(t.DidChangeTextDocumentNotification=Ge={}));var ze;(function(fe){fe.method="textDocument/didClose",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(ze||(t.DidCloseTextDocumentNotification=ze={}));var Xe;(function(fe){fe.method="textDocument/didSave",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(Xe||(t.DidSaveTextDocumentNotification=Xe={}));var Le;(function(fe){fe.Manual=1,fe.AfterDelay=2,fe.FocusOut=3})(Le||(t.TextDocumentSaveReason=Le={}));var Re;(function(fe){fe.method="textDocument/willSave",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(Re||(t.WillSaveTextDocumentNotification=Re={}));var qe;(function(fe){fe.method="textDocument/willSaveWaitUntil",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(qe||(t.WillSaveTextDocumentWaitUntilRequest=qe={}));var Ne;(function(fe){fe.method="workspace/didChangeWatchedFiles",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolNotificationType(fe.method)})(Ne||(t.DidChangeWatchedFilesNotification=Ne={}));var ut;(function(fe){fe.Created=1,fe.Changed=2,fe.Deleted=3})(ut||(t.FileChangeType=ut={}));var De;(function(fe){function It(St){const Tt=St;return n.objectLiteral(Tt)&&(r.URI.is(Tt.baseUri)||r.WorkspaceFolder.is(Tt.baseUri))&&n.string(Tt.pattern)}k(It,"is"),fe.is=It})(De||(t.RelativePattern=De={}));var Je;(function(fe){fe.Create=1,fe.Change=2,fe.Delete=4})(Je||(t.WatchKind=Je={}));var st;(function(fe){fe.method="textDocument/publishDiagnostics",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolNotificationType(fe.method)})(st||(t.PublishDiagnosticsNotification=st={}));var ct;(function(fe){fe.Invoked=1,fe.TriggerCharacter=2,fe.TriggerForIncompleteCompletions=3})(ct||(t.CompletionTriggerKind=ct={}));var ot;(function(fe){fe.method="textDocument/completion",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(ot||(t.CompletionRequest=ot={}));var it;(function(fe){fe.method="completionItem/resolve",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(it||(t.CompletionResolveRequest=it={}));var Oe;(function(fe){fe.method="textDocument/hover",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(Oe||(t.HoverRequest=Oe={}));var U;(function(fe){fe.Invoked=1,fe.TriggerCharacter=2,fe.ContentChange=3})(U||(t.SignatureHelpTriggerKind=U={}));var oe;(function(fe){fe.method="textDocument/signatureHelp",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(oe||(t.SignatureHelpRequest=oe={}));var de;(function(fe){fe.method="textDocument/definition",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(de||(t.DefinitionRequest=de={}));var G;(function(fe){fe.method="textDocument/references",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(G||(t.ReferencesRequest=G={}));var ie;(function(fe){fe.method="textDocument/documentHighlight",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(ie||(t.DocumentHighlightRequest=ie={}));var j;(function(fe){fe.method="textDocument/documentSymbol",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(j||(t.DocumentSymbolRequest=j={}));var V;(function(fe){fe.method="textDocument/codeAction",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(V||(t.CodeActionRequest=V={}));var ue;(function(fe){fe.method="codeAction/resolve",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(ue||(t.CodeActionResolveRequest=ue={}));var Fe;(function(fe){fe.method="workspace/symbol",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(Fe||(t.WorkspaceSymbolRequest=Fe={}));var me;(function(fe){fe.method="workspaceSymbol/resolve",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(me||(t.WorkspaceSymbolResolveRequest=me={}));var Ce;(function(fe){fe.method="textDocument/codeLens",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(Ce||(t.CodeLensRequest=Ce={}));var ye;(function(fe){fe.method="codeLens/resolve",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(ye||(t.CodeLensResolveRequest=ye={}));var Me;(function(fe){fe.method="workspace/codeLens/refresh",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolRequestType0(fe.method)})(Me||(t.CodeLensRefreshRequest=Me={}));var Ie;(function(fe){fe.method="textDocument/documentLink",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(Ie||(t.DocumentLinkRequest=Ie={}));var he;(function(fe){fe.method="documentLink/resolve",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(he||(t.DocumentLinkResolveRequest=he={}));var le;(function(fe){fe.method="textDocument/formatting",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(le||(t.DocumentFormattingRequest=le={}));var Be;(function(fe){fe.method="textDocument/rangeFormatting",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(Be||(t.DocumentRangeFormattingRequest=Be={}));var ve;(function(fe){fe.method="textDocument/rangesFormatting",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(ve||(t.DocumentRangesFormattingRequest=ve={}));var gt;(function(fe){fe.method="textDocument/onTypeFormatting",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(gt||(t.DocumentOnTypeFormattingRequest=gt={}));var Et;(function(fe){fe.Identifier=1})(Et||(t.PrepareSupportDefaultBehavior=Et={}));var et;(function(fe){fe.method="textDocument/rename",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(et||(t.RenameRequest=et={}));var dt;(function(fe){fe.method="textDocument/prepareRename",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(dt||(t.PrepareRenameRequest=dt={}));var ft;(function(fe){fe.method="workspace/executeCommand",fe.messageDirection=e.MessageDirection.clientToServer,fe.type=new e.ProtocolRequestType(fe.method)})(ft||(t.ExecuteCommandRequest=ft={}));var mt;(function(fe){fe.method="workspace/applyEdit",fe.messageDirection=e.MessageDirection.serverToClient,fe.type=new e.ProtocolRequestType("workspace/applyEdit")})(mt||(t.ApplyWorkspaceEditRequest=mt={}))}}),q_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;var e=c2();function r(n,i,a,s){return e.ConnectionStrategy.is(s)&&(s={connectionStrategy:s}),(0,e.createMessageConnection)(n,i,a,s)}k(r,"createProtocolConnection"),t.createProtocolConnection=r}}),Y_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(t){var e=t&&t.__createBinding||(Object.create?(function(a,s,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(s,o);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:k(function(){return s[o]},"get")}),Object.defineProperty(a,l,u)}):(function(a,s,o,l){l===void 0&&(l=o),a[l]=s[o]})),r=t&&t.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,r(c2(),t),r((LT(),pY(q7)),t),r(Ii(),t),r(G_t(),t);var n=q_t();Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:k(function(){return n.createProtocolConnection},"get")});var i;(function(a){a.lspReservedErrorRangeStart=-32899,a.RequestFailed=-32803,a.ServerCancelled=-32802,a.ContentModified=-32801,a.RequestCancelled=-32800,a.lspReservedErrorRangeEnd=-32800})(i||(t.LSPErrorCodes=i={}))}}),H_t=Zr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(t){var e=t&&t.__createBinding||(Object.create?(function(a,s,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(s,o);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:k(function(){return s[o]},"get")}),Object.defineProperty(a,l,u)}):(function(a,s,o,l){l===void 0&&(l=o),a[l]=s[o]})),r=t&&t.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;var n=Bae();r(Bae(),t),r(Y_t(),t);function i(a,s,o,l){return(0,n.createMessageConnection)(a,s,o,l)}k(i,"createProtocolConnection"),t.createProtocolConnection=i}}),P2e={};Uh(P2e,{AbstractAstReflection:()=>vY,AbstractCstNode:()=>bV,AbstractLangiumParser:()=>SV,AbstractParserErrorMessageProvider:()=>xwe,AbstractThreadedAsyncParser:()=>gwt,AstUtils:()=>_Y,BiMap:()=>xw,Cancellation:()=>Xn,CompositeCstNodeImpl:()=>zA,ContextCache:()=>WA,CstNodeBuilder:()=>Ewe,CstUtils:()=>mY,DEFAULT_TOKENIZE_OPTIONS:()=>zV,DONE_RESULT:()=>Ns,DatatypeSymbol:()=>bw,DefaultAstNodeDescriptionProvider:()=>eke,DefaultAstNodeLocator:()=>rke,DefaultAsyncParser:()=>bke,DefaultCommentProvider:()=>_ke,DefaultConfigurationProvider:()=>nke,DefaultDocumentBuilder:()=>ike,DefaultDocumentValidator:()=>Jwe,DefaultHydrator:()=>Ske,DefaultIndexManager:()=>ake,DefaultJsonSerializer:()=>Xwe,DefaultLangiumDocumentFactory:()=>zwe,DefaultLangiumDocuments:()=>Uwe,DefaultLangiumProfiler:()=>bwt,DefaultLexer:()=>UV,DefaultLexerErrorMessageProvider:()=>oke,DefaultLinker:()=>Gwe,DefaultNameProvider:()=>qwe,DefaultReferenceDescriptionProvider:()=>tke,DefaultReferences:()=>Ywe,DefaultScopeComputation:()=>Hwe,DefaultScopeProvider:()=>Kwe,DefaultServiceRegistry:()=>jwe,DefaultTokenBuilder:()=>qA,DefaultValueConverter:()=>RV,DefaultWorkspaceLock:()=>Eke,DefaultWorkspaceManager:()=>ske,Deferred:()=>F0,Disposable:()=>pp,DisposableCache:()=>VA,DocumentCache:()=>Wwe,DocumentState:()=>sn,DocumentValidator:()=>gl,EMPTY_SCOPE:()=>dwt,EMPTY_STREAM:()=>gb,EmptyFileSystem:()=>Fl,EmptyFileSystemProvider:()=>Cke,ErrorWithLocation:()=>J7,GrammarAST:()=>$2e,GrammarUtils:()=>XY,IndentationAwareLexer:()=>ywt,IndentationAwareTokenBuilder:()=>xke,JSDocDocumentationProvider:()=>vke,LangiumCompletionParser:()=>Cwe,LangiumParser:()=>Twe,LangiumParserErrorMessageProvider:()=>TV,LeafCstNodeImpl:()=>_w,LexingMode:()=>op,MapScope:()=>uwt,Module:()=>C$,MultiMap:()=>$0,MultiMapScope:()=>Vwe,OperationCancelled:()=>Qc,ParserWorker:()=>mwt,ProfilingTask:()=>kke,Reduction:()=>b4,RefResolving:()=>Rf,RegExpUtils:()=>QY,RootCstNodeImpl:()=>EV,SimpleCache:()=>MV,StreamImpl:()=>jc,StreamScope:()=>E$,TextDocument:()=>Sw,TreeStreamImpl:()=>mb,URI:()=>Lo,UriTrie:()=>DV,UriUtils:()=>Fs,VALIDATE_EACH_NODE:()=>Zwe,ValidationCategory:()=>Cw,ValidationRegistry:()=>Qwe,ValueConverter:()=>Mc,WorkspaceCache:()=>PV,assertCondition:()=>jY,assertUnreachable:()=>Gh,createCompletionParser:()=>wV,createDefaultCoreModule:()=>Zo,createDefaultSharedCoreModule:()=>Jo,createGrammarConfig:()=>gH,createLangiumParser:()=>kV,createParser:()=>UA,delayNextTick:()=>YA,diagnosticData:()=>sp,eagerLoad:()=>KV,getDiagnosticRange:()=>FV,indentationBuilderDefaultOptions:()=>k$,inject:()=>gi,interruptAndCheck:()=>Ma,isAstNode:()=>ea,isAstNodeDescription:()=>yY,isAstNodeWithComment:()=>BV,isCompositeCstNode:()=>N0,isIMultiModeLexerDefinition:()=>jA,isJSDoc:()=>qV,isLeafCstNode:()=>lg,isLinkingError:()=>Bf,isMultiReference:()=>tu,isNamed:()=>LV,isOperationCancelled:()=>kg,isReference:()=>Bs,isRootCstNode:()=>H7,isTokenTypeArray:()=>XA,isTokenTypeDictionary:()=>ww,loadGrammarFromJson:()=>el,parseJSDoc:()=>GV,prepareLangiumParser:()=>AV,setInterruptionPeriod:()=>NV,startCancelableOperation:()=>HA,stream:()=>Mn,toDiagnosticData:()=>$V,toDiagnosticSeverity:()=>bS});var mY={};Uh(mY,{DefaultNameRegexp:()=>YY,RangeComparison:()=>zc,compareRange:()=>GY,findCommentNode:()=>HY,findDeclarationNodeAtOffset:()=>iEe,findLeafNodeAtOffset:()=>Z7,findLeafNodeBeforeOffset:()=>VY,flattenCst:()=>nEe,getDatatypeNode:()=>rEe,getInteriorNodes:()=>oEe,getNextNode:()=>aEe,getPreviousNode:()=>KY,getStartlineNode:()=>sEe,inRange:()=>qY,isChildNode:()=>UY,isCommentNode:()=>nw,streamCst:()=>bb,toDocumentSegment:()=>Eb,tokenToRange:()=>E4});function ea(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}k(ea,"isAstNode");function Bs(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"ref"in t}k(Bs,"isReference");function tu(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"items"in t}k(tu,"isMultiReference");function yY(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}k(yY,"isAstNodeDescription");function Bf(t){return typeof t=="object"&&t!==null&&typeof t.info=="object"&&typeof t.message=="string"}k(Bf,"isLinkingError");var R1,vY=(R1=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){const r=this.types[e.container.$type];if(!r)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);const n=r.properties[e.property]?.referenceType;if(!n)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){const r=this.types[e];return r||{name:e,properties:{},superTypes:[]}}isInstance(e,r){return ea(e)&&this.isSubtype(e.$type,r)}isSubtype(e,r){if(e===r)return!0;let n=this.subtypes[e];n||(n=this.subtypes[e]={});const i=n[r];if(i!==void 0)return i;{const a=this.types[e],s=a?a.superTypes.some(o=>this.isSubtype(o,r)):!1;return n[r]=s,s}}getAllSubTypes(e){const r=this.allSubtypes[e];if(r)return r;{const n=this.getAllTypes(),i=[];for(const a of n)this.isSubtype(a,e)&&i.push(a);return this.allSubtypes[e]=i,i}}},k(R1,"AbstractAstReflection"),R1);function N0(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}k(N0,"isCompositeCstNode");function lg(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}k(lg,"isLeafCstNode");function H7(t){return N0(t)&&typeof t.fullText=="string"}k(H7,"isRootCstNode");var lo,jc=(lo=class{constructor(e,r){this.startFn=e,this.nextFn=r}iterator(){const e={state:this.startFn(),next:k(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let r=0,n=e.next();for(;!n.done;)r++,n=e.next();return r}toArray(){const e=[],r=this.iterator();let n;do n=r.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,r){const n=this.map(i=>[e?e(i):i,r?r(i):i]);return new Map(n)}toString(){return this.join()}concat(e){return new lo(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),r=>{let n;if(!r.firstDone){do if(n=this.nextFn(r.first),!n.done)return n;while(!n.done);r.firstDone=!0}do if(n=r.iterator.next(),!n.done)return n;while(!n.done);return Ns})}join(e=","){const r=this.iterator();let n="",i,a=!1;do i=r.next(),i.done||(a&&(n+=e),n+=B2e(i.value)),a=!0;while(!i.done);return n}indexOf(e,r=0){const n=this.iterator();let i=0,a=n.next();for(;!a.done;){if(i>=r&&a.value===e)return i;a=n.next(),i++}return-1}every(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(!e(n.value))return!1;n=r.next()}return!0}some(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(e(n.value))return!0;n=r.next()}return!1}forEach(e){const r=this.iterator();let n=0,i=r.next();for(;!i.done;)e(i.value,n),i=r.next(),n++}map(e){return new lo(this.startFn,r=>{const{done:n,value:i}=this.nextFn(r);return n?Ns:{done:!1,value:e(i)}})}filter(e){return new lo(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&e(n.value))return n;while(!n.done);return Ns})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,r){const n=this.iterator();let i=r,a=n.next();for(;!a.done;)i===void 0?i=a.value:i=e(i,a.value),a=n.next();return i}reduceRight(e,r){return this.recursiveReduce(this.iterator(),e,r)}recursiveReduce(e,r,n){const i=e.next();if(i.done)return n;const a=this.recursiveReduce(e,r,n);return a===void 0?i.value:r(a,i.value)}find(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(e(n.value))return n.value;n=r.next()}}findIndex(e){const r=this.iterator();let n=0,i=r.next();for(;!i.done;){if(e(i.value))return n;i=r.next(),n++}return-1}includes(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(n.value===e)return!0;n=r.next()}return!1}flatMap(e){return new lo(()=>({this:this.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:n,value:i}=this.nextFn(r.this);if(!n){const a=e(i);if(_4(a))r.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}}while(r.iterator);return Ns})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const r=e>1?this.flat(e-1):this;return new lo(()=>({this:r.startFn()}),n=>{do{if(n.iterator){const s=n.iterator.next();if(s.done)n.iterator=void 0;else return s}const{done:i,value:a}=r.nextFn(n.this);if(!i)if(_4(a))n.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}while(n.iterator);return Ns})}head(){const r=this.iterator().next();if(!r.done)return r.value}tail(e=1){return new lo(()=>{const r=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),r=>(r.size++,r.size>e?Ns:this.nextFn(r.state)))}distinct(e){return new lo(()=>({set:new Set,internalState:this.startFn()}),r=>{let n;do if(n=this.nextFn(r.internalState),!n.done){const i=e?e(n.value):n.value;if(!r.set.has(i))return r.set.add(i),n}while(!n.done);return Ns})}exclude(e,r){const n=new Set;for(const i of e){const a=r?r(i):i;n.add(a)}return this.filter(i=>{const a=r?r(i):i;return!n.has(a)})}},k(lo,"StreamImpl"),lo);function B2e(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}k(B2e,"toString");function _4(t){return!!t&&typeof t[Symbol.iterator]=="function"}k(_4,"isIterable");var gb=new jc(()=>{},()=>Ns),Ns=Object.freeze({done:!0,value:void 0});function Mn(...t){if(t.length===1){const e=t[0];if(e instanceof jc)return e;if(_4(e))return new jc(()=>e[Symbol.iterator](),r=>r.next());if(typeof e.length=="number")return new jc(()=>({index:0}),r=>r.index1?new jc(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const r=e.iterator.next();if(!r.done)return r;e.iterator=void 0}if(e.array){if(e.arrIndex({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[r(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const s=i.iterators[i.iterators.length-1].next();if(s.done)i.iterators.pop();else return i.iterators.push(r(s.value)[Symbol.iterator]()),s}return Ns})}iterator(){const e={state:this.startFn(),next:k(()=>this.nextFn(e.state),"next"),prune:k(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}},k(N1,"TreeStreamImpl"),N1),b4;(function(t){function e(a){return a.reduce((s,o)=>s+o,0)}k(e,"sum"),t.sum=e;function r(a){return a.reduce((s,o)=>s*o,0)}k(r,"product"),t.product=r;function n(a){return a.reduce((s,o)=>Math.min(s,o))}k(n,"min"),t.min=n;function i(a){return a.reduce((s,o)=>Math.max(s,o))}k(i,"max"),t.max=i})(b4||(b4={}));var _Y={};Uh(_Y,{assignMandatoryProperties:()=>bY,copyAstNode:()=>q6,findRootNode:()=>r1,getContainerOfType:()=>cg,getDocument:()=>sc,getReferenceNodes:()=>U6,hasContainerOfType:()=>F2e,linkContentToContainer:()=>yb,streamAllContents:()=>rd,streamAst:()=>oc,streamContents:()=>PT,streamReferences:()=>vb});function yb(t,e={}){for(const[r,n]of Object.entries(t))r.startsWith("$")||(Array.isArray(n)?n.forEach((i,a)=>{ea(i)&&(i.$container=t,i.$containerProperty=r,i.$containerIndex=a,e.deep&&yb(i,e))}):ea(n)&&(n.$container=t,n.$containerProperty=r,e.deep&&yb(n,e)))}k(yb,"linkContentToContainer");function cg(t,e){let r=t;for(;r;){if(e(r))return r;r=r.$container}}k(cg,"getContainerOfType");function F2e(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.$container}return!1}k(F2e,"hasContainerOfType");function sc(t){const r=r1(t).$document;if(!r)throw new Error("AST node has no document.");return r}k(sc,"getDocument");function r1(t){for(;t.$container;)t=t.$container;return t}k(r1,"findRootNode");function U6(t){return Bs(t)?t.ref?[t.ref]:[]:tu(t)?t.items.map(e=>e.ref):[]}k(U6,"getReferenceNodes");function PT(t,e){if(!t)throw new Error("Node must be an AstNode.");const r=e?.range;return new jc(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),n=>{for(;n.keyIndexPT(r,e))}k(rd,"streamAllContents");function oc(t,e){if(t){if(e?.range&&!G6(t,e.range))return new mb(t,()=>[])}else throw new Error("Root node must be an AstNode.");return new mb(t,r=>PT(r,e),{includeRoot:!0})}k(oc,"streamAst");function G6(t,e){if(!e)return!0;const r=t.$cstNode?.range;return r?qY(r,e):!1}k(G6,"isAstNodeInRange");function vb(t){return new jc(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndexso,AbstractParserRule:()=>sS,AbstractRule:()=>Nm,AbstractType:()=>Ro,Action:()=>Cd,Alternatives:()=>oS,ArrayLiteral:()=>Y6,ArrayType:()=>H6,Assignment:()=>wd,BooleanLiteral:()=>V6,CharacterRange:()=>kd,Condition:()=>Ad,Conjunction:()=>lS,CrossReference:()=>Rd,Disjunction:()=>cS,EndOfFile:()=>W6,Grammar:()=>Xu,GrammarImport:()=>K6,Group:()=>Ff,InferredType:()=>X6,InfixRule:()=>Ic,InfixRuleOperatorList:()=>uS,InfixRuleOperators:()=>j6,Interface:()=>Im,Keyword:()=>Om,LangiumGrammarAstReflection:()=>zY,LangiumGrammarTerminals:()=>V_t,NamedArgument:()=>Dm,NegatedToken:()=>$f,Negation:()=>Q6,NumberLiteral:()=>Z6,Parameter:()=>Lm,ParameterReference:()=>J6,ParserRule:()=>zl,ReferenceType:()=>dS,RegexToken:()=>zf,ReturnType:()=>ew,RuleCall:()=>Uf,SimpleType:()=>Mm,StringLiteral:()=>tw,TerminalAlternatives:()=>Gf,TerminalElement:()=>oo,TerminalGroup:()=>qf,TerminalRule:()=>ju,TerminalRuleCall:()=>Yf,Type:()=>hS,TypeAttribute:()=>Hf,TypeDefinition:()=>Vf,UnionType:()=>rw,UnorderedGroup:()=>fS,UntilToken:()=>Wf,ValueLiteral:()=>Kf,Wildcard:()=>Pm,isAbstractElement:()=>V7,isAbstractParserRule:()=>ug,isAbstractRule:()=>z2e,isAbstractType:()=>U2e,isAction:()=>Th,isAlternatives:()=>W7,isArrayLiteral:()=>G2e,isArrayType:()=>SY,isAssignment:()=>I0,isBooleanLiteral:()=>TY,isCharacterRange:()=>xY,isCondition:()=>q2e,isConjunction:()=>CY,isCrossReference:()=>dg,isDisjunction:()=>wY,isEndOfFile:()=>kY,isGrammar:()=>Y2e,isGrammarImport:()=>H2e,isGroup:()=>hg,isInferredType:()=>BT,isInfixRule:()=>_b,isInfixRuleOperatorList:()=>V2e,isInfixRuleOperators:()=>W2e,isInterface:()=>AY,isKeyword:()=>O0,isNamedArgument:()=>K2e,isNegatedToken:()=>RY,isNegation:()=>NY,isNumberLiteral:()=>X2e,isParameter:()=>j2e,isParameterReference:()=>IY,isParserRule:()=>Hs,isReferenceType:()=>OY,isRegexToken:()=>DY,isReturnType:()=>LY,isRuleCall:()=>D0,isSimpleType:()=>K7,isStringLiteral:()=>Q2e,isTerminalAlternatives:()=>MY,isTerminalElement:()=>Z2e,isTerminalGroup:()=>PY,isTerminalRule:()=>Pl,isTerminalRuleCall:()=>X7,isType:()=>j7,isTypeAttribute:()=>J2e,isTypeDefinition:()=>eEe,isUnionType:()=>BY,isUnorderedGroup:()=>Q7,isUntilToken:()=>FY,isValueLiteral:()=>tEe,isWildcard:()=>$Y,reflection:()=>Dr});var V_t={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},so={$type:"AbstractElement",cardinality:"cardinality"};function V7(t){return Dr.isInstance(t,so.$type)}k(V7,"isAbstractElement");var sS={$type:"AbstractParserRule"};function ug(t){return Dr.isInstance(t,sS.$type)}k(ug,"isAbstractParserRule");var Nm={$type:"AbstractRule"};function z2e(t){return Dr.isInstance(t,Nm.$type)}k(z2e,"isAbstractRule");var Ro={$type:"AbstractType"};function U2e(t){return Dr.isInstance(t,Ro.$type)}k(U2e,"isAbstractType");var Cd={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function Th(t){return Dr.isInstance(t,Cd.$type)}k(Th,"isAction");var oS={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function W7(t){return Dr.isInstance(t,oS.$type)}k(W7,"isAlternatives");var Y6={$type:"ArrayLiteral",elements:"elements"};function G2e(t){return Dr.isInstance(t,Y6.$type)}k(G2e,"isArrayLiteral");var H6={$type:"ArrayType",elementType:"elementType"};function SY(t){return Dr.isInstance(t,H6.$type)}k(SY,"isArrayType");var wd={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function I0(t){return Dr.isInstance(t,wd.$type)}k(I0,"isAssignment");var V6={$type:"BooleanLiteral",true:"true"};function TY(t){return Dr.isInstance(t,V6.$type)}k(TY,"isBooleanLiteral");var kd={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function xY(t){return Dr.isInstance(t,kd.$type)}k(xY,"isCharacterRange");var Ad={$type:"Condition"};function q2e(t){return Dr.isInstance(t,Ad.$type)}k(q2e,"isCondition");var lS={$type:"Conjunction",left:"left",right:"right"};function CY(t){return Dr.isInstance(t,lS.$type)}k(CY,"isConjunction");var Rd={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function dg(t){return Dr.isInstance(t,Rd.$type)}k(dg,"isCrossReference");var cS={$type:"Disjunction",left:"left",right:"right"};function wY(t){return Dr.isInstance(t,cS.$type)}k(wY,"isDisjunction");var W6={$type:"EndOfFile",cardinality:"cardinality"};function kY(t){return Dr.isInstance(t,W6.$type)}k(kY,"isEndOfFile");var Xu={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function Y2e(t){return Dr.isInstance(t,Xu.$type)}k(Y2e,"isGrammar");var K6={$type:"GrammarImport",path:"path"};function H2e(t){return Dr.isInstance(t,K6.$type)}k(H2e,"isGrammarImport");var Ff={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function hg(t){return Dr.isInstance(t,Ff.$type)}k(hg,"isGroup");var X6={$type:"InferredType",name:"name"};function BT(t){return Dr.isInstance(t,X6.$type)}k(BT,"isInferredType");var Ic={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function _b(t){return Dr.isInstance(t,Ic.$type)}k(_b,"isInfixRule");var uS={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function V2e(t){return Dr.isInstance(t,uS.$type)}k(V2e,"isInfixRuleOperatorList");var j6={$type:"InfixRuleOperators",precedences:"precedences"};function W2e(t){return Dr.isInstance(t,j6.$type)}k(W2e,"isInfixRuleOperators");var Im={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function AY(t){return Dr.isInstance(t,Im.$type)}k(AY,"isInterface");var Om={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function O0(t){return Dr.isInstance(t,Om.$type)}k(O0,"isKeyword");var Dm={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function K2e(t){return Dr.isInstance(t,Dm.$type)}k(K2e,"isNamedArgument");var $f={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function RY(t){return Dr.isInstance(t,$f.$type)}k(RY,"isNegatedToken");var Q6={$type:"Negation",value:"value"};function NY(t){return Dr.isInstance(t,Q6.$type)}k(NY,"isNegation");var Z6={$type:"NumberLiteral",value:"value"};function X2e(t){return Dr.isInstance(t,Z6.$type)}k(X2e,"isNumberLiteral");var Lm={$type:"Parameter",name:"name"};function j2e(t){return Dr.isInstance(t,Lm.$type)}k(j2e,"isParameter");var J6={$type:"ParameterReference",parameter:"parameter"};function IY(t){return Dr.isInstance(t,J6.$type)}k(IY,"isParameterReference");var zl={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function Hs(t){return Dr.isInstance(t,zl.$type)}k(Hs,"isParserRule");var dS={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function OY(t){return Dr.isInstance(t,dS.$type)}k(OY,"isReferenceType");var zf={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function DY(t){return Dr.isInstance(t,zf.$type)}k(DY,"isRegexToken");var ew={$type:"ReturnType",name:"name"};function LY(t){return Dr.isInstance(t,ew.$type)}k(LY,"isReturnType");var Uf={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function D0(t){return Dr.isInstance(t,Uf.$type)}k(D0,"isRuleCall");var Mm={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function K7(t){return Dr.isInstance(t,Mm.$type)}k(K7,"isSimpleType");var tw={$type:"StringLiteral",value:"value"};function Q2e(t){return Dr.isInstance(t,tw.$type)}k(Q2e,"isStringLiteral");var Gf={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function MY(t){return Dr.isInstance(t,Gf.$type)}k(MY,"isTerminalAlternatives");var oo={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function Z2e(t){return Dr.isInstance(t,oo.$type)}k(Z2e,"isTerminalElement");var qf={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function PY(t){return Dr.isInstance(t,qf.$type)}k(PY,"isTerminalGroup");var ju={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function Pl(t){return Dr.isInstance(t,ju.$type)}k(Pl,"isTerminalRule");var Yf={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function X7(t){return Dr.isInstance(t,Yf.$type)}k(X7,"isTerminalRuleCall");var hS={$type:"Type",name:"name",type:"type"};function j7(t){return Dr.isInstance(t,hS.$type)}k(j7,"isType");var Hf={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function J2e(t){return Dr.isInstance(t,Hf.$type)}k(J2e,"isTypeAttribute");var Vf={$type:"TypeDefinition"};function eEe(t){return Dr.isInstance(t,Vf.$type)}k(eEe,"isTypeDefinition");var rw={$type:"UnionType",types:"types"};function BY(t){return Dr.isInstance(t,rw.$type)}k(BY,"isUnionType");var fS={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function Q7(t){return Dr.isInstance(t,fS.$type)}k(Q7,"isUnorderedGroup");var Wf={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function FY(t){return Dr.isInstance(t,Wf.$type)}k(FY,"isUntilToken");var Kf={$type:"ValueLiteral"};function tEe(t){return Dr.isInstance(t,Kf.$type)}k(tEe,"isValueLiteral");var Pm={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function $Y(t){return Dr.isInstance(t,Pm.$type)}k($Y,"isWildcard");var I1,zY=(I1=class extends vY{constructor(){super(...arguments),this.types={AbstractElement:{name:so.$type,properties:{cardinality:{name:so.cardinality}},superTypes:[]},AbstractParserRule:{name:sS.$type,properties:{},superTypes:[Nm.$type,Ro.$type]},AbstractRule:{name:Nm.$type,properties:{},superTypes:[]},AbstractType:{name:Ro.$type,properties:{},superTypes:[]},Action:{name:Cd.$type,properties:{cardinality:{name:Cd.cardinality},feature:{name:Cd.feature},inferredType:{name:Cd.inferredType},operator:{name:Cd.operator},type:{name:Cd.type,referenceType:Ro.$type}},superTypes:[so.$type]},Alternatives:{name:oS.$type,properties:{cardinality:{name:oS.cardinality},elements:{name:oS.elements,defaultValue:[]}},superTypes:[so.$type]},ArrayLiteral:{name:Y6.$type,properties:{elements:{name:Y6.elements,defaultValue:[]}},superTypes:[Kf.$type]},ArrayType:{name:H6.$type,properties:{elementType:{name:H6.elementType}},superTypes:[Vf.$type]},Assignment:{name:wd.$type,properties:{cardinality:{name:wd.cardinality},feature:{name:wd.feature},operator:{name:wd.operator},predicate:{name:wd.predicate},terminal:{name:wd.terminal}},superTypes:[so.$type]},BooleanLiteral:{name:V6.$type,properties:{true:{name:V6.true,defaultValue:!1}},superTypes:[Ad.$type,Kf.$type]},CharacterRange:{name:kd.$type,properties:{cardinality:{name:kd.cardinality},left:{name:kd.left},lookahead:{name:kd.lookahead},parenthesized:{name:kd.parenthesized,defaultValue:!1},right:{name:kd.right}},superTypes:[oo.$type]},Condition:{name:Ad.$type,properties:{},superTypes:[]},Conjunction:{name:lS.$type,properties:{left:{name:lS.left},right:{name:lS.right}},superTypes:[Ad.$type]},CrossReference:{name:Rd.$type,properties:{cardinality:{name:Rd.cardinality},deprecatedSyntax:{name:Rd.deprecatedSyntax,defaultValue:!1},isMulti:{name:Rd.isMulti,defaultValue:!1},terminal:{name:Rd.terminal},type:{name:Rd.type,referenceType:Ro.$type}},superTypes:[so.$type]},Disjunction:{name:cS.$type,properties:{left:{name:cS.left},right:{name:cS.right}},superTypes:[Ad.$type]},EndOfFile:{name:W6.$type,properties:{cardinality:{name:W6.cardinality}},superTypes:[so.$type]},Grammar:{name:Xu.$type,properties:{imports:{name:Xu.imports,defaultValue:[]},interfaces:{name:Xu.interfaces,defaultValue:[]},isDeclared:{name:Xu.isDeclared,defaultValue:!1},name:{name:Xu.name},rules:{name:Xu.rules,defaultValue:[]},types:{name:Xu.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:K6.$type,properties:{path:{name:K6.path}},superTypes:[]},Group:{name:Ff.$type,properties:{cardinality:{name:Ff.cardinality},elements:{name:Ff.elements,defaultValue:[]},guardCondition:{name:Ff.guardCondition},predicate:{name:Ff.predicate}},superTypes:[so.$type]},InferredType:{name:X6.$type,properties:{name:{name:X6.name}},superTypes:[Ro.$type]},InfixRule:{name:Ic.$type,properties:{call:{name:Ic.call},dataType:{name:Ic.dataType},inferredType:{name:Ic.inferredType},name:{name:Ic.name},operators:{name:Ic.operators},parameters:{name:Ic.parameters,defaultValue:[]},returnType:{name:Ic.returnType,referenceType:Ro.$type}},superTypes:[sS.$type]},InfixRuleOperatorList:{name:uS.$type,properties:{associativity:{name:uS.associativity},operators:{name:uS.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:j6.$type,properties:{precedences:{name:j6.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Im.$type,properties:{attributes:{name:Im.attributes,defaultValue:[]},name:{name:Im.name},superTypes:{name:Im.superTypes,defaultValue:[],referenceType:Ro.$type}},superTypes:[Ro.$type]},Keyword:{name:Om.$type,properties:{cardinality:{name:Om.cardinality},predicate:{name:Om.predicate},value:{name:Om.value}},superTypes:[so.$type]},NamedArgument:{name:Dm.$type,properties:{calledByName:{name:Dm.calledByName,defaultValue:!1},parameter:{name:Dm.parameter,referenceType:Lm.$type},value:{name:Dm.value}},superTypes:[]},NegatedToken:{name:$f.$type,properties:{cardinality:{name:$f.cardinality},lookahead:{name:$f.lookahead},parenthesized:{name:$f.parenthesized,defaultValue:!1},terminal:{name:$f.terminal}},superTypes:[oo.$type]},Negation:{name:Q6.$type,properties:{value:{name:Q6.value}},superTypes:[Ad.$type]},NumberLiteral:{name:Z6.$type,properties:{value:{name:Z6.value}},superTypes:[Kf.$type]},Parameter:{name:Lm.$type,properties:{name:{name:Lm.name}},superTypes:[]},ParameterReference:{name:J6.$type,properties:{parameter:{name:J6.parameter,referenceType:Lm.$type}},superTypes:[Ad.$type]},ParserRule:{name:zl.$type,properties:{dataType:{name:zl.dataType},definition:{name:zl.definition},entry:{name:zl.entry,defaultValue:!1},fragment:{name:zl.fragment,defaultValue:!1},inferredType:{name:zl.inferredType},name:{name:zl.name},parameters:{name:zl.parameters,defaultValue:[]},returnType:{name:zl.returnType,referenceType:Ro.$type}},superTypes:[sS.$type]},ReferenceType:{name:dS.$type,properties:{isMulti:{name:dS.isMulti,defaultValue:!1},referenceType:{name:dS.referenceType}},superTypes:[Vf.$type]},RegexToken:{name:zf.$type,properties:{cardinality:{name:zf.cardinality},lookahead:{name:zf.lookahead},parenthesized:{name:zf.parenthesized,defaultValue:!1},regex:{name:zf.regex}},superTypes:[oo.$type]},ReturnType:{name:ew.$type,properties:{name:{name:ew.name}},superTypes:[]},RuleCall:{name:Uf.$type,properties:{arguments:{name:Uf.arguments,defaultValue:[]},cardinality:{name:Uf.cardinality},predicate:{name:Uf.predicate},rule:{name:Uf.rule,referenceType:Nm.$type}},superTypes:[so.$type]},SimpleType:{name:Mm.$type,properties:{primitiveType:{name:Mm.primitiveType},stringType:{name:Mm.stringType},typeRef:{name:Mm.typeRef,referenceType:Ro.$type}},superTypes:[Vf.$type]},StringLiteral:{name:tw.$type,properties:{value:{name:tw.value}},superTypes:[Kf.$type]},TerminalAlternatives:{name:Gf.$type,properties:{cardinality:{name:Gf.cardinality},elements:{name:Gf.elements,defaultValue:[]},lookahead:{name:Gf.lookahead},parenthesized:{name:Gf.parenthesized,defaultValue:!1}},superTypes:[oo.$type]},TerminalElement:{name:oo.$type,properties:{cardinality:{name:oo.cardinality},lookahead:{name:oo.lookahead},parenthesized:{name:oo.parenthesized,defaultValue:!1}},superTypes:[so.$type]},TerminalGroup:{name:qf.$type,properties:{cardinality:{name:qf.cardinality},elements:{name:qf.elements,defaultValue:[]},lookahead:{name:qf.lookahead},parenthesized:{name:qf.parenthesized,defaultValue:!1}},superTypes:[oo.$type]},TerminalRule:{name:ju.$type,properties:{definition:{name:ju.definition},fragment:{name:ju.fragment,defaultValue:!1},hidden:{name:ju.hidden,defaultValue:!1},name:{name:ju.name},type:{name:ju.type}},superTypes:[Nm.$type]},TerminalRuleCall:{name:Yf.$type,properties:{cardinality:{name:Yf.cardinality},lookahead:{name:Yf.lookahead},parenthesized:{name:Yf.parenthesized,defaultValue:!1},rule:{name:Yf.rule,referenceType:ju.$type}},superTypes:[oo.$type]},Type:{name:hS.$type,properties:{name:{name:hS.name},type:{name:hS.type}},superTypes:[Ro.$type]},TypeAttribute:{name:Hf.$type,properties:{defaultValue:{name:Hf.defaultValue},isOptional:{name:Hf.isOptional,defaultValue:!1},name:{name:Hf.name},type:{name:Hf.type}},superTypes:[]},TypeDefinition:{name:Vf.$type,properties:{},superTypes:[]},UnionType:{name:rw.$type,properties:{types:{name:rw.types,defaultValue:[]}},superTypes:[Vf.$type]},UnorderedGroup:{name:fS.$type,properties:{cardinality:{name:fS.cardinality},elements:{name:fS.elements,defaultValue:[]}},superTypes:[so.$type]},UntilToken:{name:Wf.$type,properties:{cardinality:{name:Wf.cardinality},lookahead:{name:Wf.lookahead},parenthesized:{name:Wf.parenthesized,defaultValue:!1},terminal:{name:Wf.terminal}},superTypes:[oo.$type]},ValueLiteral:{name:Kf.$type,properties:{},superTypes:[]},Wildcard:{name:Pm.$type,properties:{cardinality:{name:Pm.cardinality},lookahead:{name:Pm.lookahead},parenthesized:{name:Pm.parenthesized,defaultValue:!1}},superTypes:[oo.$type]}}}},k(I1,"LangiumGrammarAstReflection"),I1),Dr=new zY;function rEe(t){let e=t,r=!1;for(;e;){const n=cg(e.grammarSource,Hs);if(n&&n.dataType)e=e.container,r=!0;else return r?e:void 0}}k(rEe,"getDatatypeNode");function bb(t){return new mb(t,e=>N0(e)?e.content:[],{includeRoot:!0})}k(bb,"streamCst");function nEe(t){return bb(t).filter(lg)}k(nEe,"flattenCst");function UY(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}k(UY,"isChildNode");function E4(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}k(E4,"tokenToRange");function Eb(t){if(!t)return;const{offset:e,end:r,range:n}=t;return{range:n,offset:e,end:r,length:r-e}}k(Eb,"toDocumentSegment");var zc;(function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.OverlapFront=2]="OverlapFront",t[t.OverlapBack=3]="OverlapBack",t[t.Inside=4]="Inside",t[t.Outside=5]="Outside"})(zc||(zc={}));function GY(t,e){if(t.end.linee.end.line||t.start.line===e.end.line&&t.start.character>=e.end.character)return zc.After;const r=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,n=t.end.linezc.After}k(qY,"inRange");var YY=/^[\w\p{L}]$/u;function iEe(t,e,r=YY){if(t){if(e>0){const n=e-t.offset,i=t.text.charAt(n);r.test(i)||e--}return Z7(t,e)}}k(iEe,"findDeclarationNodeAtOffset");function HY(t,e){if(t){const r=KY(t,!0);if(r&&nw(r,e))return r;if(H7(t)){const n=t.content.findIndex(i=>!i.hidden);for(let i=n-1;i>=0;i--){const a=t.content[i];if(nw(a,e))return a}}}}k(HY,"findCommentNode");function nw(t,e){return lg(t)&&e.includes(t.tokenType.name)}k(nw,"isCommentNode");function Z7(t,e){if(lg(t))return t;if(N0(t)){const r=WY(t,e,!1);if(r)return Z7(r,e)}}k(Z7,"findLeafNodeAtOffset");function VY(t,e){if(lg(t))return t;if(N0(t)){const r=WY(t,e,!0);if(r)return VY(r,e)}}k(VY,"findLeafNodeBeforeOffset");function WY(t,e,r){let n=0,i=t.content.length-1,a;for(;n<=i;){const s=Math.floor((n+i)/2),o=t.content[s];if(o.offset<=e&&o.end>e)return o;o.end<=e?(a=r?o:void 0,n=s+1):i=s-1}return a}k(WY,"binarySearch");function KY(t,e=!0){for(;t.container;){const r=t.container;let n=r.content.indexOf(t);for(;n>0;){n--;const i=r.content[n];if(e||!i.hidden)return i}t=r}}k(KY,"getPreviousNode");function aEe(t,e=!0){for(;t.container;){const r=t.container;let n=r.content.indexOf(t);const i=r.content.length-1;for(;nlH,findNameAssignment:()=>sA,findNodeForKeyword:()=>oH,findNodeForProperty:()=>nA,findNodesForKeyword:()=>mEe,findNodesForKeywordInternal:()=>aA,findNodesForProperty:()=>sH,getActionAtElement:()=>uH,getActionType:()=>hH,getAllReachableRules:()=>rA,getAllRulesUsedForCrossReferences:()=>gEe,getCrossReferenceTerminal:()=>iH,getEntryRule:()=>tH,getExplicitRuleType:()=>$T,getHiddenRules:()=>rH,getRuleType:()=>fH,getRuleTypeName:()=>EEe,getTypeName:()=>Bp,isArrayCardinality:()=>vEe,isArrayOperator:()=>_Ee,isCommentTerminal:()=>aH,isDataType:()=>bEe,isDataTypeRule:()=>FT,isOptionalCardinality:()=>yEe,terminalRegex:()=>zT});var O1,J7=(O1=class extends Error{constructor(e,r){super(e?`${r} at ${e.range.start.line}:${e.range.start.character}`:r)}},k(O1,"ErrorWithLocation"),O1);function Gh(t,e="Error: Got unexpected value."){throw new Error(e)}k(Gh,"assertUnreachable");function jY(t,e="Error: Condition is violated."){if(!t)throw new Error(e)}k(jY,"assertCondition");var QY={};Uh(QY,{NEWLINE_REGEXP:()=>dEe,escapeRegExp:()=>u2,getTerminalParts:()=>fEe,isMultilineComment:()=>ZY,isWhitespace:()=>tA,partialMatches:()=>JY,partialRegExp:()=>eH,whitespaceCharacters:()=>pEe});function Pr(t){return t.charCodeAt(0)}k(Pr,"cc");function O5(t,e){Array.isArray(t)?t.forEach(function(r){e.push(r)}):e.push(t)}k(O5,"insertToSet");function um(t,e){if(t[e]===!0)throw"duplicate flag "+e;t[e],t[e]=!0}k(um,"addFlag");function wf(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}k(wf,"ASSERT_EXISTS");function cEe(){throw Error("Internal Error - Should never get here!")}k(cEe,"ASSERT_NEVER_REACH_HERE");function VF(t){return t.type==="Character"}k(VF,"isCharacter");var iw=[];for(let t=Pr("0");t<=Pr("9");t++)iw.push(t);var aw=[Pr("_")].concat(iw);for(let t=Pr("a");t<=Pr("z");t++)aw.push(t);for(let t=Pr("A");t<=Pr("Z");t++)aw.push(t);var Fae=[Pr(" "),Pr("\f"),Pr(` +`),Pr("\r"),Pr(" "),Pr("\v"),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr(" "),Pr("\u2028"),Pr("\u2029"),Pr(" "),Pr(" "),Pr(" "),Pr("\uFEFF")],W_t=/[0-9a-fA-F]/,h3=/[0-9]/,K_t=/[1-9]/,D1,uEe=(D1=class{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const r=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":um(n,"global");break;case"i":um(n,"ignoreCase");break;case"m":um(n,"multiLine");break;case"u":um(n,"unicode");break;case"y":um(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:r,loc:this.loc(0)}}disjunction(){const e=[],r=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(r)}}alternative(){const e=[],r=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(r)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":r="Lookbehind";break;case"!":r="NegativeLookbehind"}break}}wf(r);const n=this.disjunction();return this.consumeChar(")"),{type:r,value:n,loc:this.loc(e)}}return cEe()}quantifier(e=!1){let r;const n=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),r={atLeast:i,atMost:a}):r={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&r===void 0)return;wf(r);break}if(!(e===!0&&r===void 0)&&wf(r))return this.peekChar(0)==="?"?(this.consumeChar("?"),r.greedy=!1):r.greedy=!0,r.type="Quantifier",r.loc=this.loc(n),r}atom(){let e;const r=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),wf(e))return e.loc=this.loc(r),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Pr(` `),Pr("\r"),Pr("\u2028"),Pr("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,r=!1;switch(this.popChar()){case"d":e=iw;break;case"D":e=iw,r=!0;break;case"s":e=Fae;break;case"S":e=Fae,r=!0;break;case"w":e=aw;break;case"W":e=aw,r=!0;break}if(wf(e))return{type:"Set",value:e,complement:r}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=Pr("\f");break;case"n":e=Pr(` `);break;case"r":e=Pr("\r");break;case"t":e=Pr(" ");break;case"v":e=Pr("\v");break}if(wf(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:Pr("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:Pr(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case` `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:const e=this.popChar();return{type:"Character",value:Pr(e)}}}characterClass(){const e=[];let r=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),r=!0);this.isClassAtom();){const n=this.classAtom();if(n.type,VF(n)&&this.isRangeDash()){this.consumeChar("-");const i=this.classAtom();if(i.type,VF(i)){if(i.value=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},k(D1,"RegExpParser"),D1),L1,eA=(L1=class{visitChildren(e){for(const r in e){const n=e[r];e.hasOwnProperty(r)&&(n.type!==void 0?this.visit(n):Array.isArray(n)&&n.forEach(i=>{this.visit(i)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},k(L1,"BaseRegExpVisitor"),L1),dEe=/\r?\n/gm,hEe=new uEe,M1,K_t=(M1=class extends eA{constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){const r=String.fromCharCode(e.value);if(!this.multiline&&r===` +`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let r="";for(let i=0;i=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},k(D1,"RegExpParser"),D1),L1,eA=(L1=class{visitChildren(e){for(const r in e){const n=e[r];e.hasOwnProperty(r)&&(n.type!==void 0?this.visit(n):Array.isArray(n)&&n.forEach(i=>{this.visit(i)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},k(L1,"BaseRegExpVisitor"),L1),dEe=/\r?\n/gm,hEe=new uEe,M1,X_t=(M1=class extends eA{constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){const r=String.fromCharCode(e.value);if(!this.multiline&&r===` `&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const n=u2(r);this.endRegexpStack.push(n),this.isStarting&&(this.startRegexp+=n)}}visitSet(e){if(!this.multiline){const r=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(r);this.multiline=!!` -`.match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const r=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}},k(M1,"TerminalRegExpVisitor"),M1),ip=new K_t;function fEe(t){try{typeof t!="string"&&(t=t.source),t=`/${t}/`;const e=hEe.pattern(t),r=[];for(const n of e.value.value)ip.reset(t),ip.visit(n),r.push({start:ip.startRegexp,end:ip.endRegex});return r}catch{return[]}}k(fEe,"getTerminalParts");function ZY(t){try{return typeof t=="string"&&(t=new RegExp(t)),t=t.toString(),ip.reset(t),ip.visit(hEe.pattern(t)),ip.multiline}catch{return!1}}k(ZY,"isMultilineComment");var pEe=`\f -\r \v              \u2028\u2029   \uFEFF`.split("");function tA(t){const e=typeof t=="string"?new RegExp(t):t;return pEe.some(r=>e.test(r))}k(tA,"isWhitespace");function u2(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}k(u2,"escapeRegExp");function JY(t,e){const r=eH(t),n=e.match(r);return!!n&&n[0].length>0}k(JY,"partialMatches");function eH(t){typeof t=="string"&&(t=new RegExp(t));const e=t,r=t.source;let n=0;function i(){let a="",s;function o(u){a+=r.substr(n,u),n+=u}k(o,"appendRaw");function l(u){a+="(?:"+r.substr(n,u)+"|$)",n+=u}for(k(l,"appendOptional");n",n)-n+1);break;default:l(2);break}break;case"[":s=/\[(?:\\.|.)*?\]/g,s.lastIndex=n,s=s.exec(r)||[],l(s[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":o(1);break;case"{":s=/\{\d+,?\d*\}/g,s.lastIndex=n,s=s.exec(r),s?o(s[0].length):l(1);break;case"(":if(r[n+1]==="?")switch(r[n+2]){case":":a+="(?:",n+=3,a+=i()+"|$)";break;case"=":a+="(?=",n+=3,a+=i()+")";break;case"!":s=n,n+=3,i(),a+=r.substr(s,n-s);break;case"<":switch(r[n+3]){case"=":case"!":s=n,n+=4,i(),a+=r.substr(s,n-s);break;default:o(r.indexOf(">",n)-n+1),a+=i()+"|$)";break}break}else o(1),a+=i()+"|$)";break;case")":return++n,a;default:l(1);break}return a}return k(i,"process"),new RegExp(i(),t.flags)}k(eH,"partialRegExp");function tH(t){return t.rules.find(e=>Hs(e)&&e.entry)}k(tH,"getEntryRule");function rH(t){return t.rules.filter(e=>Pl(e)&&e.hidden)}k(rH,"getHiddenRules");function rA(t,e){const r=new Set,n=tH(t);if(!n)return new Set(t.rules);const i=[n].concat(rH(t));for(const s of i)nH(s,r,e);const a=new Set;for(const s of t.rules)(r.has(s.name)||Pl(s)&&s.hidden)&&a.add(s);return a}k(rA,"getAllReachableRules");function nH(t,e,r){e.add(t.name),rd(t).forEach(n=>{if(D0(n)||r&&X7(n)){const i=n.rule.ref;i&&!e.has(i.name)&&nH(i,e,r)}})}k(nH,"ruleDfs");function gEe(t){const e=new Set;return rd(t).forEach(r=>{dg(r)&&(Hs(r.type.ref)&&e.add(r.type.ref),BT(r.type.ref)&&Hs(r.type.ref.$container)&&e.add(r.type.ref.$container))}),e}k(gEe,"getAllRulesUsedForCrossReferences");function iH(t){if(t.terminal)return t.terminal;if(t.type.ref)return sA(t.type.ref)?.terminal}k(iH,"getCrossReferenceTerminal");function aH(t){return t.hidden&&!tA(zT(t))}k(aH,"isCommentTerminal");function sH(t,e){return!t||!e?[]:iA(t,e,t.astNode,!0)}k(sH,"findNodesForProperty");function nA(t,e,r){if(!t||!e)return;const n=iA(t,e,t.astNode,!0);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}k(nA,"findNodeForProperty");function iA(t,e,r,n){if(!n){const i=cg(t.grammarSource,I0);if(i&&i.feature===e)return[t]}return N0(t)&&t.astNode===r?t.content.flatMap(i=>iA(i,e,r,!1)):[]}k(iA,"findNodesForPropertyInternal");function mEe(t,e){return t?aA(t,e,t?.astNode):[]}k(mEe,"findNodesForKeyword");function oH(t,e,r){if(!t)return;const n=aA(t,e,t?.astNode);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}k(oH,"findNodeForKeyword");function aA(t,e,r){if(t.astNode!==r)return[];if(O0(t.grammarSource)&&t.grammarSource.value===e)return[t];const n=bb(t).iterator();let i;const a=[];do if(i=n.next(),!i.done){const s=i.value;s.astNode===r?O0(s.grammarSource)&&s.grammarSource.value===e&&a.push(s):n.prune()}while(!i.done);return a}k(aA,"findNodesForKeywordInternal");function lH(t){const e=t.astNode;for(;e===t.container?.astNode;){const r=cg(t.grammarSource,I0);if(r)return r;t=t.container}}k(lH,"findAssignment");function sA(t){let e=t;return BT(e)&&(Th(e.$container)?e=e.$container.$container:ug(e.$container)?e=e.$container:Gh(e.$container)),cH(t,e,new Map)}k(sA,"findNameAssignment");function cH(t,e,r){function n(i,a){let s;return cg(i,I0)||(s=cH(a,a,r)),r.set(t,s),s}if(k(n,"go"),r.has(t))return r.get(t);r.set(t,void 0);for(const i of rd(e)){if(I0(i)&&i.feature.toLowerCase()==="name")return r.set(t,i),i;if(D0(i)&&Hs(i.rule.ref))return n(i,i.rule.ref);if(K7(i)&&i.typeRef?.ref)return n(i,i.typeRef.ref)}}k(cH,"findNameAssignmentInternal");function uH(t){const e=t.$container;if(hg(e)){const r=e.elements,n=r.indexOf(t);for(let i=n-1;i>=0;i--){const a=r[i];if(Th(a))return a;{const s=rd(r[i]).find(Th);if(s)return s}}}if(V7(e))return uH(e)}k(uH,"getActionAtElement");function yEe(t,e){return t==="?"||t==="*"||hg(e)&&!!e.guardCondition}k(yEe,"isOptionalCardinality");function vEe(t){return t==="*"||t==="+"}k(vEe,"isArrayCardinality");function _Ee(t){return t==="+="}k(_Ee,"isArrayOperator");function FT(t){return dH(t,new Set)}k(FT,"isDataTypeRule");function dH(t,e){if(e.has(t))return!0;e.add(t);for(const r of rd(t))if(D0(r)){if(!r.rule.ref||Hs(r.rule.ref)&&!dH(r.rule.ref,e)||_b(r.rule.ref))return!1}else{if(I0(r))return!1;if(Th(r))return!1}return!!t.definition}k(dH,"isDataTypeRuleInternal");function bEe(t){return sw(t.type,new Set)}k(bEe,"isDataType");function sw(t,e){if(e.has(t))return!0;if(e.add(t),SY(t))return!1;if(OY(t))return!1;if(BY(t))return t.types.every(r=>sw(r,e));if(K7(t)){if(t.primitiveType!==void 0)return!0;if(t.stringType!==void 0)return!0;if(t.typeRef!==void 0){const r=t.typeRef.ref;return j7(r)?sw(r.type,e):!1}else return!1}else return!1}k(sw,"isDataTypeInternal");function $T(t){if(!Pl(t)){if(t.inferredType)return t.inferredType.name;if(t.dataType)return t.dataType;if(t.returnType){const e=t.returnType.ref;if(e)return e.name}}}k($T,"getExplicitRuleType");function Bp(t){if(ug(t))return Hs(t)&&FT(t)?t.name:$T(t)??t.name;if(AY(t)||j7(t)||LY(t))return t.name;if(Th(t)){const e=hH(t);if(e)return e}else if(BT(t))return t.name;throw new Error("Cannot get name of Unknown Type")}k(Bp,"getTypeName");function hH(t){if(t.inferredType)return t.inferredType.name;if(t.type?.ref)return Bp(t.type.ref)}k(hH,"getActionType");function EEe(t){return Pl(t)?t.type?.name??"string":Hs(t)&&FT(t)?t.name:$T(t)??t.name}k(EEe,"getRuleTypeName");function fH(t){return Pl(t)?t.type?.name??"string":$T(t)??t.name}k(fH,"getRuleType");function zT(t){const e={s:!1,i:!1,u:!1},r=fg(t.definition,e),n=Object.entries(e).filter(([,i])=>i).map(([i])=>i).join("");return new RegExp(r,n)}k(zT,"terminalRegex");var pH=/[\s\S]/.source;function fg(t,e){if(MY(t))return SEe(t);if(PY(t))return TEe(t);if(xY(t))return wEe(t);if(X7(t)){const r=t.rule.ref;if(!r)throw new Error("Missing rule reference.");return ru(fg(r.definition),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}else{if(RY(t))return CEe(t);if(FY(t))return xEe(t);if(DY(t)){const r=t.regex.lastIndexOf("/"),n=t.regex.substring(1,r),i=t.regex.substring(r+1);return e&&(e.i=i.includes("i"),e.s=i.includes("s"),e.u=i.includes("u")),ru(n,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}else{if($Y(t))return ru(pH,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized});throw new Error(`Invalid terminal element: ${t?.$type}, ${t?.$cstNode?.text}`)}}}k(fg,"abstractElementToRegex");function SEe(t){return ru(t.elements.map(e=>fg(e)).join("|"),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}k(SEe,"terminalAlternativesToRegex");function TEe(t){return ru(t.elements.map(e=>fg(e)).join(""),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}k(TEe,"terminalGroupToRegex");function xEe(t){return ru(`${pH}*?${fg(t.terminal)}`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}k(xEe,"untilTokenToRegex");function CEe(t){return ru(`(?!${fg(t.terminal)})${pH}*?`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}k(CEe,"negateTokenToRegex");function wEe(t){return t.right?ru(`[${D5(t.left)}-${D5(t.right)}]`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1}):ru(D5(t.left),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}k(wEe,"characterRangeToRegex");function D5(t){return u2(t.value)}k(D5,"keywordToRegex");function ru(t,e){return(e.parenthesized||e.lookahead||e.wrap!==!1)&&(t=`(${e.lookahead??(e.parenthesized?"":"?:")}${t})`),e.cardinality?`${t}${e.cardinality}`:t}k(ru,"withCardinality");function gH(t){const e=[],r=t.Grammar;for(const n of r.rules)Pl(n)&&aH(n)&&ZY(zT(n))&&e.push(n.name);return{multilineCommentRules:e,nameRegexp:YY}}k(gH,"createGrammarConfig");var X_t=typeof global=="object"&&global&&global.Object===Object&&global,kEe=X_t,j_t=typeof self=="object"&&self&&self.Object===Object&&self,Q_t=kEe||j_t||Function("return this")(),ku=Q_t,Z_t=ku.Symbol,Dl=Z_t,AEe=Object.prototype,J_t=AEe.hasOwnProperty,ebt=AEe.toString,W2=Dl?Dl.toStringTag:void 0;function REe(t){var e=J_t.call(t,W2),r=t[W2];try{t[W2]=void 0;var n=!0}catch{}var i=ebt.call(t);return n&&(e?t[W2]=r:delete t[W2]),i}k(REe,"getRawTag");var tbt=REe,rbt=Object.prototype,nbt=rbt.toString;function NEe(t){return nbt.call(t)}k(NEe,"objectToString");var ibt=NEe,abt="[object Null]",sbt="[object Undefined]",$ae=Dl?Dl.toStringTag:void 0;function IEe(t){return t==null?t===void 0?sbt:abt:$ae&&$ae in Object(t)?tbt(t):ibt(t)}k(IEe,"baseGetTag");var qh=IEe;function OEe(t){return t!=null&&typeof t=="object"}k(OEe,"isObjectLike");var pc=OEe,obt="[object Symbol]";function DEe(t){return typeof t=="symbol"||pc(t)&&qh(t)==obt}k(DEe,"isSymbol");var oA=DEe;function LEe(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r0){if(++e>=qbt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}k(QEe,"shortOut");var Vbt=QEe;function ZEe(t){return function(){return t}}k(ZEe,"constant");var Wbt=ZEe,Kbt=(function(){try{var t=gg(Object,"defineProperty");return t({},"",{}),t}catch{}})(),ow=Kbt,Xbt=ow?function(t,e){return ow(t,"toString",{configurable:!0,enumerable:!1,value:Wbt(e),writable:!0})}:Sb,jbt=Xbt,Qbt=Vbt(jbt),Zbt=Qbt;function JEe(t,e){for(var r=-1,n=t==null?0:t.length;++r-1}k(sSe,"arrayIncludes");var oSe=sSe,t2t=9007199254740991,r2t=/^(?:0|[1-9]\d*)$/;function lSe(t,e){var r=typeof t;return e=e??t2t,!!e&&(r=="number"||r!="symbol"&&r2t.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=s2t}k(gSe,"isLength");var bH=gSe;function mSe(t){return t!=null&&bH(t.length)&&!nd(t)}k(mSe,"isArrayLike");var Au=mSe;function ySe(t,e,r){if(!Ll(r))return!1;var n=typeof e;return(n=="number"?Au(r)&&lA(e,r.length):n=="string"&&e in r)?qT(r[e],t):!1}k(ySe,"isIterateeCall");var uA=ySe;function vSe(t){return _H(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&uA(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n-1}k(KSe,"listCacheHas");var xEt=KSe;function XSe(t,e){var r=this.__data__,n=fA(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}k(XSe,"listCacheSet");var CEt=XSe;function yg(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e0&&r(o)?e>1?CH(o,e-1,r,n,i):xH(i,o):n||(i[i.length]=o)}return i}k(CH,"baseFlatten");var wH=CH;function d4e(t){var e=t==null?0:t.length;return e?wH(t,1):[]}k(d4e,"flatten");var lc=d4e,YEt=ISe(Object.getPrototypeOf,Object),h4e=YEt;function f4e(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(i);++no))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&L4t?new NH:void 0;for(a.set(t,e),a.set(e,t);++h2?e[2]:void 0;for(i&&uA(e[0],e[1],i)&&(n=1);++r=kTt&&(a=IH,s=!1,e=new NH(e));e:for(;++i-1?i[a?e[s]:s]:void 0}}k(KTe,"createFind");var DTt=KTe,LTt=Math.max;function XTe(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:GT(r);return i<0&&(i=LTt(n+i,0)),rSe(t,Ru(e),i)}k(XTe,"findIndex");var MTt=XTe,PTt=DTt(MTt),xb=PTt;function jTe(t){return t&&t.length?t[0]:void 0}k(jTe,"head");var gc=jTe;function QTe(t,e){var r=-1,n=Au(t)?Array(t.length):[];return bg(t,function(i,a,s){n[++r]=e(i,a,s)}),n}k(QTe,"baseMap");var BTt=QTe;function ZTe(t,e){var r=mn(t)?UT:BTt;return r(t,Ru(e))}k(ZTe,"map");var Sr=ZTe;function JTe(t,e){return wH(Sr(t,e),1)}k(JTe,"flatMap");var Sl=JTe,FTt=Object.prototype,$Tt=FTt.hasOwnProperty,zTt=xTt(function(t,e,r){$Tt.call(t,r)?t[r].push(e):vH(t,r,[e])}),UTt=zTt,GTt=Object.prototype,qTt=GTt.hasOwnProperty;function exe(t,e){return t!=null&&qTt.call(t,e)}k(exe,"baseHas");var YTt=exe;function txe(t,e){return t!=null&&_Te(t,e,YTt)}k(txe,"has");var Lr=txe,HTt="[object String]";function rxe(t){return typeof t=="string"||!mn(t)&&pc(t)&&qh(t)==HTt}k(rxe,"isString");var Eo=rxe;function nxe(t,e){return UT(e,function(r){return t[r]})}k(nxe,"baseValues");var VTt=nxe;function ixe(t){return t==null?[]:VTt(t,zo(t))}k(ixe,"values");var _a=ixe,WTt=Math.max;function axe(t,e,r,n){t=Au(t)?t:_a(t),r=r&&!n?GT(r):0;var i=t.length;return r<0&&(r=WTt(i+r,0)),Eo(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&yH(t,e,r)>-1}k(axe,"includes");var ro=axe,KTt=Math.max;function sxe(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:GT(r);return i<0&&(i=KTt(n+i,0)),yH(t,e,i)}k(sxe,"indexOf");var yse=sxe,XTt="[object Map]",jTt="[object Set]",QTt=Object.prototype,ZTt=QTt.hasOwnProperty;function oxe(t){if(t==null)return!0;if(Au(t)&&(mn(t)||typeof t=="string"||typeof t.splice=="function"||S4(t)||EH(t)||dA(t)))return!t.length;var e=Tb(t);if(e==XTt||e==jTt)return!t.size;if(HT(t))return!DSe(t).length;for(var r in t)if(ZTt.call(t,r))return!1;return!0}k(oxe,"isEmpty");var Qn=oxe,JTt="[object RegExp]";function lxe(t){return pc(t)&&qh(t)==JTt}k(lxe,"baseIsRegExp");var ext=lxe,vse=xh&&xh.isRegExp,txt=vse?VT(vse):ext,L0=txt;function cxe(t){return t===void 0}k(cxe,"isUndefined");var M0=cxe,rxt="Expected a function";function uxe(t){if(typeof t!="function")throw new TypeError(rxt);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}k(uxe,"negate");var nxt=uxe;function dxe(t,e,r,n){if(!Ll(t))return t;e=vA(e,t);for(var i=-1,a=e.length,s=a-1,o=t;o!=null&&++i=dxt){var u=e?null:uxt(t);if(u)return OH(u);s=!1,i=IH,l=new NH}else l=e?[]:o;e:for(;++n{r.accept(e)})}},k(P1,"AbstractProduction"),P1),B1,Vs=(B1=class extends Nu{constructor(e){super([]),this.idx=1,Uo(this,vc(e,r=>r!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}},k(B1,"NonTerminal"),B1),F1,d2=(F1=class extends Nu{constructor(e){super(e.definition),this.orgText="",Uo(this,vc(e,r=>r!==void 0))}},k(F1,"Rule"),F1),$1,So=($1=class extends Nu{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Uo(this,vc(e,r=>r!==void 0))}},k($1,"Alternative"),$1),z1,Za=(z1=class extends Nu{constructor(e){super(e.definition),this.idx=1,Uo(this,vc(e,r=>r!==void 0))}},k(z1,"Option"),z1),U1,jo=(U1=class extends Nu{constructor(e){super(e.definition),this.idx=1,Uo(this,vc(e,r=>r!==void 0))}},k(U1,"RepetitionMandatory"),U1),G1,Qo=(G1=class extends Nu{constructor(e){super(e.definition),this.idx=1,Uo(this,vc(e,r=>r!==void 0))}},k(G1,"RepetitionMandatoryWithSeparator"),G1),q1,Bi=(q1=class extends Nu{constructor(e){super(e.definition),this.idx=1,Uo(this,vc(e,r=>r!==void 0))}},k(q1,"Repetition"),q1),Y1,Co=(Y1=class extends Nu{constructor(e){super(e.definition),this.idx=1,Uo(this,vc(e,r=>r!==void 0))}},k(Y1,"RepetitionWithSeparator"),Y1),H1,wo=(H1=class extends Nu{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Uo(this,vc(e,r=>r!==void 0))}},k(H1,"Alternation"),H1),V1,ii=(V1=class{constructor(e){this.idx=1,Uo(this,vc(e,r=>r!==void 0))}accept(e){e.visit(this)}},k(V1,"Terminal"),V1);function xxe(t){return Sr(t,yS)}k(xxe,"serializeGrammar");function yS(t){function e(r){return Sr(r,yS)}if(k(e,"convertDefinition"),t instanceof Vs){const r={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return Eo(t.label)&&(r.label=t.label),r}else{if(t instanceof So)return{type:"Alternative",definition:e(t.definition)};if(t instanceof Za)return{type:"Option",idx:t.idx,definition:e(t.definition)};if(t instanceof jo)return{type:"RepetitionMandatory",idx:t.idx,definition:e(t.definition)};if(t instanceof Qo)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:yS(new ii({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof Co)return{type:"RepetitionWithSeparator",idx:t.idx,separator:yS(new ii({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof Bi)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof wo)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof ii){const r={type:"Terminal",name:t.terminalType.name,label:Sxe(t.terminalType),idx:t.idx};Eo(t.label)&&(r.terminalLabel=t.label);const n=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(r.pattern=L0(n)?n.source:n),r}else{if(t instanceof d2)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}}}k(yS,"serializeProduction");var W1,h2=(W1=class{visit(e){const r=e;switch(r.constructor){case Vs:return this.visitNonTerminal(r);case So:return this.visitAlternative(r);case Za:return this.visitOption(r);case jo:return this.visitRepetitionMandatory(r);case Qo:return this.visitRepetitionMandatoryWithSeparator(r);case Co:return this.visitRepetitionWithSeparator(r);case Bi:return this.visitRepetition(r);case wo:return this.visitAlternation(r);case ii:return this.visitTerminal(r);case d2:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}},k(W1,"GAstVisitor"),W1);function Cxe(t){return t instanceof So||t instanceof Za||t instanceof Bi||t instanceof jo||t instanceof Qo||t instanceof Co||t instanceof ii||t instanceof d2}k(Cxe,"isSequenceProd");function k4(t,e=[]){return t instanceof Za||t instanceof Bi||t instanceof Co?!0:t instanceof wo?_xe(t.definition,n=>k4(n,e)):t instanceof Vs&&ro(e,t)?!1:t instanceof Nu?(t instanceof Vs&&e.push(t),cc(t.definition,n=>k4(n,e))):!1}k(k4,"isOptionalProd");function wxe(t){return t instanceof wo}k(wxe,"isBranchingProd");function Wl(t){if(t instanceof Vs)return"SUBRULE";if(t instanceof Za)return"OPTION";if(t instanceof wo)return"OR";if(t instanceof jo)return"AT_LEAST_ONE";if(t instanceof Qo)return"AT_LEAST_ONE_SEP";if(t instanceof Co)return"MANY_SEP";if(t instanceof Bi)return"MANY";if(t instanceof ii)return"CONSUME";throw Error("non exhaustive match")}k(Wl,"getProductionDslName");var K1,EA=(K1=class{walk(e,r=[]){Fr(e.definition,(n,i)=>{const a=Wa(e.definition,i+1);if(n instanceof Vs)this.walkProdRef(n,a,r);else if(n instanceof ii)this.walkTerminal(n,a,r);else if(n instanceof So)this.walkFlat(n,a,r);else if(n instanceof Za)this.walkOption(n,a,r);else if(n instanceof jo)this.walkAtLeastOne(n,a,r);else if(n instanceof Qo)this.walkAtLeastOneSep(n,a,r);else if(n instanceof Co)this.walkManySep(n,a,r);else if(n instanceof Bi)this.walkMany(n,a,r);else if(n instanceof wo)this.walkOr(n,a,r);else throw Error("non exhaustive match")})}walkTerminal(e,r,n){}walkProdRef(e,r,n){}walkFlat(e,r,n){const i=r.concat(n);this.walk(e,i)}walkOption(e,r,n){const i=r.concat(n);this.walk(e,i)}walkAtLeastOne(e,r,n){const i=[new Za({definition:e.definition})].concat(r,n);this.walk(e,i)}walkAtLeastOneSep(e,r,n){const i=QF(e,r,n);this.walk(e,i)}walkMany(e,r,n){const i=[new Za({definition:e.definition})].concat(r,n);this.walk(e,i)}walkManySep(e,r,n){const i=QF(e,r,n);this.walk(e,i)}walkOr(e,r,n){const i=r.concat(n);Fr(e.definition,a=>{const s=new So({definition:[a]});this.walk(s,i)})}},k(K1,"RestWalker"),K1);function QF(t,e,r){return[new Za({definition:[new ii({terminalType:t.separator})].concat(t.definition)})].concat(e,r)}k(QF,"restForRepetitionWithSeparator");function f2(t){if(t instanceof Vs)return f2(t.referencedRule);if(t instanceof ii)return Rxe(t);if(Cxe(t))return kxe(t);if(wxe(t))return Axe(t);throw Error("non exhaustive match")}k(f2,"first");function kxe(t){let e=[];const r=t.definition;let n=0,i=r.length>n,a,s=!0;for(;i&&s;)a=r[n],s=k4(a),e=e.concat(f2(a)),n=n+1,i=r.length>n;return MH(e)}k(kxe,"firstForSequence");function Axe(t){const e=Sr(t.definition,r=>f2(r));return MH(lc(e))}k(Axe,"firstForBranching");function Rxe(t){return[t.terminalType]}k(Rxe,"firstForTerminal");var Nxe="_~IN~_",X1,fxt=(X1=class extends EA{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,r,n){}walkProdRef(e,r,n){const i=Oxe(e.referencedRule,e.idx)+this.topProd.name,a=r.concat(n),s=new So({definition:a}),o=f2(s);this.follows[i]=o}},k(X1,"ResyncFollowsWalker"),X1);function Ixe(t){const e={};return Fr(t,r=>{const n=new fxt(r).startWalking();Uo(e,n)}),e}k(Ixe,"computeAllProdsFollows");function Oxe(t,e){return t.name+e+Nxe}k(Oxe,"buildBetweenProdsFollowPrefix");var L5={},pxt=new uEe;function XT(t){const e=t.toString();if(L5.hasOwnProperty(e))return L5[e];{const r=pxt.pattern(e);return L5[e]=r,r}}k(XT,"getRegExpAst");function Dxe(){L5={}}k(Dxe,"clearRegExpParserCache");var Lxe="Complement Sets are not supported for first char optimization",uw=`Unable to use "first char" lexer optimizations: +`.match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const r=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}},k(M1,"TerminalRegExpVisitor"),M1),ip=new X_t;function fEe(t){try{typeof t!="string"&&(t=t.source),t=`/${t}/`;const e=hEe.pattern(t),r=[];for(const n of e.value.value)ip.reset(t),ip.visit(n),r.push({start:ip.startRegexp,end:ip.endRegex});return r}catch{return[]}}k(fEe,"getTerminalParts");function ZY(t){try{return typeof t=="string"&&(t=new RegExp(t)),t=t.toString(),ip.reset(t),ip.visit(hEe.pattern(t)),ip.multiline}catch{return!1}}k(ZY,"isMultilineComment");var pEe=`\f +\r \v              \u2028\u2029   \uFEFF`.split("");function tA(t){const e=typeof t=="string"?new RegExp(t):t;return pEe.some(r=>e.test(r))}k(tA,"isWhitespace");function u2(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}k(u2,"escapeRegExp");function JY(t,e){const r=eH(t),n=e.match(r);return!!n&&n[0].length>0}k(JY,"partialMatches");function eH(t){typeof t=="string"&&(t=new RegExp(t));const e=t,r=t.source;let n=0;function i(){let a="",s;function o(u){a+=r.substr(n,u),n+=u}k(o,"appendRaw");function l(u){a+="(?:"+r.substr(n,u)+"|$)",n+=u}for(k(l,"appendOptional");n",n)-n+1);break;default:l(2);break}break;case"[":s=/\[(?:\\.|.)*?\]/g,s.lastIndex=n,s=s.exec(r)||[],l(s[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":o(1);break;case"{":s=/\{\d+,?\d*\}/g,s.lastIndex=n,s=s.exec(r),s?o(s[0].length):l(1);break;case"(":if(r[n+1]==="?")switch(r[n+2]){case":":a+="(?:",n+=3,a+=i()+"|$)";break;case"=":a+="(?=",n+=3,a+=i()+")";break;case"!":s=n,n+=3,i(),a+=r.substr(s,n-s);break;case"<":switch(r[n+3]){case"=":case"!":s=n,n+=4,i(),a+=r.substr(s,n-s);break;default:o(r.indexOf(">",n)-n+1),a+=i()+"|$)";break}break}else o(1),a+=i()+"|$)";break;case")":return++n,a;default:l(1);break}return a}return k(i,"process"),new RegExp(i(),t.flags)}k(eH,"partialRegExp");function tH(t){return t.rules.find(e=>Hs(e)&&e.entry)}k(tH,"getEntryRule");function rH(t){return t.rules.filter(e=>Pl(e)&&e.hidden)}k(rH,"getHiddenRules");function rA(t,e){const r=new Set,n=tH(t);if(!n)return new Set(t.rules);const i=[n].concat(rH(t));for(const s of i)nH(s,r,e);const a=new Set;for(const s of t.rules)(r.has(s.name)||Pl(s)&&s.hidden)&&a.add(s);return a}k(rA,"getAllReachableRules");function nH(t,e,r){e.add(t.name),rd(t).forEach(n=>{if(D0(n)||r&&X7(n)){const i=n.rule.ref;i&&!e.has(i.name)&&nH(i,e,r)}})}k(nH,"ruleDfs");function gEe(t){const e=new Set;return rd(t).forEach(r=>{dg(r)&&(Hs(r.type.ref)&&e.add(r.type.ref),BT(r.type.ref)&&Hs(r.type.ref.$container)&&e.add(r.type.ref.$container))}),e}k(gEe,"getAllRulesUsedForCrossReferences");function iH(t){if(t.terminal)return t.terminal;if(t.type.ref)return sA(t.type.ref)?.terminal}k(iH,"getCrossReferenceTerminal");function aH(t){return t.hidden&&!tA(zT(t))}k(aH,"isCommentTerminal");function sH(t,e){return!t||!e?[]:iA(t,e,t.astNode,!0)}k(sH,"findNodesForProperty");function nA(t,e,r){if(!t||!e)return;const n=iA(t,e,t.astNode,!0);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}k(nA,"findNodeForProperty");function iA(t,e,r,n){if(!n){const i=cg(t.grammarSource,I0);if(i&&i.feature===e)return[t]}return N0(t)&&t.astNode===r?t.content.flatMap(i=>iA(i,e,r,!1)):[]}k(iA,"findNodesForPropertyInternal");function mEe(t,e){return t?aA(t,e,t?.astNode):[]}k(mEe,"findNodesForKeyword");function oH(t,e,r){if(!t)return;const n=aA(t,e,t?.astNode);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}k(oH,"findNodeForKeyword");function aA(t,e,r){if(t.astNode!==r)return[];if(O0(t.grammarSource)&&t.grammarSource.value===e)return[t];const n=bb(t).iterator();let i;const a=[];do if(i=n.next(),!i.done){const s=i.value;s.astNode===r?O0(s.grammarSource)&&s.grammarSource.value===e&&a.push(s):n.prune()}while(!i.done);return a}k(aA,"findNodesForKeywordInternal");function lH(t){const e=t.astNode;for(;e===t.container?.astNode;){const r=cg(t.grammarSource,I0);if(r)return r;t=t.container}}k(lH,"findAssignment");function sA(t){let e=t;return BT(e)&&(Th(e.$container)?e=e.$container.$container:ug(e.$container)?e=e.$container:Gh(e.$container)),cH(t,e,new Map)}k(sA,"findNameAssignment");function cH(t,e,r){function n(i,a){let s;return cg(i,I0)||(s=cH(a,a,r)),r.set(t,s),s}if(k(n,"go"),r.has(t))return r.get(t);r.set(t,void 0);for(const i of rd(e)){if(I0(i)&&i.feature.toLowerCase()==="name")return r.set(t,i),i;if(D0(i)&&Hs(i.rule.ref))return n(i,i.rule.ref);if(K7(i)&&i.typeRef?.ref)return n(i,i.typeRef.ref)}}k(cH,"findNameAssignmentInternal");function uH(t){const e=t.$container;if(hg(e)){const r=e.elements,n=r.indexOf(t);for(let i=n-1;i>=0;i--){const a=r[i];if(Th(a))return a;{const s=rd(r[i]).find(Th);if(s)return s}}}if(V7(e))return uH(e)}k(uH,"getActionAtElement");function yEe(t,e){return t==="?"||t==="*"||hg(e)&&!!e.guardCondition}k(yEe,"isOptionalCardinality");function vEe(t){return t==="*"||t==="+"}k(vEe,"isArrayCardinality");function _Ee(t){return t==="+="}k(_Ee,"isArrayOperator");function FT(t){return dH(t,new Set)}k(FT,"isDataTypeRule");function dH(t,e){if(e.has(t))return!0;e.add(t);for(const r of rd(t))if(D0(r)){if(!r.rule.ref||Hs(r.rule.ref)&&!dH(r.rule.ref,e)||_b(r.rule.ref))return!1}else{if(I0(r))return!1;if(Th(r))return!1}return!!t.definition}k(dH,"isDataTypeRuleInternal");function bEe(t){return sw(t.type,new Set)}k(bEe,"isDataType");function sw(t,e){if(e.has(t))return!0;if(e.add(t),SY(t))return!1;if(OY(t))return!1;if(BY(t))return t.types.every(r=>sw(r,e));if(K7(t)){if(t.primitiveType!==void 0)return!0;if(t.stringType!==void 0)return!0;if(t.typeRef!==void 0){const r=t.typeRef.ref;return j7(r)?sw(r.type,e):!1}else return!1}else return!1}k(sw,"isDataTypeInternal");function $T(t){if(!Pl(t)){if(t.inferredType)return t.inferredType.name;if(t.dataType)return t.dataType;if(t.returnType){const e=t.returnType.ref;if(e)return e.name}}}k($T,"getExplicitRuleType");function Bp(t){if(ug(t))return Hs(t)&&FT(t)?t.name:$T(t)??t.name;if(AY(t)||j7(t)||LY(t))return t.name;if(Th(t)){const e=hH(t);if(e)return e}else if(BT(t))return t.name;throw new Error("Cannot get name of Unknown Type")}k(Bp,"getTypeName");function hH(t){if(t.inferredType)return t.inferredType.name;if(t.type?.ref)return Bp(t.type.ref)}k(hH,"getActionType");function EEe(t){return Pl(t)?t.type?.name??"string":Hs(t)&&FT(t)?t.name:$T(t)??t.name}k(EEe,"getRuleTypeName");function fH(t){return Pl(t)?t.type?.name??"string":$T(t)??t.name}k(fH,"getRuleType");function zT(t){const e={s:!1,i:!1,u:!1},r=fg(t.definition,e),n=Object.entries(e).filter(([,i])=>i).map(([i])=>i).join("");return new RegExp(r,n)}k(zT,"terminalRegex");var pH=/[\s\S]/.source;function fg(t,e){if(MY(t))return SEe(t);if(PY(t))return TEe(t);if(xY(t))return wEe(t);if(X7(t)){const r=t.rule.ref;if(!r)throw new Error("Missing rule reference.");return ru(fg(r.definition),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}else{if(RY(t))return CEe(t);if(FY(t))return xEe(t);if(DY(t)){const r=t.regex.lastIndexOf("/"),n=t.regex.substring(1,r),i=t.regex.substring(r+1);return e&&(e.i=i.includes("i"),e.s=i.includes("s"),e.u=i.includes("u")),ru(n,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}else{if($Y(t))return ru(pH,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized});throw new Error(`Invalid terminal element: ${t?.$type}, ${t?.$cstNode?.text}`)}}}k(fg,"abstractElementToRegex");function SEe(t){return ru(t.elements.map(e=>fg(e)).join("|"),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}k(SEe,"terminalAlternativesToRegex");function TEe(t){return ru(t.elements.map(e=>fg(e)).join(""),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}k(TEe,"terminalGroupToRegex");function xEe(t){return ru(`${pH}*?${fg(t.terminal)}`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}k(xEe,"untilTokenToRegex");function CEe(t){return ru(`(?!${fg(t.terminal)})${pH}*?`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}k(CEe,"negateTokenToRegex");function wEe(t){return t.right?ru(`[${D5(t.left)}-${D5(t.right)}]`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1}):ru(D5(t.left),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}k(wEe,"characterRangeToRegex");function D5(t){return u2(t.value)}k(D5,"keywordToRegex");function ru(t,e){return(e.parenthesized||e.lookahead||e.wrap!==!1)&&(t=`(${e.lookahead??(e.parenthesized?"":"?:")}${t})`),e.cardinality?`${t}${e.cardinality}`:t}k(ru,"withCardinality");function gH(t){const e=[],r=t.Grammar;for(const n of r.rules)Pl(n)&&aH(n)&&ZY(zT(n))&&e.push(n.name);return{multilineCommentRules:e,nameRegexp:YY}}k(gH,"createGrammarConfig");var j_t=typeof global=="object"&&global&&global.Object===Object&&global,kEe=j_t,Q_t=typeof self=="object"&&self&&self.Object===Object&&self,Z_t=kEe||Q_t||Function("return this")(),ku=Z_t,J_t=ku.Symbol,Dl=J_t,AEe=Object.prototype,ebt=AEe.hasOwnProperty,tbt=AEe.toString,W2=Dl?Dl.toStringTag:void 0;function REe(t){var e=ebt.call(t,W2),r=t[W2];try{t[W2]=void 0;var n=!0}catch{}var i=tbt.call(t);return n&&(e?t[W2]=r:delete t[W2]),i}k(REe,"getRawTag");var rbt=REe,nbt=Object.prototype,ibt=nbt.toString;function NEe(t){return ibt.call(t)}k(NEe,"objectToString");var abt=NEe,sbt="[object Null]",obt="[object Undefined]",$ae=Dl?Dl.toStringTag:void 0;function IEe(t){return t==null?t===void 0?obt:sbt:$ae&&$ae in Object(t)?rbt(t):abt(t)}k(IEe,"baseGetTag");var qh=IEe;function OEe(t){return t!=null&&typeof t=="object"}k(OEe,"isObjectLike");var pc=OEe,lbt="[object Symbol]";function DEe(t){return typeof t=="symbol"||pc(t)&&qh(t)==lbt}k(DEe,"isSymbol");var oA=DEe;function LEe(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r0){if(++e>=Ybt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}k(QEe,"shortOut");var Wbt=QEe;function ZEe(t){return function(){return t}}k(ZEe,"constant");var Kbt=ZEe,Xbt=(function(){try{var t=gg(Object,"defineProperty");return t({},"",{}),t}catch{}})(),ow=Xbt,jbt=ow?function(t,e){return ow(t,"toString",{configurable:!0,enumerable:!1,value:Kbt(e),writable:!0})}:Sb,Qbt=jbt,Zbt=Wbt(Qbt),Jbt=Zbt;function JEe(t,e){for(var r=-1,n=t==null?0:t.length;++r-1}k(sSe,"arrayIncludes");var oSe=sSe,r2t=9007199254740991,n2t=/^(?:0|[1-9]\d*)$/;function lSe(t,e){var r=typeof t;return e=e??r2t,!!e&&(r=="number"||r!="symbol"&&n2t.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=o2t}k(gSe,"isLength");var bH=gSe;function mSe(t){return t!=null&&bH(t.length)&&!nd(t)}k(mSe,"isArrayLike");var Au=mSe;function ySe(t,e,r){if(!Ll(r))return!1;var n=typeof e;return(n=="number"?Au(r)&&lA(e,r.length):n=="string"&&e in r)?qT(r[e],t):!1}k(ySe,"isIterateeCall");var uA=ySe;function vSe(t){return _H(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&uA(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n-1}k(KSe,"listCacheHas");var CEt=KSe;function XSe(t,e){var r=this.__data__,n=fA(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}k(XSe,"listCacheSet");var wEt=XSe;function yg(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e0&&r(o)?e>1?CH(o,e-1,r,n,i):xH(i,o):n||(i[i.length]=o)}return i}k(CH,"baseFlatten");var wH=CH;function d4e(t){var e=t==null?0:t.length;return e?wH(t,1):[]}k(d4e,"flatten");var lc=d4e,HEt=ISe(Object.getPrototypeOf,Object),h4e=HEt;function f4e(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(i);++no))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&M4t?new NH:void 0;for(a.set(t,e),a.set(e,t);++h2?e[2]:void 0;for(i&&uA(e[0],e[1],i)&&(n=1);++r=ATt&&(a=IH,s=!1,e=new NH(e));e:for(;++i-1?i[a?e[s]:s]:void 0}}k(KTe,"createFind");var LTt=KTe,MTt=Math.max;function XTe(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:GT(r);return i<0&&(i=MTt(n+i,0)),rSe(t,Ru(e),i)}k(XTe,"findIndex");var PTt=XTe,BTt=LTt(PTt),xb=BTt;function jTe(t){return t&&t.length?t[0]:void 0}k(jTe,"head");var gc=jTe;function QTe(t,e){var r=-1,n=Au(t)?Array(t.length):[];return bg(t,function(i,a,s){n[++r]=e(i,a,s)}),n}k(QTe,"baseMap");var FTt=QTe;function ZTe(t,e){var r=mn(t)?UT:FTt;return r(t,Ru(e))}k(ZTe,"map");var Sr=ZTe;function JTe(t,e){return wH(Sr(t,e),1)}k(JTe,"flatMap");var Sl=JTe,$Tt=Object.prototype,zTt=$Tt.hasOwnProperty,UTt=CTt(function(t,e,r){zTt.call(t,r)?t[r].push(e):vH(t,r,[e])}),GTt=UTt,qTt=Object.prototype,YTt=qTt.hasOwnProperty;function exe(t,e){return t!=null&&YTt.call(t,e)}k(exe,"baseHas");var HTt=exe;function txe(t,e){return t!=null&&_Te(t,e,HTt)}k(txe,"has");var Lr=txe,VTt="[object String]";function rxe(t){return typeof t=="string"||!mn(t)&&pc(t)&&qh(t)==VTt}k(rxe,"isString");var Eo=rxe;function nxe(t,e){return UT(e,function(r){return t[r]})}k(nxe,"baseValues");var WTt=nxe;function ixe(t){return t==null?[]:WTt(t,zo(t))}k(ixe,"values");var _a=ixe,KTt=Math.max;function axe(t,e,r,n){t=Au(t)?t:_a(t),r=r&&!n?GT(r):0;var i=t.length;return r<0&&(r=KTt(i+r,0)),Eo(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&yH(t,e,r)>-1}k(axe,"includes");var ro=axe,XTt=Math.max;function sxe(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:GT(r);return i<0&&(i=XTt(n+i,0)),yH(t,e,i)}k(sxe,"indexOf");var yse=sxe,jTt="[object Map]",QTt="[object Set]",ZTt=Object.prototype,JTt=ZTt.hasOwnProperty;function oxe(t){if(t==null)return!0;if(Au(t)&&(mn(t)||typeof t=="string"||typeof t.splice=="function"||S4(t)||EH(t)||dA(t)))return!t.length;var e=Tb(t);if(e==jTt||e==QTt)return!t.size;if(HT(t))return!DSe(t).length;for(var r in t)if(JTt.call(t,r))return!1;return!0}k(oxe,"isEmpty");var Qn=oxe,ext="[object RegExp]";function lxe(t){return pc(t)&&qh(t)==ext}k(lxe,"baseIsRegExp");var txt=lxe,vse=xh&&xh.isRegExp,rxt=vse?VT(vse):txt,L0=rxt;function cxe(t){return t===void 0}k(cxe,"isUndefined");var M0=cxe,nxt="Expected a function";function uxe(t){if(typeof t!="function")throw new TypeError(nxt);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}k(uxe,"negate");var ixt=uxe;function dxe(t,e,r,n){if(!Ll(t))return t;e=vA(e,t);for(var i=-1,a=e.length,s=a-1,o=t;o!=null&&++i=hxt){var u=e?null:dxt(t);if(u)return OH(u);s=!1,i=IH,l=new NH}else l=e?[]:o;e:for(;++n{r.accept(e)})}},k(P1,"AbstractProduction"),P1),B1,Vs=(B1=class extends Nu{constructor(e){super([]),this.idx=1,Uo(this,vc(e,r=>r!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}},k(B1,"NonTerminal"),B1),F1,d2=(F1=class extends Nu{constructor(e){super(e.definition),this.orgText="",Uo(this,vc(e,r=>r!==void 0))}},k(F1,"Rule"),F1),$1,So=($1=class extends Nu{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Uo(this,vc(e,r=>r!==void 0))}},k($1,"Alternative"),$1),z1,Za=(z1=class extends Nu{constructor(e){super(e.definition),this.idx=1,Uo(this,vc(e,r=>r!==void 0))}},k(z1,"Option"),z1),U1,jo=(U1=class extends Nu{constructor(e){super(e.definition),this.idx=1,Uo(this,vc(e,r=>r!==void 0))}},k(U1,"RepetitionMandatory"),U1),G1,Qo=(G1=class extends Nu{constructor(e){super(e.definition),this.idx=1,Uo(this,vc(e,r=>r!==void 0))}},k(G1,"RepetitionMandatoryWithSeparator"),G1),q1,Bi=(q1=class extends Nu{constructor(e){super(e.definition),this.idx=1,Uo(this,vc(e,r=>r!==void 0))}},k(q1,"Repetition"),q1),Y1,Co=(Y1=class extends Nu{constructor(e){super(e.definition),this.idx=1,Uo(this,vc(e,r=>r!==void 0))}},k(Y1,"RepetitionWithSeparator"),Y1),H1,wo=(H1=class extends Nu{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Uo(this,vc(e,r=>r!==void 0))}},k(H1,"Alternation"),H1),V1,ii=(V1=class{constructor(e){this.idx=1,Uo(this,vc(e,r=>r!==void 0))}accept(e){e.visit(this)}},k(V1,"Terminal"),V1);function xxe(t){return Sr(t,yS)}k(xxe,"serializeGrammar");function yS(t){function e(r){return Sr(r,yS)}if(k(e,"convertDefinition"),t instanceof Vs){const r={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return Eo(t.label)&&(r.label=t.label),r}else{if(t instanceof So)return{type:"Alternative",definition:e(t.definition)};if(t instanceof Za)return{type:"Option",idx:t.idx,definition:e(t.definition)};if(t instanceof jo)return{type:"RepetitionMandatory",idx:t.idx,definition:e(t.definition)};if(t instanceof Qo)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:yS(new ii({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof Co)return{type:"RepetitionWithSeparator",idx:t.idx,separator:yS(new ii({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof Bi)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof wo)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof ii){const r={type:"Terminal",name:t.terminalType.name,label:Sxe(t.terminalType),idx:t.idx};Eo(t.label)&&(r.terminalLabel=t.label);const n=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(r.pattern=L0(n)?n.source:n),r}else{if(t instanceof d2)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}}}k(yS,"serializeProduction");var W1,h2=(W1=class{visit(e){const r=e;switch(r.constructor){case Vs:return this.visitNonTerminal(r);case So:return this.visitAlternative(r);case Za:return this.visitOption(r);case jo:return this.visitRepetitionMandatory(r);case Qo:return this.visitRepetitionMandatoryWithSeparator(r);case Co:return this.visitRepetitionWithSeparator(r);case Bi:return this.visitRepetition(r);case wo:return this.visitAlternation(r);case ii:return this.visitTerminal(r);case d2:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}},k(W1,"GAstVisitor"),W1);function Cxe(t){return t instanceof So||t instanceof Za||t instanceof Bi||t instanceof jo||t instanceof Qo||t instanceof Co||t instanceof ii||t instanceof d2}k(Cxe,"isSequenceProd");function k4(t,e=[]){return t instanceof Za||t instanceof Bi||t instanceof Co?!0:t instanceof wo?_xe(t.definition,n=>k4(n,e)):t instanceof Vs&&ro(e,t)?!1:t instanceof Nu?(t instanceof Vs&&e.push(t),cc(t.definition,n=>k4(n,e))):!1}k(k4,"isOptionalProd");function wxe(t){return t instanceof wo}k(wxe,"isBranchingProd");function Wl(t){if(t instanceof Vs)return"SUBRULE";if(t instanceof Za)return"OPTION";if(t instanceof wo)return"OR";if(t instanceof jo)return"AT_LEAST_ONE";if(t instanceof Qo)return"AT_LEAST_ONE_SEP";if(t instanceof Co)return"MANY_SEP";if(t instanceof Bi)return"MANY";if(t instanceof ii)return"CONSUME";throw Error("non exhaustive match")}k(Wl,"getProductionDslName");var K1,EA=(K1=class{walk(e,r=[]){Fr(e.definition,(n,i)=>{const a=Wa(e.definition,i+1);if(n instanceof Vs)this.walkProdRef(n,a,r);else if(n instanceof ii)this.walkTerminal(n,a,r);else if(n instanceof So)this.walkFlat(n,a,r);else if(n instanceof Za)this.walkOption(n,a,r);else if(n instanceof jo)this.walkAtLeastOne(n,a,r);else if(n instanceof Qo)this.walkAtLeastOneSep(n,a,r);else if(n instanceof Co)this.walkManySep(n,a,r);else if(n instanceof Bi)this.walkMany(n,a,r);else if(n instanceof wo)this.walkOr(n,a,r);else throw Error("non exhaustive match")})}walkTerminal(e,r,n){}walkProdRef(e,r,n){}walkFlat(e,r,n){const i=r.concat(n);this.walk(e,i)}walkOption(e,r,n){const i=r.concat(n);this.walk(e,i)}walkAtLeastOne(e,r,n){const i=[new Za({definition:e.definition})].concat(r,n);this.walk(e,i)}walkAtLeastOneSep(e,r,n){const i=QF(e,r,n);this.walk(e,i)}walkMany(e,r,n){const i=[new Za({definition:e.definition})].concat(r,n);this.walk(e,i)}walkManySep(e,r,n){const i=QF(e,r,n);this.walk(e,i)}walkOr(e,r,n){const i=r.concat(n);Fr(e.definition,a=>{const s=new So({definition:[a]});this.walk(s,i)})}},k(K1,"RestWalker"),K1);function QF(t,e,r){return[new Za({definition:[new ii({terminalType:t.separator})].concat(t.definition)})].concat(e,r)}k(QF,"restForRepetitionWithSeparator");function f2(t){if(t instanceof Vs)return f2(t.referencedRule);if(t instanceof ii)return Rxe(t);if(Cxe(t))return kxe(t);if(wxe(t))return Axe(t);throw Error("non exhaustive match")}k(f2,"first");function kxe(t){let e=[];const r=t.definition;let n=0,i=r.length>n,a,s=!0;for(;i&&s;)a=r[n],s=k4(a),e=e.concat(f2(a)),n=n+1,i=r.length>n;return MH(e)}k(kxe,"firstForSequence");function Axe(t){const e=Sr(t.definition,r=>f2(r));return MH(lc(e))}k(Axe,"firstForBranching");function Rxe(t){return[t.terminalType]}k(Rxe,"firstForTerminal");var Nxe="_~IN~_",X1,pxt=(X1=class extends EA{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,r,n){}walkProdRef(e,r,n){const i=Oxe(e.referencedRule,e.idx)+this.topProd.name,a=r.concat(n),s=new So({definition:a}),o=f2(s);this.follows[i]=o}},k(X1,"ResyncFollowsWalker"),X1);function Ixe(t){const e={};return Fr(t,r=>{const n=new pxt(r).startWalking();Uo(e,n)}),e}k(Ixe,"computeAllProdsFollows");function Oxe(t,e){return t.name+e+Nxe}k(Oxe,"buildBetweenProdsFollowPrefix");var L5={},gxt=new uEe;function XT(t){const e=t.toString();if(L5.hasOwnProperty(e))return L5[e];{const r=gxt.pattern(e);return L5[e]=r,r}}k(XT,"getRegExpAst");function Dxe(){L5={}}k(Dxe,"clearRegExpParserCache");var Lxe="Complement Sets are not supported for first char optimization",uw=`Unable to use "first char" lexer optimizations: `;function Mxe(t,e=!1){try{const r=XT(t);return dw(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===Lxe)e&&PH(`${uw} Unable to optimize: < ${t.toString()} > Complement Sets cannot be automatically optimized. This will disable the lexer's first char optimizations. @@ -5293,15 +5293,15 @@ ${JSON.stringify(Pe,null,4)}`);const yt=Pe;if(r.string(yt.id)||r.number(yt.id)){ See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),cw(`${uw} Failed parsing: < ${t.toString()} > Using the @chevrotain/regexp-to-ast library - Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}k(Mxe,"getOptimizedStartCodesIndices");function dw(t,e,r){switch(t.type){case"Disjunction":for(let i=0;i{if(typeof l=="number")kE(l,e,r);else{const u=l;if(r===!0)for(let d=u.from;d<=u.to;d++)kE(d,e,r);else{for(let d=u.from;d<=u.to&&d=RE){const d=u.from>=RE?u.from:RE,h=u.to,f=P0(d),p=P0(h);for(let g=f;g<=p;g++)e[g]=g}}}});break;case"Group":dw(s.value,e,r);break;default:throw Error("Non Exhaustive Match")}const o=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&hw(s)===!1||s.type!=="Group"&&o===!1)break}break;default:throw Error("non exhaustive match!")}return _a(e)}k(dw,"firstCharOptimizedIndices");function kE(t,e,r){const n=P0(t);e[n]=n,r===!0&&Pxe(t,e)}k(kE,"addOptimizedIdxToResult");function Pxe(t,e){const r=String.fromCharCode(t),n=r.toUpperCase();if(n!==r){const i=P0(n.charCodeAt(0));e[i]=i}else{const i=r.toLowerCase();if(i!==r){const a=P0(i.charCodeAt(0));e[a]=a}}}k(Pxe,"handleIgnoreCase");function ZF(t,e){return xb(t.value,r=>{if(typeof r=="number")return ro(e,r);{const n=r;return xb(e,i=>n.from<=i&&i<=n.to)!==void 0}})}k(ZF,"findCode");function hw(t){const e=t.quantifier;return e&&e.atLeast===0?!0:t.value?mn(t.value)?cc(t.value,hw):hw(t.value):!1}k(hw,"isWholeOptional");var j1,gxt=(j1=class extends eA{constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){ro(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?ZF(e,this.targetCharCodes)===void 0&&(this.found=!0):ZF(e,this.targetCharCodes)!==void 0&&(this.found=!0)}},k(j1,"CharCodeFinder"),j1);function SA(t,e){if(e instanceof RegExp){const r=XT(e),n=new gxt(t);return n.visit(r),n.found}else return xb(e,r=>ro(t,r.charCodeAt(0)))!==void 0}k(SA,"canMatchCharCode");var $p="PATTERN",AE="defaultMode",p3="modes",Bxe=typeof new RegExp("(?:)").sticky=="boolean";function Fxe(t,e){e=LH(e,{useSticky:Bxe,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` + Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}k(Mxe,"getOptimizedStartCodesIndices");function dw(t,e,r){switch(t.type){case"Disjunction":for(let i=0;i{if(typeof l=="number")kE(l,e,r);else{const u=l;if(r===!0)for(let d=u.from;d<=u.to;d++)kE(d,e,r);else{for(let d=u.from;d<=u.to&&d=RE){const d=u.from>=RE?u.from:RE,h=u.to,f=P0(d),p=P0(h);for(let g=f;g<=p;g++)e[g]=g}}}});break;case"Group":dw(s.value,e,r);break;default:throw Error("Non Exhaustive Match")}const o=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&hw(s)===!1||s.type!=="Group"&&o===!1)break}break;default:throw Error("non exhaustive match!")}return _a(e)}k(dw,"firstCharOptimizedIndices");function kE(t,e,r){const n=P0(t);e[n]=n,r===!0&&Pxe(t,e)}k(kE,"addOptimizedIdxToResult");function Pxe(t,e){const r=String.fromCharCode(t),n=r.toUpperCase();if(n!==r){const i=P0(n.charCodeAt(0));e[i]=i}else{const i=r.toLowerCase();if(i!==r){const a=P0(i.charCodeAt(0));e[a]=a}}}k(Pxe,"handleIgnoreCase");function ZF(t,e){return xb(t.value,r=>{if(typeof r=="number")return ro(e,r);{const n=r;return xb(e,i=>n.from<=i&&i<=n.to)!==void 0}})}k(ZF,"findCode");function hw(t){const e=t.quantifier;return e&&e.atLeast===0?!0:t.value?mn(t.value)?cc(t.value,hw):hw(t.value):!1}k(hw,"isWholeOptional");var j1,mxt=(j1=class extends eA{constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){ro(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?ZF(e,this.targetCharCodes)===void 0&&(this.found=!0):ZF(e,this.targetCharCodes)!==void 0&&(this.found=!0)}},k(j1,"CharCodeFinder"),j1);function SA(t,e){if(e instanceof RegExp){const r=XT(e),n=new mxt(t);return n.visit(r),n.found}else return xb(e,r=>ro(t,r.charCodeAt(0)))!==void 0}k(SA,"canMatchCharCode");var $p="PATTERN",AE="defaultMode",p3="modes",Bxe=typeof new RegExp("(?:)").sticky=="boolean";function Fxe(t,e){e=LH(e,{useSticky:Bxe,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` `],tracer:k((b,_)=>_(),"tracer")});const r=e.tracer;r("initCharCodeToOptimizedIndexMap",()=>{a3e()});let n;r("Reject Lexer.NA",()=>{n=bA(t,b=>b[$p]===Us.NA)});let i=!1,a;r("Transform Patterns",()=>{i=!1,a=Sr(n,b=>{const _=b[$p];if(L0(_)){const E=_.source;return E.length===1&&E!=="^"&&E!=="$"&&E!=="."&&!_.ignoreCase?E:E.length===2&&E[0]==="\\"&&!ro(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],E[1])?E[1]:e.useSticky?e$(_):JF(_)}else{if(nd(_))return i=!0,{exec:_};if(typeof _=="object")return i=!0,_;if(typeof _=="string"){if(_.length===1)return _;{const E=_.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),x=new RegExp(E);return e.useSticky?e$(x):JF(x)}}else throw Error("non exhaustive match")}})});let s,o,l,u,d;r("misc mapping",()=>{s=Sr(n,b=>b.tokenTypeIdx),o=Sr(n,b=>{const _=b.GROUP;if(_!==Us.SKIPPED){if(Eo(_))return _;if(M0(_))return!1;throw Error("non exhaustive match")}}),l=Sr(n,b=>{const _=b.LONGER_ALT;if(_)return mn(_)?Sr(_,x=>yse(n,x)):[yse(n,_)]}),u=Sr(n,b=>b.PUSH_MODE),d=Sr(n,b=>Lr(b,"POP_MODE"))});let h;r("Line Terminator Handling",()=>{const b=UH(e.lineTerminatorCharacters);h=Sr(n,_=>!1),e.positionTracking!=="onlyOffset"&&(h=Sr(n,_=>Lr(_,"LINE_BREAKS")?!!_.LINE_BREAKS:zH(_,b)===!1&&SA(b,_.PATTERN)))});let f,p,g,m;r("Misc Mapping #2",()=>{f=Sr(n,$H),p=Sr(a,n3e),g=Go(n,(b,_)=>{const E=_.GROUP;return Eo(E)&&E!==Us.SKIPPED&&(b[E]=[]),b},{}),m=Sr(a,(b,_)=>({pattern:a[_],longerAlt:l[_],canLineTerminator:h[_],isCustom:f[_],short:p[_],group:o[_],push:u[_],pop:d[_],tokenTypeIdx:s[_],tokenType:n[_]}))});let y=!0,v=[];return e.safeMode||r("First Char Optimization",()=>{v=Go(n,(b,_,E)=>{if(typeof _.PATTERN=="string"){const x=_.PATTERN.charCodeAt(0),C=P0(x);M5(b,C,m[E])}else if(mn(_.START_CHARS_HINT)){let x;Fr(_.START_CHARS_HINT,C=>{const T=typeof C=="string"?C.charCodeAt(0):C,w=P0(T);x!==w&&(x=w,M5(b,w,m[E]))})}else if(L0(_.PATTERN))if(_.PATTERN.unicode)y=!1,e.ensureOptimizations&&cw(`${uw} Unable to analyze < ${_.PATTERN.toString()} > pattern. The regexp unicode flag is not currently supported by the regexp-to-ast library. This will disable the lexer's first char optimizations. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const x=Mxe(_.PATTERN,e.ensureOptimizations);Qn(x)&&(y=!1),Fr(x,C=>{M5(b,C,m[E])})}else e.ensureOptimizations&&cw(`${uw} TokenType: <${_.name}> is using a custom token pattern without providing parameter. This will disable the lexer's first char optimizations. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),y=!1;return b},[])}),{emptyGroups:g,patternIdxToConfig:m,charCodeToPatternIdxToConfig:v,hasCustom:i,canBeOptimized:y}}k(Fxe,"analyzeTokenTypes");function $xe(t,e){let r=[];const n=Uxe(t);r=r.concat(n.errors);const i=Gxe(n.valid),a=i.valid;return r=r.concat(i.errors),r=r.concat(zxe(a)),r=r.concat(Kxe(a)),r=r.concat(Xxe(a,e)),r=r.concat(jxe(a)),r}k($xe,"validatePatterns");function zxe(t){let e=[];const r=Bl(t,n=>L0(n[$p]));return e=e.concat(qxe(r)),e=e.concat(Hxe(r)),e=e.concat(Vxe(r)),e=e.concat(Wxe(r)),e=e.concat(Yxe(r)),e}k(zxe,"validateRegExpPattern");function Uxe(t){const e=Bl(t,i=>!Lr(i,$p)),r=Sr(e,i=>({message:"Token Type: ->"+i.name+"<- missing static 'PATTERN' property",type:Fi.MISSING_PATTERN,tokenTypes:[i]})),n=_A(t,e);return{errors:r,valid:n}}k(Uxe,"findMissingPatterns");function Gxe(t){const e=Bl(t,i=>{const a=i[$p];return!L0(a)&&!nd(a)&&!Lr(a,"exec")&&!Eo(a)}),r=Sr(e,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Fi.INVALID_PATTERN,tokenTypes:[i]})),n=_A(t,e);return{errors:r,valid:n}}k(Gxe,"findInvalidPatterns");var mxt=/[^\\][$]/;function qxe(t){const i=class i extends eA{constructor(){super(...arguments),this.found=!1}visitEndAnchor(s){this.found=!0}};k(i,"EndAnchorFinder");let e=i;const r=Bl(t,a=>{const s=a.PATTERN;try{const o=XT(s),l=new e;return l.visit(o),l.found}catch{return mxt.test(s.source)}});return Sr(r,a=>({message:`Unexpected RegExp Anchor Error: + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),y=!1;return b},[])}),{emptyGroups:g,patternIdxToConfig:m,charCodeToPatternIdxToConfig:v,hasCustom:i,canBeOptimized:y}}k(Fxe,"analyzeTokenTypes");function $xe(t,e){let r=[];const n=Uxe(t);r=r.concat(n.errors);const i=Gxe(n.valid),a=i.valid;return r=r.concat(i.errors),r=r.concat(zxe(a)),r=r.concat(Kxe(a)),r=r.concat(Xxe(a,e)),r=r.concat(jxe(a)),r}k($xe,"validatePatterns");function zxe(t){let e=[];const r=Bl(t,n=>L0(n[$p]));return e=e.concat(qxe(r)),e=e.concat(Hxe(r)),e=e.concat(Vxe(r)),e=e.concat(Wxe(r)),e=e.concat(Yxe(r)),e}k(zxe,"validateRegExpPattern");function Uxe(t){const e=Bl(t,i=>!Lr(i,$p)),r=Sr(e,i=>({message:"Token Type: ->"+i.name+"<- missing static 'PATTERN' property",type:Fi.MISSING_PATTERN,tokenTypes:[i]})),n=_A(t,e);return{errors:r,valid:n}}k(Uxe,"findMissingPatterns");function Gxe(t){const e=Bl(t,i=>{const a=i[$p];return!L0(a)&&!nd(a)&&!Lr(a,"exec")&&!Eo(a)}),r=Sr(e,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Fi.INVALID_PATTERN,tokenTypes:[i]})),n=_A(t,e);return{errors:r,valid:n}}k(Gxe,"findInvalidPatterns");var yxt=/[^\\][$]/;function qxe(t){const i=class i extends eA{constructor(){super(...arguments),this.found=!1}visitEndAnchor(s){this.found=!0}};k(i,"EndAnchorFinder");let e=i;const r=Bl(t,a=>{const s=a.PATTERN;try{const o=XT(s),l=new e;return l.visit(o),l.found}catch{return yxt.test(s.source)}});return Sr(r,a=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+a.name+`<- static 'PATTERN' cannot contain end of input anchor '$' - See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Fi.EOI_ANCHOR_FOUND,tokenTypes:[a]}))}k(qxe,"findEndOfInputAnchor");function Yxe(t){const e=Bl(t,n=>n.PATTERN.test(""));return Sr(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:Fi.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}k(Yxe,"findEmptyMatchRegExps");var yxt=/[^\\[][\^]|^\^/;function Hxe(t){const i=class i extends eA{constructor(){super(...arguments),this.found=!1}visitStartAnchor(s){this.found=!0}};k(i,"StartAnchorFinder");let e=i;const r=Bl(t,a=>{const s=a.PATTERN;try{const o=XT(s),l=new e;return l.visit(o),l.found}catch{return yxt.test(s.source)}});return Sr(r,a=>({message:`Unexpected RegExp Anchor Error: + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Fi.EOI_ANCHOR_FOUND,tokenTypes:[a]}))}k(qxe,"findEndOfInputAnchor");function Yxe(t){const e=Bl(t,n=>n.PATTERN.test(""));return Sr(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:Fi.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}k(Yxe,"findEmptyMatchRegExps");var vxt=/[^\\[][\^]|^\^/;function Hxe(t){const i=class i extends eA{constructor(){super(...arguments),this.found=!1}visitStartAnchor(s){this.found=!0}};k(i,"StartAnchorFinder");let e=i;const r=Bl(t,a=>{const s=a.PATTERN;try{const o=XT(s),l=new e;return l.visit(o),l.found}catch{return vxt.test(s.source)}});return Sr(r,a=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+a.name+`<- static 'PATTERN' cannot contain start of input anchor '^' See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Fi.SOI_ANCHOR_FOUND,tokenTypes:[a]}))}k(Hxe,"findStartOfInputAnchor");function Vxe(t){const e=Bl(t,n=>{const i=n[$p];return i instanceof RegExp&&(i.multiline||i.global)});return Sr(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Fi.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[n]}))}k(Vxe,"findUnsupportedFlags");function Wxe(t){const e=[];let r=Sr(t,a=>Go(t,(s,o)=>(a.PATTERN.source===o.PATTERN.source&&!ro(e,o)&&o.PATTERN!==Us.NA&&(e.push(o),s.push(o)),s),[]));r=KT(r);const n=Bl(r,a=>a.length>1);return Sr(n,a=>{const s=Sr(a,l=>l.name);return{message:`The same RegExp pattern ->${gc(a).PATTERN}<-has been used in all of the following Token Types: ${s.join(", ")} <-`,type:Fi.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}})}k(Wxe,"findDuplicatePatterns");function Kxe(t){const e=Bl(t,n=>{if(!Lr(n,"GROUP"))return!1;const i=n.GROUP;return i!==Us.SKIPPED&&i!==Us.NA&&!Eo(i)});return Sr(e,n=>({message:"Token Type: ->"+n.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Fi.INVALID_GROUP_TYPE_FOUND,tokenTypes:[n]}))}k(Kxe,"findInvalidGroupType");function Xxe(t,e){const r=Bl(t,i=>i.PUSH_MODE!==void 0&&!ro(e,i.PUSH_MODE));return Sr(r,i=>({message:`Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`,type:Fi.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[i]}))}k(Xxe,"findModesThatDoNotExist");function jxe(t){const e=[],r=Go(t,(n,i,a)=>{const s=i.PATTERN;return s===Us.NA||(Eo(s)?n.push({str:s,idx:a,tokenType:i}):L0(s)&&Zxe(s)&&n.push({str:s.source,idx:a,tokenType:i})),n},[]);return Fr(t,(n,i)=>{Fr(r,({str:a,idx:s,tokenType:o})=>{if(i${o.name}<- can never be matched. Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition. @@ -5314,27 +5314,27 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;e. This Lexer has been defined to track line and column information, But none of the Token Types can be identified as matching a line terminator. See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS - for details.`,type:Fi.NO_LINE_BREAKS_FLAGS}),n}k(t3e,"performWarningRuntimeChecks");function r3e(t){const e={},r=zo(t);return Fr(r,n=>{const i=t[n];if(mn(i))e[n]=[];else throw Error("non exhaustive match")}),e}k(r3e,"cloneEmptyGroups");function $H(t){const e=t.PATTERN;if(L0(e))return!1;if(nd(e))return!0;if(Lr(e,"exec"))return!0;if(Eo(e))return!1;throw Error("non exhaustive match")}k($H,"isCustomPattern");function n3e(t){return Eo(t)&&t.length===1?t.charCodeAt(0):!1}k(n3e,"isShortPattern");var vxt={test:k(function(t){const e=t.length;for(let r=this.lastIndex;r{const i=t[n];if(mn(i))e[n]=[];else throw Error("non exhaustive match")}),e}k(r3e,"cloneEmptyGroups");function $H(t){const e=t.PATTERN;if(L0(e))return!1;if(nd(e))return!0;if(Lr(e,"exec"))return!0;if(Eo(e))return!1;throw Error("non exhaustive match")}k($H,"isCustomPattern");function n3e(t){return Eo(t)&&t.length===1?t.charCodeAt(0):!1}k(n3e,"isShortPattern");var _xt={test:k(function(t){const e=t.length;for(let r=this.lastIndex;r Token Type Root cause: ${e.errMsg}. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(e.issue===Fi.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. The problem is in the <${t.name}> Token Type For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}k(i3e,"buildLineBreakIssueMessage");function UH(t){return Sr(t,r=>Eo(r)?r.charCodeAt(0):r)}k(UH,"getCharCodes");function M5(t,e,r){t[e]===void 0?t[e]=[r]:t[e].push(r)}k(M5,"addToMapOfArrays");var RE=256,P5=[];function P0(t){return t255?255+~~(t/255):t}}k(a3e,"initCharCodeToOptimizedIndexMap");function p2(t,e){const r=t.tokenTypeIdx;return r===e.tokenTypeIdx?!0:e.isParent===!0&&e.categoryMatchesMap[r]===!0}k(p2,"tokenStructuredMatcher");function A4(t,e){return t.tokenTypeIdx===e.tokenTypeIdx}k(A4,"tokenStructuredMatcherNoCategories");var _se=1,s3e={};function g2(t){const e=o3e(t);l3e(e),u3e(e),c3e(e),Fr(e,r=>{r.isParent=r.categoryMatches.length>0})}k(g2,"augmentTokenTypes");function o3e(t){let e=Ja(t),r=t,n=!0;for(;n;){r=KT(lc(Sr(r,a=>a.CATEGORIES)));const i=_A(r,e);e=e.concat(i),Qn(i)?n=!1:r=i}return e}k(o3e,"expandCategories");function l3e(t){Fr(t,e=>{qH(e)||(s3e[_se]=e,e.tokenTypeIdx=_se++),t$(e)&&!mn(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),t$(e)||(e.CATEGORIES=[]),d3e(e)||(e.categoryMatches=[]),h3e(e)||(e.categoryMatchesMap={})})}k(l3e,"assignTokenDefaultProps");function c3e(t){Fr(t,e=>{e.categoryMatches=[],Fr(e.categoryMatchesMap,(r,n)=>{e.categoryMatches.push(s3e[n].tokenTypeIdx)})})}k(c3e,"assignCategoriesTokensProp");function u3e(t){Fr(t,e=>{GH([],e)})}k(u3e,"assignCategoriesMapProp");function GH(t,e){Fr(t,r=>{e.categoryMatchesMap[r.tokenTypeIdx]=!0}),Fr(e.CATEGORIES,r=>{const n=t.concat(e);ro(n,r)||GH(n,r)})}k(GH,"singleAssignCategoriesToksMap");function qH(t){return Lr(t,"tokenTypeIdx")}k(qH,"hasShortKeyProperty");function t$(t){return Lr(t,"CATEGORIES")}k(t$,"hasCategoriesProperty");function d3e(t){return Lr(t,"categoryMatches")}k(d3e,"hasExtendingTokensTypesProperty");function h3e(t){return Lr(t,"categoryMatchesMap")}k(h3e,"hasExtendingTokensTypesMapProperty");function f3e(t){return Lr(t,"tokenTypeIdx")}k(f3e,"isTokenType");var r$={buildUnableToPopLexerModeMessage(t){return`Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(t,e,r,n,i,a){return`unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${r} characters.`}},Fi;(function(t){t[t.MISSING_PATTERN=0]="MISSING_PATTERN",t[t.INVALID_PATTERN=1]="INVALID_PATTERN",t[t.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",t[t.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",t[t.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",t[t.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",t[t.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",t[t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",t[t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",t[t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",t[t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",t[t.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",t[t.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",t[t.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",t[t.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",t[t.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",t[t.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",t[t.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(Fi||(Fi={}));var NE={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:r$,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(NE);var Q1,Us=(Q1=class{constructor(e,r=NE){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(i,a)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;const s=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${i}>`);const{time:o,value:l}=BH(a),u=o>10?console.warn:console.log;return this.traceInitIndent time: ${o}ms`),this.traceInitIndent--,l}else return a()},typeof r=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. -a boolean 2nd argument is no longer supported`);this.config=Uo({},NE,r);const n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n=="number"&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let i,a=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===NE.lineTerminatorsPattern)this.config.lineTerminatorsPattern=vxt;else if(this.config.lineTerminatorCharacters===NE.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. +a boolean 2nd argument is no longer supported`);this.config=Uo({},NE,r);const n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n=="number"&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let i,a=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===NE.lineTerminatorsPattern)this.config.lineTerminatorsPattern=_xt;else if(this.config.lineTerminatorCharacters===NE.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),mn(e)?i={modes:{defaultMode:Ja(e)},defaultMode:AE}:(a=!1,i=Ja(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(e3e(i,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(t3e(i,this.trackStartLines,this.config.lineTerminatorCharacters))})),i.modes=i.modes?i.modes:{},Fr(i.modes,(o,l)=>{i.modes[l]=bA(o,u=>M0(u))});const s=zo(i.modes);if(Fr(i.modes,(o,l)=>{this.TRACE_INIT(`Mode: <${l}> processing`,()=>{if(this.modes.push(l),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat($xe(o,s))}),Qn(this.lexerDefinitionErrors)){g2(o);let u;this.TRACE_INIT("analyzeTokenTypes",()=>{u=Fxe(o,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[l]=u.patternIdxToConfig,this.charCodeToPatternIdxToConfig[l]=u.charCodeToPatternIdxToConfig,this.emptyGroups=Uo({},this.emptyGroups,u.emptyGroups),this.hasCustom=u.hasCustom||this.hasCustom,this.canModeBeOptimized[l]=u.canBeOptimized}})}),this.defaultMode=i.defaultMode,!Qn(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const l=Sr(this.lexerDefinitionErrors,u=>u.message).join(`----------------------- `);throw new Error(`Errors detected in definition of Lexer: `+l)}Fr(this.lexerDefinitionWarning,o=>{PH(o.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(Bxe?(this.chopInput=Sb,this.match=this.matchWithTest):(this.updateLastIndex=ga,this.match=this.matchWithExec),a&&(this.handleModes=ga),this.trackStartLines===!1&&(this.computeNewColumn=Sb),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=ga),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{const o=Go(this.canModeBeOptimized,(l,u,d)=>(u===!1&&l.push(d),l),[]);if(r.ensureOptimizations&&!Qn(o))throw Error(`Lexer Modes: < ${o.join(", ")} > cannot be optimized. Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{Dxe()}),this.TRACE_INIT("toFastProperties",()=>{FH(this)})})}tokenize(e,r=this.defaultMode){if(!Qn(this.lexerDefinitionErrors)){const i=Sr(this.lexerDefinitionErrors,a=>a.message).join(`----------------------- `);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer: -`+i)}return this.tokenizeInternal(e,r)}tokenizeInternal(e,r){let n,i,a,s,o,l,u,d,h,f,p,g,m,y,v;const b=e,_=b.length;let E=0,x=0;const C=this.hasCustom?0:Math.floor(e.length/10),T=new Array(C),w=[];let N=this.trackStartLines?1:void 0,O=this.trackStartLines?1:void 0;const M=r3e(this.emptyGroups),$=this.trackStartLines,F=this.config.lineTerminatorsPattern;let A=0,I=[],D=[];const L=[],R=[];Object.freeze(R);let P;function z(){return I}k(z,"getPossiblePatternsSlow");function B(J){const Z=P0(J),pe=D[Z];return pe===void 0?R:pe}k(B,"getPossiblePatternsOptimized");const q=k(J=>{if(L.length===1&&J.tokenType.PUSH_MODE===void 0){const Z=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(J);w.push({offset:J.startOffset,line:J.startLine,column:J.startColumn,length:J.image.length,message:Z})}else{L.pop();const Z=Fp(L);I=this.patternIdxToConfig[Z],D=this.charCodeToPatternIdxToConfig[Z],A=I.length;const pe=this.canModeBeOptimized[Z]&&this.config.safeMode===!1;D&&pe?P=B:P=z}},"pop_mode");function Y(J){L.push(J),D=this.charCodeToPatternIdxToConfig[J],I=this.patternIdxToConfig[J],A=I.length,A=I.length;const Z=this.canModeBeOptimized[J]&&this.config.safeMode===!1;D&&Z?P=B:P=z}k(Y,"push_mode"),Y.call(this,r);let Q;const H=this.config.recoveryEnabled;for(;E<_;){l=null;const J=b.charCodeAt(E),Z=P(J),pe=Z.length;for(n=0;nl.length){l=s,u=d,Q=se;break}}}break}}if(l!==null){if(h=l.length,f=Q.group,f!==void 0&&(p=Q.tokenTypeIdx,g=this.createTokenInstance(l,E,p,Q.tokenType,N,O,h),this.handlePayload(g,u),f===!1?x=this.addToken(T,x,g):M[f].push(g)),e=this.chopInput(e,h),E=E+h,O=this.computeNewColumn(O,h),$===!0&&Q.canLineTerminator===!0){let re=0,ce,ae;F.lastIndex=0;do ce=F.test(l),ce===!0&&(ae=F.lastIndex-1,re++);while(ce===!0);re!==0&&(N=N+re,O=h-ae,this.updateTokenEndLineColumnLocation(g,f,ae,re,N,O,h))}this.handleModes(Q,q,Y,g)}else{const re=E,ce=N,ae=O;let se=H===!1;for(;se===!1&&E<_;)for(e=this.chopInput(e,1),E++,i=0;i{if(L.length===1&&J.tokenType.PUSH_MODE===void 0){const Z=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(J);w.push({offset:J.startOffset,line:J.startLine,column:J.startColumn,length:J.image.length,message:Z})}else{L.pop();const Z=Fp(L);I=this.patternIdxToConfig[Z],D=this.charCodeToPatternIdxToConfig[Z],A=I.length;const pe=this.canModeBeOptimized[Z]&&this.config.safeMode===!1;D&&pe?P=B:P=z}},"pop_mode");function Y(J){L.push(J),D=this.charCodeToPatternIdxToConfig[J],I=this.patternIdxToConfig[J],A=I.length,A=I.length;const Z=this.canModeBeOptimized[J]&&this.config.safeMode===!1;D&&Z?P=B:P=z}k(Y,"push_mode"),Y.call(this,r);let Q;const H=this.config.recoveryEnabled;for(;E<_;){l=null;const J=b.charCodeAt(E),Z=P(J),pe=Z.length;for(n=0;nl.length){l=s,u=d,Q=se;break}}}break}}if(l!==null){if(h=l.length,f=Q.group,f!==void 0&&(p=Q.tokenTypeIdx,g=this.createTokenInstance(l,E,p,Q.tokenType,N,O,h),this.handlePayload(g,u),f===!1?x=this.addToken(T,x,g):M[f].push(g)),e=this.chopInput(e,h),E=E+h,O=this.computeNewColumn(O,h),$===!0&&Q.canLineTerminator===!0){let re=0,ce,ae;F.lastIndex=0;do ce=F.test(l),ce===!0&&(ae=F.lastIndex-1,re++);while(ce===!0);re!==0&&(N=N+re,O=h-ae,this.updateTokenEndLineColumnLocation(g,f,ae,re,N,O,h))}this.handleModes(Q,q,Y,g)}else{const re=E,ce=N,ae=O;let se=H===!1;for(;se===!1&&E<_;)for(e=this.chopInput(e,1),E++,i=0;i ${fp(t)} <--`:`token of type --> ${t.name} <--`} but found --> '${e.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:t,ruleName:e}){return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage({expectedPathsPerAlt:t,actual:e,previous:r,customUserDescription:n,ruleName:i}){const a="Expecting: ",o=` but found: '`+gc(e).image+"'";if(n)return a+n+o;{const l=Go(t,(f,p)=>f.concat(p),[]),u=Sr(l,f=>`[${Sr(f,p=>fp(p)).join(", ")}]`),h=`one of these possible Token sequences: ${Sr(u,(f,p)=>` ${p+1}. ${f}`).join(` `)}`;return a+h+o}},buildEarlyExitMessage({expectedIterationPaths:t,actual:e,customUserDescription:r,ruleName:n}){const i="Expecting: ",s=` but found: '`+gc(e).image+"'";if(r)return i+r+s;{const l=`expecting at least one iteration which starts with one of these possible Token sequences:: - <${Sr(t,u=>`[${Sr(u,d=>fp(d)).join(",")}]`).join(" ,")}>`;return i+l+s}}};Object.freeze(Bm);var bxt={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<- + <${Sr(t,u=>`[${Sr(u,d=>fp(d)).join(",")}]`).join(" ,")}>`;return i+l+s}}};Object.freeze(Bm);var Ext={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<- inside top level rule: ->`+t.name+"<-"}},ap={buildDuplicateFoundError(t,e){function r(d){return d instanceof ii?d.terminalType.name:d instanceof Vs?d.nonTerminalName:""}k(r,"getExtraProductionArgument");const n=t.name,i=gc(e),a=i.idx,s=Wl(i),o=r(i),l=a>0;let u=`->${s}${l?a:""}<- ${o?`with argument: ->${o}<-`:""} appears more than once (${e.length} times) in the top level rule: ->${n}<-. For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES @@ -5359,35 +5359,35 @@ rule: <${e}> can be invoked from itself (directly or indirectly) without consuming any Tokens. The grammar path that causes this is: ${n} To fix this refactor your grammar to remove the left recursion. -see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(t){return"deprecated"},buildDuplicateRuleNameError(t){let e;return t.topLevelRule instanceof d2?e=t.topLevelRule.name:e=t.topLevelRule,`Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`}};function g3e(t,e){const r=new Ext(t,e);return r.resolveRefs(),r.errors}k(g3e,"resolveGrammar");var Z1,Ext=(Z1=class extends h2{constructor(e,r){super(),this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){Fr(_a(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){const r=this.nameToTopRule[e.nonTerminalName];if(r)e.referencedRule=r;else{const n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:n,type:Ws.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},k(Z1,"GastRefResolverVisitor"),Z1),J1,Sxt=(J1=class extends EA{constructor(e,r){super(),this.topProd=e,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Ja(this.path.ruleStack).reverse(),this.occurrenceStack=Ja(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,r=[]){this.found||super.walk(e,r)}walkProdRef(e,r,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){const i=r.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,i)}}updateExpectedNext(){Qn(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},k(J1,"AbstractNextPossibleTokensWalker"),J1),ey,Txt=(ey=class extends Sxt{constructor(e,r){super(e,r),this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,r,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){const i=r.concat(n),a=new So({definition:i});this.possibleTokTypes=f2(a),this.found=!0}}},k(ey,"NextAfterTokenWalker"),ey),ty,TA=(ty=class extends EA{constructor(e,r){super(),this.topRule=e,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},k(ty,"AbstractNextTerminalAfterProductionWalker"),ty),ry,xxt=(ry=class extends TA{walkMany(e,r,n){if(e.idx===this.occurrence){const i=gc(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof ii&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkMany(e,r,n)}},k(ry,"NextTerminalAfterManyWalker"),ry),ny,Ase=(ny=class extends TA{walkManySep(e,r,n){if(e.idx===this.occurrence){const i=gc(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof ii&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkManySep(e,r,n)}},k(ny,"NextTerminalAfterManySepWalker"),ny),iy,Cxt=(iy=class extends TA{walkAtLeastOne(e,r,n){if(e.idx===this.occurrence){const i=gc(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof ii&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOne(e,r,n)}},k(iy,"NextTerminalAfterAtLeastOneWalker"),iy),ay,Rse=(ay=class extends TA{walkAtLeastOneSep(e,r,n){if(e.idx===this.occurrence){const i=gc(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof ii&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOneSep(e,r,n)}},k(ay,"NextTerminalAfterAtLeastOneSepWalker"),ay);function fw(t,e,r=[]){r=Ja(r);let n=[],i=0;function a(o){return o.concat(Wa(t,i+1))}k(a,"remainingPathWith");function s(o){const l=fw(a(o),e,r);return n.concat(l)}for(k(s,"getAlternativesForProd");r.length{Qn(l.definition)===!1&&(n=s(l.definition))}),n;if(o instanceof ii)r.push(o.terminalType);else throw Error("non exhaustive match")}i++}return n.push({partialPath:r,suffixDef:Wa(t,i)}),n}k(fw,"possiblePathsFrom");function VH(t,e,r,n){const i="EXIT_NONE_TERMINAL",a=[i],s="EXIT_ALTERNATIVE";let o=!1;const l=e.length,u=l-n-1,d=[],h=[];for(h.push({idx:-1,def:t,ruleStack:[],occurrenceStack:[]});!Qn(h);){const f=h.pop();if(f===s){o&&Fp(h).idx<=u&&h.pop();continue}const p=f.def,g=f.idx,m=f.ruleStack,y=f.occurrenceStack;if(Qn(p))continue;const v=p[0];if(v===i){const b={idx:g,def:Wa(p),ruleStack:w4(m),occurrenceStack:w4(y)};h.push(b)}else if(v instanceof ii)if(g=0;b--){const _=v.definition[b],E={idx:g,def:_.definition.concat(Wa(p)),ruleStack:m,occurrenceStack:y};h.push(E),h.push(s)}else if(v instanceof So)h.push({idx:g,def:v.definition.concat(Wa(p)),ruleStack:m,occurrenceStack:y});else if(v instanceof d2)h.push(m3e(v,g,m,y));else throw Error("non exhaustive match")}return d}k(VH,"nextPossibleTokensAfter");function m3e(t,e,r,n){const i=Ja(r);i.push(t.name);const a=Ja(n);return a.push(1),{idx:e,def:t.definition,ruleStack:i,occurrenceStack:a}}k(m3e,"expandTopLevelRule");var Ri;(function(t){t[t.OPTION=0]="OPTION",t[t.REPETITION=1]="REPETITION",t[t.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",t[t.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",t[t.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",t[t.ALTERNATION=5]="ALTERNATION"})(Ri||(Ri={}));function xA(t){if(t instanceof Za||t==="Option")return Ri.OPTION;if(t instanceof Bi||t==="Repetition")return Ri.REPETITION;if(t instanceof jo||t==="RepetitionMandatory")return Ri.REPETITION_MANDATORY;if(t instanceof Qo||t==="RepetitionMandatoryWithSeparator")return Ri.REPETITION_MANDATORY_WITH_SEPARATOR;if(t instanceof Co||t==="RepetitionWithSeparator")return Ri.REPETITION_WITH_SEPARATOR;if(t instanceof wo||t==="Alternation")return Ri.ALTERNATION;throw Error("non exhaustive match")}k(xA,"getProdType");function n$(t){const{occurrence:e,rule:r,prodType:n,maxLookahead:i}=t,a=xA(n);return a===Ri.ALTERNATION?QT(e,r,i):ZT(e,r,a,i)}k(n$,"getLookaheadPaths");function y3e(t,e,r,n,i,a){const s=QT(t,e,r),o=KH(s)?A4:p2;return a(s,n,o,i)}k(y3e,"buildLookaheadFuncForOr");function v3e(t,e,r,n,i,a){const s=ZT(t,e,i,r),o=KH(s)?A4:p2;return a(s[0],o,n)}k(v3e,"buildLookaheadFuncForOptionalProd");function _3e(t,e,r,n){const i=t.length,a=cc(t,s=>cc(s,o=>o.length===1));if(e)return function(s){const o=Sr(s,l=>l.GATE);for(let l=0;llc(l)),o=Go(s,(l,u,d)=>(Fr(u,h=>{Lr(l,h.tokenTypeIdx)||(l[h.tokenTypeIdx]=d),Fr(h.categoryMatches,f=>{Lr(l,f)||(l[f]=d)})}),l),{});return function(){const l=this.LA(1);return o[l.tokenTypeIdx]}}else return function(){for(let s=0;sa.length===1),i=t.length;if(n&&!r){const a=lc(t);if(a.length===1&&Qn(a[0].categoryMatches)){const o=a[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===o}}else{const s=Go(a,(o,l,u)=>(o[l.tokenTypeIdx]=!0,Fr(l.categoryMatches,d=>{o[d]=!0}),o),[]);return function(){const o=this.LA(1);return s[o.tokenTypeIdx]===!0}}}else return function(){e:for(let a=0;afw([s],1)),n=i$(r.length),i=Sr(r,s=>{const o={};return Fr(s,l=>{const u=B5(l.partialPath);Fr(u,d=>{o[d]=!0})}),o});let a=r;for(let s=1;s<=e;s++){const o=a;a=i$(o.length);for(let l=0;l{const v=B5(y.partialPath);Fr(v,b=>{i[l][b]=!0})})}}}}return n}k(WH,"lookAheadSequenceFromAlternatives");function QT(t,e,r,n){const i=new E3e(t,Ri.ALTERNATION,n);return e.accept(i),WH(i.result,r)}k(QT,"getLookaheadPathsForOr");function ZT(t,e,r,n){const i=new E3e(t,r);e.accept(i);const a=i.result,o=new wxt(e,t,r).startWalking(),l=new So({definition:a}),u=new So({definition:o});return WH([l,u],n)}k(ZT,"getLookaheadPathsForOptionalProd");function pw(t,e){e:for(let r=0;r{const i=e[n];return r===i||i.categoryMatchesMap[r.tokenTypeIdx]})}k(T3e,"isStrictPrefixOfPath");function KH(t){return cc(t,e=>cc(e,r=>cc(r,n=>Qn(n.categoryMatches))))}k(KH,"areTokenCategoriesNotUsed");function x3e(t){const e=t.lookaheadStrategy.validate({rules:t.rules,tokenTypes:t.tokenTypes,grammarName:t.grammarName});return Sr(e,r=>Object.assign({type:Ws.CUSTOM_LOOKAHEAD_VALIDATION},r))}k(x3e,"validateLookahead");function C3e(t,e,r,n){const i=Sl(t,l=>w3e(l,r)),a=P3e(t,e,r),s=Sl(t,l=>O3e(l,r)),o=Sl(t,l=>A3e(l,t,n,r));return i.concat(a,s,o)}k(C3e,"validateGrammar");function w3e(t,e){const r=new kxt;t.accept(r);const n=r.allProductions,i=UTt(n,k3e),a=vc(i,o=>o.length>1);return Sr(_a(a),o=>{const l=gc(o),u=e.buildDuplicateFoundError(t,o),d=Wl(l),h={message:u,type:Ws.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:d,occurrence:l.idx},f=XH(l);return f&&(h.parameter=f),h})}k(w3e,"validateDuplicateProductions");function k3e(t){return`${Wl(t)}_#_${t.idx}_#_${XH(t)}`}k(k3e,"identifyProductionForDuplicates");function XH(t){return t instanceof ii?t.terminalType.name:t instanceof Vs?t.nonTerminalName:""}k(XH,"getExtraProductionArgument");var ly,kxt=(ly=class extends h2{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}},k(ly,"OccurrenceValidationCollector"),ly);function A3e(t,e,r,n){const i=[];if(Go(e,(s,o)=>o.name===t.name?s+1:s,0)>1){const s=n.buildDuplicateRuleNameError({topLevelRule:t,grammarName:r});i.push({message:s,type:Ws.DUPLICATE_RULE_NAME,ruleName:t.name})}return i}k(A3e,"validateRuleDoesNotAlreadyExist");function R3e(t,e,r){const n=[];let i;return ro(e,t)||(i=`Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,n.push({message:i,type:Ws.INVALID_RULE_OVERRIDE,ruleName:t})),n}k(R3e,"validateRuleIsOverridden");function jH(t,e,r,n=[]){const i=[],a=vS(e.definition);if(Qn(a))return[];{const s=t.name;ro(a,t)&&i.push({message:r.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:n}),type:Ws.LEFT_RECURSION,ruleName:s});const l=_A(a,n.concat([t])),u=Sl(l,d=>{const h=Ja(n);return h.push(d),jH(t,d,r,h)});return i.concat(u)}}k(jH,"validateNoLeftRecursion");function vS(t){let e=[];if(Qn(t))return e;const r=gc(t);if(r instanceof Vs)e.push(r.referencedRule);else if(r instanceof So||r instanceof Za||r instanceof jo||r instanceof Qo||r instanceof Co||r instanceof Bi)e=e.concat(vS(r.definition));else if(r instanceof wo)e=lc(Sr(r.definition,a=>vS(a.definition)));else if(!(r instanceof ii))throw Error("non exhaustive match");const n=k4(r),i=t.length>1;if(n&&i){const a=Wa(t);return e.concat(vS(a))}else return e}k(vS,"getFirstNoneTerminal");var cy,QH=(cy=class extends h2{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},k(cy,"OrCollector"),cy);function N3e(t,e){const r=new QH;t.accept(r);const n=r.alternations;return Sl(n,a=>{const s=w4(a.definition);return Sl(s,(o,l)=>{const u=VH([o],[],p2,1);return Qn(u)?[{message:e.buildEmptyAlternationError({topLevelRule:t,alternation:a,emptyChoiceIdx:l}),type:Ws.NONE_LAST_EMPTY_ALT,ruleName:t.name,occurrence:a.idx,alternative:l+1}]:[]})})}k(N3e,"validateEmptyOrAlternative");function I3e(t,e,r){const n=new QH;t.accept(n);let i=n.alternations;return i=bA(i,s=>s.ignoreAmbiguities===!0),Sl(i,s=>{const o=s.idx,l=s.maxLookahead||e,u=QT(o,t,l,s),d=L3e(u,s,t,r),h=M3e(u,s,t,r);return d.concat(h)})}k(I3e,"validateAmbiguousAlternationAlternatives");var uy,Axt=(uy=class extends h2{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}},k(uy,"RepetitionCollector"),uy);function O3e(t,e){const r=new QH;t.accept(r);const n=r.alternations;return Sl(n,a=>a.definition.length>255?[{message:e.buildTooManyAlternativesError({topLevelRule:t,alternation:a}),type:Ws.TOO_MANY_ALTS,ruleName:t.name,occurrence:a.idx}]:[])}k(O3e,"validateTooManyAlts");function D3e(t,e,r){const n=[];return Fr(t,i=>{const a=new Axt;i.accept(a);const s=a.allProductions;Fr(s,o=>{const l=xA(o),u=o.maxLookahead||e,d=o.idx,f=ZT(d,i,l,u)[0];if(Qn(lc(f))){const p=r.buildEmptyRepetitionError({topLevelRule:i,repetition:o});n.push({message:p,type:Ws.NO_NON_EMPTY_LOOKAHEAD,ruleName:i.name})}})}),n}k(D3e,"validateSomeNonEmptyLookaheadPath");function L3e(t,e,r,n){const i=[],a=Go(t,(o,l,u)=>(e.definition[u].ignoreAmbiguities===!0||Fr(l,d=>{const h=[u];Fr(t,(f,p)=>{u!==p&&pw(f,d)&&e.definition[p].ignoreAmbiguities!==!0&&h.push(p)}),h.length>1&&!pw(i,d)&&(i.push(d),o.push({alts:h,path:d}))}),o),[]);return Sr(a,o=>{const l=Sr(o.alts,d=>d+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:l,prefixPath:o.path}),type:Ws.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:e.idx,alternatives:o.alts}})}k(L3e,"checkAlternativesAmbiguities");function M3e(t,e,r,n){const i=Go(t,(s,o,l)=>{const u=Sr(o,d=>({idx:l,path:d}));return s.concat(u)},[]);return KT(Sl(i,s=>{if(e.definition[s.idx].ignoreAmbiguities===!0)return[];const l=s.idx,u=s.path,d=Bl(i,f=>e.definition[f.idx].ignoreAmbiguities!==!0&&f.idx{const p=[f.idx+1,l+1],g=e.idx===0?"":e.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:p,prefixPath:f.path}),type:Ws.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:g,alternatives:p}})}))}k(M3e,"checkPrefixAlternativesAmbiguities");function P3e(t,e,r){const n=[],i=Sr(e,a=>a.name);return Fr(t,a=>{const s=a.name;if(ro(i,s)){const o=r.buildNamespaceConflictError(a);n.push({message:o,type:Ws.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),n}k(P3e,"checkTerminalAndNoneTerminalsNameSpace");function B3e(t){const e=LH(t,{errMsgProvider:bxt}),r={};return Fr(t.rules,n=>{r[n.name]=n}),g3e(r,e.errMsgProvider)}k(B3e,"resolveGrammar");function F3e(t){return t=LH(t,{errMsgProvider:ap}),C3e(t.rules,t.tokenTypes,t.errMsgProvider,t.grammarName)}k(F3e,"validateGrammar");var $3e="MismatchedTokenException",z3e="NoViableAltException",U3e="EarlyExitException",G3e="NotAllInputParsedException",q3e=[$3e,z3e,U3e,G3e];Object.freeze(q3e);function R4(t){return ro(q3e,t.name)}k(R4,"isRecognitionException");var dy,CA=(dy=class extends Error{constructor(e,r){super(e),this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},k(dy,"RecognitionException"),dy),hy,Y3e=(hy=class extends CA{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=$3e}},k(hy,"MismatchedTokenException"),hy),fy,Rxt=(fy=class extends CA{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=z3e}},k(fy,"NoViableAltException"),fy),py,Nxt=(py=class extends CA{constructor(e,r){super(e,r),this.name=G3e}},k(py,"NotAllInputParsedException"),py),gy,Ixt=(gy=class extends CA{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=U3e}},k(gy,"EarlyExitException"),gy),wL={},H3e="InRuleRecoveryException",my,Oxt=(my=class extends Error{constructor(e){super(e),this.name=H3e}},k(my,"InRuleRecoveryException"),my),yy,Dxt=(yy=class{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Lr(e,"recoveryEnabled")?e.recoveryEnabled:B0.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=V3e)}getTokenToInsert(e){const r=jT(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,r,n,i){const a=this.findReSyncTokenType(),s=this.exportLexerState(),o=[];let l=!1;const u=this.LA(1);let d=this.LA(1);const h=k(()=>{const f=this.LA(0),p=this.errorMessageProvider.buildMismatchTokenMessage({expected:i,actual:u,previous:f,ruleName:this.getCurrRuleFullName()}),g=new Y3e(p,u,this.LA(0));g.resyncedTokens=w4(o),this.SAVE_ERROR(g)},"generateErrorMessage");for(;!l;)if(this.tokenMatcher(d,i)){h();return}else if(n.call(this)){h(),e.apply(this,r);return}else this.tokenMatcher(d,a)?l=!0:(d=this.SKIP_TOKEN(),this.addToResyncTokens(d,o));this.importLexerState(s)}shouldInRepetitionRecoveryBeTried(e,r,n){return!(n===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,r)))}getFollowsForInRuleRecovery(e,r){const n=this.getCurrentGrammarPath(e,r);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,r){if(this.canRecoverWithSingleTokenInsertion(e,r))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){const n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new Oxt("sad sad panda")}canPerformInRuleRecovery(e,r){return this.canRecoverWithSingleTokenInsertion(e,r)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,r){if(!this.canTokenTypeBeInsertedInRecovery(e)||Qn(r))return!1;const n=this.LA(1);return xb(r,a=>this.tokenMatcher(n,a))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){const r=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(r);return ro(n,e)}findReSyncTokenType(){const e=this.flattenFollowSet();let r=this.LA(1),n=2;for(;;){const i=xb(e,a=>HH(r,a));if(i!==void 0)return i;r=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return wL;const e=this.getLastExplicitRuleShortName(),r=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){const e=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK;return Sr(e,(n,i)=>i===0?wL:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:r[i],inRule:this.shortRuleNameToFullName(e[i-1])})}flattenFollowSet(){const e=Sr(this.buildFullFollowKeyStack(),r=>this.getFollowSetFromFollowKey(r));return lc(e)}getFollowSetFromFollowKey(e){if(e===wL)return[Ch];const r=e.ruleName+e.idxInCallingRule+Nxe+e.inRule;return this.resyncFollows[r]}addToResyncTokens(e,r){return this.tokenMatcher(e,Ch)||r.push(e),r}reSyncTo(e){const r=[];let n=this.LA(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,r);return w4(r)}attemptInRepetitionRecovery(e,r,n,i,a,s,o){}getCurrentGrammarPath(e,r){const n=this.getHumanReadableRuleStack(),i=Ja(this.RULE_OCCURRENCE_STACK);return{ruleStack:n,occurrenceStack:i,lastTok:e,lastTokOccurrence:r}}getHumanReadableRuleStack(){return Sr(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}},k(yy,"Recoverable"),yy);function V3e(t,e,r,n,i,a,s){const o=this.getKeyForAutomaticLookahead(n,i);let l=this.firstAfterRepMap[o];if(l===void 0){const f=this.getCurrRuleFullName(),p=this.getGAstProductions()[f];l=new a(p,i).startWalking(),this.firstAfterRepMap[o]=l}let u=l.token,d=l.occurrence;const h=l.isEndOfRule;this.RULE_STACK.length===1&&h&&u===void 0&&(u=Ch,d=1),!(u===void 0||d===void 0)&&this.shouldInRepetitionRecoveryBeTried(u,d,s)&&this.tryInRepetitionRecovery(t,e,r,u)}k(V3e,"attemptInRepetitionRecovery");var Lxt=4,Yh=8,W3e=1<jH(r,r,ap))}validateEmptyOrAlternatives(e){return Sl(e,r=>N3e(r,ap))}validateAmbiguousAlternationAlternatives(e,r){return Sl(e,n=>I3e(n,r,ap))}validateSomeNonEmptyLookaheadPath(e,r){return D3e(e,r,ap)}buildLookaheadForAlternation(e){return y3e(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,_3e)}buildLookaheadForOptional(e){return v3e(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,xA(e.prodType),b3e)}},k(vy,"LLkLookaheadStrategy"),vy),_y,Mxt=(_y=class{initLooksAhead(e){this.dynamicTokensEnabled=Lr(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:B0.dynamicTokensEnabled,this.maxLookahead=Lr(e,"maxLookahead")?e.maxLookahead:B0.maxLookahead,this.lookaheadStrategy=Lr(e,"lookaheadStrategy")?e.lookaheadStrategy:new ZH({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){Fr(e,r=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{const{alternation:n,repetition:i,option:a,repetitionMandatory:s,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:l}=X3e(r);Fr(n,u=>{const d=u.idx===0?"":u.idx;this.TRACE_INIT(`${Wl(u)}${d}`,()=>{const h=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:u.idx,rule:r,maxLookahead:u.maxLookahead||this.maxLookahead,hasPredicates:u.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),f=$5(this.fullRuleNameToShort[r.name],W3e,u.idx);this.setLaFuncCache(f,h)})}),Fr(i,u=>{this.computeLookaheadFunc(r,u.idx,a$,"Repetition",u.maxLookahead,Wl(u))}),Fr(a,u=>{this.computeLookaheadFunc(r,u.idx,K3e,"Option",u.maxLookahead,Wl(u))}),Fr(s,u=>{this.computeLookaheadFunc(r,u.idx,s$,"RepetitionMandatory",u.maxLookahead,Wl(u))}),Fr(o,u=>{this.computeLookaheadFunc(r,u.idx,F5,"RepetitionMandatoryWithSeparator",u.maxLookahead,Wl(u))}),Fr(l,u=>{this.computeLookaheadFunc(r,u.idx,o$,"RepetitionWithSeparator",u.maxLookahead,Wl(u))})})})}computeLookaheadFunc(e,r,n,i,a,s){this.TRACE_INIT(`${s}${r===0?"":r}`,()=>{const o=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:e,maxLookahead:a||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:i}),l=$5(this.fullRuleNameToShort[e.name],n,r);this.setLaFuncCache(l,o)})}getKeyForAutomaticLookahead(e,r){const n=this.getLastExplicitRuleShortName();return $5(n,e,r)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,r){this.lookAheadFuncsCache.set(e,r)}},k(_y,"LooksAhead"),_y),by,Pxt=(by=class extends h2{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},k(by,"DslMethodsCollectorVisitor"),by),g3=new Pxt;function X3e(t){g3.reset(),t.accept(g3);const e=g3.dslMethods;return g3.reset(),e}k(X3e,"collectMethods");function l$(t,e){isNaN(t.startOffset)===!0?(t.startOffset=e.startOffset,t.endOffset=e.endOffset):t.endOffsets.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: +see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(t){return"deprecated"},buildDuplicateRuleNameError(t){let e;return t.topLevelRule instanceof d2?e=t.topLevelRule.name:e=t.topLevelRule,`Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`}};function g3e(t,e){const r=new Sxt(t,e);return r.resolveRefs(),r.errors}k(g3e,"resolveGrammar");var Z1,Sxt=(Z1=class extends h2{constructor(e,r){super(),this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){Fr(_a(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){const r=this.nameToTopRule[e.nonTerminalName];if(r)e.referencedRule=r;else{const n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:n,type:Ws.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},k(Z1,"GastRefResolverVisitor"),Z1),J1,Txt=(J1=class extends EA{constructor(e,r){super(),this.topProd=e,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Ja(this.path.ruleStack).reverse(),this.occurrenceStack=Ja(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,r=[]){this.found||super.walk(e,r)}walkProdRef(e,r,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){const i=r.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,i)}}updateExpectedNext(){Qn(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},k(J1,"AbstractNextPossibleTokensWalker"),J1),ey,xxt=(ey=class extends Txt{constructor(e,r){super(e,r),this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,r,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){const i=r.concat(n),a=new So({definition:i});this.possibleTokTypes=f2(a),this.found=!0}}},k(ey,"NextAfterTokenWalker"),ey),ty,TA=(ty=class extends EA{constructor(e,r){super(),this.topRule=e,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},k(ty,"AbstractNextTerminalAfterProductionWalker"),ty),ry,Cxt=(ry=class extends TA{walkMany(e,r,n){if(e.idx===this.occurrence){const i=gc(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof ii&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkMany(e,r,n)}},k(ry,"NextTerminalAfterManyWalker"),ry),ny,Ase=(ny=class extends TA{walkManySep(e,r,n){if(e.idx===this.occurrence){const i=gc(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof ii&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkManySep(e,r,n)}},k(ny,"NextTerminalAfterManySepWalker"),ny),iy,wxt=(iy=class extends TA{walkAtLeastOne(e,r,n){if(e.idx===this.occurrence){const i=gc(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof ii&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOne(e,r,n)}},k(iy,"NextTerminalAfterAtLeastOneWalker"),iy),ay,Rse=(ay=class extends TA{walkAtLeastOneSep(e,r,n){if(e.idx===this.occurrence){const i=gc(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof ii&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOneSep(e,r,n)}},k(ay,"NextTerminalAfterAtLeastOneSepWalker"),ay);function fw(t,e,r=[]){r=Ja(r);let n=[],i=0;function a(o){return o.concat(Wa(t,i+1))}k(a,"remainingPathWith");function s(o){const l=fw(a(o),e,r);return n.concat(l)}for(k(s,"getAlternativesForProd");r.length{Qn(l.definition)===!1&&(n=s(l.definition))}),n;if(o instanceof ii)r.push(o.terminalType);else throw Error("non exhaustive match")}i++}return n.push({partialPath:r,suffixDef:Wa(t,i)}),n}k(fw,"possiblePathsFrom");function VH(t,e,r,n){const i="EXIT_NONE_TERMINAL",a=[i],s="EXIT_ALTERNATIVE";let o=!1;const l=e.length,u=l-n-1,d=[],h=[];for(h.push({idx:-1,def:t,ruleStack:[],occurrenceStack:[]});!Qn(h);){const f=h.pop();if(f===s){o&&Fp(h).idx<=u&&h.pop();continue}const p=f.def,g=f.idx,m=f.ruleStack,y=f.occurrenceStack;if(Qn(p))continue;const v=p[0];if(v===i){const b={idx:g,def:Wa(p),ruleStack:w4(m),occurrenceStack:w4(y)};h.push(b)}else if(v instanceof ii)if(g=0;b--){const _=v.definition[b],E={idx:g,def:_.definition.concat(Wa(p)),ruleStack:m,occurrenceStack:y};h.push(E),h.push(s)}else if(v instanceof So)h.push({idx:g,def:v.definition.concat(Wa(p)),ruleStack:m,occurrenceStack:y});else if(v instanceof d2)h.push(m3e(v,g,m,y));else throw Error("non exhaustive match")}return d}k(VH,"nextPossibleTokensAfter");function m3e(t,e,r,n){const i=Ja(r);i.push(t.name);const a=Ja(n);return a.push(1),{idx:e,def:t.definition,ruleStack:i,occurrenceStack:a}}k(m3e,"expandTopLevelRule");var Ri;(function(t){t[t.OPTION=0]="OPTION",t[t.REPETITION=1]="REPETITION",t[t.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",t[t.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",t[t.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",t[t.ALTERNATION=5]="ALTERNATION"})(Ri||(Ri={}));function xA(t){if(t instanceof Za||t==="Option")return Ri.OPTION;if(t instanceof Bi||t==="Repetition")return Ri.REPETITION;if(t instanceof jo||t==="RepetitionMandatory")return Ri.REPETITION_MANDATORY;if(t instanceof Qo||t==="RepetitionMandatoryWithSeparator")return Ri.REPETITION_MANDATORY_WITH_SEPARATOR;if(t instanceof Co||t==="RepetitionWithSeparator")return Ri.REPETITION_WITH_SEPARATOR;if(t instanceof wo||t==="Alternation")return Ri.ALTERNATION;throw Error("non exhaustive match")}k(xA,"getProdType");function n$(t){const{occurrence:e,rule:r,prodType:n,maxLookahead:i}=t,a=xA(n);return a===Ri.ALTERNATION?QT(e,r,i):ZT(e,r,a,i)}k(n$,"getLookaheadPaths");function y3e(t,e,r,n,i,a){const s=QT(t,e,r),o=KH(s)?A4:p2;return a(s,n,o,i)}k(y3e,"buildLookaheadFuncForOr");function v3e(t,e,r,n,i,a){const s=ZT(t,e,i,r),o=KH(s)?A4:p2;return a(s[0],o,n)}k(v3e,"buildLookaheadFuncForOptionalProd");function _3e(t,e,r,n){const i=t.length,a=cc(t,s=>cc(s,o=>o.length===1));if(e)return function(s){const o=Sr(s,l=>l.GATE);for(let l=0;llc(l)),o=Go(s,(l,u,d)=>(Fr(u,h=>{Lr(l,h.tokenTypeIdx)||(l[h.tokenTypeIdx]=d),Fr(h.categoryMatches,f=>{Lr(l,f)||(l[f]=d)})}),l),{});return function(){const l=this.LA(1);return o[l.tokenTypeIdx]}}else return function(){for(let s=0;sa.length===1),i=t.length;if(n&&!r){const a=lc(t);if(a.length===1&&Qn(a[0].categoryMatches)){const o=a[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===o}}else{const s=Go(a,(o,l,u)=>(o[l.tokenTypeIdx]=!0,Fr(l.categoryMatches,d=>{o[d]=!0}),o),[]);return function(){const o=this.LA(1);return s[o.tokenTypeIdx]===!0}}}else return function(){e:for(let a=0;afw([s],1)),n=i$(r.length),i=Sr(r,s=>{const o={};return Fr(s,l=>{const u=B5(l.partialPath);Fr(u,d=>{o[d]=!0})}),o});let a=r;for(let s=1;s<=e;s++){const o=a;a=i$(o.length);for(let l=0;l{const v=B5(y.partialPath);Fr(v,b=>{i[l][b]=!0})})}}}}return n}k(WH,"lookAheadSequenceFromAlternatives");function QT(t,e,r,n){const i=new E3e(t,Ri.ALTERNATION,n);return e.accept(i),WH(i.result,r)}k(QT,"getLookaheadPathsForOr");function ZT(t,e,r,n){const i=new E3e(t,r);e.accept(i);const a=i.result,o=new kxt(e,t,r).startWalking(),l=new So({definition:a}),u=new So({definition:o});return WH([l,u],n)}k(ZT,"getLookaheadPathsForOptionalProd");function pw(t,e){e:for(let r=0;r{const i=e[n];return r===i||i.categoryMatchesMap[r.tokenTypeIdx]})}k(T3e,"isStrictPrefixOfPath");function KH(t){return cc(t,e=>cc(e,r=>cc(r,n=>Qn(n.categoryMatches))))}k(KH,"areTokenCategoriesNotUsed");function x3e(t){const e=t.lookaheadStrategy.validate({rules:t.rules,tokenTypes:t.tokenTypes,grammarName:t.grammarName});return Sr(e,r=>Object.assign({type:Ws.CUSTOM_LOOKAHEAD_VALIDATION},r))}k(x3e,"validateLookahead");function C3e(t,e,r,n){const i=Sl(t,l=>w3e(l,r)),a=P3e(t,e,r),s=Sl(t,l=>O3e(l,r)),o=Sl(t,l=>A3e(l,t,n,r));return i.concat(a,s,o)}k(C3e,"validateGrammar");function w3e(t,e){const r=new Axt;t.accept(r);const n=r.allProductions,i=GTt(n,k3e),a=vc(i,o=>o.length>1);return Sr(_a(a),o=>{const l=gc(o),u=e.buildDuplicateFoundError(t,o),d=Wl(l),h={message:u,type:Ws.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:d,occurrence:l.idx},f=XH(l);return f&&(h.parameter=f),h})}k(w3e,"validateDuplicateProductions");function k3e(t){return`${Wl(t)}_#_${t.idx}_#_${XH(t)}`}k(k3e,"identifyProductionForDuplicates");function XH(t){return t instanceof ii?t.terminalType.name:t instanceof Vs?t.nonTerminalName:""}k(XH,"getExtraProductionArgument");var ly,Axt=(ly=class extends h2{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}},k(ly,"OccurrenceValidationCollector"),ly);function A3e(t,e,r,n){const i=[];if(Go(e,(s,o)=>o.name===t.name?s+1:s,0)>1){const s=n.buildDuplicateRuleNameError({topLevelRule:t,grammarName:r});i.push({message:s,type:Ws.DUPLICATE_RULE_NAME,ruleName:t.name})}return i}k(A3e,"validateRuleDoesNotAlreadyExist");function R3e(t,e,r){const n=[];let i;return ro(e,t)||(i=`Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,n.push({message:i,type:Ws.INVALID_RULE_OVERRIDE,ruleName:t})),n}k(R3e,"validateRuleIsOverridden");function jH(t,e,r,n=[]){const i=[],a=vS(e.definition);if(Qn(a))return[];{const s=t.name;ro(a,t)&&i.push({message:r.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:n}),type:Ws.LEFT_RECURSION,ruleName:s});const l=_A(a,n.concat([t])),u=Sl(l,d=>{const h=Ja(n);return h.push(d),jH(t,d,r,h)});return i.concat(u)}}k(jH,"validateNoLeftRecursion");function vS(t){let e=[];if(Qn(t))return e;const r=gc(t);if(r instanceof Vs)e.push(r.referencedRule);else if(r instanceof So||r instanceof Za||r instanceof jo||r instanceof Qo||r instanceof Co||r instanceof Bi)e=e.concat(vS(r.definition));else if(r instanceof wo)e=lc(Sr(r.definition,a=>vS(a.definition)));else if(!(r instanceof ii))throw Error("non exhaustive match");const n=k4(r),i=t.length>1;if(n&&i){const a=Wa(t);return e.concat(vS(a))}else return e}k(vS,"getFirstNoneTerminal");var cy,QH=(cy=class extends h2{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},k(cy,"OrCollector"),cy);function N3e(t,e){const r=new QH;t.accept(r);const n=r.alternations;return Sl(n,a=>{const s=w4(a.definition);return Sl(s,(o,l)=>{const u=VH([o],[],p2,1);return Qn(u)?[{message:e.buildEmptyAlternationError({topLevelRule:t,alternation:a,emptyChoiceIdx:l}),type:Ws.NONE_LAST_EMPTY_ALT,ruleName:t.name,occurrence:a.idx,alternative:l+1}]:[]})})}k(N3e,"validateEmptyOrAlternative");function I3e(t,e,r){const n=new QH;t.accept(n);let i=n.alternations;return i=bA(i,s=>s.ignoreAmbiguities===!0),Sl(i,s=>{const o=s.idx,l=s.maxLookahead||e,u=QT(o,t,l,s),d=L3e(u,s,t,r),h=M3e(u,s,t,r);return d.concat(h)})}k(I3e,"validateAmbiguousAlternationAlternatives");var uy,Rxt=(uy=class extends h2{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}},k(uy,"RepetitionCollector"),uy);function O3e(t,e){const r=new QH;t.accept(r);const n=r.alternations;return Sl(n,a=>a.definition.length>255?[{message:e.buildTooManyAlternativesError({topLevelRule:t,alternation:a}),type:Ws.TOO_MANY_ALTS,ruleName:t.name,occurrence:a.idx}]:[])}k(O3e,"validateTooManyAlts");function D3e(t,e,r){const n=[];return Fr(t,i=>{const a=new Rxt;i.accept(a);const s=a.allProductions;Fr(s,o=>{const l=xA(o),u=o.maxLookahead||e,d=o.idx,f=ZT(d,i,l,u)[0];if(Qn(lc(f))){const p=r.buildEmptyRepetitionError({topLevelRule:i,repetition:o});n.push({message:p,type:Ws.NO_NON_EMPTY_LOOKAHEAD,ruleName:i.name})}})}),n}k(D3e,"validateSomeNonEmptyLookaheadPath");function L3e(t,e,r,n){const i=[],a=Go(t,(o,l,u)=>(e.definition[u].ignoreAmbiguities===!0||Fr(l,d=>{const h=[u];Fr(t,(f,p)=>{u!==p&&pw(f,d)&&e.definition[p].ignoreAmbiguities!==!0&&h.push(p)}),h.length>1&&!pw(i,d)&&(i.push(d),o.push({alts:h,path:d}))}),o),[]);return Sr(a,o=>{const l=Sr(o.alts,d=>d+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:l,prefixPath:o.path}),type:Ws.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:e.idx,alternatives:o.alts}})}k(L3e,"checkAlternativesAmbiguities");function M3e(t,e,r,n){const i=Go(t,(s,o,l)=>{const u=Sr(o,d=>({idx:l,path:d}));return s.concat(u)},[]);return KT(Sl(i,s=>{if(e.definition[s.idx].ignoreAmbiguities===!0)return[];const l=s.idx,u=s.path,d=Bl(i,f=>e.definition[f.idx].ignoreAmbiguities!==!0&&f.idx{const p=[f.idx+1,l+1],g=e.idx===0?"":e.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:p,prefixPath:f.path}),type:Ws.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:g,alternatives:p}})}))}k(M3e,"checkPrefixAlternativesAmbiguities");function P3e(t,e,r){const n=[],i=Sr(e,a=>a.name);return Fr(t,a=>{const s=a.name;if(ro(i,s)){const o=r.buildNamespaceConflictError(a);n.push({message:o,type:Ws.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),n}k(P3e,"checkTerminalAndNoneTerminalsNameSpace");function B3e(t){const e=LH(t,{errMsgProvider:Ext}),r={};return Fr(t.rules,n=>{r[n.name]=n}),g3e(r,e.errMsgProvider)}k(B3e,"resolveGrammar");function F3e(t){return t=LH(t,{errMsgProvider:ap}),C3e(t.rules,t.tokenTypes,t.errMsgProvider,t.grammarName)}k(F3e,"validateGrammar");var $3e="MismatchedTokenException",z3e="NoViableAltException",U3e="EarlyExitException",G3e="NotAllInputParsedException",q3e=[$3e,z3e,U3e,G3e];Object.freeze(q3e);function R4(t){return ro(q3e,t.name)}k(R4,"isRecognitionException");var dy,CA=(dy=class extends Error{constructor(e,r){super(e),this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},k(dy,"RecognitionException"),dy),hy,Y3e=(hy=class extends CA{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=$3e}},k(hy,"MismatchedTokenException"),hy),fy,Nxt=(fy=class extends CA{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=z3e}},k(fy,"NoViableAltException"),fy),py,Ixt=(py=class extends CA{constructor(e,r){super(e,r),this.name=G3e}},k(py,"NotAllInputParsedException"),py),gy,Oxt=(gy=class extends CA{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=U3e}},k(gy,"EarlyExitException"),gy),wL={},H3e="InRuleRecoveryException",my,Dxt=(my=class extends Error{constructor(e){super(e),this.name=H3e}},k(my,"InRuleRecoveryException"),my),yy,Lxt=(yy=class{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Lr(e,"recoveryEnabled")?e.recoveryEnabled:B0.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=V3e)}getTokenToInsert(e){const r=jT(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,r,n,i){const a=this.findReSyncTokenType(),s=this.exportLexerState(),o=[];let l=!1;const u=this.LA(1);let d=this.LA(1);const h=k(()=>{const f=this.LA(0),p=this.errorMessageProvider.buildMismatchTokenMessage({expected:i,actual:u,previous:f,ruleName:this.getCurrRuleFullName()}),g=new Y3e(p,u,this.LA(0));g.resyncedTokens=w4(o),this.SAVE_ERROR(g)},"generateErrorMessage");for(;!l;)if(this.tokenMatcher(d,i)){h();return}else if(n.call(this)){h(),e.apply(this,r);return}else this.tokenMatcher(d,a)?l=!0:(d=this.SKIP_TOKEN(),this.addToResyncTokens(d,o));this.importLexerState(s)}shouldInRepetitionRecoveryBeTried(e,r,n){return!(n===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,r)))}getFollowsForInRuleRecovery(e,r){const n=this.getCurrentGrammarPath(e,r);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,r){if(this.canRecoverWithSingleTokenInsertion(e,r))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){const n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new Dxt("sad sad panda")}canPerformInRuleRecovery(e,r){return this.canRecoverWithSingleTokenInsertion(e,r)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,r){if(!this.canTokenTypeBeInsertedInRecovery(e)||Qn(r))return!1;const n=this.LA(1);return xb(r,a=>this.tokenMatcher(n,a))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){const r=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(r);return ro(n,e)}findReSyncTokenType(){const e=this.flattenFollowSet();let r=this.LA(1),n=2;for(;;){const i=xb(e,a=>HH(r,a));if(i!==void 0)return i;r=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return wL;const e=this.getLastExplicitRuleShortName(),r=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){const e=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK;return Sr(e,(n,i)=>i===0?wL:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:r[i],inRule:this.shortRuleNameToFullName(e[i-1])})}flattenFollowSet(){const e=Sr(this.buildFullFollowKeyStack(),r=>this.getFollowSetFromFollowKey(r));return lc(e)}getFollowSetFromFollowKey(e){if(e===wL)return[Ch];const r=e.ruleName+e.idxInCallingRule+Nxe+e.inRule;return this.resyncFollows[r]}addToResyncTokens(e,r){return this.tokenMatcher(e,Ch)||r.push(e),r}reSyncTo(e){const r=[];let n=this.LA(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,r);return w4(r)}attemptInRepetitionRecovery(e,r,n,i,a,s,o){}getCurrentGrammarPath(e,r){const n=this.getHumanReadableRuleStack(),i=Ja(this.RULE_OCCURRENCE_STACK);return{ruleStack:n,occurrenceStack:i,lastTok:e,lastTokOccurrence:r}}getHumanReadableRuleStack(){return Sr(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}},k(yy,"Recoverable"),yy);function V3e(t,e,r,n,i,a,s){const o=this.getKeyForAutomaticLookahead(n,i);let l=this.firstAfterRepMap[o];if(l===void 0){const f=this.getCurrRuleFullName(),p=this.getGAstProductions()[f];l=new a(p,i).startWalking(),this.firstAfterRepMap[o]=l}let u=l.token,d=l.occurrence;const h=l.isEndOfRule;this.RULE_STACK.length===1&&h&&u===void 0&&(u=Ch,d=1),!(u===void 0||d===void 0)&&this.shouldInRepetitionRecoveryBeTried(u,d,s)&&this.tryInRepetitionRecovery(t,e,r,u)}k(V3e,"attemptInRepetitionRecovery");var Mxt=4,Yh=8,W3e=1<jH(r,r,ap))}validateEmptyOrAlternatives(e){return Sl(e,r=>N3e(r,ap))}validateAmbiguousAlternationAlternatives(e,r){return Sl(e,n=>I3e(n,r,ap))}validateSomeNonEmptyLookaheadPath(e,r){return D3e(e,r,ap)}buildLookaheadForAlternation(e){return y3e(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,_3e)}buildLookaheadForOptional(e){return v3e(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,xA(e.prodType),b3e)}},k(vy,"LLkLookaheadStrategy"),vy),_y,Pxt=(_y=class{initLooksAhead(e){this.dynamicTokensEnabled=Lr(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:B0.dynamicTokensEnabled,this.maxLookahead=Lr(e,"maxLookahead")?e.maxLookahead:B0.maxLookahead,this.lookaheadStrategy=Lr(e,"lookaheadStrategy")?e.lookaheadStrategy:new ZH({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){Fr(e,r=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{const{alternation:n,repetition:i,option:a,repetitionMandatory:s,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:l}=X3e(r);Fr(n,u=>{const d=u.idx===0?"":u.idx;this.TRACE_INIT(`${Wl(u)}${d}`,()=>{const h=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:u.idx,rule:r,maxLookahead:u.maxLookahead||this.maxLookahead,hasPredicates:u.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),f=$5(this.fullRuleNameToShort[r.name],W3e,u.idx);this.setLaFuncCache(f,h)})}),Fr(i,u=>{this.computeLookaheadFunc(r,u.idx,a$,"Repetition",u.maxLookahead,Wl(u))}),Fr(a,u=>{this.computeLookaheadFunc(r,u.idx,K3e,"Option",u.maxLookahead,Wl(u))}),Fr(s,u=>{this.computeLookaheadFunc(r,u.idx,s$,"RepetitionMandatory",u.maxLookahead,Wl(u))}),Fr(o,u=>{this.computeLookaheadFunc(r,u.idx,F5,"RepetitionMandatoryWithSeparator",u.maxLookahead,Wl(u))}),Fr(l,u=>{this.computeLookaheadFunc(r,u.idx,o$,"RepetitionWithSeparator",u.maxLookahead,Wl(u))})})})}computeLookaheadFunc(e,r,n,i,a,s){this.TRACE_INIT(`${s}${r===0?"":r}`,()=>{const o=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:e,maxLookahead:a||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:i}),l=$5(this.fullRuleNameToShort[e.name],n,r);this.setLaFuncCache(l,o)})}getKeyForAutomaticLookahead(e,r){const n=this.getLastExplicitRuleShortName();return $5(n,e,r)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,r){this.lookAheadFuncsCache.set(e,r)}},k(_y,"LooksAhead"),_y),by,Bxt=(by=class extends h2{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},k(by,"DslMethodsCollectorVisitor"),by),g3=new Bxt;function X3e(t){g3.reset(),t.accept(g3);const e=g3.dslMethods;return g3.reset(),e}k(X3e,"collectMethods");function l$(t,e){isNaN(t.startOffset)===!0?(t.startOffset=e.startOffset,t.endOffset=e.endOffset):t.endOffsets.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: ${a.join(` `).replace(/\n/g,` - `)}`)}},"validateVisitor")};return r.prototype=n,r.prototype.constructor=r,r._RULE_NAMES=e,r}k(J3e,"createBaseSemanticVisitorConstructor");function e5e(t,e,r){const n=k(function(){},"derivedConstructor");JH(n,t+"BaseSemanticsWithDefaults");const i=Object.create(r.prototype);return Fr(e,a=>{i[a]=Z3e}),n.prototype=i,n.prototype.constructor=n,n}k(e5e,"createBaseVisitorConstructorWithDefaults");var u$;(function(t){t[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD"})(u$||(u$={}));function t5e(t,e){return r5e(t,e)}k(t5e,"validateVisitor");function r5e(t,e){const r=Bl(e,i=>nd(t[i])===!1),n=Sr(r,i=>({msg:`Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`,type:u$.MISSING_METHOD,methodName:i}));return KT(n)}k(r5e,"validateMissingCstMethods");var Ey,Fxt=(Ey=class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Lr(e,"nodeLocationTracking")?e.nodeLocationTracking:B0.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=ga,this.cstFinallyStateUpdate=ga,this.cstPostTerminal=ga,this.cstPostNonTerminal=ga,this.cstPostRule=ga;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=c$,this.setNodeLocationFromNode=c$,this.cstPostRule=ga,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=ga,this.setNodeLocationFromNode=ga,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=l$,this.setNodeLocationFromNode=l$,this.cstPostRule=ga,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=ga,this.setNodeLocationFromNode=ga,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=ga,this.setNodeLocationFromNode=ga,this.cstPostRule=ga,this.setInitialNodeLocation=ga;else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){const r=this.LA(1);e.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){const r={name:e,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){const r=this.LA(0),n=e.location;n.startOffset<=r.startOffset?(n.endOffset=r.endOffset,n.endLine=r.endLine,n.endColumn=r.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){const r=this.LA(0),n=e.location;n.startOffset<=r.startOffset?n.endOffset=r.endOffset:n.startOffset=NaN}cstPostTerminal(e,r){const n=this.CST_STACK[this.CST_STACK.length-1];j3e(n,r,e),this.setNodeLocationFromToken(n.location,r)}cstPostNonTerminal(e,r){const n=this.CST_STACK[this.CST_STACK.length-1];Q3e(n,r,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(M0(this.baseCstVisitorConstructor)){const e=J3e(this.className,zo(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(M0(this.baseCstVisitorWithDefaultsConstructor)){const e=e5e(this.className,zo(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){const e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},k(Ey,"TreeBuilder"),Ey),Sy,$xt=(Sy=class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):gw}LA(e){const r=this.currIdx+e;return r<0||this.tokVectorLength<=r?gw:this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},k(Sy,"LexerAdapter"),Sy),Ty,zxt=(Ty=class{ACTION(e){return e.call(this)}consume(e,r,n){return this.consumeInternal(r,e,n)}subrule(e,r,n){return this.subruleInternal(r,e,n)}option(e,r){return this.optionInternal(r,e)}or(e,r){return this.orInternal(r,e)}many(e,r){return this.manyInternal(e,r)}atLeastOne(e,r){return this.atLeastOneInternal(e,r)}CONSUME(e,r){return this.consumeInternal(e,0,r)}CONSUME1(e,r){return this.consumeInternal(e,1,r)}CONSUME2(e,r){return this.consumeInternal(e,2,r)}CONSUME3(e,r){return this.consumeInternal(e,3,r)}CONSUME4(e,r){return this.consumeInternal(e,4,r)}CONSUME5(e,r){return this.consumeInternal(e,5,r)}CONSUME6(e,r){return this.consumeInternal(e,6,r)}CONSUME7(e,r){return this.consumeInternal(e,7,r)}CONSUME8(e,r){return this.consumeInternal(e,8,r)}CONSUME9(e,r){return this.consumeInternal(e,9,r)}SUBRULE(e,r){return this.subruleInternal(e,0,r)}SUBRULE1(e,r){return this.subruleInternal(e,1,r)}SUBRULE2(e,r){return this.subruleInternal(e,2,r)}SUBRULE3(e,r){return this.subruleInternal(e,3,r)}SUBRULE4(e,r){return this.subruleInternal(e,4,r)}SUBRULE5(e,r){return this.subruleInternal(e,5,r)}SUBRULE6(e,r){return this.subruleInternal(e,6,r)}SUBRULE7(e,r){return this.subruleInternal(e,7,r)}SUBRULE8(e,r){return this.subruleInternal(e,8,r)}SUBRULE9(e,r){return this.subruleInternal(e,9,r)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,r,n=mw){if(ro(this.definedRulesNames,e)){const s={message:ap.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:Ws.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(s)}this.definedRulesNames.push(e);const i=this.defineRule(e,r,n);return this[e]=i,i}OVERRIDE_RULE(e,r,n=mw){const i=R3e(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(i);const a=this.defineRule(e,r,n);return this[e]=a,a}BACKTRACK(e,r){return function(){this.isBackTrackingStack.push(1);const n=this.saveRecogState();try{return e.apply(this,r),!0}catch(i){if(R4(i))return!1;throw i}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return xxe(_a(this.gastProductionsCache))}},k(Ty,"RecognizerApi"),Ty),xy,Uxt=(xy=class{initRecognizerEngine(e,r){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=A4,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Lr(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. + `)}`)}},"validateVisitor")};return r.prototype=n,r.prototype.constructor=r,r._RULE_NAMES=e,r}k(J3e,"createBaseSemanticVisitorConstructor");function e5e(t,e,r){const n=k(function(){},"derivedConstructor");JH(n,t+"BaseSemanticsWithDefaults");const i=Object.create(r.prototype);return Fr(e,a=>{i[a]=Z3e}),n.prototype=i,n.prototype.constructor=n,n}k(e5e,"createBaseVisitorConstructorWithDefaults");var u$;(function(t){t[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD"})(u$||(u$={}));function t5e(t,e){return r5e(t,e)}k(t5e,"validateVisitor");function r5e(t,e){const r=Bl(e,i=>nd(t[i])===!1),n=Sr(r,i=>({msg:`Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`,type:u$.MISSING_METHOD,methodName:i}));return KT(n)}k(r5e,"validateMissingCstMethods");var Ey,$xt=(Ey=class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Lr(e,"nodeLocationTracking")?e.nodeLocationTracking:B0.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=ga,this.cstFinallyStateUpdate=ga,this.cstPostTerminal=ga,this.cstPostNonTerminal=ga,this.cstPostRule=ga;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=c$,this.setNodeLocationFromNode=c$,this.cstPostRule=ga,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=ga,this.setNodeLocationFromNode=ga,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=l$,this.setNodeLocationFromNode=l$,this.cstPostRule=ga,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=ga,this.setNodeLocationFromNode=ga,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=ga,this.setNodeLocationFromNode=ga,this.cstPostRule=ga,this.setInitialNodeLocation=ga;else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){const r=this.LA(1);e.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){const r={name:e,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){const r=this.LA(0),n=e.location;n.startOffset<=r.startOffset?(n.endOffset=r.endOffset,n.endLine=r.endLine,n.endColumn=r.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){const r=this.LA(0),n=e.location;n.startOffset<=r.startOffset?n.endOffset=r.endOffset:n.startOffset=NaN}cstPostTerminal(e,r){const n=this.CST_STACK[this.CST_STACK.length-1];j3e(n,r,e),this.setNodeLocationFromToken(n.location,r)}cstPostNonTerminal(e,r){const n=this.CST_STACK[this.CST_STACK.length-1];Q3e(n,r,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(M0(this.baseCstVisitorConstructor)){const e=J3e(this.className,zo(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(M0(this.baseCstVisitorWithDefaultsConstructor)){const e=e5e(this.className,zo(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){const e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},k(Ey,"TreeBuilder"),Ey),Sy,zxt=(Sy=class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):gw}LA(e){const r=this.currIdx+e;return r<0||this.tokVectorLength<=r?gw:this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},k(Sy,"LexerAdapter"),Sy),Ty,Uxt=(Ty=class{ACTION(e){return e.call(this)}consume(e,r,n){return this.consumeInternal(r,e,n)}subrule(e,r,n){return this.subruleInternal(r,e,n)}option(e,r){return this.optionInternal(r,e)}or(e,r){return this.orInternal(r,e)}many(e,r){return this.manyInternal(e,r)}atLeastOne(e,r){return this.atLeastOneInternal(e,r)}CONSUME(e,r){return this.consumeInternal(e,0,r)}CONSUME1(e,r){return this.consumeInternal(e,1,r)}CONSUME2(e,r){return this.consumeInternal(e,2,r)}CONSUME3(e,r){return this.consumeInternal(e,3,r)}CONSUME4(e,r){return this.consumeInternal(e,4,r)}CONSUME5(e,r){return this.consumeInternal(e,5,r)}CONSUME6(e,r){return this.consumeInternal(e,6,r)}CONSUME7(e,r){return this.consumeInternal(e,7,r)}CONSUME8(e,r){return this.consumeInternal(e,8,r)}CONSUME9(e,r){return this.consumeInternal(e,9,r)}SUBRULE(e,r){return this.subruleInternal(e,0,r)}SUBRULE1(e,r){return this.subruleInternal(e,1,r)}SUBRULE2(e,r){return this.subruleInternal(e,2,r)}SUBRULE3(e,r){return this.subruleInternal(e,3,r)}SUBRULE4(e,r){return this.subruleInternal(e,4,r)}SUBRULE5(e,r){return this.subruleInternal(e,5,r)}SUBRULE6(e,r){return this.subruleInternal(e,6,r)}SUBRULE7(e,r){return this.subruleInternal(e,7,r)}SUBRULE8(e,r){return this.subruleInternal(e,8,r)}SUBRULE9(e,r){return this.subruleInternal(e,9,r)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,r,n=mw){if(ro(this.definedRulesNames,e)){const s={message:ap.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:Ws.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(s)}this.definedRulesNames.push(e);const i=this.defineRule(e,r,n);return this[e]=i,i}OVERRIDE_RULE(e,r,n=mw){const i=R3e(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(i);const a=this.defineRule(e,r,n);return this[e]=a,a}BACKTRACK(e,r){return function(){this.isBackTrackingStack.push(1);const n=this.saveRecogState();try{return e.apply(this,r),!0}catch(i){if(R4(i))return!1;throw i}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return xxe(_a(this.gastProductionsCache))}},k(Ty,"RecognizerApi"),Ty),xy,Gxt=(xy=class{initRecognizerEngine(e,r){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=A4,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Lr(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 For Further details.`);if(mn(e)){if(Qn(e))throw Error(`A Token Vocabulary cannot be empty. Note that the first argument for the parser constructor is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument. See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 For Further details.`)}if(mn(e))this.tokensMap=Go(e,(a,s)=>(a[s.name]=s,a),{});else if(Lr(e,"modes")&&cc(lc(_a(e.modes)),f3e)){const a=lc(_a(e.modes)),s=MH(a);this.tokensMap=Go(s,(o,l)=>(o[l.name]=l,o),{})}else if(Ll(e))this.tokensMap=Ja(e);else throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Ch;const n=Lr(e,"modes")?lc(_a(e.modes)):_a(e),i=cc(n,a=>Qn(a.categoryMatches));this.tokenMatcher=i?A4:p2,g2(_a(this.tokensMap))}defineRule(e,r,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' -Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const i=Lr(n,"resyncEnabled")?n.resyncEnabled:mw.resyncEnabled,a=Lr(n,"recoveryValueFunc")?n.recoveryValueFunc:mw.recoveryValueFunc,s=this.ruleShortNameIdx<s.call(this)&&o.call(this),"lookAheadFunc")}}else a=e;if(i.call(this)===!0)return a.call(this)}atLeastOneInternal(e,r){const n=this.getKeyForAutomaticLookahead(s$,e);return this.atLeastOneInternalLogic(e,r,n)}atLeastOneInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;const s=r.GATE;if(s!==void 0){const o=i;i=k(()=>s.call(this)&&o.call(this),"lookAheadFunc")}}else a=r;if(i.call(this)===!0){let s=this.doSingleRepetition(a);for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a)}else throw this.raiseEarlyExitException(e,Ri.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],i,s$,e,Cxt)}atLeastOneSepFirstInternal(e,r){const n=this.getKeyForAutomaticLookahead(F5,e);this.atLeastOneSepFirstInternalLogic(e,r,n)}atLeastOneSepFirstInternalLogic(e,r,n){const i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);const o=k(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,o,i,Rse],o,F5,e,Rse)}else throw this.raiseEarlyExitException(e,Ri.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(e,r){const n=this.getKeyForAutomaticLookahead(a$,e);return this.manyInternalLogic(e,r,n)}manyInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;const o=r.GATE;if(o!==void 0){const l=i;i=k(()=>o.call(this)&&l.call(this),"lookaheadFunction")}}else a=r;let s=!0;for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],i,a$,e,xxt,s)}manySepFirstInternal(e,r){const n=this.getKeyForAutomaticLookahead(o$,e);this.manySepFirstInternalLogic(e,r,n)}manySepFirstInternalLogic(e,r,n){const i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);const o=k(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,o,i,Ase],o,o$,e,Ase)}}repetitionSepSecondInternal(e,r,n,i,a){for(;n();)this.CONSUME(r),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,n,i,a],n,F5,e,a)}doSingleRepetition(e){const r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal(e,r){const n=this.getKeyForAutomaticLookahead(W3e,r),i=mn(e)?e:e.DEF,s=this.getLaFuncFromCache(n).call(this,i);if(s!==void 0)return i[s].ALT.call(this);this.raiseNoAltException(r,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){const e=this.LA(1),r=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Nxt(r,e))}}subruleInternal(e,r,n){let i;try{const a=n!==void 0?n.ARGS:void 0;return this.subruleIdx=r,i=e.apply(this,a),this.cstPostNonTerminal(i,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),i}catch(a){throw this.subruleInternalError(a,n,e.ruleName)}}subruleInternalError(e,r,n){throw R4(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,r,n){let i;try{const a=this.LA(1);this.tokenMatcher(a,e)===!0?(this.consumeToken(),i=a):this.consumeInternalError(e,a,n)}catch(a){i=this.consumeInternalRecovery(e,r,a)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,i),i}consumeInternalError(e,r,n){let i;const a=this.LA(0);throw n!==void 0&&n.ERR_MSG?i=n.ERR_MSG:i=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:r,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Y3e(i,r,a))}consumeInternalRecovery(e,r,n){if(this.recoveryEnabled&&n.name==="MismatchedTokenException"&&!this.isBackTracking()){const i=this.getFollowsForInRuleRecovery(e,r);try{return this.tryInRuleRecovery(e,i)}catch(a){throw a.name===H3e?n:a}}else throw n}saveRecogState(){const e=this.errors,r=Ja(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,r,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),Ch)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},k(xy,"RecognizerEngine"),xy),Cy,Gxt=(Cy=class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=Lr(e,"errorMessageProvider")?e.errorMessageProvider:B0.errorMessageProvider}SAVE_ERROR(e){if(R4(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Ja(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return Ja(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,r,n){const i=this.getCurrRuleFullName(),a=this.getGAstProductions()[i],o=ZT(e,a,r,this.maxLookahead)[0],l=[];for(let d=1;d<=this.maxLookahead;d++)l.push(this.LA(d));const u=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:o,actual:l,previous:this.LA(0),customUserDescription:n,ruleName:i});throw this.SAVE_ERROR(new Ixt(u,this.LA(1),this.LA(0)))}raiseNoAltException(e,r){const n=this.getCurrRuleFullName(),i=this.getGAstProductions()[n],a=QT(e,i,this.maxLookahead),s=[];for(let u=1;u<=this.maxLookahead;u++)s.push(this.LA(u));const o=this.LA(0),l=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:o,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Rxt(l,this.LA(1),o))}},k(Cy,"ErrorHandler"),Cy),wy,qxt=(wy=class{initContentAssist(){}computeContentAssist(e,r){const n=this.gastProductionsCache[e];if(M0(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return VH([n],r,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const r=gc(e.ruleStack),i=this.getGAstProductions()[r];return new Txt(i,e).startWalking()}},k(wy,"ContentAssist"),wy),wA={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(wA);var Nse=!0,Ise=Math.pow(2,Yh)-1,n5e=i1({name:"RECORDING_PHASE_TOKEN",pattern:Us.NA});g2([n5e]);var i5e=jT(n5e,`This IToken indicates the Parser is in Recording Phase - See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(i5e);var Yxt={name:`This CSTNode indicates the Parser is in Recording Phase - See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},ky,Hxt=(ky=class{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){const r=e>0?e:"";this[`CONSUME${r}`]=function(n,i){return this.consumeInternalRecord(n,e,i)},this[`SUBRULE${r}`]=function(n,i){return this.subruleInternalRecord(n,e,i)},this[`OPTION${r}`]=function(n){return this.optionInternalRecord(n,e)},this[`OR${r}`]=function(n){return this.orInternalRecord(n,e)},this[`MANY${r}`]=function(n){this.manyInternalRecord(e,n)},this[`MANY_SEP${r}`]=function(n){this.manySepFirstInternalRecord(e,n)},this[`AT_LEAST_ONE${r}`]=function(n){this.atLeastOneInternalRecord(e,n)},this[`AT_LEAST_ONE_SEP${r}`]=function(n){this.atLeastOneSepFirstInternalRecord(e,n)}}this.consume=function(e,r,n){return this.consumeInternalRecord(r,e,n)},this.subrule=function(e,r,n){return this.subruleInternalRecord(r,e,n)},this.option=function(e,r){return this.optionInternalRecord(r,e)},this.or=function(e,r){return this.orInternalRecord(r,e)},this.many=function(e,r){this.manyInternalRecord(e,r)},this.atLeastOne=function(e,r){this.atLeastOneInternalRecord(e,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const e=this;for(let r=0;r<10;r++){const n=r>0?r:"";delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,r){return()=>!0}LA_RECORD(e){return gw}topLevelRuleRecord(e,r){try{const n=new d2({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),r.call(this),this.recordingProdStack.pop(),n}catch(n){if(n.KNOWN_RECORDER_ERROR!==!0)try{n.message=n.message+` +Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const i=Lr(n,"resyncEnabled")?n.resyncEnabled:mw.resyncEnabled,a=Lr(n,"recoveryValueFunc")?n.recoveryValueFunc:mw.recoveryValueFunc,s=this.ruleShortNameIdx<s.call(this)&&o.call(this),"lookAheadFunc")}}else a=e;if(i.call(this)===!0)return a.call(this)}atLeastOneInternal(e,r){const n=this.getKeyForAutomaticLookahead(s$,e);return this.atLeastOneInternalLogic(e,r,n)}atLeastOneInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;const s=r.GATE;if(s!==void 0){const o=i;i=k(()=>s.call(this)&&o.call(this),"lookAheadFunc")}}else a=r;if(i.call(this)===!0){let s=this.doSingleRepetition(a);for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a)}else throw this.raiseEarlyExitException(e,Ri.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],i,s$,e,wxt)}atLeastOneSepFirstInternal(e,r){const n=this.getKeyForAutomaticLookahead(F5,e);this.atLeastOneSepFirstInternalLogic(e,r,n)}atLeastOneSepFirstInternalLogic(e,r,n){const i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);const o=k(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,o,i,Rse],o,F5,e,Rse)}else throw this.raiseEarlyExitException(e,Ri.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(e,r){const n=this.getKeyForAutomaticLookahead(a$,e);return this.manyInternalLogic(e,r,n)}manyInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;const o=r.GATE;if(o!==void 0){const l=i;i=k(()=>o.call(this)&&l.call(this),"lookaheadFunction")}}else a=r;let s=!0;for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],i,a$,e,Cxt,s)}manySepFirstInternal(e,r){const n=this.getKeyForAutomaticLookahead(o$,e);this.manySepFirstInternalLogic(e,r,n)}manySepFirstInternalLogic(e,r,n){const i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);const o=k(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,o,i,Ase],o,o$,e,Ase)}}repetitionSepSecondInternal(e,r,n,i,a){for(;n();)this.CONSUME(r),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,n,i,a],n,F5,e,a)}doSingleRepetition(e){const r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal(e,r){const n=this.getKeyForAutomaticLookahead(W3e,r),i=mn(e)?e:e.DEF,s=this.getLaFuncFromCache(n).call(this,i);if(s!==void 0)return i[s].ALT.call(this);this.raiseNoAltException(r,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){const e=this.LA(1),r=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Ixt(r,e))}}subruleInternal(e,r,n){let i;try{const a=n!==void 0?n.ARGS:void 0;return this.subruleIdx=r,i=e.apply(this,a),this.cstPostNonTerminal(i,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),i}catch(a){throw this.subruleInternalError(a,n,e.ruleName)}}subruleInternalError(e,r,n){throw R4(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,r,n){let i;try{const a=this.LA(1);this.tokenMatcher(a,e)===!0?(this.consumeToken(),i=a):this.consumeInternalError(e,a,n)}catch(a){i=this.consumeInternalRecovery(e,r,a)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,i),i}consumeInternalError(e,r,n){let i;const a=this.LA(0);throw n!==void 0&&n.ERR_MSG?i=n.ERR_MSG:i=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:r,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Y3e(i,r,a))}consumeInternalRecovery(e,r,n){if(this.recoveryEnabled&&n.name==="MismatchedTokenException"&&!this.isBackTracking()){const i=this.getFollowsForInRuleRecovery(e,r);try{return this.tryInRuleRecovery(e,i)}catch(a){throw a.name===H3e?n:a}}else throw n}saveRecogState(){const e=this.errors,r=Ja(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,r,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),Ch)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},k(xy,"RecognizerEngine"),xy),Cy,qxt=(Cy=class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=Lr(e,"errorMessageProvider")?e.errorMessageProvider:B0.errorMessageProvider}SAVE_ERROR(e){if(R4(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Ja(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return Ja(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,r,n){const i=this.getCurrRuleFullName(),a=this.getGAstProductions()[i],o=ZT(e,a,r,this.maxLookahead)[0],l=[];for(let d=1;d<=this.maxLookahead;d++)l.push(this.LA(d));const u=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:o,actual:l,previous:this.LA(0),customUserDescription:n,ruleName:i});throw this.SAVE_ERROR(new Oxt(u,this.LA(1),this.LA(0)))}raiseNoAltException(e,r){const n=this.getCurrRuleFullName(),i=this.getGAstProductions()[n],a=QT(e,i,this.maxLookahead),s=[];for(let u=1;u<=this.maxLookahead;u++)s.push(this.LA(u));const o=this.LA(0),l=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:o,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Nxt(l,this.LA(1),o))}},k(Cy,"ErrorHandler"),Cy),wy,Yxt=(wy=class{initContentAssist(){}computeContentAssist(e,r){const n=this.gastProductionsCache[e];if(M0(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return VH([n],r,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const r=gc(e.ruleStack),i=this.getGAstProductions()[r];return new xxt(i,e).startWalking()}},k(wy,"ContentAssist"),wy),wA={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(wA);var Nse=!0,Ise=Math.pow(2,Yh)-1,n5e=i1({name:"RECORDING_PHASE_TOKEN",pattern:Us.NA});g2([n5e]);var i5e=jT(n5e,`This IToken indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(i5e);var Hxt={name:`This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},ky,Vxt=(ky=class{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){const r=e>0?e:"";this[`CONSUME${r}`]=function(n,i){return this.consumeInternalRecord(n,e,i)},this[`SUBRULE${r}`]=function(n,i){return this.subruleInternalRecord(n,e,i)},this[`OPTION${r}`]=function(n){return this.optionInternalRecord(n,e)},this[`OR${r}`]=function(n){return this.orInternalRecord(n,e)},this[`MANY${r}`]=function(n){this.manyInternalRecord(e,n)},this[`MANY_SEP${r}`]=function(n){this.manySepFirstInternalRecord(e,n)},this[`AT_LEAST_ONE${r}`]=function(n){this.atLeastOneInternalRecord(e,n)},this[`AT_LEAST_ONE_SEP${r}`]=function(n){this.atLeastOneSepFirstInternalRecord(e,n)}}this.consume=function(e,r,n){return this.consumeInternalRecord(r,e,n)},this.subrule=function(e,r,n){return this.subruleInternalRecord(r,e,n)},this.option=function(e,r){return this.optionInternalRecord(r,e)},this.or=function(e,r){return this.orInternalRecord(r,e)},this.many=function(e,r){this.manyInternalRecord(e,r)},this.atLeastOne=function(e,r){this.atLeastOneInternalRecord(e,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const e=this;for(let r=0;r<10;r++){const n=r>0?r:"";delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,r){return()=>!0}LA_RECORD(e){return gw}topLevelRuleRecord(e,r){try{const n=new d2({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),r.call(this),this.recordingProdStack.pop(),n}catch(n){if(n.KNOWN_RECORDER_ERROR!==!0)try{n.message=n.message+` This error was thrown during the "grammar recording phase" For more info see: https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw n}throw n}}optionInternalRecord(e,r){return dm.call(this,Za,e,r)}atLeastOneInternalRecord(e,r){dm.call(this,jo,r,e)}atLeastOneSepFirstInternalRecord(e,r){dm.call(this,Qo,r,e,Nse)}manyInternalRecord(e,r){dm.call(this,Bi,r,e)}manySepFirstInternalRecord(e,r){dm.call(this,Co,r,e,Nse)}orInternalRecord(e,r){return a5e.call(this,e,r)}subruleInternalRecord(e,r,n){if(N4(r),!e||Lr(e,"ruleName")===!1){const o=new Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> - inside top level rule: <${this.recordingProdStack[0].name}>`);throw o.KNOWN_RECORDER_ERROR=!0,o}const i=Fp(this.recordingProdStack),a=e.ruleName,s=new Vs({idx:r,nonTerminalName:a,label:n?.LABEL,referencedRule:void 0});return i.definition.push(s),this.outputCst?Yxt:wA}consumeInternalRecord(e,r,n){if(N4(r),!qH(e)){const s=new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw o.KNOWN_RECORDER_ERROR=!0,o}const i=Fp(this.recordingProdStack),a=e.ruleName,s=new Vs({idx:r,nonTerminalName:a,label:n?.LABEL,referencedRule:void 0});return i.definition.push(s),this.outputCst?Hxt:wA}consumeInternalRecord(e,r,n){if(N4(r),!qH(e)){const s=new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> inside top level rule: <${this.recordingProdStack[0].name}>`);throw s.KNOWN_RECORDER_ERROR=!0,s}const i=Fp(this.recordingProdStack),a=new ii({idx:r,terminalType:e,label:n?.LABEL});return i.definition.push(a),i5e}},k(ky,"GastRecorder"),ky);function dm(t,e,r,n=!1){N4(r);const i=Fp(this.recordingProdStack),a=nd(e)?e:e.DEF,s=new t({definition:[],idx:r});return n&&(s.separator=e.SEP),Lr(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),i.definition.push(s),this.recordingProdStack.pop(),wA}k(dm,"recordProd");function a5e(t,e){N4(e);const r=Fp(this.recordingProdStack),n=mn(t)===!1,i=n===!1?t:t.DEF,a=new wo({definition:[],idx:e,ignoreAmbiguities:n&&t.IGNORE_AMBIGUITIES===!0});Lr(t,"MAX_LOOKAHEAD")&&(a.maxLookahead=t.MAX_LOOKAHEAD);const s=_xe(i,o=>nd(o.GATE));return a.hasPredicates=s,r.definition.push(a),Fr(i,o=>{const l=new So({definition:[]});a.definition.push(l),Lr(o,"IGNORE_AMBIGUITIES")?l.ignoreAmbiguities=o.IGNORE_AMBIGUITIES:Lr(o,"GATE")&&(l.ignoreAmbiguities=!0),this.recordingProdStack.push(l),o.ALT.call(this),this.recordingProdStack.pop()}),wA}k(a5e,"recordOrProd");function d$(t){return t===0?"":`${t}`}k(d$,"getIdxSuffix");function N4(t){if(t<0||t>Ise){const e=new Error(`Invalid DSL Method idx value: <${t}> - Idx value must be a none negative value smaller than ${Ise+1}`);throw e.KNOWN_RECORDER_ERROR=!0,e}}k(N4,"assertMethodIdxIsValid");var Ay,Vxt=(Ay=class{initPerformanceTracer(e){if(Lr(e,"traceInitPerf")){const r=e.traceInitPerf,n=typeof r=="number";this.traceInitMaxIdent=n?r:1/0,this.traceInitPerf=n?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=B0.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;const n=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${e}>`);const{time:i,value:a}=BH(r),s=i>10?console.warn:console.log;return this.traceInitIndent time: ${i}ms`),this.traceInitIndent--,a}else return r()}},k(Ay,"PerformanceTracer"),Ay);function s5e(t,e){e.forEach(r=>{const n=r.prototype;Object.getOwnPropertyNames(n).forEach(i=>{if(i==="constructor")return;const a=Object.getOwnPropertyDescriptor(n,i);a&&(a.get||a.set)?Object.defineProperty(t.prototype,i,a):t.prototype[i]=r.prototype[i]})})}k(s5e,"applyMixins");var gw=jT(Ch,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(gw);var B0=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Bm,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),mw=Object.freeze({recoveryValueFunc:k(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),Ws;(function(t){t[t.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",t[t.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",t[t.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",t[t.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",t[t.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",t[t.LEFT_RECURSION=5]="LEFT_RECURSION",t[t.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",t[t.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",t[t.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",t[t.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",t[t.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",t[t.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",t[t.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",t[t.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(Ws||(Ws={}));function h$(t=void 0){return function(){return t}}k(h$,"EMPTY_ALT");var mp,eV=(mp=class{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;const r=this.className;this.TRACE_INIT("toFastProps",()=>{FH(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),Fr(this.definedRulesNames,i=>{const s=this[i].originalGrammarAction;let o;this.TRACE_INIT(`${i} Rule`,()=>{o=this.topLevelRuleRecord(i,s)}),this.gastProductionsCache[i]=o})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=B3e({rules:_a(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(Qn(n)&&this.skipValidations===!1){const i=F3e({rules:_a(this.gastProductionsCache),tokenTypes:_a(this.tokensMap),errMsgProvider:ap,grammarName:r}),a=x3e({lookaheadStrategy:this.lookaheadStrategy,rules:_a(this.gastProductionsCache),tokenTypes:_a(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(i,a)}}),Qn(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const i=Ixe(_a(this.gastProductionsCache));this.resyncFollows=i}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var i,a;(a=(i=this.lookaheadStrategy).initialize)===null||a===void 0||a.call(i,{rules:_a(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(_a(this.gastProductionsCache))})),!mp.DEFER_DEFINITION_ERRORS_HANDLING&&!Qn(this.definitionErrors))throw e=Sr(this.definitionErrors,i=>i.message),new Error(`Parser Definition Errors detected: + Idx value must be a none negative value smaller than ${Ise+1}`);throw e.KNOWN_RECORDER_ERROR=!0,e}}k(N4,"assertMethodIdxIsValid");var Ay,Wxt=(Ay=class{initPerformanceTracer(e){if(Lr(e,"traceInitPerf")){const r=e.traceInitPerf,n=typeof r=="number";this.traceInitMaxIdent=n?r:1/0,this.traceInitPerf=n?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=B0.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;const n=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${e}>`);const{time:i,value:a}=BH(r),s=i>10?console.warn:console.log;return this.traceInitIndent time: ${i}ms`),this.traceInitIndent--,a}else return r()}},k(Ay,"PerformanceTracer"),Ay);function s5e(t,e){e.forEach(r=>{const n=r.prototype;Object.getOwnPropertyNames(n).forEach(i=>{if(i==="constructor")return;const a=Object.getOwnPropertyDescriptor(n,i);a&&(a.get||a.set)?Object.defineProperty(t.prototype,i,a):t.prototype[i]=r.prototype[i]})})}k(s5e,"applyMixins");var gw=jT(Ch,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(gw);var B0=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Bm,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),mw=Object.freeze({recoveryValueFunc:k(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),Ws;(function(t){t[t.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",t[t.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",t[t.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",t[t.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",t[t.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",t[t.LEFT_RECURSION=5]="LEFT_RECURSION",t[t.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",t[t.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",t[t.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",t[t.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",t[t.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",t[t.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",t[t.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",t[t.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(Ws||(Ws={}));function h$(t=void 0){return function(){return t}}k(h$,"EMPTY_ALT");var mp,eV=(mp=class{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;const r=this.className;this.TRACE_INIT("toFastProps",()=>{FH(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),Fr(this.definedRulesNames,i=>{const s=this[i].originalGrammarAction;let o;this.TRACE_INIT(`${i} Rule`,()=>{o=this.topLevelRuleRecord(i,s)}),this.gastProductionsCache[i]=o})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=B3e({rules:_a(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(Qn(n)&&this.skipValidations===!1){const i=F3e({rules:_a(this.gastProductionsCache),tokenTypes:_a(this.tokensMap),errMsgProvider:ap,grammarName:r}),a=x3e({lookaheadStrategy:this.lookaheadStrategy,rules:_a(this.gastProductionsCache),tokenTypes:_a(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(i,a)}}),Qn(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const i=Ixe(_a(this.gastProductionsCache));this.resyncFollows=i}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var i,a;(a=(i=this.lookaheadStrategy).initialize)===null||a===void 0||a.call(i,{rules:_a(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(_a(this.gastProductionsCache))})),!mp.DEFER_DEFINITION_ERRORS_HANDLING&&!Qn(this.definitionErrors))throw e=Sr(this.definitionErrors,i=>i.message),new Error(`Parser Definition Errors detected: ${e.join(` ------------------------------- `)}`)})}constructor(e,r){this.definitionErrors=[],this.selfAnalysisDone=!1;const n=this;if(n.initErrorHandler(r),n.initLexerAdapter(),n.initLooksAhead(r),n.initRecognizerEngine(e,r),n.initRecoverable(r),n.initTreeBuilder(r),n.initContentAssist(),n.initGastRecorder(r),n.initPerformanceTracer(r),Lr(r,"ignoredIssues"))throw new Error(`The IParserConfig property has been deprecated. Please use the flag on the relevant DSL method instead. See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES - For further details.`);this.skipValidations=Lr(r,"skipValidations")?r.skipValidations:B0.skipValidations}},k(mp,"Parser"),mp);eV.DEFER_DEFINITION_ERRORS_HANDLING=!1;s5e(eV,[Dxt,Mxt,Fxt,$xt,Uxt,zxt,Gxt,qxt,Hxt,Vxt]);var Ry,Wxt=(Ry=class extends eV{constructor(e,r=B0){const n=Ja(r);n.outputCst=!1,super(e,n)}},k(Ry,"EmbeddedActionsParser"),Ry);function o5e(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r-1}k(g5e,"listCacheHas");var Jxt=g5e;function m5e(t,e){var r=this.__data__,n=kA(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}k(m5e,"listCacheSet");var e3t=m5e;function Eg(t){var e=-1,r=t==null?0:t.length;for(this.clear();++eo))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&s5t?new X5e:void 0;for(a.set(t,e),a.set(e,t);++h-1&&t%1==0&&t-1&&t%1==0&&t<=U5t}k(vCe,"isLength");var nV=vCe,G5t="[object Arguments]",q5t="[object Array]",Y5t="[object Boolean]",H5t="[object Date]",V5t="[object Error]",W5t="[object Function]",K5t="[object Map]",X5t="[object Number]",j5t="[object Object]",Q5t="[object RegExp]",Z5t="[object Set]",J5t="[object String]",eCt="[object WeakMap]",tCt="[object ArrayBuffer]",rCt="[object DataView]",nCt="[object Float32Array]",iCt="[object Float64Array]",aCt="[object Int8Array]",sCt="[object Int16Array]",oCt="[object Int32Array]",lCt="[object Uint8Array]",cCt="[object Uint8ClampedArray]",uCt="[object Uint16Array]",dCt="[object Uint32Array]",ti={};ti[nCt]=ti[iCt]=ti[aCt]=ti[sCt]=ti[oCt]=ti[lCt]=ti[cCt]=ti[uCt]=ti[dCt]=!0;ti[G5t]=ti[q5t]=ti[tCt]=ti[Y5t]=ti[rCt]=ti[H5t]=ti[V5t]=ti[W5t]=ti[K5t]=ti[X5t]=ti[j5t]=ti[Q5t]=ti[Z5t]=ti[J5t]=ti[eCt]=!1;function _Ce(t){return Cb(t)&&nV(t.length)&&!!ti[m2(t)]}k(_Ce,"baseIsTypedArray");var hCt=_Ce;function bCe(t){return function(e){return t(e)}}k(bCe,"baseUnary");var fCt=bCe,ECe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_S=ECe&&typeof module=="object"&&module&&!module.nodeType&&module,pCt=_S&&_S.exports===ECe,RL=pCt&&E5e.process,gCt=(function(){try{var t=_S&&_S.require&&_S.require("util").types;return t||RL&&RL.binding&&RL.binding("util")}catch{}})(),Use=gCt,Gse=Use&&Use.isTypedArray,mCt=Gse?fCt(Gse):hCt,iV=mCt,yCt=Object.prototype,vCt=yCt.hasOwnProperty;function SCe(t,e){var r=Ks(t),n=!r&&IA(t),i=!r&&!n&&yw(t),a=!r&&!n&&!i&&iV(t),s=r||n||i||a,o=s?N5t(t.length,String):[],l=o.length;for(var u in t)(e||vCt.call(t,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||yCe(u,l)))&&o.push(u);return o}k(SCe,"arrayLikeKeys");var _Ct=SCe,bCt=Object.prototype;function TCe(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||bCt;return t===r}k(TCe,"isPrototype");var xCe=TCe;function CCe(t,e){return function(r){return t(e(r))}}k(CCe,"overArg");var ECt=CCe,SCt=ECt(Object.keys,Object),TCt=SCt,xCt=Object.prototype,CCt=xCt.hasOwnProperty;function wCe(t){if(!xCe(t))return TCt(t);var e=[];for(var r in Object(t))CCt.call(t,r)&&r!="constructor"&&e.push(r);return e}k(wCe,"baseKeys");var kCe=wCe;function ACe(t){return t!=null&&nV(t.length)&&!A5e(t)}k(ACe,"isArrayLike");var OA=ACe;function RCe(t){return OA(t)?_Ct(t):kCe(t)}k(RCe,"keys");var aV=RCe;function NCe(t){return x5t(t,aV,R5t)}k(NCe,"getAllKeys");var qse=NCe,wCt=1,kCt=Object.prototype,ACt=kCt.hasOwnProperty;function ICe(t,e,r,n,i,a){var s=r&wCt,o=qse(t),l=o.length,u=qse(e),d=u.length;if(l!=d&&!s)return!1;for(var h=l;h--;){var f=o[h];if(!(s?f in e:ACt.call(e,f)))return!1}var p=a.get(t),g=a.get(e);if(p&&g)return p==e&&g==t;var m=!0;a.set(t,e),a.set(e,t);for(var y=s;++hfV(t,e,s));return wg(t,e,n,r,...i)}k(T6e,"alternation");function x6e(t,e,r){const n=xa(t,e,r,{type:wh});ad(t,n);const i=wg(t,e,n,r,Hh(t,e,r));return C6e(t,e,r,i)}k(x6e,"option");function Hh(t,e,r){const n=C6t(u0(r.definition,i=>fV(t,e,i)),i=>i!==void 0);return n.length===1?n[0]:n.length===0?void 0:k6e(t,n)}k(Hh,"block");function pV(t,e,r,n,i){const a=n.left,s=n.right,o=xa(t,e,r,{type:N6t});ad(t,o);const l=xa(t,e,r,{type:g6e});return a.loopback=o,l.loopback=o,t.decisionMap[zp(e,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=o,Hi(s,o),i===void 0?(Hi(o,a),Hi(o,l)):(Hi(o,l),Hi(o,i.left),Hi(i.right,a)),{left:a,right:l}}k(pV,"plus");function gV(t,e,r,n,i){const a=n.left,s=n.right,o=xa(t,e,r,{type:R6t});ad(t,o);const l=xa(t,e,r,{type:g6e}),u=xa(t,e,r,{type:A6t});return o.loopback=u,l.loopback=u,Hi(o,a),Hi(o,l),Hi(s,u),i!==void 0?(Hi(u,l),Hi(u,i.left),Hi(i.right,a)):Hi(u,o),t.decisionMap[zp(e,i?"RepetitionWithSeparator":"Repetition",r.idx)]=o,{left:o,right:l}}k(gV,"star");function C6e(t,e,r,n){const i=n.left,a=n.right;return Hi(i,a),t.decisionMap[zp(e,"Option",r.idx)]=i,n}k(C6e,"optional");function ad(t,e){return t.decisionStates.push(e),e.decision=t.decisionStates.length-1,e.decision}k(ad,"defineDecisionState");function wg(t,e,r,n,...i){const a=xa(t,e,n,{type:k6t,start:r});r.end=a;for(const o of i)o!==void 0?(Hi(r,o.left),Hi(o.right,a)):Hi(r,a);const s={left:r,right:a};return t.decisionMap[zp(e,w6e(n),n.idx)]=r,s}k(wg,"makeAlts");function w6e(t){if(t instanceof wo)return"Alternation";if(t instanceof Za)return"Option";if(t instanceof Bi)return"Repetition";if(t instanceof Co)return"RepetitionWithSeparator";if(t instanceof jo)return"RepetitionMandatory";if(t instanceof Qo)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}k(w6e,"getProdType");function k6e(t,e){const r=e.length;for(let a=0;ae.alt)}get key(){let e="";for(const r in this.map)e+=r+":";return e}},k(Ly,"ATNConfigSet"),Ly);function mV(t,e=!0){return`${e?`a${t.alt}`:""}s${t.state.stateNumber}:${t.stack.map(r=>r.stateNumber.toString()).join("_")}`}k(mV,"getATNConfigKey");function I6e(t,e,r){for(var n=-1,i=t.length;++n0&&r(o)?e>1?yV(o,e-1,r,n,i):aCe(i,o):n||(i[i.length]=o)}return i}k(yV,"baseFlatten");var M6e=yV;function P6e(t,e){return M6e(u0(t,e),1)}k(P6e,"flatMap");var M6t=P6e;function B6e(t,e,r,n){for(var i=t.length,a=r+(n?1:-1);n?a--:++a-1}k(U6e,"arrayIncludes");var z6t=U6e;function G6e(t,e,r){for(var n=-1,i=t==null?0:t.length;++n=V6t){var u=e?null:H6t(t);if(u)return rV(u);s=!1,i=Z5e,l=new X5e}else l=e?[]:o;e:for(;++n{const i=n.toString();let a=r[i];return a!==void 0||(a={atnStartState:t,decision:e,states:{}},r[i]=a),a}}k(ewe,"createDFACache");var My,twe=(My=class{constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,r){this.predicates[e]=r}toString(){let e="";const r=this.predicates.length;for(let n=0;nconsole.log(n))}initialize(e){this.atn=y6e(e.rules),this.dfas=rwe(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){const{prodOccurrence:r,rule:n,hasPredicates:i,dynamicTokensEnabled:a}=e,s=this.dfas,o=this.logging,l=zp(n,"Alternation",r),d=this.atn.decisionMap[l].decision,h=u0(n$({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:n}),f=>u0(f,p=>p[0]));if(v$(h,!1)&&!a){const f=toe(h,(p,g,m)=>(NL(g,y=>{y&&(p[y.tokenTypeIdx]=m,NL(y.categoryMatches,v=>{p[v]=m}))}),p),{});return i?function(p){var g;const m=this.LA(1),y=f[m.tokenTypeIdx];if(p!==void 0&&y!==void 0){const v=(g=p[y])===null||g===void 0?void 0:g.GATE;if(v!==void 0&&v.call(this)===!1)return}return y}:function(){const p=this.LA(1);return f[p.tokenTypeIdx]}}else return i?function(f){const p=new twe,g=f===void 0?0:f.length;for(let y=0;yu0(f,p=>p[0]));if(v$(h)&&h[0][0]&&!a){const f=h[0],p=X6t(f);if(p.length===1&&rwt(p[0].categoryMatches)){const m=p[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===m}}else{const g=toe(p,(m,y)=>(y!==void 0&&(m[y.tokenTypeIdx]=!0,NL(y.categoryMatches,v=>{m[v]=!0})),m),{});return function(){const m=this.LA(1);return g[m.tokenTypeIdx]===!0}}}return function(){const f=U5.call(this,s,d,roe,o);return typeof f=="object"?!1:f===0}}},k(Py,"LLStarLookaheadStrategy"),Py);function v$(t,e=!0){const r=new Set;for(const n of t){const i=new Set;for(const a of n){if(a===void 0){if(e)break;return!1}const s=[a.tokenTypeIdx].concat(a.categoryMatches);for(const o of s)if(r.has(o)){if(!i.has(o))return!1}else r.add(o),i.add(o)}}return!0}k(v$,"isLL1Sequence");function rwe(t){const e=t.decisionStates.length,r=Array(e);for(let n=0;nfp(i)).join(", "),r=t.production.idx===0?"":t.production.idx;let n=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${owe(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, + For further details.`);this.skipValidations=Lr(r,"skipValidations")?r.skipValidations:B0.skipValidations}},k(mp,"Parser"),mp);eV.DEFER_DEFINITION_ERRORS_HANDLING=!1;s5e(eV,[Lxt,Pxt,$xt,zxt,Gxt,Uxt,qxt,Yxt,Vxt,Wxt]);var Ry,Kxt=(Ry=class extends eV{constructor(e,r=B0){const n=Ja(r);n.outputCst=!1,super(e,n)}},k(Ry,"EmbeddedActionsParser"),Ry);function o5e(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r-1}k(g5e,"listCacheHas");var e3t=g5e;function m5e(t,e){var r=this.__data__,n=kA(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}k(m5e,"listCacheSet");var t3t=m5e;function Eg(t){var e=-1,r=t==null?0:t.length;for(this.clear();++eo))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&o5t?new X5e:void 0;for(a.set(t,e),a.set(e,t);++h-1&&t%1==0&&t-1&&t%1==0&&t<=G5t}k(vCe,"isLength");var nV=vCe,q5t="[object Arguments]",Y5t="[object Array]",H5t="[object Boolean]",V5t="[object Date]",W5t="[object Error]",K5t="[object Function]",X5t="[object Map]",j5t="[object Number]",Q5t="[object Object]",Z5t="[object RegExp]",J5t="[object Set]",eCt="[object String]",tCt="[object WeakMap]",rCt="[object ArrayBuffer]",nCt="[object DataView]",iCt="[object Float32Array]",aCt="[object Float64Array]",sCt="[object Int8Array]",oCt="[object Int16Array]",lCt="[object Int32Array]",cCt="[object Uint8Array]",uCt="[object Uint8ClampedArray]",dCt="[object Uint16Array]",hCt="[object Uint32Array]",ti={};ti[iCt]=ti[aCt]=ti[sCt]=ti[oCt]=ti[lCt]=ti[cCt]=ti[uCt]=ti[dCt]=ti[hCt]=!0;ti[q5t]=ti[Y5t]=ti[rCt]=ti[H5t]=ti[nCt]=ti[V5t]=ti[W5t]=ti[K5t]=ti[X5t]=ti[j5t]=ti[Q5t]=ti[Z5t]=ti[J5t]=ti[eCt]=ti[tCt]=!1;function _Ce(t){return Cb(t)&&nV(t.length)&&!!ti[m2(t)]}k(_Ce,"baseIsTypedArray");var fCt=_Ce;function bCe(t){return function(e){return t(e)}}k(bCe,"baseUnary");var pCt=bCe,ECe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_S=ECe&&typeof module=="object"&&module&&!module.nodeType&&module,gCt=_S&&_S.exports===ECe,RL=gCt&&E5e.process,mCt=(function(){try{var t=_S&&_S.require&&_S.require("util").types;return t||RL&&RL.binding&&RL.binding("util")}catch{}})(),Use=mCt,Gse=Use&&Use.isTypedArray,yCt=Gse?pCt(Gse):fCt,iV=yCt,vCt=Object.prototype,_Ct=vCt.hasOwnProperty;function SCe(t,e){var r=Ks(t),n=!r&&IA(t),i=!r&&!n&&yw(t),a=!r&&!n&&!i&&iV(t),s=r||n||i||a,o=s?I5t(t.length,String):[],l=o.length;for(var u in t)(e||_Ct.call(t,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||yCe(u,l)))&&o.push(u);return o}k(SCe,"arrayLikeKeys");var bCt=SCe,ECt=Object.prototype;function TCe(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||ECt;return t===r}k(TCe,"isPrototype");var xCe=TCe;function CCe(t,e){return function(r){return t(e(r))}}k(CCe,"overArg");var SCt=CCe,TCt=SCt(Object.keys,Object),xCt=TCt,CCt=Object.prototype,wCt=CCt.hasOwnProperty;function wCe(t){if(!xCe(t))return xCt(t);var e=[];for(var r in Object(t))wCt.call(t,r)&&r!="constructor"&&e.push(r);return e}k(wCe,"baseKeys");var kCe=wCe;function ACe(t){return t!=null&&nV(t.length)&&!A5e(t)}k(ACe,"isArrayLike");var OA=ACe;function RCe(t){return OA(t)?bCt(t):kCe(t)}k(RCe,"keys");var aV=RCe;function NCe(t){return C5t(t,aV,N5t)}k(NCe,"getAllKeys");var qse=NCe,kCt=1,ACt=Object.prototype,RCt=ACt.hasOwnProperty;function ICe(t,e,r,n,i,a){var s=r&kCt,o=qse(t),l=o.length,u=qse(e),d=u.length;if(l!=d&&!s)return!1;for(var h=l;h--;){var f=o[h];if(!(s?f in e:RCt.call(e,f)))return!1}var p=a.get(t),g=a.get(e);if(p&&g)return p==e&&g==t;var m=!0;a.set(t,e),a.set(e,t);for(var y=s;++hfV(t,e,s));return wg(t,e,n,r,...i)}k(T6e,"alternation");function x6e(t,e,r){const n=xa(t,e,r,{type:wh});ad(t,n);const i=wg(t,e,n,r,Hh(t,e,r));return C6e(t,e,r,i)}k(x6e,"option");function Hh(t,e,r){const n=w6t(u0(r.definition,i=>fV(t,e,i)),i=>i!==void 0);return n.length===1?n[0]:n.length===0?void 0:k6e(t,n)}k(Hh,"block");function pV(t,e,r,n,i){const a=n.left,s=n.right,o=xa(t,e,r,{type:I6t});ad(t,o);const l=xa(t,e,r,{type:g6e});return a.loopback=o,l.loopback=o,t.decisionMap[zp(e,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=o,Hi(s,o),i===void 0?(Hi(o,a),Hi(o,l)):(Hi(o,l),Hi(o,i.left),Hi(i.right,a)),{left:a,right:l}}k(pV,"plus");function gV(t,e,r,n,i){const a=n.left,s=n.right,o=xa(t,e,r,{type:N6t});ad(t,o);const l=xa(t,e,r,{type:g6e}),u=xa(t,e,r,{type:R6t});return o.loopback=u,l.loopback=u,Hi(o,a),Hi(o,l),Hi(s,u),i!==void 0?(Hi(u,l),Hi(u,i.left),Hi(i.right,a)):Hi(u,o),t.decisionMap[zp(e,i?"RepetitionWithSeparator":"Repetition",r.idx)]=o,{left:o,right:l}}k(gV,"star");function C6e(t,e,r,n){const i=n.left,a=n.right;return Hi(i,a),t.decisionMap[zp(e,"Option",r.idx)]=i,n}k(C6e,"optional");function ad(t,e){return t.decisionStates.push(e),e.decision=t.decisionStates.length-1,e.decision}k(ad,"defineDecisionState");function wg(t,e,r,n,...i){const a=xa(t,e,n,{type:A6t,start:r});r.end=a;for(const o of i)o!==void 0?(Hi(r,o.left),Hi(o.right,a)):Hi(r,a);const s={left:r,right:a};return t.decisionMap[zp(e,w6e(n),n.idx)]=r,s}k(wg,"makeAlts");function w6e(t){if(t instanceof wo)return"Alternation";if(t instanceof Za)return"Option";if(t instanceof Bi)return"Repetition";if(t instanceof Co)return"RepetitionWithSeparator";if(t instanceof jo)return"RepetitionMandatory";if(t instanceof Qo)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}k(w6e,"getProdType");function k6e(t,e){const r=e.length;for(let a=0;ae.alt)}get key(){let e="";for(const r in this.map)e+=r+":";return e}},k(Ly,"ATNConfigSet"),Ly);function mV(t,e=!0){return`${e?`a${t.alt}`:""}s${t.state.stateNumber}:${t.stack.map(r=>r.stateNumber.toString()).join("_")}`}k(mV,"getATNConfigKey");function I6e(t,e,r){for(var n=-1,i=t.length;++n0&&r(o)?e>1?yV(o,e-1,r,n,i):aCe(i,o):n||(i[i.length]=o)}return i}k(yV,"baseFlatten");var M6e=yV;function P6e(t,e){return M6e(u0(t,e),1)}k(P6e,"flatMap");var P6t=P6e;function B6e(t,e,r,n){for(var i=t.length,a=r+(n?1:-1);n?a--:++a-1}k(U6e,"arrayIncludes");var U6t=U6e;function G6e(t,e,r){for(var n=-1,i=t==null?0:t.length;++n=W6t){var u=e?null:V6t(t);if(u)return rV(u);s=!1,i=Z5e,l=new X5e}else l=e?[]:o;e:for(;++n{const i=n.toString();let a=r[i];return a!==void 0||(a={atnStartState:t,decision:e,states:{}},r[i]=a),a}}k(ewe,"createDFACache");var My,twe=(My=class{constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,r){this.predicates[e]=r}toString(){let e="";const r=this.predicates.length;for(let n=0;nconsole.log(n))}initialize(e){this.atn=y6e(e.rules),this.dfas=rwe(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){const{prodOccurrence:r,rule:n,hasPredicates:i,dynamicTokensEnabled:a}=e,s=this.dfas,o=this.logging,l=zp(n,"Alternation",r),d=this.atn.decisionMap[l].decision,h=u0(n$({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:n}),f=>u0(f,p=>p[0]));if(v$(h,!1)&&!a){const f=toe(h,(p,g,m)=>(NL(g,y=>{y&&(p[y.tokenTypeIdx]=m,NL(y.categoryMatches,v=>{p[v]=m}))}),p),{});return i?function(p){var g;const m=this.LA(1),y=f[m.tokenTypeIdx];if(p!==void 0&&y!==void 0){const v=(g=p[y])===null||g===void 0?void 0:g.GATE;if(v!==void 0&&v.call(this)===!1)return}return y}:function(){const p=this.LA(1);return f[p.tokenTypeIdx]}}else return i?function(f){const p=new twe,g=f===void 0?0:f.length;for(let y=0;yu0(f,p=>p[0]));if(v$(h)&&h[0][0]&&!a){const f=h[0],p=j6t(f);if(p.length===1&&nwt(p[0].categoryMatches)){const m=p[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===m}}else{const g=toe(p,(m,y)=>(y!==void 0&&(m[y.tokenTypeIdx]=!0,NL(y.categoryMatches,v=>{m[v]=!0})),m),{});return function(){const m=this.LA(1);return g[m.tokenTypeIdx]===!0}}}return function(){const f=U5.call(this,s,d,roe,o);return typeof f=="object"?!1:f===0}}},k(Py,"LLStarLookaheadStrategy"),Py);function v$(t,e=!0){const r=new Set;for(const n of t){const i=new Set;for(const a of n){if(a===void 0){if(e)break;return!1}const s=[a.tokenTypeIdx].concat(a.categoryMatches);for(const o of s)if(r.has(o)){if(!i.has(o))return!1}else r.add(o),i.add(o)}}return!0}k(v$,"isLL1Sequence");function rwe(t){const e=t.decisionStates.length,r=Array(e);for(let n=0;nfp(i)).join(", "),r=t.production.idx===0?"":t.production.idx;let n=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${owe(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, <${e}> may appears as a prefix path in all these alternatives. `;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES -For Further details.`,n}k(swe,"buildAmbiguityError");function owe(t){if(t instanceof Vs)return"SUBRULE";if(t instanceof Za)return"OPTION";if(t instanceof wo)return"OR";if(t instanceof jo)return"AT_LEAST_ONE";if(t instanceof Qo)return"AT_LEAST_ONE_SEP";if(t instanceof Co)return"MANY_SEP";if(t instanceof Bi)return"MANY";if(t instanceof ii)return"CONSUME";throw Error("non exhaustive match")}k(owe,"getProductionDslName");function lwe(t,e,r){const n=M6t(e.configs.elements,a=>a.state.transitions),i=K6t(n.filter(a=>a instanceof dV).map(a=>a.tokenType),a=>a.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:i,tokenPath:t}}k(lwe,"buildAdaptivePredictError");function cwe(t,e){return t.edges[e.tokenTypeIdx]}k(cwe,"getExistingTargetState");function uwe(t,e,r){const n=new y$,i=[];for(const s of t.elements){if(r.is(s.alt)===!1)continue;if(s.state.type===JT){i.push(s);continue}const o=s.state.transitions.length;for(let l=0;l0&&!gwe(a))for(const s of i)a.add(s);return a}k(uwe,"computeReachSet");function dwe(t,e){if(t instanceof dV&&HH(e,t.tokenType))return t.target}k(dwe,"getReachableTarget");function hwe(t,e){let r;for(const n of t.elements)if(e.is(n.alt)===!0){if(r===void 0)r=n.alt;else if(r!==n.alt)return}return r}k(hwe,"getUniqueAlt");function vV(t){return{configs:t,edges:{},isAcceptState:!1,prediction:-1}}k(vV,"newDFAState");function _$(t,e,r,n){return n=_V(t,n),e.edges[r.tokenTypeIdx]=n,n}k(_$,"addDFAEdge");function _V(t,e){if(e===vw)return e;const r=e.configs.key,n=t.states[r];return n!==void 0?n:(e.configs.finalize(),t.states[r]=e,e)}k(_V,"addDFAState");function fwe(t){const e=new y$,r=t.transitions.length;for(let n=0;n0){const i=[...t.stack],s={state:i.pop(),alt:t.alt,stack:i};L4(s,e)}else e.add(t);return}r.epsilonOnlyTransitions||e.add(t);const n=r.transitions.length;for(let i=0;i1)return!0;return!1}k(_we,"hasConflictingAltSet");function bwe(t){for(const e of Array.from(t.values()))if(Object.keys(e).length===1)return!0;return!1}k(bwe,"hasStateAssociatedWithOneAlt");LT();var By,Ewe=(By=class{constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new EV(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const r=new zA;return r.grammarSource=e,r.root=this.rootNode,this.current.content.push(r),this.nodeStack.push(r),r}buildLeafNode(e,r){const n=new _w(e.startOffset,e.image.length,E4(e),e.tokenType,!r);return n.grammarSource=r,n.root=this.rootNode,this.current.content.push(n),n}removeNode(e){const r=e.container;if(r){const n=r.content.indexOf(e);n>=0&&r.content.splice(n,1)}}addHiddenNodes(e){const r=[];for(const a of e){const s=new _w(a.startOffset,a.image.length,E4(a),a.tokenType,!0);s.root=this.rootNode,r.push(s)}let n=this.current,i=!1;if(n.content.length>0){n.content.push(...r);return}for(;n.container;){const a=n.container.content.indexOf(n);if(a>0){n.container.content.splice(a,0,...r),i=!0;break}n=n.container}i||this.rootNode.content.unshift(...r)}construct(e){const r=this.current;typeof e.$type=="string"&&!e.$infix&&(this.current.astNode=e),e.$cstNode=r;const n=this.nodeStack.pop();n?.content.length===0&&this.removeNode(n)}},k(By,"CstNodeBuilder"),By),Fy,bV=(Fy=class{get hidden(){return!1}get astNode(){const e=typeof this._astNode?.$type=="string"?this._astNode:this.container?.astNode;if(!e)throw new Error("This node has no associated AST element");return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},k(Fy,"AbstractCstNode"),Fy),$y,_w=($y=class extends bV{get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,r,n,i,a=!1){super(),this._hidden=a,this._offset=e,this._tokenType=i,this._length=r,this._range=n}},k($y,"LeafCstNodeImpl"),$y),zy,zA=(zy=class extends bV{constructor(){super(...arguments),this.content=new swt(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){const e=this.firstNonHiddenNode,r=this.lastNonHiddenNode;if(e&&r){if(this._rangeCache===void 0){const{range:n}=e,{range:i}=r;this._rangeCache={start:n.start,end:i.end.line=0;e--){const r=this.content[e];if(!r.hidden)return r}return this.content[this.content.length-1]}},k(zy,"CompositeCstNodeImpl"),zy),yp,swt=(yp=class extends Array{constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,yp.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,r,...n){return this.addParents(n),super.splice(e,r,...n)}addParents(e){for(const r of e)r.container=this.parent}},k(yp,"CstNodeContainer"),yp),Uy,EV=(Uy=class extends zA{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}},k(Uy,"RootCstNodeImpl"),Uy),bw=Symbol("Datatype");function G5(t){return t.$type===bw}k(G5,"isDataTypeNode");var noe="​",Swe=k(t=>t.endsWith(noe)?t:t+noe,"withRuleSuffix"),Gy,SV=(Gy=class{constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;const r=this.lexer.definition,n=e.LanguageMetaData.mode==="production";e.shared.profilers.LangiumProfiler?.isActive("parsing")?this.wrapper=new lwt(r,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new wwe(r,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,r){this.wrapper.wrapOr(e,r)}optional(e,r){this.wrapper.wrapOption(e,r)}many(e,r){this.wrapper.wrapMany(e,r)}atLeastOne(e,r){this.wrapper.wrapAtLeastOne(e,r)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},k(Gy,"AbstractLangiumParser"),Gy),qy,Twe=(qy=class extends SV{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new Ewe,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,r){const n=this.computeRuleType(e);let i;_b(e)&&(i=e.name,this.registerPrecedenceMap(e));const a=this.wrapper.DEFINE_RULE(Swe(e.name),this.startImplementation(n,i,r).bind(this));return this.allRules.set(e.name,a),Hs(e)&&e.entry&&(this.mainRule=a),a}registerPrecedenceMap(e){const r=e.name,n=new Map;for(let i=0;i0&&(r=this.construct()),r===void 0)throw new Error("No result from parser");if(this.stack.length>0)throw new Error("Parser stack is not empty after parsing");return r}startImplementation(e,r,n){return i=>{const a=!this.isRecording()&&e!==void 0;if(a){const s={$type:e};this.stack.push(s),e===bw?s.value="":r!==void 0&&(s.$infixName=r)}return n(i),a?this.construct():void 0}}extractHiddenTokens(e){const r=this.lexerResult.hidden;if(!r.length)return[];const n=e.startOffset;for(let i=0;in)return r.splice(0,i);return r.splice(0,r.length)}consume(e,r,n){const i=this.wrapper.wrapConsume(e,r);if(!this.isRecording()&&this.isValidToken(i)){const a=this.extractHiddenTokens(i);this.nodeBuilder.addHiddenNodes(a);const s=this.nodeBuilder.buildLeafNode(i,n),{assignment:o,crossRef:l}=this.getAssignment(n),u=this.current;if(o){const d=O0(n)?i.image:this.converter.convert(i.image,s);this.assign(o.operator,o.feature,d,s,l)}else if(G5(u)){let d=i.image;O0(n)||(d=this.converter.convert(d,s).toString()),u.value+=d}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,r,n,i,a){let s;!this.isRecording()&&!n&&(s=this.nodeBuilder.buildCompositeNode(i));let o;try{o=this.wrapper.wrapSubrule(e,r,a)}finally{this.isRecording()||(o===void 0&&!n&&(o=this.construct()),o!==void 0&&s&&s.length>0&&this.performSubruleAssignment(o,i,s))}}performSubruleAssignment(e,r,n){const{assignment:i,crossRef:a}=this.getAssignment(r);if(i)this.assign(i.operator,i.feature,e,n,a);else if(!i){const s=this.current;if(G5(s))s.value+=e.toString();else if(typeof e=="object"&&e){const l=this.assignWithoutOverride(e,s);this.stack.pop(),this.stack.push(l)}}}action(e,r){if(!this.isRecording()){let n=this.current;if(r.feature&&r.operator){n=this.construct(),this.nodeBuilder.removeNode(n.$cstNode),this.nodeBuilder.buildCompositeNode(r).content.push(n.$cstNode);const a={$type:e};this.stack.push(a),this.assign(r.operator,r.feature,n,n.$cstNode)}else n.$type=e}}construct(){if(this.isRecording())return;const e=this.stack.pop();return this.nodeBuilder.construct(e),"$infixName"in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):G5(e)?this.converter.convert(e.value,e.$cstNode):(bY(this.astReflection,e),e)}constructInfix(e,r){const n=e.parts;if(!Array.isArray(n)||n.length===0)return;const i=e.operators;if(!Array.isArray(i)||n.length<2)return n[0];let a=0,s=-1;for(let m=0;ms?(s=v.precedence,a=m):v.precedence===s&&(v.rightAssoc||(a=m))}const o=i.slice(0,a),l=i.slice(a+1),u=n.slice(0,a+1),d=n.slice(a+1),h={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:o},f={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:d,operators:l},p=this.constructInfix(h,r),g=this.constructInfix(f,r);return{$type:e.$type,$cstNode:e.$cstNode,left:p,operator:i[a],right:g}}getAssignment(e){if(!this.assignmentMap.has(e)){const r=cg(e,I0);this.assignmentMap.set(e,{assignment:r,crossRef:r&&dg(r.terminal)?r.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,r,n,i,a){const s=this.current;let o;switch(a==="single"&&typeof n=="string"?o=this.linker.buildReference(s,r,i,n):a==="multi"&&typeof n=="string"?o=this.linker.buildMultiReference(s,r,i,n):o=n,e){case"=":{s[r]=o;break}case"?=":{s[r]=!0;break}case"+=":Array.isArray(s[r])||(s[r]=[]),s[r].push(o)}}assignWithoutOverride(e,r){for(const[i,a]of Object.entries(r)){const s=e[i];s===void 0?e[i]=a:Array.isArray(s)&&Array.isArray(a)&&(a.push(...s),e[i]=a)}const n=e.$cstNode;return n&&(n.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},k(qy,"LangiumParser"),qy),Yy,xwe=(Yy=class{buildMismatchTokenMessage(e){return Bm.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return Bm.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return Bm.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return Bm.buildEarlyExitMessage(e)}},k(Yy,"AbstractParserErrorMessageProvider"),Yy),Hy,TV=(Hy=class extends xwe{buildMismatchTokenMessage({expected:e,actual:r}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${r.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},k(Hy,"LangiumParserErrorMessageProvider"),Hy),Vy,Cwe=(Vy=class extends SV{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();const r=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=r.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,r){const n=this.wrapper.DEFINE_RULE(Swe(e.name),this.startImplementation(r).bind(this));return this.allRules.set(e.name,n),e.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return r=>{const n=this.keepStackSize();try{e(r)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,r,n){this.wrapper.wrapConsume(e,r),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,r,n,i,a){this.before(i),this.wrapper.wrapSubrule(e,r,a),this.after(i)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){const r=this.elementStack.lastIndexOf(e);r>=0&&this.elementStack.splice(r)}}get currIdx(){return this.wrapper.currIdx}},k(Vy,"LangiumCompletionParser"),Vy),owt={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new TV},Wy,wwe=(Wy=class extends Wxt{constructor(e,r){const n=r&&"maxLookahead"in r;super(e,{...owt,lookaheadStrategy:n?new ZH({maxLookahead:r.maxLookahead}):new awt({logging:r.skipValidations?()=>{}:void 0}),...r})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,r,n){return this.RULE(e,r,n)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,r){return this.consume(e,r,void 0)}wrapSubrule(e,r,n){return this.subrule(e,r,{ARGS:[n]})}wrapOr(e,r){this.or(e,r)}wrapOption(e,r){this.option(e,r)}wrapMany(e,r){this.many(e,r)}wrapAtLeastOne(e,r){this.atLeastOne(e,r)}rule(e){return e.call(this,{})}},k(Wy,"ChevrotainWrapper"),Wy),Ky,lwt=(Ky=class extends wwe{constructor(e,r,n){super(e,r),this.task=n}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,r,n){this.task.startSubTask(this.ruleName(r));try{return super.subrule(e,r,n)}finally{this.task.stopSubTask(this.ruleName(r))}}},k(Ky,"ProfilerWrapper"),Ky);function UA(t,e,r){return kwe({parser:e,tokens:r,ruleNames:new Map},t),e}k(UA,"createParser");function kwe(t,e){const r=rA(e,!1),n=Mn(e.rules).filter(Hs).filter(a=>r.has(a));for(const a of n){const s={...t,consume:1,optional:1,subrule:1,many:1,or:1};t.parser.rule(a,kh(s,a.definition))}const i=Mn(e.rules).filter(_b).filter(a=>r.has(a));for(const a of i)t.parser.rule(a,Awe(t,a))}k(kwe,"buildRules");function Awe(t,e){const r=e.call.rule.ref;if(!r)throw new Error("Could not resolve reference to infix operator rule: "+e.call.rule.$refText);if(Pl(r))throw new Error("Cannot use terminal rule in infix expression");const n=e.operators.precedences.flatMap(p=>p.operators),i={$type:"Group",elements:[]},a={$container:i,$type:"Assignment",feature:"parts",operator:"+=",terminal:e.call},s={$container:i,$type:"Group",elements:[],cardinality:"*"};i.elements.push(a,s);const l={$container:s,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:n}},u={...a,$container:s};s.elements.push(l,u);const h=n.map(p=>t.tokens[p.value]).map((p,g)=>({ALT:k(()=>t.parser.consume(g,p,l),"ALT")}));let f;return p=>{f??(f=GA(t,r)),t.parser.subrule(0,f,!1,a,p),t.parser.many(0,{DEF:k(()=>{t.parser.alternatives(0,h),t.parser.subrule(1,f,!1,u,p)},"DEF")})}}k(Awe,"buildInfixRule");function kh(t,e,r=!1){let n;if(O0(e))n=Mwe(t,e);else if(Th(e))n=Rwe(t,e);else if(I0(e))n=kh(t,e.terminal);else if(dg(e))n=xV(t,e);else if(D0(e))n=Nwe(t,e);else if(W7(e))n=Owe(t,e);else if(Q7(e))n=Dwe(t,e);else if(hg(e))n=Lwe(t,e);else if(kY(e)){const i=t.consume++;n=k(()=>t.parser.consume(i,Ch,e),"method")}else throw new J7(e.$cstNode,`Unexpected element type: ${e.$type}`);return CV(t,r?void 0:M4(e),n,e.cardinality)}k(kh,"buildElement");function Rwe(t,e){const r=Bp(e);return()=>t.parser.action(r,e)}k(Rwe,"buildAction");function Nwe(t,e){const r=e.rule.ref;if(ug(r)){const n=t.subrule++,i=Hs(r)&&r.fragment,a=e.arguments.length>0?Iwe(r,e.arguments):()=>({});let s;return o=>{s??(s=GA(t,r)),t.parser.subrule(n,s,i,e,a(o))}}else if(Pl(r)){const n=t.consume++,i=Ew(t,r.name);return()=>t.parser.consume(n,i,e)}else if(r)Gh();else throw new J7(e.$cstNode,`Undefined rule: ${e.rule.$refText}`)}k(Nwe,"buildRuleCall");function Iwe(t,e){if(e.some(n=>n.calledByName)){const n=e.map(i=>({parameterName:i.parameter?.ref?.name,predicate:Xl(i.value)}));return i=>{const a={};for(const{parameterName:s,predicate:o}of n)s&&(a[s]=o(i));return a}}else{const n=e.map(i=>Xl(i.value));return i=>{const a={};for(let s=0;se(n)||r(n)}else if(CY(t)){const e=Xl(t.left),r=Xl(t.right);return n=>e(n)&&r(n)}else if(NY(t)){const e=Xl(t.value);return r=>!e(r)}else if(IY(t)){const e=t.parameter.ref.name;return r=>r!==void 0&&r[e]===!0}else if(TY(t)){const e=!!t.true;return()=>e}Gh()}k(Xl,"buildPredicate");function Owe(t,e){if(e.elements.length===1)return kh(t,e.elements[0]);{const r=[];for(const i of e.elements){const a={ALT:kh(t,i,!0)},s=M4(i);s&&(a.GATE=Xl(s)),r.push(a)}const n=t.or++;return i=>t.parser.alternatives(n,r.map(a=>{const s={ALT:k(()=>a.ALT(i),"ALT")},o=a.GATE;return o&&(s.GATE=()=>o(i)),s}))}}k(Owe,"buildAlternatives");function Dwe(t,e){if(e.elements.length===1)return kh(t,e.elements[0]);const r=[];for(const o of e.elements){const l={ALT:kh(t,o,!0)},u=M4(o);u&&(l.GATE=Xl(u)),r.push(l)}const n=t.or++,i=k((o,l)=>{const u=l.getRuleStack().join("-");return`uGroup_${o}_${u}`},"idFunc"),a=k(o=>t.parser.alternatives(n,r.map((l,u)=>{const d={ALT:k(()=>!0,"ALT")},h=t.parser;d.ALT=()=>{if(l.ALT(o),!h.isRecording()){const p=i(n,h);h.unorderedGroups.get(p)||h.unorderedGroups.set(p,[]);const g=h.unorderedGroups.get(p);typeof g?.[u]>"u"&&(g[u]=!0)}};const f=l.GATE;return f?d.GATE=()=>f(o):d.GATE=()=>!h.unorderedGroups.get(i(n,h))?.[u],d})),"alternatives"),s=CV(t,M4(e),a,"*");return o=>{s(o),t.parser.isRecording()||t.parser.unorderedGroups.delete(i(n,t.parser))}}k(Dwe,"buildUnorderedGroup");function Lwe(t,e){const r=e.elements.map(n=>kh(t,n));return n=>r.forEach(i=>i(n))}k(Lwe,"buildGroup");function M4(t){if(hg(t))return t.guardCondition}k(M4,"getGuardCondition");function xV(t,e,r=e.terminal){if(r)if(D0(r)&&Hs(r.rule.ref)){const n=r.rule.ref,i=t.subrule++;let a;return s=>{a??(a=GA(t,n)),t.parser.subrule(i,a,!1,e,s)}}else if(D0(r)&&Pl(r.rule.ref)){const n=t.consume++,i=Ew(t,r.rule.ref.name);return()=>t.parser.consume(n,i,e)}else if(O0(r)){const n=t.consume++,i=Ew(t,r.value);return()=>t.parser.consume(n,i,e)}else throw new Error("Could not build cross reference parser");else{if(!e.type.ref)throw new Error("Could not resolve reference to type: "+e.type.$refText);const i=sA(e.type.ref)?.terminal;if(!i)throw new Error("Could not find name assignment for type: "+Bp(e.type.ref));return xV(t,e,i)}}k(xV,"buildCrossReference");function Mwe(t,e){const r=t.consume++,n=t.tokens[e.value];if(!n)throw new Error("Could not find token for keyword: "+e.value);return()=>t.parser.consume(r,n,e)}k(Mwe,"buildKeyword");function CV(t,e,r,n){const i=e&&Xl(e);if(!n)if(i){const a=t.or++;return s=>t.parser.alternatives(a,[{ALT:k(()=>r(s),"ALT"),GATE:k(()=>i(s),"GATE")},{ALT:h$(),GATE:k(()=>!i(s),"GATE")}])}else return r;if(n==="*"){const a=t.many++;return s=>t.parser.many(a,{DEF:k(()=>r(s),"DEF"),GATE:i?()=>i(s):void 0})}else if(n==="+"){const a=t.many++;if(i){const s=t.or++;return o=>t.parser.alternatives(s,[{ALT:k(()=>t.parser.atLeastOne(a,{DEF:k(()=>r(o),"DEF")}),"ALT"),GATE:k(()=>i(o),"GATE")},{ALT:h$(),GATE:k(()=>!i(o),"GATE")}])}else return s=>t.parser.atLeastOne(a,{DEF:k(()=>r(s),"DEF")})}else if(n==="?"){const a=t.optional++;return s=>t.parser.optional(a,{DEF:k(()=>r(s),"DEF"),GATE:i?()=>i(s):void 0})}else Gh()}k(CV,"wrap");function GA(t,e){const r=Pwe(t,e),n=t.parser.getRule(r);if(!n)throw new Error(`Rule "${r}" not found."`);return n}k(GA,"getRule");function Pwe(t,e){if(ug(e))return e.name;if(t.ruleNames.has(e))return t.ruleNames.get(e);{let r=e,n=r.$container,i=e.$type;for(;!Hs(n);)(hg(n)||W7(n)||Q7(n))&&(i=n.elements.indexOf(r).toString()+":"+i),r=n,n=n.$container;return i=n.name+":"+i,t.ruleNames.set(e,i),i}}k(Pwe,"getRuleName");function Ew(t,e){const r=t.tokens[e];if(!r)throw new Error(`Token "${e}" not found."`);return r}k(Ew,"getToken");function wV(t){const e=t.Grammar,r=t.parser.Lexer,n=new Cwe(t);return UA(e,n,r.definition),n.finalize(),n}k(wV,"createCompletionParser");function kV(t){const e=AV(t);return e.finalize(),e}k(kV,"createLangiumParser");function AV(t){const e=t.Grammar,r=t.parser.Lexer,n=new Twe(t);return UA(e,n,r.definition)}k(AV,"prepareLangiumParser");var Xy,qA=(Xy=class{constructor(){this.diagnostics=[]}buildTokens(e,r){const n=Mn(rA(e,!1)),i=this.buildTerminalTokens(n),a=this.buildKeywordTokens(n,i,r);return a.push(...i),a}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(Pl).filter(r=>!r.fragment).map(r=>this.buildTerminalToken(r)).toArray()}buildTerminalToken(e){const r=zT(e),n=this.requiresCustomPattern(r)?this.regexPatternFunction(r):r,i={name:e.name,PATTERN:n};return typeof n=="function"&&(i.LINE_BREAKS=!0),e.hidden&&(i.GROUP=tA(r)?Us.SKIPPED:"hidden"),i}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s"))}regexPatternFunction(e){const r=new RegExp(e,e.flags+"y");return(n,i)=>(r.lastIndex=i,r.exec(n))}buildKeywordTokens(e,r,n){return e.filter(ug).flatMap(i=>rd(i).filter(O0)).distinct(i=>i.value).toArray().sort((i,a)=>a.value.length-i.value.length).map(i=>this.buildKeywordToken(i,r,!!n?.caseInsensitive))}buildKeywordToken(e,r,n){const i=this.buildKeywordPattern(e,n),a={name:e.value,PATTERN:i,LONGER_ALT:this.findLongerAlt(e,r)};return typeof i=="function"&&(a.LINE_BREAKS=!0),a}buildKeywordPattern(e,r){return r?new RegExp(u2(e.value),"i"):e.value}findLongerAlt(e,r){return r.reduce((n,i)=>{const a=i?.PATTERN;return a?.source&&JY("^"+a.source+"$",e.value)&&n.push(i),n},[])}},k(Xy,"DefaultTokenBuilder"),Xy),jy,RV=(jy=class{convert(e,r){let n=r.grammarSource;if(dg(n)&&(n=iH(n)),D0(n)){const i=n.rule.ref;if(!i)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(i,e,r)}return e}runConverter(e,r,n){switch(e.name.toUpperCase()){case"INT":return Mc.convertInt(r);case"STRING":return Mc.convertString(r);case"ID":return Mc.convertID(r)}switch(fH(e)?.toLowerCase()){case"number":return Mc.convertNumber(r);case"boolean":return Mc.convertBoolean(r);case"bigint":return Mc.convertBigint(r);case"date":return Mc.convertDate(r);default:return r}}},k(jy,"DefaultValueConverter"),jy),Mc;(function(t){function e(u){let d="";for(let h=1;h{typeof setImmediate>"u"?setTimeout(t,0):setImmediate(t)})}k(YA,"delayNextTick");var q5=0,Bwe=10;function HA(){return q5=performance.now(),new Xn.CancellationTokenSource}k(HA,"startCancelableOperation");function NV(t){Bwe=t}k(NV,"setInterruptionPeriod");var Qc=Symbol("OperationCancelled");function kg(t){return t===Qc}k(kg,"isOperationCancelled");async function Ma(t){if(t===Xn.CancellationToken.None)return;const e=performance.now();if(e-q5>=Bwe&&(q5=e,await YA(),q5=performance.now()),t.isCancellationRequested)throw Qc}k(Ma,"interruptAndCheck");var Qy,F0=(Qy=class{constructor(){this.promise=new Promise((e,r)=>{this.resolve=n=>(e(n),this),this.reject=n=>(r(n),this)})}},k(Qy,"Deferred"),Qy),jd,ioe=(jd=class{constructor(e,r,n,i){this._uri=e,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const r=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(r,n)}return this._content}update(e,r){for(const n of e)if(jd.isIncremental(n)){const i=OV(n.range),a=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,a)+n.text+this._content.substring(s,this._content.length);const o=Math.max(i.start.line,0),l=Math.max(i.end.line,0);let u=this._lineOffsets;const d=b$(n.text,!1,a);if(l-o===d.length)for(let f=0,p=d.length;fe?i=s:n=s+1}const a=n-1;return e=this.ensureBeforeEOL(e,r[a]),{line:a,character:e-r[a]}}offsetAt(e){const r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;const n=r[e.line];if(e.character<=0)return n;const i=e.line+1r&&IV(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const r=e;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(e){const r=e;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},k(jd,"FullTextDocument"),jd),Sw;(function(t){function e(i,a,s,o){return new ioe(i,a,s,o)}k(e,"create"),t.create=e;function r(i,a,s){if(i instanceof ioe)return i.update(a,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}k(r,"update"),t.update=r;function n(i,a){const s=i.getText(),o=Tw(a.map(Fwe),(d,h)=>{const f=d.range.start.line-h.range.start.line;return f===0?d.range.start.character-h.range.start.character:f});let l=0;const u=[];for(const d of o){const h=i.offsetAt(d.range.start);if(hl&&u.push(s.substring(l,h)),d.newText.length&&u.push(d.newText),l=i.offsetAt(d.range.end)}return u.push(s.substr(l)),u.join("")}k(n,"applyEdits"),t.applyEdits=n})(Sw||(Sw={}));function Tw(t,e){if(t.length<=1)return t;const r=t.length/2|0,n=t.slice(0,r),i=t.slice(r);Tw(n,e),Tw(i,e);let a=0,s=0,o=0;for(;ar.line||e.line===r.line&&e.character>r.character?{start:r,end:e}:t}k(OV,"getWellformedRange");function Fwe(t){const e=OV(t.range);return e!==t.range?{newText:t.newText,range:e}:t}k(Fwe,"getWellformedEdit");var $we;(()=>{var t={975:F=>{function A(L){if(typeof L!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(L))}k(A,"e");function I(L,R){for(var P,z="",B=0,q=-1,Y=0,Q=0;Q<=L.length;++Q){if(Q2){var H=z.lastIndexOf("/");if(H!==z.length-1){H===-1?(z="",B=0):B=(z=z.slice(0,H)).length-1-z.lastIndexOf("/"),q=Q,Y=0;continue}}else if(z.length===2||z.length===1){z="",B=0,q=Q,Y=0;continue}}R&&(z.length>0?z+="/..":z="..",B=2)}else z.length>0?z+="/"+L.slice(q+1,Q):z=L.slice(q+1,Q),B=Q-q-1;q=Q,Y=0}else P===46&&Y!==-1?++Y:Y=-1}return z}k(I,"r");var D={resolve:k(function(){for(var L,R="",P=!1,z=arguments.length-1;z>=-1&&!P;z--){var B;z>=0?B=arguments[z]:(L===void 0&&(L=process.cwd()),B=L),A(B),B.length!==0&&(R=B+"/"+R,P=B.charCodeAt(0)===47)}return R=I(R,!P),P?R.length>0?"/"+R:"/":R.length>0?R:"."},"resolve"),normalize:k(function(L){if(A(L),L.length===0)return".";var R=L.charCodeAt(0)===47,P=L.charCodeAt(L.length-1)===47;return(L=I(L,!R)).length!==0||R||(L="."),L.length>0&&P&&(L+="/"),R?"/"+L:L},"normalize"),isAbsolute:k(function(L){return A(L),L.length>0&&L.charCodeAt(0)===47},"isAbsolute"),join:k(function(){if(arguments.length===0)return".";for(var L,R=0;R0&&(L===void 0?L=P:L+="/"+P)}return L===void 0?".":D.normalize(L)},"join"),relative:k(function(L,R){if(A(L),A(R),L===R||(L=D.resolve(L))===(R=D.resolve(R)))return"";for(var P=1;PQ){if(R.charCodeAt(q+J)===47)return R.slice(q+J+1);if(J===0)return R.slice(q+J)}else B>Q&&(L.charCodeAt(P+J)===47?H=J:J===0&&(H=0));break}var Z=L.charCodeAt(P+J);if(Z!==R.charCodeAt(q+J))break;Z===47&&(H=J)}var pe="";for(J=P+H+1;J<=z;++J)J!==z&&L.charCodeAt(J)!==47||(pe.length===0?pe+="..":pe+="/..");return pe.length>0?pe+R.slice(q+H):(q+=H,R.charCodeAt(q)===47&&++q,R.slice(q))},"relative"),_makeLong:k(function(L){return L},"_makeLong"),dirname:k(function(L){if(A(L),L.length===0)return".";for(var R=L.charCodeAt(0),P=R===47,z=-1,B=!0,q=L.length-1;q>=1;--q)if((R=L.charCodeAt(q))===47){if(!B){z=q;break}}else B=!1;return z===-1?P?"/":".":P&&z===1?"//":L.slice(0,z)},"dirname"),basename:k(function(L,R){if(R!==void 0&&typeof R!="string")throw new TypeError('"ext" argument must be a string');A(L);var P,z=0,B=-1,q=!0;if(R!==void 0&&R.length>0&&R.length<=L.length){if(R.length===L.length&&R===L)return"";var Y=R.length-1,Q=-1;for(P=L.length-1;P>=0;--P){var H=L.charCodeAt(P);if(H===47){if(!q){z=P+1;break}}else Q===-1&&(q=!1,Q=P+1),Y>=0&&(H===R.charCodeAt(Y)?--Y==-1&&(B=P):(Y=-1,B=Q))}return z===B?B=Q:B===-1&&(B=L.length),L.slice(z,B)}for(P=L.length-1;P>=0;--P)if(L.charCodeAt(P)===47){if(!q){z=P+1;break}}else B===-1&&(q=!1,B=P+1);return B===-1?"":L.slice(z,B)},"basename"),extname:k(function(L){A(L);for(var R=-1,P=0,z=-1,B=!0,q=0,Y=L.length-1;Y>=0;--Y){var Q=L.charCodeAt(Y);if(Q!==47)z===-1&&(B=!1,z=Y+1),Q===46?R===-1?R=Y:q!==1&&(q=1):R!==-1&&(q=-1);else if(!B){P=Y+1;break}}return R===-1||z===-1||q===0||q===1&&R===z-1&&R===P+1?"":L.slice(R,z)},"extname"),format:k(function(L){if(L===null||typeof L!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof L);return(function(R,P){var z=P.dir||P.root,B=P.base||(P.name||"")+(P.ext||"");return z?z===P.root?z+B:z+"/"+B:B})(0,L)},"format"),parse:k(function(L){A(L);var R={root:"",dir:"",base:"",ext:"",name:""};if(L.length===0)return R;var P,z=L.charCodeAt(0),B=z===47;B?(R.root="/",P=1):P=0;for(var q=-1,Y=0,Q=-1,H=!0,J=L.length-1,Z=0;J>=P;--J)if((z=L.charCodeAt(J))!==47)Q===-1&&(H=!1,Q=J+1),z===46?q===-1?q=J:Z!==1&&(Z=1):q!==-1&&(Z=-1);else if(!H){Y=J+1;break}return q===-1||Q===-1||Z===0||Z===1&&q===Q-1&&q===Y+1?Q!==-1&&(R.base=R.name=Y===0&&B?L.slice(1,Q):L.slice(Y,Q)):(Y===0&&B?(R.name=L.slice(1,q),R.base=L.slice(1,Q)):(R.name=L.slice(Y,q),R.base=L.slice(Y,Q)),R.ext=L.slice(q,Q)),Y>0?R.dir=L.slice(0,Y-1):B&&(R.dir="/"),R},"parse"),sep:"/",delimiter:":",win32:null,posix:null};D.posix=D,F.exports=D}},e={};function r(F){var A=e[F];if(A!==void 0)return A.exports;var I=e[F]={exports:{}};return t[F](I,I.exports,r),I.exports}k(r,"r"),r.d=(F,A)=>{for(var I in A)r.o(A,I)&&!r.o(F,I)&&Object.defineProperty(F,I,{enumerable:!0,get:A[I]})},r.o=(F,A)=>Object.prototype.hasOwnProperty.call(F,A),r.r=F=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(F,"__esModule",{value:!0})};var n={};let i;r.r(n),r.d(n,{URI:k(()=>f,"URI"),Utils:k(()=>O,"Utils")}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const a=/^\w[\w\d+.-]*$/,s=/^\//,o=/^\/\//;function l(F,A){if(!F.scheme&&A)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${F.authority}", path: "${F.path}", query: "${F.query}", fragment: "${F.fragment}"}`);if(F.scheme&&!a.test(F.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(F.path){if(F.authority){if(!s.test(F.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(o.test(F.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}k(l,"a");const u="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,M=class M{static isUri(A){return A instanceof M||!!A&&typeof A.authority=="string"&&typeof A.fragment=="string"&&typeof A.path=="string"&&typeof A.query=="string"&&typeof A.scheme=="string"&&typeof A.fsPath=="string"&&typeof A.with=="function"&&typeof A.toString=="function"}scheme;authority;path;query;fragment;constructor(A,I,D,L,R,P=!1){typeof A=="object"?(this.scheme=A.scheme||u,this.authority=A.authority||u,this.path=A.path||u,this.query=A.query||u,this.fragment=A.fragment||u):(this.scheme=(function(z,B){return z||B?z:"file"})(A,P),this.authority=I||u,this.path=(function(z,B){switch(z){case"https":case"http":case"file":B?B[0]!==d&&(B=d+B):B=d}return B})(this.scheme,D||u),this.query=L||u,this.fragment=R||u,l(this,P))}get fsPath(){return b(this,!1)}with(A){if(!A)return this;let{scheme:I,authority:D,path:L,query:R,fragment:P}=A;return I===void 0?I=this.scheme:I===null&&(I=u),D===void 0?D=this.authority:D===null&&(D=u),L===void 0?L=this.path:L===null&&(L=u),R===void 0?R=this.query:R===null&&(R=u),P===void 0?P=this.fragment:P===null&&(P=u),I===this.scheme&&D===this.authority&&L===this.path&&R===this.query&&P===this.fragment?this:new g(I,D,L,R,P)}static parse(A,I=!1){const D=h.exec(A);return D?new g(D[2]||u,C(D[4]||u),C(D[5]||u),C(D[7]||u),C(D[9]||u),I):new g(u,u,u,u,u)}static file(A){let I=u;if(i&&(A=A.replace(/\\/g,d)),A[0]===d&&A[1]===d){const D=A.indexOf(d,2);D===-1?(I=A.substring(2),A=d):(I=A.substring(2,D),A=A.substring(D)||d)}return new g("file",I,A,u,u)}static from(A){const I=new g(A.scheme,A.authority,A.path,A.query,A.fragment);return l(I,!0),I}toString(A=!1){return _(this,A)}toJSON(){return this}static revive(A){if(A){if(A instanceof M)return A;{const I=new g(A);return I._formatted=A.external,I._fsPath=A._sep===p?A.fsPath:null,I}}return A}};k(M,"l");let f=M;const p=i?1:void 0,$=class $ extends f{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(A=!1){return A?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const A={$mid:1};return this._fsPath&&(A.fsPath=this._fsPath,A._sep=p),this._formatted&&(A.external=this._formatted),this.path&&(A.path=this.path),this.scheme&&(A.scheme=this.scheme),this.authority&&(A.authority=this.authority),this.query&&(A.query=this.query),this.fragment&&(A.fragment=this.fragment),A}};k($,"d");let g=$;const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function y(F,A,I){let D,L=-1;for(let R=0;R=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===45||P===46||P===95||P===126||A&&P===47||I&&P===91||I&&P===93||I&&P===58)L!==-1&&(D+=encodeURIComponent(F.substring(L,R)),L=-1),D!==void 0&&(D+=F.charAt(R));else{D===void 0&&(D=F.substr(0,R));const z=m[P];z!==void 0?(L!==-1&&(D+=encodeURIComponent(F.substring(L,R)),L=-1),D+=z):L===-1&&(L=R)}}return L!==-1&&(D+=encodeURIComponent(F.substring(L))),D!==void 0?D:F}k(y,"m");function v(F){let A;for(let I=0;I1&&F.scheme==="file"?`//${F.authority}${F.path}`:F.path.charCodeAt(0)===47&&(F.path.charCodeAt(1)>=65&&F.path.charCodeAt(1)<=90||F.path.charCodeAt(1)>=97&&F.path.charCodeAt(1)<=122)&&F.path.charCodeAt(2)===58?A?F.path.substr(1):F.path[1].toLowerCase()+F.path.substr(2):F.path,i&&(I=I.replace(/\//g,"\\")),I}k(b,"v");function _(F,A){const I=A?v:y;let D="",{scheme:L,authority:R,path:P,query:z,fragment:B}=F;if(L&&(D+=L,D+=":"),(R||L==="file")&&(D+=d,D+=d),R){let q=R.indexOf("@");if(q!==-1){const Y=R.substr(0,q);R=R.substr(q+1),q=Y.lastIndexOf(":"),q===-1?D+=I(Y,!1,!1):(D+=I(Y.substr(0,q),!1,!1),D+=":",D+=I(Y.substr(q+1),!1,!0)),D+="@"}R=R.toLowerCase(),q=R.lastIndexOf(":"),q===-1?D+=I(R,!1,!0):(D+=I(R.substr(0,q),!1,!0),D+=R.substr(q))}if(P){if(P.length>=3&&P.charCodeAt(0)===47&&P.charCodeAt(2)===58){const q=P.charCodeAt(1);q>=65&&q<=90&&(P=`/${String.fromCharCode(q+32)}:${P.substr(3)}`)}else if(P.length>=2&&P.charCodeAt(1)===58){const q=P.charCodeAt(0);q>=65&&q<=90&&(P=`${String.fromCharCode(q+32)}:${P.substr(2)}`)}D+=I(P,!0,!1)}return z&&(D+="?",D+=I(z,!1,!1)),B&&(D+="#",D+=A?B:y(B,!1,!1)),D}k(_,"b");function E(F){try{return decodeURIComponent(F)}catch{return F.length>3?F.substr(0,3)+E(F.substr(3)):F}}k(E,"C");const x=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(F){return F.match(x)?F.replace(x,(A=>E(A))):F}k(C,"w");var T=r(975);const w=T.posix||T,N="/";var O;(function(F){F.joinPath=function(A,...I){return A.with({path:w.join(A.path,...I)})},F.resolvePath=function(A,...I){let D=A.path,L=!1;D[0]!==N&&(D=N+D,L=!0);let R=w.resolve(D,...I);return L&&R[0]===N&&!A.authority&&(R=R.substring(1)),A.with({path:R})},F.dirname=function(A){if(A.path.length===0||A.path===N)return A;let I=w.dirname(A.path);return I.length===1&&I.charCodeAt(0)===46&&(I=""),A.with({path:I})},F.basename=function(A){return w.basename(A.path)},F.extname=function(A){return w.extname(A.path)}})(O||(O={})),$we=n})();var{URI:Lo,Utils:X2}=$we,Fs;(function(t){t.basename=X2.basename,t.dirname=X2.dirname,t.extname=X2.extname,t.joinPath=X2.joinPath,t.resolvePath=X2.resolvePath;const e=typeof process=="object"&&process?.platform==="win32";function r(s,o){return s?.toString()===o?.toString()}k(r,"equals"),t.equals=r;function n(s,o){const l=typeof s=="string"?Lo.parse(s).path:s.path,u=typeof o=="string"?Lo.parse(o).path:o.path,d=l.split("/").filter(m=>m.length>0),h=u.split("/").filter(m=>m.length>0);if(e){const m=/^[A-Z]:$/;if(d[0]&&m.test(d[0])&&(d[0]=d[0].toLowerCase()),h[0]&&m.test(h[0])&&(h[0]=h[0].toLowerCase()),d[0]!==h[0])return u.substring(1)}let f=0;for(;f({name:i.name,uri:Fs.joinPath(Lo.parse(r),i.name).toString(),element:i.element})):[]}all(){return this.collectValues(this.root)}findAll(e){const r=this.getNode(Fs.normalize(e),!1);return r?this.collectValues(r):[]}getNode(e,r){const n=e.split("/");e.charAt(e.length-1)==="/"&&n.pop();let i=this.root;for(const a of n){let s=i.children.get(a);if(!s)if(r)s={name:a,children:new Map,parent:i},i.children.set(a,s);else return;i=s}return i}collectValues(e){const r=[];e.element&&r.push(e.element);for(const n of e.children.values())r.push(...this.collectValues(n));return r}},k(Zy,"UriTrie"),Zy),sn;(function(t){t[t.Changed=0]="Changed",t[t.Parsed=1]="Parsed",t[t.IndexedContent=2]="IndexedContent",t[t.ComputedScopes=3]="ComputedScopes",t[t.Linked=4]="Linked",t[t.IndexedReferences=5]="IndexedReferences",t[t.Validated=6]="Validated"})(sn||(sn={}));var Jy,zwe=(Jy=class{constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,r=Xn.CancellationToken.None){const n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,r)}fromTextDocument(e,r,n){return r=r??Lo.parse(e.uri),Xn.CancellationToken.is(n)?this.createAsync(r,e,n):this.create(r,e,n)}fromString(e,r,n){return Xn.CancellationToken.is(n)?this.createAsync(r,e,n):this.create(r,e,n)}fromModel(e,r){return this.create(r,{$model:e})}create(e,r,n){if(typeof r=="string"){const i=this.parse(e,r,n);return this.createLangiumDocument(i,e,void 0,r)}else if("$model"in r){const i={value:r.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(i,e)}else{const i=this.parse(e,r.getText(),n);return this.createLangiumDocument(i,e,r)}}async createAsync(e,r,n){if(typeof r=="string"){const i=await this.parseAsync(e,r,n);return this.createLangiumDocument(i,e,void 0,r)}else{const i=await this.parseAsync(e,r.getText(),n);return this.createLangiumDocument(i,e,r)}}createLangiumDocument(e,r,n,i){let a;if(n)a={parseResult:e,uri:r,state:sn.Parsed,references:[],textDocument:n};else{const s=this.createTextDocumentGetter(r,i);a={parseResult:e,uri:r,state:sn.Parsed,references:[],get textDocument(){return s()}}}return e.value.$document=a,a}async update(e,r){const n=e.parseResult.value.$cstNode?.root.fullText,i=this.textDocuments?.get(e.uri.toString()),a=i?i.getText():await this.fileSystemProvider.readFile(e.uri);if(i)Object.defineProperty(e,"textDocument",{value:i});else{const s=this.createTextDocumentGetter(e.uri,a);Object.defineProperty(e,"textDocument",{get:s})}return n!==a&&(e.parseResult=await this.parseAsync(e.uri,a,r),e.parseResult.value.$document=e),e.state=sn.Parsed,e}parse(e,r,n){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(r,n)}parseAsync(e,r,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(r,n)}createTextDocumentGetter(e,r){const n=this.serviceRegistry;let i;return()=>i??(i=Sw.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,r??""))}},k(Jy,"DefaultLangiumDocumentFactory"),Jy),ev,Uwe=(ev=class{constructor(e){this.documentTrie=new DV,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return Mn(this.documentTrie.all())}addDocument(e){const r=e.uri.toString();if(this.documentTrie.has(r))throw new Error(`A document with the URI '${r}' is already present.`);this.documentTrie.insert(r,e)}getDocument(e){const r=e.toString();return this.documentTrie.find(r)}getDocuments(e){const r=e.toString();return this.documentTrie.findAll(r)}async getOrCreateDocument(e,r){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,r),this.addDocument(n),n)}createDocument(e,r,n){if(n)return this.langiumDocumentFactory.fromString(r,e,n).then(i=>(this.addDocument(i),i));{const i=this.langiumDocumentFactory.fromString(r,e);return this.addDocument(i),i}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){const r=e.toString(),n=this.documentTrie.find(r);return n&&this.documentBuilder().resetToState(n,sn.Changed),n}deleteDocument(e){const r=e.toString(),n=this.documentTrie.find(r);return n&&(n.state=sn.Changed,this.documentTrie.delete(r)),n}deleteDocuments(e){const r=e.toString(),n=this.documentTrie.findAll(r);for(const i of n)i.state=sn.Changed;return this.documentTrie.delete(r),n}},k(ev,"DefaultLangiumDocuments"),ev),Rf=Symbol("RefResolving"),tv,Gwe=(tv=class{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,r=Xn.CancellationToken.None){if(this.profiler?.isActive("linking")){const n=this.profiler.createTask("linking",this.languageId);n.start();try{for(const i of oc(e.parseResult.value))await Ma(r),vb(i).forEach(a=>{const s=`${i.$type}:${a.property}`;n.startSubTask(s);try{this.doLink(a,e)}finally{n.stopSubTask(s)}})}finally{n.stop()}}else for(const n of oc(e.parseResult.value))await Ma(r),vb(n).forEach(i=>this.doLink(i,e))}doLink(e,r){const n=e.reference;if("_ref"in n&&n._ref===void 0){n._ref=Rf;try{const i=this.getCandidate(e);if(Bf(i))n._ref=i;else{n._nodeDescription=i;const a=this.loadAstNode(i);n._ref=a??this.createLinkingError(e,i)}}catch(i){console.error(`An error occurred while resolving reference to '${n.$refText}':`,i);const a=i.message??String(i);n._ref={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${a}`}}r.references.push(n)}else if("_items"in n&&n._items===void 0){n._items=Rf;try{const i=this.getCandidates(e),a=[];if(Bf(i))n._linkingError=i;else for(const s of i){const o=this.loadAstNode(s);o&&a.push({ref:o,$nodeDescription:s})}n._items=a}catch(i){n._linkingError={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${i}`},n._items=[]}r.references.push(n)}}unlink(e){for(const r of e.references)"_ref"in r?(r._ref=void 0,delete r._nodeDescription):"_items"in r&&(r._items=void 0,delete r._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){const n=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(i=>`${i.documentUri}#${i.path}`).toArray();return n.length>0?n:this.createLinkingError(e)}buildReference(e,r,n,i){const a=this,s={$refNode:n,$refText:i,_ref:void 0,get ref(){if(ea(this._ref))return this._ref;if(yY(this._nodeDescription)){const o=a.loadAstNode(this._nodeDescription);this._ref=o??a.createLinkingError({reference:s,container:e,property:r},this._nodeDescription)}else if(this._ref===void 0){this._ref=Rf;const o=r1(e).$document,l=a.getLinkedNode({reference:s,container:e,property:r});if(l.error&&o&&o.state0))return this._linkingError=a.createLinkingError({reference:s,container:e,property:r})}};return s}throwCyclicReferenceError(e,r,n){throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${r} (symbol '${n}')`)}getLinkedNode(e){try{const r=this.getCandidate(e);if(Bf(r))return{error:r};const n=this.loadAstNode(r);return n?{node:n,descr:r}:{descr:r,error:this.createLinkingError(e,r)}}catch(r){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,r);const n=r.message??String(r);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${n}`}}}}loadAstNode(e){if(e.node)return e.node;const r=this.langiumDocuments().getDocument(e.documentUri);if(r)return this.astNodeLocator.getAstNode(r.parseResult.value,e.path)}createLinkingError(e,r){const n=r1(e.container).$document;n&&n.statedg(r)&&r.isMulti)}findDeclarations(e){if(e){const r=lH(e),n=e.astNode;if(r&&n){const i=n[r.feature];if(Bs(i)||tu(i))return U6(i);if(Array.isArray(i)){for(const a of i)if((Bs(a)||tu(a))&&a.$refNode&&a.$refNode.offset<=e.offset&&a.$refNode.end>=e.end)return U6(a)}}if(n){const i=this.nameProvider.getNameNode(n);if(i&&(i===e||UY(e,i)))return this.getSelfNodes(n)}}return[]}getSelfNodes(e){if(this.hasMultiReference){const r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),n=this.getNodeFromReferenceDescription(r.head());if(n){for(const i of vb(n))if(tu(i.reference)&&i.reference.items.some(a=>a.ref===e))return i.reference.items.map(a=>a.ref)}return[e]}else return[e]}getNodeFromReferenceDescription(e){if(!e)return;const r=this.documents.getDocument(e.sourceUri);if(r)return this.nodeLocator.getAstNode(r.parseResult.value,e.sourcePath)}findDeclarationNodes(e){const r=this.findDeclarations(e),n=[];for(const i of r){const a=this.nameProvider.getNameNode(i)??i.$cstNode;a&&n.push(a)}return n}findReferences(e,r){const n=[];r.includeDeclaration&&n.push(...this.getSelfReferences(e));let i=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return r.documentUri&&(i=i.filter(a=>Fs.equals(a.sourceUri,r.documentUri))),n.push(...i),Mn(n)}getSelfReferences(e){const r=this.getSelfNodes(e),n=[];for(const i of r){const a=this.nameProvider.getNameNode(i);if(a){const s=sc(i),o=this.nodeLocator.getAstNodePath(i);n.push({sourceUri:s.uri,sourcePath:o,targetUri:s.uri,targetPath:o,segment:Eb(a),local:!0})}}return n}},k(nv,"DefaultReferences"),nv),iv,$0=(iv=class{constructor(e){if(this.map=new Map,e)for(const[r,n]of e)this.add(r,n)}get size(){return b4.sum(Mn(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,r){if(r===void 0)return this.map.delete(e);{const n=this.map.get(e);if(n){const i=n.indexOf(r);if(i>=0)return n.length===1?this.map.delete(e):n.splice(i,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){const r=this.map.get(e);return r?Mn(r):gb}has(e,r){if(r===void 0)return this.map.has(e);{const n=this.map.get(e);return n?n.indexOf(r)>=0:!1}}add(e,r){return this.map.has(e)?this.map.get(e).push(r):this.map.set(e,[r]),this}addAll(e,r){return this.map.has(e)?this.map.get(e).push(...r):this.map.set(e,Array.from(r)),this}forEach(e){this.map.forEach((r,n)=>r.forEach(i=>e(i,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Mn(this.map.entries()).flatMap(([e,r])=>r.map(n=>[e,n]))}keys(){return Mn(this.map.keys())}values(){return Mn(this.map.values()).flat()}entriesGroupedByKey(){return Mn(this.map.entries())}},k(iv,"MultiMap"),iv),av,xw=(av=class{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[r,n]of e)this.set(r,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,r){return this.map.set(e,r),this.inverse.set(r,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const r=this.map.get(e);return r!==void 0?(this.map.delete(e),this.inverse.delete(r),!0):!1}},k(av,"BiMap"),av),sv,Hwe=(sv=class{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,r=Xn.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,r)}async collectExportedSymbolsForNode(e,r,n=PT,i=Xn.CancellationToken.None){const a=[];this.addExportedSymbol(e,a,r);for(const s of n(e))await Ma(i),this.addExportedSymbol(s,a,r);return a}addExportedSymbol(e,r,n){const i=this.nameProvider.getName(e);i&&r.push(this.descriptions.createDescription(e,i,n))}async collectLocalSymbols(e,r=Xn.CancellationToken.None){const n=e.parseResult.value,i=new $0;for(const a of rd(n))await Ma(r),this.addLocalSymbol(a,e,i);return i}addLocalSymbol(e,r,n){const i=e.$container;if(i){const a=this.nameProvider.getName(e);a&&n.add(i,this.descriptions.createDescription(e,a,r))}}},k(sv,"DefaultScopeComputation"),sv),ov,E$=(ov=class{constructor(e,r,n){this.elements=e,this.outerScope=r,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.find(i=>i.name.toLowerCase()===r):this.elements.find(i=>i.name===e);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.filter(i=>i.name.toLowerCase()===r):this.elements.filter(i=>i.name===e);return(this.concatOuterScope||n.isEmpty())&&this.outerScope?n.concat(this.outerScope.getElements(e)):n}},k(ov,"StreamScope"),ov),lv,cwt=(lv=class{constructor(e,r,n){this.elements=new Map,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(const i of e){const a=this.caseInsensitive?i.name.toLowerCase():i.name;this.elements.set(a,i)}this.outerScope=r}getElement(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r),i=n?[n]:[];return(this.concatOuterScope||i.length>0)&&this.outerScope?Mn(i).concat(this.outerScope.getElements(e)):Mn(i)}getAllElements(){let e=Mn(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},k(lv,"MapScope"),lv),cv,Vwe=(cv=class{constructor(e,r,n){this.elements=new $0,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(const i of e){const a=this.caseInsensitive?i.name.toLowerCase():i.name;this.elements.add(a,i)}this.outerScope=r}getElement(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r)[0];if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r);return(this.concatOuterScope||n.length===0)&&this.outerScope?Mn(n).concat(this.outerScope.getElements(e)):Mn(n)}getAllElements(){let e=Mn(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},k(cv,"MultiMapScope"),cv),uwt={getElement(){},getElements(){return gb},getAllElements(){return gb}},uv,VA=(uv=class{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},k(uv,"DisposableCache"),uv),dv,MV=(dv=class extends VA{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,r){this.throwIfDisposed(),this.cache.set(e,r)}get(e,r){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(r){const n=r();return this.cache.set(e,n),n}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},k(dv,"SimpleCache"),dv),hv,WA=(hv=class extends VA{constructor(e){super(),this.cache=new Map,this.converter=e??(r=>r)}has(e,r){return this.throwIfDisposed(),this.cacheForContext(e).has(r)}set(e,r,n){this.throwIfDisposed(),this.cacheForContext(e).set(r,n)}get(e,r,n){this.throwIfDisposed();const i=this.cacheForContext(e);if(i.has(r))return i.get(r);if(n){const a=n();return i.set(r,a),a}else return}delete(e,r){return this.throwIfDisposed(),this.cacheForContext(e).delete(r)}clear(e){if(this.throwIfDisposed(),e){const r=this.converter(e);this.cache.delete(r)}else this.cache.clear()}cacheForContext(e){const r=this.converter(e);let n=this.cache.get(r);return n||(n=new Map,this.cache.set(r,n)),n}},k(hv,"ContextCache"),hv),fv,Wwe=(fv=class extends WA{constructor(e,r){super(n=>n.toString()),r?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(r,n=>{this.clear(n.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,i)=>{for(const a of i)this.clear(a)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,i)=>{const a=n.concat(i);for(const s of a)this.clear(s)}))}},k(fv,"DocumentCache"),fv),pv,PV=(pv=class extends MV{constructor(e,r){super(),r?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(r,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,i)=>{i.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},k(pv,"WorkspaceCache"),pv),gv,Kwe=(gv=class{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new PV(e.shared)}getScope(e){const r=[],n=this.reflection.getReferenceType(e),i=sc(e.container).localSymbols;if(i){let s=e.container;do i.has(s)&&r.push(i.getStream(s).filter(o=>this.reflection.isSubtype(o.type,n))),s=s.$container;while(s)}let a=this.getGlobalScope(n,e);for(let s=r.length-1;s>=0;s--)a=this.createScope(r[s],a);return a}createScope(e,r,n){return new E$(Mn(e),r,n)}createScopeForNodes(e,r,n){const i=Mn(e).map(a=>{const s=this.nameProvider.getName(a);if(s)return this.descriptions.createDescription(a,s)}).nonNullable();return new E$(i,r,n)}getGlobalScope(e,r){return this.globalScopeCache.get(e,()=>new Vwe(this.indexManager.allElements(e)))}},k(gv,"DefaultScopeProvider"),gv);function BV(t){return typeof t.$comment=="string"}k(BV,"isAstNodeWithComment");function S$(t){return typeof t=="object"&&!!t&&("$ref"in t||"$error"in t)}k(S$,"isIntermediateReference");var mv,Xwe=(mv=class{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,r){const n=r??{},i=r?.replacer,a=k((o,l)=>this.replacer(o,l,n),"defaultReplacer"),s=i?(o,l)=>i(o,l,a):a;try{return this.currentDocument=sc(e),JSON.stringify(e,s,r?.space)}finally{this.currentDocument=void 0}}deserialize(e,r){const n=r??{},i=JSON.parse(e);return this.linkNode(i,i,n),i}replacer(e,r,{refText:n,sourceText:i,textRegions:a,comments:s,uriConverter:o}){if(!this.ignoreProperties.has(e))if(Bs(r)){const l=r.ref,u=n?r.$refText:void 0;if(l){const d=sc(l);let h="";this.currentDocument&&this.currentDocument!==d&&(o?h=o(d.uri,l):h=d.uri.toString());const f=this.astNodeLocator.getAstNodePath(l);return{$ref:`${h}#${f}`,$refText:u}}else return{$error:r.error?.message??"Could not resolve reference",$refText:u}}else if(tu(r)){const l=n?r.$refText:void 0,u=[];for(const d of r.items){const h=d.ref,f=sc(d.ref);let p="";this.currentDocument&&this.currentDocument!==f&&(o?p=o(f.uri,h):p=f.uri.toString());const g=this.astNodeLocator.getAstNodePath(h);u.push(`${p}#${g}`)}return{$refs:u,$refText:l}}else if(ea(r)){let l;if(a&&(l=this.addAstNodeRegionWithAssignmentsTo({...r}),(!e||r.$document)&&l?.$textRegion&&(l.$textRegion.documentURI=this.currentDocument?.uri.toString())),i&&!e&&(l??(l={...r}),l.$sourceText=r.$cstNode?.text),s){l??(l={...r});const u=this.commentProvider.getComment(r);u&&(l.$comment=u.replace(/\r/g,""))}return l??r}else return r}addAstNodeRegionWithAssignmentsTo(e){const r=k(n=>({offset:n.offset,end:n.end,length:n.length,range:n.range}),"createDocumentSegment");if(e.$cstNode){const n=e.$textRegion=r(e.$cstNode),i=n.assignments={};return Object.keys(e).filter(a=>!a.startsWith("$")).forEach(a=>{const s=sH(e.$cstNode,a).map(r);s.length!==0&&(i[a]=s)}),e}}linkNode(e,r,n,i,a,s){for(const[l,u]of Object.entries(e))if(Array.isArray(u))for(let d=0;d{await this.handleException(()=>e.call(r,n,i,a),"An error occurred during validation",i,n)}}async handleException(e,r,n,i){try{await e()}catch(a){if(kg(a))throw a;console.error(`${r}:`,a),a instanceof Error&&a.stack&&console.error(a.stack);const s=a instanceof Error?a.message:String(a);n("error",`${r}: ${s}`,{node:i})}}addEntry(e,r){if(e==="AstNode"){this.entries.add("AstNode",r);return}for(const n of this.reflection.getAllSubTypes(e))this.entries.add(n,r)}getChecks(e,r){let n=Mn(this.entries.get(e)).concat(this.entries.get("AstNode"));return r&&(n=n.filter(i=>r.includes(i.category))),n.map(i=>i.check)}registerBeforeDocument(e,r=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",r))}registerAfterDocument(e,r=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",r))}wrapPreparationException(e,r,n){return async(i,a,s,o)=>{await this.handleException(()=>e.call(n,i,a,s,o),r,a,i)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},k(vv,"ValidationRegistry"),vv),Zwe=Object.freeze({validateNode:!0,validateChildren:!0}),_v,Jwe=(_v=class{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,r={},n=Xn.CancellationToken.None){const i=e.parseResult,a=[];if(await Ma(n),(!r.categories||r.categories.includes("built-in"))&&(this.processLexingErrors(i,a,r),r.stopAfterLexingErrors&&a.some(s=>s.data?.code===gl.LexingError)||(this.processParsingErrors(i,a,r),r.stopAfterParsingErrors&&a.some(s=>s.data?.code===gl.ParsingError))||(this.processLinkingErrors(e,a,r),r.stopAfterLinkingErrors&&a.some(s=>s.data?.code===gl.LinkingError))))return a;try{a.push(...await this.validateAst(i.value,r,n))}catch(s){if(kg(s))throw s;console.error("An error occurred during validation:",s)}return await Ma(n),a}processLexingErrors(e,r,n){const i=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(const a of i){const s=a.severity??"error",o={severity:bS(s),range:{start:{line:a.line-1,character:a.column-1},end:{line:a.line-1,character:a.column+a.length-1}},message:a.message,data:$V(s),source:this.getSource()};r.push(o)}}processParsingErrors(e,r,n){for(const i of e.parserErrors){let a;if(isNaN(i.token.startOffset)){if("previousToken"in i){const s=i.previousToken;if(isNaN(s.startOffset)){const o={line:0,character:0};a={start:o,end:o}}else{const o={line:s.endLine-1,character:s.endColumn};a={start:o,end:o}}}}else a=E4(i.token);if(a){const s={severity:bS("error"),range:a,message:i.message,data:sp(gl.ParsingError),source:this.getSource()};r.push(s)}}}processLinkingErrors(e,r,n){for(const i of e.references){const a=i.error;if(a){const s={node:a.info.container,range:i.$refNode?.range,property:a.info.property,index:a.info.index,data:{code:gl.LinkingError,containerType:a.info.container.$type,property:a.info.property,refText:a.info.reference.$refText}};r.push(this.toDiagnostic("error",a.message,s))}}}async validateAst(e,r,n=Xn.CancellationToken.None){const i=[],a=k((s,o,l)=>{i.push(this.toDiagnostic(s,o,l))},"acceptor");return await this.validateAstBefore(e,r,a,n),await this.validateAstNodes(e,r,a,n),await this.validateAstAfter(e,r,a,n),i}async validateAstBefore(e,r,n,i=Xn.CancellationToken.None){const a=this.validationRegistry.checksBefore;for(const s of a)await Ma(i),await s(e,n,r.categories??[],i)}async validateAstNodes(e,r,n,i=Xn.CancellationToken.None){if(this.profiler?.isActive("validating")){const a=this.profiler.createTask("validating",this.languageId);a.start();try{const s=oc(e).iterator();for(const o of s){a.startSubTask(o.$type);const l=this.validateSingleNodeOptions(o,r);if(l.validateNode)try{const u=this.validationRegistry.getChecks(o.$type,r.categories);for(const d of u)await d(o,n,i)}finally{a.stopSubTask(o.$type)}l.validateChildren||s.prune()}}finally{a.stop()}}else{const a=oc(e).iterator();for(const s of a){await Ma(i);const o=this.validateSingleNodeOptions(s,r);if(o.validateNode){const l=this.validationRegistry.getChecks(s.$type,r.categories);for(const u of l)await u(s,n,i)}o.validateChildren||a.prune()}}}validateSingleNodeOptions(e,r){return Zwe}async validateAstAfter(e,r,n,i=Xn.CancellationToken.None){const a=this.validationRegistry.checksAfter;for(const s of a)await Ma(i),await s(e,n,r.categories??[],i)}toDiagnostic(e,r,n){return{message:r,range:FV(n),severity:bS(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}},k(_v,"DefaultDocumentValidator"),_v);function FV(t){if(t.range)return t.range;let e;return typeof t.property=="string"?e=nA(t.node.$cstNode,t.property,t.index):typeof t.keyword=="string"&&(e=oH(t.node.$cstNode,t.keyword,t.index)),e??(e=t.node.$cstNode),e?e.range:{start:{line:0,character:0},end:{line:0,character:0}}}k(FV,"getDiagnosticRange");function bS(t){switch(t){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+t)}}k(bS,"toDiagnosticSeverity");function $V(t){switch(t){case"error":return sp(gl.LexingError);case"warning":return sp(gl.LexingWarning);case"info":return sp(gl.LexingInfo);case"hint":return sp(gl.LexingHint);default:throw new Error("Invalid diagnostic severity: "+t)}}k($V,"toDiagnosticData");var gl;(function(t){t.LexingError="lexing-error",t.LexingWarning="lexing-warning",t.LexingInfo="lexing-info",t.LexingHint="lexing-hint",t.ParsingError="parsing-error",t.LinkingError="linking-error"})(gl||(gl={}));var bv,eke=(bv=class{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,r,n){const i=n??sc(e);r??(r=this.nameProvider.getName(e));const a=this.astNodeLocator.getAstNodePath(e);if(!r)throw new Error(`Node at path ${a} has no name.`);let s;const o=k(()=>s??(s=Eb(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:r,get nameSegment(){return o()},selectionSegment:Eb(e.$cstNode),type:e.$type,documentUri:i.uri,path:a}}},k(bv,"DefaultAstNodeDescriptionProvider"),bv),Ev,tke=(Ev=class{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,r=Xn.CancellationToken.None){const n=[],i=e.parseResult.value;for(const a of oc(i))await Ma(r),vb(a).forEach(s=>{s.reference.error||n.push(...this.createInfoDescriptions(s))});return n}createInfoDescriptions(e){const r=e.reference;if(r.error||!r.$refNode)return[];let n=[];Bs(r)&&r.$nodeDescription?n=[r.$nodeDescription]:tu(r)&&(n=r.items.map(l=>l.$nodeDescription).filter(l=>l!==void 0));const i=sc(e.container).uri,a=this.nodeLocator.getAstNodePath(e.container),s=[],o=Eb(r.$refNode);for(const l of n)s.push({sourceUri:i,sourcePath:a,targetUri:l.documentUri,targetPath:l.path,segment:o,local:Fs.equals(l.documentUri,i)});return s}},k(Ev,"DefaultReferenceDescriptionProvider"),Ev),Sv,rke=(Sv=class{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const r=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return r+this.segmentSeparator+n}return""}getPathSegment({$containerProperty:e,$containerIndex:r}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return r!==void 0?e+this.indexSeparator+r:e}getAstNode(e,r){return r.split(this.segmentSeparator).reduce((i,a)=>{if(!i||a.length===0)return i;const s=a.indexOf(this.indexSeparator);if(s>0){const o=a.substring(0,s),l=parseInt(a.substring(s+1));return i[o]?.[l]}return i[a]},e)}},k(Sv,"DefaultAstNodeLocator"),Sv),KA={};G7(KA,fY(l2()));var Tv,nke=(Tv=class{constructor(e){this._ready=new F0,this.onConfigurationSectionUpdateEmitter=new KA.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){const r=this.serviceRegistry.all;e.register({section:r.map(n=>this.toSectionName(n.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const r=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(r);r.forEach((i,a)=>{this.updateSectionConfiguration(i.section,n[a])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings!="object"||e.settings===null||Object.entries(e.settings).forEach(([r,n])=>{this.updateSectionConfiguration(r,n),this.onConfigurationSectionUpdateEmitter.fire({section:r,configuration:n})})}updateSectionConfiguration(e,r){this.settings[e]=r}async getConfiguration(e,r){await this.ready;const n=this.toSectionName(e);if(this.settings[n])return this.settings[n][r]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},k(Tv,"DefaultConfigurationProvider"),Tv),y3=fY(Y_t()),pp;(function(t){function e(r){return{dispose:k(async()=>await r(),"dispose")}}k(e,"create"),t.create=e})(pp||(pp={}));var xv,ike=(xv=class{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new $0,this.documentPhaseListeners=new $0,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=sn.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,r={},n=Xn.CancellationToken.None){for(const i of e){const a=i.uri.toString();if(i.state===sn.Validated){if(typeof r.validation=="boolean"&&r.validation)this.resetToState(i,sn.IndexedReferences);else if(typeof r.validation=="object"){const s=this.findMissingValidationCategories(i,r);s.length>0&&(this.buildState.set(a,{completed:!1,options:{validation:{categories:s}},result:this.buildState.get(a)?.result}),i.state=sn.IndexedReferences)}}else this.buildState.delete(a)}this.currentState=sn.Changed,await this.emitUpdate(e.map(i=>i.uri),[]),await this.buildDocuments(e,r,n)}async update(e,r,n=Xn.CancellationToken.None){this.currentState=sn.Changed;const i=[];for(const l of r){const u=this.langiumDocuments.deleteDocuments(l);for(const d of u)i.push(d.uri),this.cleanUpDeleted(d)}const a=(await Promise.all(e.map(l=>this.findChangedUris(l)))).flat();for(const l of a){let u=this.langiumDocuments.getDocument(l);u===void 0&&(u=this.langiumDocumentFactory.fromModel({$type:"INVALID"},l),u.state=sn.Changed,this.langiumDocuments.addDocument(u)),this.resetToState(u,sn.Changed)}const s=Mn(a).concat(i).map(l=>l.toString()).toSet();this.langiumDocuments.all.filter(l=>!s.has(l.uri.toString())&&this.shouldRelink(l,s)).forEach(l=>this.resetToState(l,sn.ComputedScopes)),await this.emitUpdate(a,i),await Ma(n);const o=this.sortDocuments(this.langiumDocuments.all.filter(l=>l.state=1}findMissingValidationCategories(e,r){const n=this.buildState.get(e.uri.toString()),i=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),a=n?.result?.validationChecks?new Set(n?.result?.validationChecks):n?.completed?i:new Set,s=r===void 0||r.validation===!0?i:typeof r.validation=="object"?r.validation.categories??i:[];return Mn(s).filter(o=>!a.has(o)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{const n=await this.fileSystemProvider.stat(e);if(n.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(n))return[e]}catch{}return[]}async emitUpdate(e,r){await Promise.all(this.updateListeners.map(n=>n(e,r)))}sortDocuments(e){let r=0,n=e.length-1;for(;r=0&&!this.hasTextDocument(e[n]);)n--;rn.error!==void 0)?!0:this.indexManager.isAffected(e,r)}onUpdate(e){return this.updateListeners.push(e),pp.create(()=>{const r=this.updateListeners.indexOf(e);r>=0&&this.updateListeners.splice(r,1)})}resetToState(e,r){switch(r){case sn.Changed:case sn.Parsed:this.indexManager.removeContent(e.uri);case sn.IndexedContent:e.localSymbols=void 0;case sn.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case sn.Linked:this.indexManager.removeReferences(e.uri);case sn.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case sn.Validated:}e.state>r&&(e.state=r)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=sn.Changed}async buildDocuments(e,r,n){this.prepareBuild(e,r),await this.runCancelable(e,sn.Parsed,n,s=>this.langiumDocumentFactory.update(s,n)),await this.runCancelable(e,sn.IndexedContent,n,s=>this.indexManager.updateContent(s,n)),await this.runCancelable(e,sn.ComputedScopes,n,async s=>{const o=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.localSymbols=await o.collectLocalSymbols(s,n)});const i=e.filter(s=>this.shouldLink(s));await this.runCancelable(i,sn.Linked,n,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,n)),await this.runCancelable(i,sn.IndexedReferences,n,s=>this.indexManager.updateReferences(s,n));const a=e.filter(s=>this.shouldValidate(s)?!0:(this.markAsCompleted(s),!1));await this.runCancelable(a,sn.Validated,n,async s=>{await this.validate(s,n),this.markAsCompleted(s)})}markAsCompleted(e){const r=this.buildState.get(e.uri.toString());r&&(r.completed=!0)}prepareBuild(e,r){for(const n of e){const i=n.uri.toString(),a=this.buildState.get(i);(!a||a.completed)&&this.buildState.set(i,{completed:!1,options:r,result:a?.result})}}async runCancelable(e,r,n,i){for(const s of e)s.states.state===r);await this.notifyBuildPhase(a,r,n),this.currentState=r}onBuildPhase(e,r){return this.buildPhaseListeners.add(e,r),pp.create(()=>{this.buildPhaseListeners.delete(e,r)})}onDocumentPhase(e,r){return this.documentPhaseListeners.add(e,r),pp.create(()=>{this.documentPhaseListeners.delete(e,r)})}waitUntil(e,r,n){let i;return r&&"path"in r?i=r:n=r,n??(n=Xn.CancellationToken.None),i?this.awaitDocumentState(e,i,n):this.awaitBuilderState(e,n)}awaitDocumentState(e,r,n){const i=this.langiumDocuments.getDocument(r);if(i){if(i.state>=e)return Promise.resolve(r);if(n.isCancellationRequested)return Promise.reject(Qc);if(this.currentState>=e&&e>i.state)return Promise.reject(new y3.ResponseError(y3.LSPErrorCodes.RequestFailed,`Document state of ${r.toString()} is ${sn[i.state]}, requiring ${sn[e]}, but workspace state is already ${sn[this.currentState]}. Returning undefined.`))}else return Promise.reject(new y3.ResponseError(y3.LSPErrorCodes.ServerCancelled,`No document found for URI: ${r.toString()}`));return new Promise((a,s)=>{const o=this.onDocumentPhase(e,u=>{Fs.equals(u.uri,r)&&(o.dispose(),l.dispose(),a(u.uri))}),l=n.onCancellationRequested(()=>{o.dispose(),l.dispose(),s(Qc)})})}awaitBuilderState(e,r){return this.currentState>=e?Promise.resolve():r.isCancellationRequested?Promise.reject(Qc):new Promise((n,i)=>{const a=this.onBuildPhase(e,()=>{a.dispose(),s.dispose(),n()}),s=r.onCancellationRequested(()=>{a.dispose(),s.dispose(),i(Qc)})})}async notifyDocumentPhase(e,r,n){const a=this.documentPhaseListeners.get(r).slice();for(const s of a)try{await Ma(n),await s(e,n)}catch(o){if(!kg(o))throw o}}async notifyBuildPhase(e,r,n){if(e.length===0)return;const a=this.buildPhaseListeners.get(r).slice();for(const s of a)await Ma(n),await s(e,n)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,r){const n=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,i=this.getBuildOptions(e),a=typeof i.validation=="object"?{...i.validation}:{};a.categories=this.findMissingValidationCategories(e,i);const s=await n.validateDocument(e,a,r);e.diagnostics?e.diagnostics.push(...s):e.diagnostics=s;const o=this.buildState.get(e.uri.toString());o&&(o.result??(o.result={}),o.result.validationChecks?o.result.validationChecks=Mn(o.result.validationChecks).concat(a.categories).distinct().toArray():o.result.validationChecks=[...a.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},k(xv,"DefaultDocumentBuilder"),xv),Cv,ake=(Cv=class{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new WA,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,r){const n=sc(e).uri,i=[];return this.referenceIndex.forEach(a=>{a.forEach(s=>{Fs.equals(s.targetUri,n)&&s.targetPath===r&&i.push(s)})}),Mn(i)}allElements(e,r){let n=Mn(this.symbolIndex.keys());return r&&(n=n.filter(i=>!r||r.has(i))),n.map(i=>this.getFileDescriptions(i,e)).flat()}getFileDescriptions(e,r){return r?this.symbolByTypeIndex.get(e,r,()=>(this.symbolIndex.get(e)??[]).filter(a=>this.astReflection.isSubtype(a.type,r))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){const r=e.toString();this.symbolIndex.delete(r),this.symbolByTypeIndex.clear(r)}removeReferences(e){const r=e.toString();this.referenceIndex.delete(r)}async updateContent(e,r=Xn.CancellationToken.None){const i=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,r),a=e.uri.toString();this.symbolIndex.set(a,i),this.symbolByTypeIndex.clear(a)}async updateReferences(e,r=Xn.CancellationToken.None){const i=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,r);this.referenceIndex.set(e.uri.toString(),i)}isAffected(e,r){const n=this.referenceIndex.get(e.uri.toString());return n?n.some(i=>!i.local&&r.has(i.targetUri.toString())):!1}},k(Cv,"DefaultIndexManager"),Cv),wv,ske=(wv=class{constructor(e){this.initialBuildOptions={},this._ready=new F0,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(r=>this.initializeWorkspace(this.folders??[],r))}async initializeWorkspace(e,r=Xn.CancellationToken.None){const n=await this.performStartup(e);await Ma(r),await this.documentBuilder.build(n,this.initialBuildOptions,r)}async performStartup(e){const r=[],n=k(s=>{r.push(s),this.langiumDocuments.hasDocument(s.uri)||this.langiumDocuments.addDocument(s)},"collector");await this.loadAdditionalDocuments(e,n);const i=[];await Promise.all(e.map(s=>this.getRootFolder(s)).map(async s=>this.traverseFolder(s,i)));const a=Mn(i).distinct(s=>s.toString()).filter(s=>!this.langiumDocuments.hasDocument(s));return await this.loadWorkspaceDocuments(a,n),this._ready.resolve(),r}async loadWorkspaceDocuments(e,r){await Promise.all(e.map(async n=>{const i=await this.langiumDocuments.getOrCreateDocument(n);r(i)}))}loadAdditionalDocuments(e,r){return Promise.resolve()}getRootFolder(e){return Lo.parse(e.uri)}async traverseFolder(e,r){try{const n=await this.fileSystemProvider.readDirectory(e);await Promise.all(n.map(async i=>{this.shouldIncludeEntry(i)&&(i.isDirectory?await this.traverseFolder(i.uri,r):i.isFile&&r.push(i.uri))}))}catch(n){console.error("Failure to read directory content of "+e.toString(!0),n)}}async searchFolder(e){const r=[];return await this.traverseFolder(e,r),r}shouldIncludeEntry(e){const r=Fs.basename(e.uri);return r.startsWith(".")?!1:e.isDirectory?r!=="node_modules"&&r!=="out":e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},k(wv,"DefaultWorkspaceManager"),wv),kv,oke=(kv=class{buildUnexpectedCharactersMessage(e,r,n,i,a){return r$.buildUnexpectedCharactersMessage(e,r,n,i,a)}buildUnableToPopLexerModeMessage(e){return r$.buildUnableToPopLexerModeMessage(e)}},k(kv,"DefaultLexerErrorMessageProvider"),kv),zV={mode:"full"},Av,UV=(Av=class{constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;const r=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(r);const n=ww(r)?Object.values(r):r,i=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new Us(n,{positionTracking:"full",skipValidations:i,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,r=zV){const n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:n.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(ww(e))return e;const r=jA(e)?Object.values(e.modes).flat():e,n={};return r.forEach(i=>n[i.name]=i),n}},k(Av,"DefaultLexer"),Av);function XA(t){return Array.isArray(t)&&(t.length===0||"name"in t[0])}k(XA,"isTokenTypeArray");function jA(t){return t&&"modes"in t&&"defaultMode"in t}k(jA,"isIMultiModeLexerDefinition");function ww(t){return!XA(t)&&!jA(t)}k(ww,"isTokenTypeDictionary");LT();function GV(t,e,r){let n,i;typeof t=="string"?(i=e,n=r):(i=t.range.start,n=e),i||(i=xn.create(0,0));const a=YV(t),s=QA(n),o=lke({lines:a,position:i,options:s});return dke({index:0,tokens:o,position:i})}k(GV,"parseJSDoc");function qV(t,e){const r=QA(e),n=YV(t);if(n.length===0)return!1;const i=n[0],a=n[n.length-1],s=r.start,o=r.end;return!!s?.exec(i)&&!!o?.exec(a)}k(qV,"isJSDoc");function YV(t){let e="";return typeof t=="string"?e=t:e=t.text,e.split(dEe)}k(YV,"getLines");var aoe=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,dwt=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function lke(t){const e=[];let r=t.position.line,n=t.position.character;for(let i=0;i=o.length){if(e.length>0){const d=xn.create(r,n);e.push({type:"break",content:"",range:dn.create(d,d)})}}else{aoe.lastIndex=l;const d=aoe.exec(o);if(d){const h=d[0],f=d[1],p=xn.create(r,n+l),g=xn.create(r,n+l+h.length);e.push({type:"tag",content:f,range:dn.create(p,g)}),l+=h.length,l=kw(o,l)}if(l0&&e[e.length-1].type==="break"?e.slice(0,-1):e}k(lke,"tokenize");function cke(t,e,r,n){const i=[];if(t.length===0){const a=xn.create(r,n),s=xn.create(r,n+e.length);i.push({type:"text",content:e,range:dn.create(a,s)})}else{let a=0;for(const o of t){const l=o.index,u=e.substring(a,l);u.length>0&&i.push({type:"text",content:e.substring(a,l),range:dn.create(xn.create(r,a+n),xn.create(r,l+n))});let d=u.length+1;const h=o[1];if(i.push({type:"inline-tag",content:h,range:dn.create(xn.create(r,a+d+n),xn.create(r,a+d+h.length+n))}),d+=h.length,o.length===4){d+=o[2].length;const f=o[3];i.push({type:"text",content:f,range:dn.create(xn.create(r,a+d+n),xn.create(r,a+d+f.length+n))})}else i.push({type:"text",content:"",range:dn.create(xn.create(r,a+d+n),xn.create(r,a+d+n))});a=l+o[0].length}const s=e.substring(a);s.length>0&&i.push({type:"text",content:s,range:dn.create(xn.create(r,a+n),xn.create(r,a+n+s.length))})}return i}k(cke,"buildInlineTokens");var hwt=/\S/,fwt=/\s*$/;function kw(t,e){const r=t.substring(e).match(hwt);return r?e+r.index:t.length}k(kw,"skipWhitespace");function uke(t){const e=t.match(fwt);if(e&&typeof e.index=="number")return e.index}k(uke,"lastCharacter");function dke(t){const e=xn.create(t.position.line,t.position.character);if(t.tokens.length===0)return new soe([],dn.create(e,e));const r=[];for(;t.indexr.name===e)}getTags(e){return this.getAllTags().filter(r=>r.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const r of this.elements)if(e.length===0)e=r.toString();else{const n=r.toString();e+=x$(e)+n}return e.trim()}toMarkdown(e){let r="";for(const n of this.elements)if(r.length===0)r=n.toMarkdown(e);else{const i=n.toMarkdown(e);r+=x$(r)+i}return r.trim()}},k(Rv,"JSDocCommentImpl"),Rv),Nv,IL=(Nv=class{constructor(e,r,n,i){this.name=e,this.content=r,this.inline=n,this.range=i}toString(){let e=`@${this.name}`;const r=this.content.toString();return this.content.inlines.length===1?e=`${e} ${r}`:this.content.inlines.length>1&&(e=`${e} +For Further details.`,n}k(swe,"buildAmbiguityError");function owe(t){if(t instanceof Vs)return"SUBRULE";if(t instanceof Za)return"OPTION";if(t instanceof wo)return"OR";if(t instanceof jo)return"AT_LEAST_ONE";if(t instanceof Qo)return"AT_LEAST_ONE_SEP";if(t instanceof Co)return"MANY_SEP";if(t instanceof Bi)return"MANY";if(t instanceof ii)return"CONSUME";throw Error("non exhaustive match")}k(owe,"getProductionDslName");function lwe(t,e,r){const n=P6t(e.configs.elements,a=>a.state.transitions),i=X6t(n.filter(a=>a instanceof dV).map(a=>a.tokenType),a=>a.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:i,tokenPath:t}}k(lwe,"buildAdaptivePredictError");function cwe(t,e){return t.edges[e.tokenTypeIdx]}k(cwe,"getExistingTargetState");function uwe(t,e,r){const n=new y$,i=[];for(const s of t.elements){if(r.is(s.alt)===!1)continue;if(s.state.type===JT){i.push(s);continue}const o=s.state.transitions.length;for(let l=0;l0&&!gwe(a))for(const s of i)a.add(s);return a}k(uwe,"computeReachSet");function dwe(t,e){if(t instanceof dV&&HH(e,t.tokenType))return t.target}k(dwe,"getReachableTarget");function hwe(t,e){let r;for(const n of t.elements)if(e.is(n.alt)===!0){if(r===void 0)r=n.alt;else if(r!==n.alt)return}return r}k(hwe,"getUniqueAlt");function vV(t){return{configs:t,edges:{},isAcceptState:!1,prediction:-1}}k(vV,"newDFAState");function _$(t,e,r,n){return n=_V(t,n),e.edges[r.tokenTypeIdx]=n,n}k(_$,"addDFAEdge");function _V(t,e){if(e===vw)return e;const r=e.configs.key,n=t.states[r];return n!==void 0?n:(e.configs.finalize(),t.states[r]=e,e)}k(_V,"addDFAState");function fwe(t){const e=new y$,r=t.transitions.length;for(let n=0;n0){const i=[...t.stack],s={state:i.pop(),alt:t.alt,stack:i};L4(s,e)}else e.add(t);return}r.epsilonOnlyTransitions||e.add(t);const n=r.transitions.length;for(let i=0;i1)return!0;return!1}k(_we,"hasConflictingAltSet");function bwe(t){for(const e of Array.from(t.values()))if(Object.keys(e).length===1)return!0;return!1}k(bwe,"hasStateAssociatedWithOneAlt");LT();var By,Ewe=(By=class{constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new EV(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const r=new zA;return r.grammarSource=e,r.root=this.rootNode,this.current.content.push(r),this.nodeStack.push(r),r}buildLeafNode(e,r){const n=new _w(e.startOffset,e.image.length,E4(e),e.tokenType,!r);return n.grammarSource=r,n.root=this.rootNode,this.current.content.push(n),n}removeNode(e){const r=e.container;if(r){const n=r.content.indexOf(e);n>=0&&r.content.splice(n,1)}}addHiddenNodes(e){const r=[];for(const a of e){const s=new _w(a.startOffset,a.image.length,E4(a),a.tokenType,!0);s.root=this.rootNode,r.push(s)}let n=this.current,i=!1;if(n.content.length>0){n.content.push(...r);return}for(;n.container;){const a=n.container.content.indexOf(n);if(a>0){n.container.content.splice(a,0,...r),i=!0;break}n=n.container}i||this.rootNode.content.unshift(...r)}construct(e){const r=this.current;typeof e.$type=="string"&&!e.$infix&&(this.current.astNode=e),e.$cstNode=r;const n=this.nodeStack.pop();n?.content.length===0&&this.removeNode(n)}},k(By,"CstNodeBuilder"),By),Fy,bV=(Fy=class{get hidden(){return!1}get astNode(){const e=typeof this._astNode?.$type=="string"?this._astNode:this.container?.astNode;if(!e)throw new Error("This node has no associated AST element");return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},k(Fy,"AbstractCstNode"),Fy),$y,_w=($y=class extends bV{get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,r,n,i,a=!1){super(),this._hidden=a,this._offset=e,this._tokenType=i,this._length=r,this._range=n}},k($y,"LeafCstNodeImpl"),$y),zy,zA=(zy=class extends bV{constructor(){super(...arguments),this.content=new owt(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){const e=this.firstNonHiddenNode,r=this.lastNonHiddenNode;if(e&&r){if(this._rangeCache===void 0){const{range:n}=e,{range:i}=r;this._rangeCache={start:n.start,end:i.end.line=0;e--){const r=this.content[e];if(!r.hidden)return r}return this.content[this.content.length-1]}},k(zy,"CompositeCstNodeImpl"),zy),yp,owt=(yp=class extends Array{constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,yp.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,r,...n){return this.addParents(n),super.splice(e,r,...n)}addParents(e){for(const r of e)r.container=this.parent}},k(yp,"CstNodeContainer"),yp),Uy,EV=(Uy=class extends zA{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}},k(Uy,"RootCstNodeImpl"),Uy),bw=Symbol("Datatype");function G5(t){return t.$type===bw}k(G5,"isDataTypeNode");var noe="​",Swe=k(t=>t.endsWith(noe)?t:t+noe,"withRuleSuffix"),Gy,SV=(Gy=class{constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;const r=this.lexer.definition,n=e.LanguageMetaData.mode==="production";e.shared.profilers.LangiumProfiler?.isActive("parsing")?this.wrapper=new cwt(r,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new wwe(r,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,r){this.wrapper.wrapOr(e,r)}optional(e,r){this.wrapper.wrapOption(e,r)}many(e,r){this.wrapper.wrapMany(e,r)}atLeastOne(e,r){this.wrapper.wrapAtLeastOne(e,r)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},k(Gy,"AbstractLangiumParser"),Gy),qy,Twe=(qy=class extends SV{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new Ewe,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,r){const n=this.computeRuleType(e);let i;_b(e)&&(i=e.name,this.registerPrecedenceMap(e));const a=this.wrapper.DEFINE_RULE(Swe(e.name),this.startImplementation(n,i,r).bind(this));return this.allRules.set(e.name,a),Hs(e)&&e.entry&&(this.mainRule=a),a}registerPrecedenceMap(e){const r=e.name,n=new Map;for(let i=0;i0&&(r=this.construct()),r===void 0)throw new Error("No result from parser");if(this.stack.length>0)throw new Error("Parser stack is not empty after parsing");return r}startImplementation(e,r,n){return i=>{const a=!this.isRecording()&&e!==void 0;if(a){const s={$type:e};this.stack.push(s),e===bw?s.value="":r!==void 0&&(s.$infixName=r)}return n(i),a?this.construct():void 0}}extractHiddenTokens(e){const r=this.lexerResult.hidden;if(!r.length)return[];const n=e.startOffset;for(let i=0;in)return r.splice(0,i);return r.splice(0,r.length)}consume(e,r,n){const i=this.wrapper.wrapConsume(e,r);if(!this.isRecording()&&this.isValidToken(i)){const a=this.extractHiddenTokens(i);this.nodeBuilder.addHiddenNodes(a);const s=this.nodeBuilder.buildLeafNode(i,n),{assignment:o,crossRef:l}=this.getAssignment(n),u=this.current;if(o){const d=O0(n)?i.image:this.converter.convert(i.image,s);this.assign(o.operator,o.feature,d,s,l)}else if(G5(u)){let d=i.image;O0(n)||(d=this.converter.convert(d,s).toString()),u.value+=d}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,r,n,i,a){let s;!this.isRecording()&&!n&&(s=this.nodeBuilder.buildCompositeNode(i));let o;try{o=this.wrapper.wrapSubrule(e,r,a)}finally{this.isRecording()||(o===void 0&&!n&&(o=this.construct()),o!==void 0&&s&&s.length>0&&this.performSubruleAssignment(o,i,s))}}performSubruleAssignment(e,r,n){const{assignment:i,crossRef:a}=this.getAssignment(r);if(i)this.assign(i.operator,i.feature,e,n,a);else if(!i){const s=this.current;if(G5(s))s.value+=e.toString();else if(typeof e=="object"&&e){const l=this.assignWithoutOverride(e,s);this.stack.pop(),this.stack.push(l)}}}action(e,r){if(!this.isRecording()){let n=this.current;if(r.feature&&r.operator){n=this.construct(),this.nodeBuilder.removeNode(n.$cstNode),this.nodeBuilder.buildCompositeNode(r).content.push(n.$cstNode);const a={$type:e};this.stack.push(a),this.assign(r.operator,r.feature,n,n.$cstNode)}else n.$type=e}}construct(){if(this.isRecording())return;const e=this.stack.pop();return this.nodeBuilder.construct(e),"$infixName"in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):G5(e)?this.converter.convert(e.value,e.$cstNode):(bY(this.astReflection,e),e)}constructInfix(e,r){const n=e.parts;if(!Array.isArray(n)||n.length===0)return;const i=e.operators;if(!Array.isArray(i)||n.length<2)return n[0];let a=0,s=-1;for(let m=0;ms?(s=v.precedence,a=m):v.precedence===s&&(v.rightAssoc||(a=m))}const o=i.slice(0,a),l=i.slice(a+1),u=n.slice(0,a+1),d=n.slice(a+1),h={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:o},f={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:d,operators:l},p=this.constructInfix(h,r),g=this.constructInfix(f,r);return{$type:e.$type,$cstNode:e.$cstNode,left:p,operator:i[a],right:g}}getAssignment(e){if(!this.assignmentMap.has(e)){const r=cg(e,I0);this.assignmentMap.set(e,{assignment:r,crossRef:r&&dg(r.terminal)?r.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,r,n,i,a){const s=this.current;let o;switch(a==="single"&&typeof n=="string"?o=this.linker.buildReference(s,r,i,n):a==="multi"&&typeof n=="string"?o=this.linker.buildMultiReference(s,r,i,n):o=n,e){case"=":{s[r]=o;break}case"?=":{s[r]=!0;break}case"+=":Array.isArray(s[r])||(s[r]=[]),s[r].push(o)}}assignWithoutOverride(e,r){for(const[i,a]of Object.entries(r)){const s=e[i];s===void 0?e[i]=a:Array.isArray(s)&&Array.isArray(a)&&(a.push(...s),e[i]=a)}const n=e.$cstNode;return n&&(n.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},k(qy,"LangiumParser"),qy),Yy,xwe=(Yy=class{buildMismatchTokenMessage(e){return Bm.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return Bm.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return Bm.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return Bm.buildEarlyExitMessage(e)}},k(Yy,"AbstractParserErrorMessageProvider"),Yy),Hy,TV=(Hy=class extends xwe{buildMismatchTokenMessage({expected:e,actual:r}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${r.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},k(Hy,"LangiumParserErrorMessageProvider"),Hy),Vy,Cwe=(Vy=class extends SV{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();const r=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=r.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,r){const n=this.wrapper.DEFINE_RULE(Swe(e.name),this.startImplementation(r).bind(this));return this.allRules.set(e.name,n),e.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return r=>{const n=this.keepStackSize();try{e(r)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,r,n){this.wrapper.wrapConsume(e,r),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,r,n,i,a){this.before(i),this.wrapper.wrapSubrule(e,r,a),this.after(i)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){const r=this.elementStack.lastIndexOf(e);r>=0&&this.elementStack.splice(r)}}get currIdx(){return this.wrapper.currIdx}},k(Vy,"LangiumCompletionParser"),Vy),lwt={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new TV},Wy,wwe=(Wy=class extends Kxt{constructor(e,r){const n=r&&"maxLookahead"in r;super(e,{...lwt,lookaheadStrategy:n?new ZH({maxLookahead:r.maxLookahead}):new swt({logging:r.skipValidations?()=>{}:void 0}),...r})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,r,n){return this.RULE(e,r,n)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,r){return this.consume(e,r,void 0)}wrapSubrule(e,r,n){return this.subrule(e,r,{ARGS:[n]})}wrapOr(e,r){this.or(e,r)}wrapOption(e,r){this.option(e,r)}wrapMany(e,r){this.many(e,r)}wrapAtLeastOne(e,r){this.atLeastOne(e,r)}rule(e){return e.call(this,{})}},k(Wy,"ChevrotainWrapper"),Wy),Ky,cwt=(Ky=class extends wwe{constructor(e,r,n){super(e,r),this.task=n}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,r,n){this.task.startSubTask(this.ruleName(r));try{return super.subrule(e,r,n)}finally{this.task.stopSubTask(this.ruleName(r))}}},k(Ky,"ProfilerWrapper"),Ky);function UA(t,e,r){return kwe({parser:e,tokens:r,ruleNames:new Map},t),e}k(UA,"createParser");function kwe(t,e){const r=rA(e,!1),n=Mn(e.rules).filter(Hs).filter(a=>r.has(a));for(const a of n){const s={...t,consume:1,optional:1,subrule:1,many:1,or:1};t.parser.rule(a,kh(s,a.definition))}const i=Mn(e.rules).filter(_b).filter(a=>r.has(a));for(const a of i)t.parser.rule(a,Awe(t,a))}k(kwe,"buildRules");function Awe(t,e){const r=e.call.rule.ref;if(!r)throw new Error("Could not resolve reference to infix operator rule: "+e.call.rule.$refText);if(Pl(r))throw new Error("Cannot use terminal rule in infix expression");const n=e.operators.precedences.flatMap(p=>p.operators),i={$type:"Group",elements:[]},a={$container:i,$type:"Assignment",feature:"parts",operator:"+=",terminal:e.call},s={$container:i,$type:"Group",elements:[],cardinality:"*"};i.elements.push(a,s);const l={$container:s,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:n}},u={...a,$container:s};s.elements.push(l,u);const h=n.map(p=>t.tokens[p.value]).map((p,g)=>({ALT:k(()=>t.parser.consume(g,p,l),"ALT")}));let f;return p=>{f??(f=GA(t,r)),t.parser.subrule(0,f,!1,a,p),t.parser.many(0,{DEF:k(()=>{t.parser.alternatives(0,h),t.parser.subrule(1,f,!1,u,p)},"DEF")})}}k(Awe,"buildInfixRule");function kh(t,e,r=!1){let n;if(O0(e))n=Mwe(t,e);else if(Th(e))n=Rwe(t,e);else if(I0(e))n=kh(t,e.terminal);else if(dg(e))n=xV(t,e);else if(D0(e))n=Nwe(t,e);else if(W7(e))n=Owe(t,e);else if(Q7(e))n=Dwe(t,e);else if(hg(e))n=Lwe(t,e);else if(kY(e)){const i=t.consume++;n=k(()=>t.parser.consume(i,Ch,e),"method")}else throw new J7(e.$cstNode,`Unexpected element type: ${e.$type}`);return CV(t,r?void 0:M4(e),n,e.cardinality)}k(kh,"buildElement");function Rwe(t,e){const r=Bp(e);return()=>t.parser.action(r,e)}k(Rwe,"buildAction");function Nwe(t,e){const r=e.rule.ref;if(ug(r)){const n=t.subrule++,i=Hs(r)&&r.fragment,a=e.arguments.length>0?Iwe(r,e.arguments):()=>({});let s;return o=>{s??(s=GA(t,r)),t.parser.subrule(n,s,i,e,a(o))}}else if(Pl(r)){const n=t.consume++,i=Ew(t,r.name);return()=>t.parser.consume(n,i,e)}else if(r)Gh();else throw new J7(e.$cstNode,`Undefined rule: ${e.rule.$refText}`)}k(Nwe,"buildRuleCall");function Iwe(t,e){if(e.some(n=>n.calledByName)){const n=e.map(i=>({parameterName:i.parameter?.ref?.name,predicate:Xl(i.value)}));return i=>{const a={};for(const{parameterName:s,predicate:o}of n)s&&(a[s]=o(i));return a}}else{const n=e.map(i=>Xl(i.value));return i=>{const a={};for(let s=0;se(n)||r(n)}else if(CY(t)){const e=Xl(t.left),r=Xl(t.right);return n=>e(n)&&r(n)}else if(NY(t)){const e=Xl(t.value);return r=>!e(r)}else if(IY(t)){const e=t.parameter.ref.name;return r=>r!==void 0&&r[e]===!0}else if(TY(t)){const e=!!t.true;return()=>e}Gh()}k(Xl,"buildPredicate");function Owe(t,e){if(e.elements.length===1)return kh(t,e.elements[0]);{const r=[];for(const i of e.elements){const a={ALT:kh(t,i,!0)},s=M4(i);s&&(a.GATE=Xl(s)),r.push(a)}const n=t.or++;return i=>t.parser.alternatives(n,r.map(a=>{const s={ALT:k(()=>a.ALT(i),"ALT")},o=a.GATE;return o&&(s.GATE=()=>o(i)),s}))}}k(Owe,"buildAlternatives");function Dwe(t,e){if(e.elements.length===1)return kh(t,e.elements[0]);const r=[];for(const o of e.elements){const l={ALT:kh(t,o,!0)},u=M4(o);u&&(l.GATE=Xl(u)),r.push(l)}const n=t.or++,i=k((o,l)=>{const u=l.getRuleStack().join("-");return`uGroup_${o}_${u}`},"idFunc"),a=k(o=>t.parser.alternatives(n,r.map((l,u)=>{const d={ALT:k(()=>!0,"ALT")},h=t.parser;d.ALT=()=>{if(l.ALT(o),!h.isRecording()){const p=i(n,h);h.unorderedGroups.get(p)||h.unorderedGroups.set(p,[]);const g=h.unorderedGroups.get(p);typeof g?.[u]>"u"&&(g[u]=!0)}};const f=l.GATE;return f?d.GATE=()=>f(o):d.GATE=()=>!h.unorderedGroups.get(i(n,h))?.[u],d})),"alternatives"),s=CV(t,M4(e),a,"*");return o=>{s(o),t.parser.isRecording()||t.parser.unorderedGroups.delete(i(n,t.parser))}}k(Dwe,"buildUnorderedGroup");function Lwe(t,e){const r=e.elements.map(n=>kh(t,n));return n=>r.forEach(i=>i(n))}k(Lwe,"buildGroup");function M4(t){if(hg(t))return t.guardCondition}k(M4,"getGuardCondition");function xV(t,e,r=e.terminal){if(r)if(D0(r)&&Hs(r.rule.ref)){const n=r.rule.ref,i=t.subrule++;let a;return s=>{a??(a=GA(t,n)),t.parser.subrule(i,a,!1,e,s)}}else if(D0(r)&&Pl(r.rule.ref)){const n=t.consume++,i=Ew(t,r.rule.ref.name);return()=>t.parser.consume(n,i,e)}else if(O0(r)){const n=t.consume++,i=Ew(t,r.value);return()=>t.parser.consume(n,i,e)}else throw new Error("Could not build cross reference parser");else{if(!e.type.ref)throw new Error("Could not resolve reference to type: "+e.type.$refText);const i=sA(e.type.ref)?.terminal;if(!i)throw new Error("Could not find name assignment for type: "+Bp(e.type.ref));return xV(t,e,i)}}k(xV,"buildCrossReference");function Mwe(t,e){const r=t.consume++,n=t.tokens[e.value];if(!n)throw new Error("Could not find token for keyword: "+e.value);return()=>t.parser.consume(r,n,e)}k(Mwe,"buildKeyword");function CV(t,e,r,n){const i=e&&Xl(e);if(!n)if(i){const a=t.or++;return s=>t.parser.alternatives(a,[{ALT:k(()=>r(s),"ALT"),GATE:k(()=>i(s),"GATE")},{ALT:h$(),GATE:k(()=>!i(s),"GATE")}])}else return r;if(n==="*"){const a=t.many++;return s=>t.parser.many(a,{DEF:k(()=>r(s),"DEF"),GATE:i?()=>i(s):void 0})}else if(n==="+"){const a=t.many++;if(i){const s=t.or++;return o=>t.parser.alternatives(s,[{ALT:k(()=>t.parser.atLeastOne(a,{DEF:k(()=>r(o),"DEF")}),"ALT"),GATE:k(()=>i(o),"GATE")},{ALT:h$(),GATE:k(()=>!i(o),"GATE")}])}else return s=>t.parser.atLeastOne(a,{DEF:k(()=>r(s),"DEF")})}else if(n==="?"){const a=t.optional++;return s=>t.parser.optional(a,{DEF:k(()=>r(s),"DEF"),GATE:i?()=>i(s):void 0})}else Gh()}k(CV,"wrap");function GA(t,e){const r=Pwe(t,e),n=t.parser.getRule(r);if(!n)throw new Error(`Rule "${r}" not found."`);return n}k(GA,"getRule");function Pwe(t,e){if(ug(e))return e.name;if(t.ruleNames.has(e))return t.ruleNames.get(e);{let r=e,n=r.$container,i=e.$type;for(;!Hs(n);)(hg(n)||W7(n)||Q7(n))&&(i=n.elements.indexOf(r).toString()+":"+i),r=n,n=n.$container;return i=n.name+":"+i,t.ruleNames.set(e,i),i}}k(Pwe,"getRuleName");function Ew(t,e){const r=t.tokens[e];if(!r)throw new Error(`Token "${e}" not found."`);return r}k(Ew,"getToken");function wV(t){const e=t.Grammar,r=t.parser.Lexer,n=new Cwe(t);return UA(e,n,r.definition),n.finalize(),n}k(wV,"createCompletionParser");function kV(t){const e=AV(t);return e.finalize(),e}k(kV,"createLangiumParser");function AV(t){const e=t.Grammar,r=t.parser.Lexer,n=new Twe(t);return UA(e,n,r.definition)}k(AV,"prepareLangiumParser");var Xy,qA=(Xy=class{constructor(){this.diagnostics=[]}buildTokens(e,r){const n=Mn(rA(e,!1)),i=this.buildTerminalTokens(n),a=this.buildKeywordTokens(n,i,r);return a.push(...i),a}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(Pl).filter(r=>!r.fragment).map(r=>this.buildTerminalToken(r)).toArray()}buildTerminalToken(e){const r=zT(e),n=this.requiresCustomPattern(r)?this.regexPatternFunction(r):r,i={name:e.name,PATTERN:n};return typeof n=="function"&&(i.LINE_BREAKS=!0),e.hidden&&(i.GROUP=tA(r)?Us.SKIPPED:"hidden"),i}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s"))}regexPatternFunction(e){const r=new RegExp(e,e.flags+"y");return(n,i)=>(r.lastIndex=i,r.exec(n))}buildKeywordTokens(e,r,n){return e.filter(ug).flatMap(i=>rd(i).filter(O0)).distinct(i=>i.value).toArray().sort((i,a)=>a.value.length-i.value.length).map(i=>this.buildKeywordToken(i,r,!!n?.caseInsensitive))}buildKeywordToken(e,r,n){const i=this.buildKeywordPattern(e,n),a={name:e.value,PATTERN:i,LONGER_ALT:this.findLongerAlt(e,r)};return typeof i=="function"&&(a.LINE_BREAKS=!0),a}buildKeywordPattern(e,r){return r?new RegExp(u2(e.value),"i"):e.value}findLongerAlt(e,r){return r.reduce((n,i)=>{const a=i?.PATTERN;return a?.source&&JY("^"+a.source+"$",e.value)&&n.push(i),n},[])}},k(Xy,"DefaultTokenBuilder"),Xy),jy,RV=(jy=class{convert(e,r){let n=r.grammarSource;if(dg(n)&&(n=iH(n)),D0(n)){const i=n.rule.ref;if(!i)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(i,e,r)}return e}runConverter(e,r,n){switch(e.name.toUpperCase()){case"INT":return Mc.convertInt(r);case"STRING":return Mc.convertString(r);case"ID":return Mc.convertID(r)}switch(fH(e)?.toLowerCase()){case"number":return Mc.convertNumber(r);case"boolean":return Mc.convertBoolean(r);case"bigint":return Mc.convertBigint(r);case"date":return Mc.convertDate(r);default:return r}}},k(jy,"DefaultValueConverter"),jy),Mc;(function(t){function e(u){let d="";for(let h=1;h{typeof setImmediate>"u"?setTimeout(t,0):setImmediate(t)})}k(YA,"delayNextTick");var q5=0,Bwe=10;function HA(){return q5=performance.now(),new Xn.CancellationTokenSource}k(HA,"startCancelableOperation");function NV(t){Bwe=t}k(NV,"setInterruptionPeriod");var Qc=Symbol("OperationCancelled");function kg(t){return t===Qc}k(kg,"isOperationCancelled");async function Ma(t){if(t===Xn.CancellationToken.None)return;const e=performance.now();if(e-q5>=Bwe&&(q5=e,await YA(),q5=performance.now()),t.isCancellationRequested)throw Qc}k(Ma,"interruptAndCheck");var Qy,F0=(Qy=class{constructor(){this.promise=new Promise((e,r)=>{this.resolve=n=>(e(n),this),this.reject=n=>(r(n),this)})}},k(Qy,"Deferred"),Qy),jd,ioe=(jd=class{constructor(e,r,n,i){this._uri=e,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const r=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(r,n)}return this._content}update(e,r){for(const n of e)if(jd.isIncremental(n)){const i=OV(n.range),a=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,a)+n.text+this._content.substring(s,this._content.length);const o=Math.max(i.start.line,0),l=Math.max(i.end.line,0);let u=this._lineOffsets;const d=b$(n.text,!1,a);if(l-o===d.length)for(let f=0,p=d.length;fe?i=s:n=s+1}const a=n-1;return e=this.ensureBeforeEOL(e,r[a]),{line:a,character:e-r[a]}}offsetAt(e){const r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;const n=r[e.line];if(e.character<=0)return n;const i=e.line+1r&&IV(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const r=e;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(e){const r=e;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},k(jd,"FullTextDocument"),jd),Sw;(function(t){function e(i,a,s,o){return new ioe(i,a,s,o)}k(e,"create"),t.create=e;function r(i,a,s){if(i instanceof ioe)return i.update(a,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}k(r,"update"),t.update=r;function n(i,a){const s=i.getText(),o=Tw(a.map(Fwe),(d,h)=>{const f=d.range.start.line-h.range.start.line;return f===0?d.range.start.character-h.range.start.character:f});let l=0;const u=[];for(const d of o){const h=i.offsetAt(d.range.start);if(hl&&u.push(s.substring(l,h)),d.newText.length&&u.push(d.newText),l=i.offsetAt(d.range.end)}return u.push(s.substr(l)),u.join("")}k(n,"applyEdits"),t.applyEdits=n})(Sw||(Sw={}));function Tw(t,e){if(t.length<=1)return t;const r=t.length/2|0,n=t.slice(0,r),i=t.slice(r);Tw(n,e),Tw(i,e);let a=0,s=0,o=0;for(;ar.line||e.line===r.line&&e.character>r.character?{start:r,end:e}:t}k(OV,"getWellformedRange");function Fwe(t){const e=OV(t.range);return e!==t.range?{newText:t.newText,range:e}:t}k(Fwe,"getWellformedEdit");var $we;(()=>{var t={975:F=>{function A(L){if(typeof L!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(L))}k(A,"e");function I(L,R){for(var P,z="",B=0,q=-1,Y=0,Q=0;Q<=L.length;++Q){if(Q2){var H=z.lastIndexOf("/");if(H!==z.length-1){H===-1?(z="",B=0):B=(z=z.slice(0,H)).length-1-z.lastIndexOf("/"),q=Q,Y=0;continue}}else if(z.length===2||z.length===1){z="",B=0,q=Q,Y=0;continue}}R&&(z.length>0?z+="/..":z="..",B=2)}else z.length>0?z+="/"+L.slice(q+1,Q):z=L.slice(q+1,Q),B=Q-q-1;q=Q,Y=0}else P===46&&Y!==-1?++Y:Y=-1}return z}k(I,"r");var D={resolve:k(function(){for(var L,R="",P=!1,z=arguments.length-1;z>=-1&&!P;z--){var B;z>=0?B=arguments[z]:(L===void 0&&(L=process.cwd()),B=L),A(B),B.length!==0&&(R=B+"/"+R,P=B.charCodeAt(0)===47)}return R=I(R,!P),P?R.length>0?"/"+R:"/":R.length>0?R:"."},"resolve"),normalize:k(function(L){if(A(L),L.length===0)return".";var R=L.charCodeAt(0)===47,P=L.charCodeAt(L.length-1)===47;return(L=I(L,!R)).length!==0||R||(L="."),L.length>0&&P&&(L+="/"),R?"/"+L:L},"normalize"),isAbsolute:k(function(L){return A(L),L.length>0&&L.charCodeAt(0)===47},"isAbsolute"),join:k(function(){if(arguments.length===0)return".";for(var L,R=0;R0&&(L===void 0?L=P:L+="/"+P)}return L===void 0?".":D.normalize(L)},"join"),relative:k(function(L,R){if(A(L),A(R),L===R||(L=D.resolve(L))===(R=D.resolve(R)))return"";for(var P=1;PQ){if(R.charCodeAt(q+J)===47)return R.slice(q+J+1);if(J===0)return R.slice(q+J)}else B>Q&&(L.charCodeAt(P+J)===47?H=J:J===0&&(H=0));break}var Z=L.charCodeAt(P+J);if(Z!==R.charCodeAt(q+J))break;Z===47&&(H=J)}var pe="";for(J=P+H+1;J<=z;++J)J!==z&&L.charCodeAt(J)!==47||(pe.length===0?pe+="..":pe+="/..");return pe.length>0?pe+R.slice(q+H):(q+=H,R.charCodeAt(q)===47&&++q,R.slice(q))},"relative"),_makeLong:k(function(L){return L},"_makeLong"),dirname:k(function(L){if(A(L),L.length===0)return".";for(var R=L.charCodeAt(0),P=R===47,z=-1,B=!0,q=L.length-1;q>=1;--q)if((R=L.charCodeAt(q))===47){if(!B){z=q;break}}else B=!1;return z===-1?P?"/":".":P&&z===1?"//":L.slice(0,z)},"dirname"),basename:k(function(L,R){if(R!==void 0&&typeof R!="string")throw new TypeError('"ext" argument must be a string');A(L);var P,z=0,B=-1,q=!0;if(R!==void 0&&R.length>0&&R.length<=L.length){if(R.length===L.length&&R===L)return"";var Y=R.length-1,Q=-1;for(P=L.length-1;P>=0;--P){var H=L.charCodeAt(P);if(H===47){if(!q){z=P+1;break}}else Q===-1&&(q=!1,Q=P+1),Y>=0&&(H===R.charCodeAt(Y)?--Y==-1&&(B=P):(Y=-1,B=Q))}return z===B?B=Q:B===-1&&(B=L.length),L.slice(z,B)}for(P=L.length-1;P>=0;--P)if(L.charCodeAt(P)===47){if(!q){z=P+1;break}}else B===-1&&(q=!1,B=P+1);return B===-1?"":L.slice(z,B)},"basename"),extname:k(function(L){A(L);for(var R=-1,P=0,z=-1,B=!0,q=0,Y=L.length-1;Y>=0;--Y){var Q=L.charCodeAt(Y);if(Q!==47)z===-1&&(B=!1,z=Y+1),Q===46?R===-1?R=Y:q!==1&&(q=1):R!==-1&&(q=-1);else if(!B){P=Y+1;break}}return R===-1||z===-1||q===0||q===1&&R===z-1&&R===P+1?"":L.slice(R,z)},"extname"),format:k(function(L){if(L===null||typeof L!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof L);return(function(R,P){var z=P.dir||P.root,B=P.base||(P.name||"")+(P.ext||"");return z?z===P.root?z+B:z+"/"+B:B})(0,L)},"format"),parse:k(function(L){A(L);var R={root:"",dir:"",base:"",ext:"",name:""};if(L.length===0)return R;var P,z=L.charCodeAt(0),B=z===47;B?(R.root="/",P=1):P=0;for(var q=-1,Y=0,Q=-1,H=!0,J=L.length-1,Z=0;J>=P;--J)if((z=L.charCodeAt(J))!==47)Q===-1&&(H=!1,Q=J+1),z===46?q===-1?q=J:Z!==1&&(Z=1):q!==-1&&(Z=-1);else if(!H){Y=J+1;break}return q===-1||Q===-1||Z===0||Z===1&&q===Q-1&&q===Y+1?Q!==-1&&(R.base=R.name=Y===0&&B?L.slice(1,Q):L.slice(Y,Q)):(Y===0&&B?(R.name=L.slice(1,q),R.base=L.slice(1,Q)):(R.name=L.slice(Y,q),R.base=L.slice(Y,Q)),R.ext=L.slice(q,Q)),Y>0?R.dir=L.slice(0,Y-1):B&&(R.dir="/"),R},"parse"),sep:"/",delimiter:":",win32:null,posix:null};D.posix=D,F.exports=D}},e={};function r(F){var A=e[F];if(A!==void 0)return A.exports;var I=e[F]={exports:{}};return t[F](I,I.exports,r),I.exports}k(r,"r"),r.d=(F,A)=>{for(var I in A)r.o(A,I)&&!r.o(F,I)&&Object.defineProperty(F,I,{enumerable:!0,get:A[I]})},r.o=(F,A)=>Object.prototype.hasOwnProperty.call(F,A),r.r=F=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(F,"__esModule",{value:!0})};var n={};let i;r.r(n),r.d(n,{URI:k(()=>f,"URI"),Utils:k(()=>O,"Utils")}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const a=/^\w[\w\d+.-]*$/,s=/^\//,o=/^\/\//;function l(F,A){if(!F.scheme&&A)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${F.authority}", path: "${F.path}", query: "${F.query}", fragment: "${F.fragment}"}`);if(F.scheme&&!a.test(F.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(F.path){if(F.authority){if(!s.test(F.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(o.test(F.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}k(l,"a");const u="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,M=class M{static isUri(A){return A instanceof M||!!A&&typeof A.authority=="string"&&typeof A.fragment=="string"&&typeof A.path=="string"&&typeof A.query=="string"&&typeof A.scheme=="string"&&typeof A.fsPath=="string"&&typeof A.with=="function"&&typeof A.toString=="function"}scheme;authority;path;query;fragment;constructor(A,I,D,L,R,P=!1){typeof A=="object"?(this.scheme=A.scheme||u,this.authority=A.authority||u,this.path=A.path||u,this.query=A.query||u,this.fragment=A.fragment||u):(this.scheme=(function(z,B){return z||B?z:"file"})(A,P),this.authority=I||u,this.path=(function(z,B){switch(z){case"https":case"http":case"file":B?B[0]!==d&&(B=d+B):B=d}return B})(this.scheme,D||u),this.query=L||u,this.fragment=R||u,l(this,P))}get fsPath(){return b(this,!1)}with(A){if(!A)return this;let{scheme:I,authority:D,path:L,query:R,fragment:P}=A;return I===void 0?I=this.scheme:I===null&&(I=u),D===void 0?D=this.authority:D===null&&(D=u),L===void 0?L=this.path:L===null&&(L=u),R===void 0?R=this.query:R===null&&(R=u),P===void 0?P=this.fragment:P===null&&(P=u),I===this.scheme&&D===this.authority&&L===this.path&&R===this.query&&P===this.fragment?this:new g(I,D,L,R,P)}static parse(A,I=!1){const D=h.exec(A);return D?new g(D[2]||u,C(D[4]||u),C(D[5]||u),C(D[7]||u),C(D[9]||u),I):new g(u,u,u,u,u)}static file(A){let I=u;if(i&&(A=A.replace(/\\/g,d)),A[0]===d&&A[1]===d){const D=A.indexOf(d,2);D===-1?(I=A.substring(2),A=d):(I=A.substring(2,D),A=A.substring(D)||d)}return new g("file",I,A,u,u)}static from(A){const I=new g(A.scheme,A.authority,A.path,A.query,A.fragment);return l(I,!0),I}toString(A=!1){return _(this,A)}toJSON(){return this}static revive(A){if(A){if(A instanceof M)return A;{const I=new g(A);return I._formatted=A.external,I._fsPath=A._sep===p?A.fsPath:null,I}}return A}};k(M,"l");let f=M;const p=i?1:void 0,$=class $ extends f{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(A=!1){return A?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const A={$mid:1};return this._fsPath&&(A.fsPath=this._fsPath,A._sep=p),this._formatted&&(A.external=this._formatted),this.path&&(A.path=this.path),this.scheme&&(A.scheme=this.scheme),this.authority&&(A.authority=this.authority),this.query&&(A.query=this.query),this.fragment&&(A.fragment=this.fragment),A}};k($,"d");let g=$;const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function y(F,A,I){let D,L=-1;for(let R=0;R=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===45||P===46||P===95||P===126||A&&P===47||I&&P===91||I&&P===93||I&&P===58)L!==-1&&(D+=encodeURIComponent(F.substring(L,R)),L=-1),D!==void 0&&(D+=F.charAt(R));else{D===void 0&&(D=F.substr(0,R));const z=m[P];z!==void 0?(L!==-1&&(D+=encodeURIComponent(F.substring(L,R)),L=-1),D+=z):L===-1&&(L=R)}}return L!==-1&&(D+=encodeURIComponent(F.substring(L))),D!==void 0?D:F}k(y,"m");function v(F){let A;for(let I=0;I1&&F.scheme==="file"?`//${F.authority}${F.path}`:F.path.charCodeAt(0)===47&&(F.path.charCodeAt(1)>=65&&F.path.charCodeAt(1)<=90||F.path.charCodeAt(1)>=97&&F.path.charCodeAt(1)<=122)&&F.path.charCodeAt(2)===58?A?F.path.substr(1):F.path[1].toLowerCase()+F.path.substr(2):F.path,i&&(I=I.replace(/\//g,"\\")),I}k(b,"v");function _(F,A){const I=A?v:y;let D="",{scheme:L,authority:R,path:P,query:z,fragment:B}=F;if(L&&(D+=L,D+=":"),(R||L==="file")&&(D+=d,D+=d),R){let q=R.indexOf("@");if(q!==-1){const Y=R.substr(0,q);R=R.substr(q+1),q=Y.lastIndexOf(":"),q===-1?D+=I(Y,!1,!1):(D+=I(Y.substr(0,q),!1,!1),D+=":",D+=I(Y.substr(q+1),!1,!0)),D+="@"}R=R.toLowerCase(),q=R.lastIndexOf(":"),q===-1?D+=I(R,!1,!0):(D+=I(R.substr(0,q),!1,!0),D+=R.substr(q))}if(P){if(P.length>=3&&P.charCodeAt(0)===47&&P.charCodeAt(2)===58){const q=P.charCodeAt(1);q>=65&&q<=90&&(P=`/${String.fromCharCode(q+32)}:${P.substr(3)}`)}else if(P.length>=2&&P.charCodeAt(1)===58){const q=P.charCodeAt(0);q>=65&&q<=90&&(P=`${String.fromCharCode(q+32)}:${P.substr(2)}`)}D+=I(P,!0,!1)}return z&&(D+="?",D+=I(z,!1,!1)),B&&(D+="#",D+=A?B:y(B,!1,!1)),D}k(_,"b");function E(F){try{return decodeURIComponent(F)}catch{return F.length>3?F.substr(0,3)+E(F.substr(3)):F}}k(E,"C");const x=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(F){return F.match(x)?F.replace(x,(A=>E(A))):F}k(C,"w");var T=r(975);const w=T.posix||T,N="/";var O;(function(F){F.joinPath=function(A,...I){return A.with({path:w.join(A.path,...I)})},F.resolvePath=function(A,...I){let D=A.path,L=!1;D[0]!==N&&(D=N+D,L=!0);let R=w.resolve(D,...I);return L&&R[0]===N&&!A.authority&&(R=R.substring(1)),A.with({path:R})},F.dirname=function(A){if(A.path.length===0||A.path===N)return A;let I=w.dirname(A.path);return I.length===1&&I.charCodeAt(0)===46&&(I=""),A.with({path:I})},F.basename=function(A){return w.basename(A.path)},F.extname=function(A){return w.extname(A.path)}})(O||(O={})),$we=n})();var{URI:Lo,Utils:X2}=$we,Fs;(function(t){t.basename=X2.basename,t.dirname=X2.dirname,t.extname=X2.extname,t.joinPath=X2.joinPath,t.resolvePath=X2.resolvePath;const e=typeof process=="object"&&process?.platform==="win32";function r(s,o){return s?.toString()===o?.toString()}k(r,"equals"),t.equals=r;function n(s,o){const l=typeof s=="string"?Lo.parse(s).path:s.path,u=typeof o=="string"?Lo.parse(o).path:o.path,d=l.split("/").filter(m=>m.length>0),h=u.split("/").filter(m=>m.length>0);if(e){const m=/^[A-Z]:$/;if(d[0]&&m.test(d[0])&&(d[0]=d[0].toLowerCase()),h[0]&&m.test(h[0])&&(h[0]=h[0].toLowerCase()),d[0]!==h[0])return u.substring(1)}let f=0;for(;f({name:i.name,uri:Fs.joinPath(Lo.parse(r),i.name).toString(),element:i.element})):[]}all(){return this.collectValues(this.root)}findAll(e){const r=this.getNode(Fs.normalize(e),!1);return r?this.collectValues(r):[]}getNode(e,r){const n=e.split("/");e.charAt(e.length-1)==="/"&&n.pop();let i=this.root;for(const a of n){let s=i.children.get(a);if(!s)if(r)s={name:a,children:new Map,parent:i},i.children.set(a,s);else return;i=s}return i}collectValues(e){const r=[];e.element&&r.push(e.element);for(const n of e.children.values())r.push(...this.collectValues(n));return r}},k(Zy,"UriTrie"),Zy),sn;(function(t){t[t.Changed=0]="Changed",t[t.Parsed=1]="Parsed",t[t.IndexedContent=2]="IndexedContent",t[t.ComputedScopes=3]="ComputedScopes",t[t.Linked=4]="Linked",t[t.IndexedReferences=5]="IndexedReferences",t[t.Validated=6]="Validated"})(sn||(sn={}));var Jy,zwe=(Jy=class{constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,r=Xn.CancellationToken.None){const n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,r)}fromTextDocument(e,r,n){return r=r??Lo.parse(e.uri),Xn.CancellationToken.is(n)?this.createAsync(r,e,n):this.create(r,e,n)}fromString(e,r,n){return Xn.CancellationToken.is(n)?this.createAsync(r,e,n):this.create(r,e,n)}fromModel(e,r){return this.create(r,{$model:e})}create(e,r,n){if(typeof r=="string"){const i=this.parse(e,r,n);return this.createLangiumDocument(i,e,void 0,r)}else if("$model"in r){const i={value:r.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(i,e)}else{const i=this.parse(e,r.getText(),n);return this.createLangiumDocument(i,e,r)}}async createAsync(e,r,n){if(typeof r=="string"){const i=await this.parseAsync(e,r,n);return this.createLangiumDocument(i,e,void 0,r)}else{const i=await this.parseAsync(e,r.getText(),n);return this.createLangiumDocument(i,e,r)}}createLangiumDocument(e,r,n,i){let a;if(n)a={parseResult:e,uri:r,state:sn.Parsed,references:[],textDocument:n};else{const s=this.createTextDocumentGetter(r,i);a={parseResult:e,uri:r,state:sn.Parsed,references:[],get textDocument(){return s()}}}return e.value.$document=a,a}async update(e,r){const n=e.parseResult.value.$cstNode?.root.fullText,i=this.textDocuments?.get(e.uri.toString()),a=i?i.getText():await this.fileSystemProvider.readFile(e.uri);if(i)Object.defineProperty(e,"textDocument",{value:i});else{const s=this.createTextDocumentGetter(e.uri,a);Object.defineProperty(e,"textDocument",{get:s})}return n!==a&&(e.parseResult=await this.parseAsync(e.uri,a,r),e.parseResult.value.$document=e),e.state=sn.Parsed,e}parse(e,r,n){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(r,n)}parseAsync(e,r,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(r,n)}createTextDocumentGetter(e,r){const n=this.serviceRegistry;let i;return()=>i??(i=Sw.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,r??""))}},k(Jy,"DefaultLangiumDocumentFactory"),Jy),ev,Uwe=(ev=class{constructor(e){this.documentTrie=new DV,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return Mn(this.documentTrie.all())}addDocument(e){const r=e.uri.toString();if(this.documentTrie.has(r))throw new Error(`A document with the URI '${r}' is already present.`);this.documentTrie.insert(r,e)}getDocument(e){const r=e.toString();return this.documentTrie.find(r)}getDocuments(e){const r=e.toString();return this.documentTrie.findAll(r)}async getOrCreateDocument(e,r){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,r),this.addDocument(n),n)}createDocument(e,r,n){if(n)return this.langiumDocumentFactory.fromString(r,e,n).then(i=>(this.addDocument(i),i));{const i=this.langiumDocumentFactory.fromString(r,e);return this.addDocument(i),i}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){const r=e.toString(),n=this.documentTrie.find(r);return n&&this.documentBuilder().resetToState(n,sn.Changed),n}deleteDocument(e){const r=e.toString(),n=this.documentTrie.find(r);return n&&(n.state=sn.Changed,this.documentTrie.delete(r)),n}deleteDocuments(e){const r=e.toString(),n=this.documentTrie.findAll(r);for(const i of n)i.state=sn.Changed;return this.documentTrie.delete(r),n}},k(ev,"DefaultLangiumDocuments"),ev),Rf=Symbol("RefResolving"),tv,Gwe=(tv=class{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,r=Xn.CancellationToken.None){if(this.profiler?.isActive("linking")){const n=this.profiler.createTask("linking",this.languageId);n.start();try{for(const i of oc(e.parseResult.value))await Ma(r),vb(i).forEach(a=>{const s=`${i.$type}:${a.property}`;n.startSubTask(s);try{this.doLink(a,e)}finally{n.stopSubTask(s)}})}finally{n.stop()}}else for(const n of oc(e.parseResult.value))await Ma(r),vb(n).forEach(i=>this.doLink(i,e))}doLink(e,r){const n=e.reference;if("_ref"in n&&n._ref===void 0){n._ref=Rf;try{const i=this.getCandidate(e);if(Bf(i))n._ref=i;else{n._nodeDescription=i;const a=this.loadAstNode(i);n._ref=a??this.createLinkingError(e,i)}}catch(i){console.error(`An error occurred while resolving reference to '${n.$refText}':`,i);const a=i.message??String(i);n._ref={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${a}`}}r.references.push(n)}else if("_items"in n&&n._items===void 0){n._items=Rf;try{const i=this.getCandidates(e),a=[];if(Bf(i))n._linkingError=i;else for(const s of i){const o=this.loadAstNode(s);o&&a.push({ref:o,$nodeDescription:s})}n._items=a}catch(i){n._linkingError={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${i}`},n._items=[]}r.references.push(n)}}unlink(e){for(const r of e.references)"_ref"in r?(r._ref=void 0,delete r._nodeDescription):"_items"in r&&(r._items=void 0,delete r._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){const n=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(i=>`${i.documentUri}#${i.path}`).toArray();return n.length>0?n:this.createLinkingError(e)}buildReference(e,r,n,i){const a=this,s={$refNode:n,$refText:i,_ref:void 0,get ref(){if(ea(this._ref))return this._ref;if(yY(this._nodeDescription)){const o=a.loadAstNode(this._nodeDescription);this._ref=o??a.createLinkingError({reference:s,container:e,property:r},this._nodeDescription)}else if(this._ref===void 0){this._ref=Rf;const o=r1(e).$document,l=a.getLinkedNode({reference:s,container:e,property:r});if(l.error&&o&&o.state0))return this._linkingError=a.createLinkingError({reference:s,container:e,property:r})}};return s}throwCyclicReferenceError(e,r,n){throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${r} (symbol '${n}')`)}getLinkedNode(e){try{const r=this.getCandidate(e);if(Bf(r))return{error:r};const n=this.loadAstNode(r);return n?{node:n,descr:r}:{descr:r,error:this.createLinkingError(e,r)}}catch(r){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,r);const n=r.message??String(r);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${n}`}}}}loadAstNode(e){if(e.node)return e.node;const r=this.langiumDocuments().getDocument(e.documentUri);if(r)return this.astNodeLocator.getAstNode(r.parseResult.value,e.path)}createLinkingError(e,r){const n=r1(e.container).$document;n&&n.statedg(r)&&r.isMulti)}findDeclarations(e){if(e){const r=lH(e),n=e.astNode;if(r&&n){const i=n[r.feature];if(Bs(i)||tu(i))return U6(i);if(Array.isArray(i)){for(const a of i)if((Bs(a)||tu(a))&&a.$refNode&&a.$refNode.offset<=e.offset&&a.$refNode.end>=e.end)return U6(a)}}if(n){const i=this.nameProvider.getNameNode(n);if(i&&(i===e||UY(e,i)))return this.getSelfNodes(n)}}return[]}getSelfNodes(e){if(this.hasMultiReference){const r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),n=this.getNodeFromReferenceDescription(r.head());if(n){for(const i of vb(n))if(tu(i.reference)&&i.reference.items.some(a=>a.ref===e))return i.reference.items.map(a=>a.ref)}return[e]}else return[e]}getNodeFromReferenceDescription(e){if(!e)return;const r=this.documents.getDocument(e.sourceUri);if(r)return this.nodeLocator.getAstNode(r.parseResult.value,e.sourcePath)}findDeclarationNodes(e){const r=this.findDeclarations(e),n=[];for(const i of r){const a=this.nameProvider.getNameNode(i)??i.$cstNode;a&&n.push(a)}return n}findReferences(e,r){const n=[];r.includeDeclaration&&n.push(...this.getSelfReferences(e));let i=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return r.documentUri&&(i=i.filter(a=>Fs.equals(a.sourceUri,r.documentUri))),n.push(...i),Mn(n)}getSelfReferences(e){const r=this.getSelfNodes(e),n=[];for(const i of r){const a=this.nameProvider.getNameNode(i);if(a){const s=sc(i),o=this.nodeLocator.getAstNodePath(i);n.push({sourceUri:s.uri,sourcePath:o,targetUri:s.uri,targetPath:o,segment:Eb(a),local:!0})}}return n}},k(nv,"DefaultReferences"),nv),iv,$0=(iv=class{constructor(e){if(this.map=new Map,e)for(const[r,n]of e)this.add(r,n)}get size(){return b4.sum(Mn(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,r){if(r===void 0)return this.map.delete(e);{const n=this.map.get(e);if(n){const i=n.indexOf(r);if(i>=0)return n.length===1?this.map.delete(e):n.splice(i,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){const r=this.map.get(e);return r?Mn(r):gb}has(e,r){if(r===void 0)return this.map.has(e);{const n=this.map.get(e);return n?n.indexOf(r)>=0:!1}}add(e,r){return this.map.has(e)?this.map.get(e).push(r):this.map.set(e,[r]),this}addAll(e,r){return this.map.has(e)?this.map.get(e).push(...r):this.map.set(e,Array.from(r)),this}forEach(e){this.map.forEach((r,n)=>r.forEach(i=>e(i,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Mn(this.map.entries()).flatMap(([e,r])=>r.map(n=>[e,n]))}keys(){return Mn(this.map.keys())}values(){return Mn(this.map.values()).flat()}entriesGroupedByKey(){return Mn(this.map.entries())}},k(iv,"MultiMap"),iv),av,xw=(av=class{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[r,n]of e)this.set(r,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,r){return this.map.set(e,r),this.inverse.set(r,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const r=this.map.get(e);return r!==void 0?(this.map.delete(e),this.inverse.delete(r),!0):!1}},k(av,"BiMap"),av),sv,Hwe=(sv=class{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,r=Xn.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,r)}async collectExportedSymbolsForNode(e,r,n=PT,i=Xn.CancellationToken.None){const a=[];this.addExportedSymbol(e,a,r);for(const s of n(e))await Ma(i),this.addExportedSymbol(s,a,r);return a}addExportedSymbol(e,r,n){const i=this.nameProvider.getName(e);i&&r.push(this.descriptions.createDescription(e,i,n))}async collectLocalSymbols(e,r=Xn.CancellationToken.None){const n=e.parseResult.value,i=new $0;for(const a of rd(n))await Ma(r),this.addLocalSymbol(a,e,i);return i}addLocalSymbol(e,r,n){const i=e.$container;if(i){const a=this.nameProvider.getName(e);a&&n.add(i,this.descriptions.createDescription(e,a,r))}}},k(sv,"DefaultScopeComputation"),sv),ov,E$=(ov=class{constructor(e,r,n){this.elements=e,this.outerScope=r,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.find(i=>i.name.toLowerCase()===r):this.elements.find(i=>i.name===e);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.filter(i=>i.name.toLowerCase()===r):this.elements.filter(i=>i.name===e);return(this.concatOuterScope||n.isEmpty())&&this.outerScope?n.concat(this.outerScope.getElements(e)):n}},k(ov,"StreamScope"),ov),lv,uwt=(lv=class{constructor(e,r,n){this.elements=new Map,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(const i of e){const a=this.caseInsensitive?i.name.toLowerCase():i.name;this.elements.set(a,i)}this.outerScope=r}getElement(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r),i=n?[n]:[];return(this.concatOuterScope||i.length>0)&&this.outerScope?Mn(i).concat(this.outerScope.getElements(e)):Mn(i)}getAllElements(){let e=Mn(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},k(lv,"MapScope"),lv),cv,Vwe=(cv=class{constructor(e,r,n){this.elements=new $0,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(const i of e){const a=this.caseInsensitive?i.name.toLowerCase():i.name;this.elements.add(a,i)}this.outerScope=r}getElement(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r)[0];if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r);return(this.concatOuterScope||n.length===0)&&this.outerScope?Mn(n).concat(this.outerScope.getElements(e)):Mn(n)}getAllElements(){let e=Mn(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},k(cv,"MultiMapScope"),cv),dwt={getElement(){},getElements(){return gb},getAllElements(){return gb}},uv,VA=(uv=class{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},k(uv,"DisposableCache"),uv),dv,MV=(dv=class extends VA{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,r){this.throwIfDisposed(),this.cache.set(e,r)}get(e,r){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(r){const n=r();return this.cache.set(e,n),n}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},k(dv,"SimpleCache"),dv),hv,WA=(hv=class extends VA{constructor(e){super(),this.cache=new Map,this.converter=e??(r=>r)}has(e,r){return this.throwIfDisposed(),this.cacheForContext(e).has(r)}set(e,r,n){this.throwIfDisposed(),this.cacheForContext(e).set(r,n)}get(e,r,n){this.throwIfDisposed();const i=this.cacheForContext(e);if(i.has(r))return i.get(r);if(n){const a=n();return i.set(r,a),a}else return}delete(e,r){return this.throwIfDisposed(),this.cacheForContext(e).delete(r)}clear(e){if(this.throwIfDisposed(),e){const r=this.converter(e);this.cache.delete(r)}else this.cache.clear()}cacheForContext(e){const r=this.converter(e);let n=this.cache.get(r);return n||(n=new Map,this.cache.set(r,n)),n}},k(hv,"ContextCache"),hv),fv,Wwe=(fv=class extends WA{constructor(e,r){super(n=>n.toString()),r?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(r,n=>{this.clear(n.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,i)=>{for(const a of i)this.clear(a)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,i)=>{const a=n.concat(i);for(const s of a)this.clear(s)}))}},k(fv,"DocumentCache"),fv),pv,PV=(pv=class extends MV{constructor(e,r){super(),r?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(r,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,i)=>{i.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},k(pv,"WorkspaceCache"),pv),gv,Kwe=(gv=class{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new PV(e.shared)}getScope(e){const r=[],n=this.reflection.getReferenceType(e),i=sc(e.container).localSymbols;if(i){let s=e.container;do i.has(s)&&r.push(i.getStream(s).filter(o=>this.reflection.isSubtype(o.type,n))),s=s.$container;while(s)}let a=this.getGlobalScope(n,e);for(let s=r.length-1;s>=0;s--)a=this.createScope(r[s],a);return a}createScope(e,r,n){return new E$(Mn(e),r,n)}createScopeForNodes(e,r,n){const i=Mn(e).map(a=>{const s=this.nameProvider.getName(a);if(s)return this.descriptions.createDescription(a,s)}).nonNullable();return new E$(i,r,n)}getGlobalScope(e,r){return this.globalScopeCache.get(e,()=>new Vwe(this.indexManager.allElements(e)))}},k(gv,"DefaultScopeProvider"),gv);function BV(t){return typeof t.$comment=="string"}k(BV,"isAstNodeWithComment");function S$(t){return typeof t=="object"&&!!t&&("$ref"in t||"$error"in t)}k(S$,"isIntermediateReference");var mv,Xwe=(mv=class{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,r){const n=r??{},i=r?.replacer,a=k((o,l)=>this.replacer(o,l,n),"defaultReplacer"),s=i?(o,l)=>i(o,l,a):a;try{return this.currentDocument=sc(e),JSON.stringify(e,s,r?.space)}finally{this.currentDocument=void 0}}deserialize(e,r){const n=r??{},i=JSON.parse(e);return this.linkNode(i,i,n),i}replacer(e,r,{refText:n,sourceText:i,textRegions:a,comments:s,uriConverter:o}){if(!this.ignoreProperties.has(e))if(Bs(r)){const l=r.ref,u=n?r.$refText:void 0;if(l){const d=sc(l);let h="";this.currentDocument&&this.currentDocument!==d&&(o?h=o(d.uri,l):h=d.uri.toString());const f=this.astNodeLocator.getAstNodePath(l);return{$ref:`${h}#${f}`,$refText:u}}else return{$error:r.error?.message??"Could not resolve reference",$refText:u}}else if(tu(r)){const l=n?r.$refText:void 0,u=[];for(const d of r.items){const h=d.ref,f=sc(d.ref);let p="";this.currentDocument&&this.currentDocument!==f&&(o?p=o(f.uri,h):p=f.uri.toString());const g=this.astNodeLocator.getAstNodePath(h);u.push(`${p}#${g}`)}return{$refs:u,$refText:l}}else if(ea(r)){let l;if(a&&(l=this.addAstNodeRegionWithAssignmentsTo({...r}),(!e||r.$document)&&l?.$textRegion&&(l.$textRegion.documentURI=this.currentDocument?.uri.toString())),i&&!e&&(l??(l={...r}),l.$sourceText=r.$cstNode?.text),s){l??(l={...r});const u=this.commentProvider.getComment(r);u&&(l.$comment=u.replace(/\r/g,""))}return l??r}else return r}addAstNodeRegionWithAssignmentsTo(e){const r=k(n=>({offset:n.offset,end:n.end,length:n.length,range:n.range}),"createDocumentSegment");if(e.$cstNode){const n=e.$textRegion=r(e.$cstNode),i=n.assignments={};return Object.keys(e).filter(a=>!a.startsWith("$")).forEach(a=>{const s=sH(e.$cstNode,a).map(r);s.length!==0&&(i[a]=s)}),e}}linkNode(e,r,n,i,a,s){for(const[l,u]of Object.entries(e))if(Array.isArray(u))for(let d=0;d{await this.handleException(()=>e.call(r,n,i,a),"An error occurred during validation",i,n)}}async handleException(e,r,n,i){try{await e()}catch(a){if(kg(a))throw a;console.error(`${r}:`,a),a instanceof Error&&a.stack&&console.error(a.stack);const s=a instanceof Error?a.message:String(a);n("error",`${r}: ${s}`,{node:i})}}addEntry(e,r){if(e==="AstNode"){this.entries.add("AstNode",r);return}for(const n of this.reflection.getAllSubTypes(e))this.entries.add(n,r)}getChecks(e,r){let n=Mn(this.entries.get(e)).concat(this.entries.get("AstNode"));return r&&(n=n.filter(i=>r.includes(i.category))),n.map(i=>i.check)}registerBeforeDocument(e,r=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",r))}registerAfterDocument(e,r=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",r))}wrapPreparationException(e,r,n){return async(i,a,s,o)=>{await this.handleException(()=>e.call(n,i,a,s,o),r,a,i)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},k(vv,"ValidationRegistry"),vv),Zwe=Object.freeze({validateNode:!0,validateChildren:!0}),_v,Jwe=(_v=class{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,r={},n=Xn.CancellationToken.None){const i=e.parseResult,a=[];if(await Ma(n),(!r.categories||r.categories.includes("built-in"))&&(this.processLexingErrors(i,a,r),r.stopAfterLexingErrors&&a.some(s=>s.data?.code===gl.LexingError)||(this.processParsingErrors(i,a,r),r.stopAfterParsingErrors&&a.some(s=>s.data?.code===gl.ParsingError))||(this.processLinkingErrors(e,a,r),r.stopAfterLinkingErrors&&a.some(s=>s.data?.code===gl.LinkingError))))return a;try{a.push(...await this.validateAst(i.value,r,n))}catch(s){if(kg(s))throw s;console.error("An error occurred during validation:",s)}return await Ma(n),a}processLexingErrors(e,r,n){const i=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(const a of i){const s=a.severity??"error",o={severity:bS(s),range:{start:{line:a.line-1,character:a.column-1},end:{line:a.line-1,character:a.column+a.length-1}},message:a.message,data:$V(s),source:this.getSource()};r.push(o)}}processParsingErrors(e,r,n){for(const i of e.parserErrors){let a;if(isNaN(i.token.startOffset)){if("previousToken"in i){const s=i.previousToken;if(isNaN(s.startOffset)){const o={line:0,character:0};a={start:o,end:o}}else{const o={line:s.endLine-1,character:s.endColumn};a={start:o,end:o}}}}else a=E4(i.token);if(a){const s={severity:bS("error"),range:a,message:i.message,data:sp(gl.ParsingError),source:this.getSource()};r.push(s)}}}processLinkingErrors(e,r,n){for(const i of e.references){const a=i.error;if(a){const s={node:a.info.container,range:i.$refNode?.range,property:a.info.property,index:a.info.index,data:{code:gl.LinkingError,containerType:a.info.container.$type,property:a.info.property,refText:a.info.reference.$refText}};r.push(this.toDiagnostic("error",a.message,s))}}}async validateAst(e,r,n=Xn.CancellationToken.None){const i=[],a=k((s,o,l)=>{i.push(this.toDiagnostic(s,o,l))},"acceptor");return await this.validateAstBefore(e,r,a,n),await this.validateAstNodes(e,r,a,n),await this.validateAstAfter(e,r,a,n),i}async validateAstBefore(e,r,n,i=Xn.CancellationToken.None){const a=this.validationRegistry.checksBefore;for(const s of a)await Ma(i),await s(e,n,r.categories??[],i)}async validateAstNodes(e,r,n,i=Xn.CancellationToken.None){if(this.profiler?.isActive("validating")){const a=this.profiler.createTask("validating",this.languageId);a.start();try{const s=oc(e).iterator();for(const o of s){a.startSubTask(o.$type);const l=this.validateSingleNodeOptions(o,r);if(l.validateNode)try{const u=this.validationRegistry.getChecks(o.$type,r.categories);for(const d of u)await d(o,n,i)}finally{a.stopSubTask(o.$type)}l.validateChildren||s.prune()}}finally{a.stop()}}else{const a=oc(e).iterator();for(const s of a){await Ma(i);const o=this.validateSingleNodeOptions(s,r);if(o.validateNode){const l=this.validationRegistry.getChecks(s.$type,r.categories);for(const u of l)await u(s,n,i)}o.validateChildren||a.prune()}}}validateSingleNodeOptions(e,r){return Zwe}async validateAstAfter(e,r,n,i=Xn.CancellationToken.None){const a=this.validationRegistry.checksAfter;for(const s of a)await Ma(i),await s(e,n,r.categories??[],i)}toDiagnostic(e,r,n){return{message:r,range:FV(n),severity:bS(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}},k(_v,"DefaultDocumentValidator"),_v);function FV(t){if(t.range)return t.range;let e;return typeof t.property=="string"?e=nA(t.node.$cstNode,t.property,t.index):typeof t.keyword=="string"&&(e=oH(t.node.$cstNode,t.keyword,t.index)),e??(e=t.node.$cstNode),e?e.range:{start:{line:0,character:0},end:{line:0,character:0}}}k(FV,"getDiagnosticRange");function bS(t){switch(t){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+t)}}k(bS,"toDiagnosticSeverity");function $V(t){switch(t){case"error":return sp(gl.LexingError);case"warning":return sp(gl.LexingWarning);case"info":return sp(gl.LexingInfo);case"hint":return sp(gl.LexingHint);default:throw new Error("Invalid diagnostic severity: "+t)}}k($V,"toDiagnosticData");var gl;(function(t){t.LexingError="lexing-error",t.LexingWarning="lexing-warning",t.LexingInfo="lexing-info",t.LexingHint="lexing-hint",t.ParsingError="parsing-error",t.LinkingError="linking-error"})(gl||(gl={}));var bv,eke=(bv=class{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,r,n){const i=n??sc(e);r??(r=this.nameProvider.getName(e));const a=this.astNodeLocator.getAstNodePath(e);if(!r)throw new Error(`Node at path ${a} has no name.`);let s;const o=k(()=>s??(s=Eb(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:r,get nameSegment(){return o()},selectionSegment:Eb(e.$cstNode),type:e.$type,documentUri:i.uri,path:a}}},k(bv,"DefaultAstNodeDescriptionProvider"),bv),Ev,tke=(Ev=class{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,r=Xn.CancellationToken.None){const n=[],i=e.parseResult.value;for(const a of oc(i))await Ma(r),vb(a).forEach(s=>{s.reference.error||n.push(...this.createInfoDescriptions(s))});return n}createInfoDescriptions(e){const r=e.reference;if(r.error||!r.$refNode)return[];let n=[];Bs(r)&&r.$nodeDescription?n=[r.$nodeDescription]:tu(r)&&(n=r.items.map(l=>l.$nodeDescription).filter(l=>l!==void 0));const i=sc(e.container).uri,a=this.nodeLocator.getAstNodePath(e.container),s=[],o=Eb(r.$refNode);for(const l of n)s.push({sourceUri:i,sourcePath:a,targetUri:l.documentUri,targetPath:l.path,segment:o,local:Fs.equals(l.documentUri,i)});return s}},k(Ev,"DefaultReferenceDescriptionProvider"),Ev),Sv,rke=(Sv=class{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const r=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return r+this.segmentSeparator+n}return""}getPathSegment({$containerProperty:e,$containerIndex:r}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return r!==void 0?e+this.indexSeparator+r:e}getAstNode(e,r){return r.split(this.segmentSeparator).reduce((i,a)=>{if(!i||a.length===0)return i;const s=a.indexOf(this.indexSeparator);if(s>0){const o=a.substring(0,s),l=parseInt(a.substring(s+1));return i[o]?.[l]}return i[a]},e)}},k(Sv,"DefaultAstNodeLocator"),Sv),KA={};G7(KA,fY(l2()));var Tv,nke=(Tv=class{constructor(e){this._ready=new F0,this.onConfigurationSectionUpdateEmitter=new KA.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){const r=this.serviceRegistry.all;e.register({section:r.map(n=>this.toSectionName(n.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const r=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(r);r.forEach((i,a)=>{this.updateSectionConfiguration(i.section,n[a])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings!="object"||e.settings===null||Object.entries(e.settings).forEach(([r,n])=>{this.updateSectionConfiguration(r,n),this.onConfigurationSectionUpdateEmitter.fire({section:r,configuration:n})})}updateSectionConfiguration(e,r){this.settings[e]=r}async getConfiguration(e,r){await this.ready;const n=this.toSectionName(e);if(this.settings[n])return this.settings[n][r]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},k(Tv,"DefaultConfigurationProvider"),Tv),y3=fY(H_t()),pp;(function(t){function e(r){return{dispose:k(async()=>await r(),"dispose")}}k(e,"create"),t.create=e})(pp||(pp={}));var xv,ike=(xv=class{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new $0,this.documentPhaseListeners=new $0,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=sn.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,r={},n=Xn.CancellationToken.None){for(const i of e){const a=i.uri.toString();if(i.state===sn.Validated){if(typeof r.validation=="boolean"&&r.validation)this.resetToState(i,sn.IndexedReferences);else if(typeof r.validation=="object"){const s=this.findMissingValidationCategories(i,r);s.length>0&&(this.buildState.set(a,{completed:!1,options:{validation:{categories:s}},result:this.buildState.get(a)?.result}),i.state=sn.IndexedReferences)}}else this.buildState.delete(a)}this.currentState=sn.Changed,await this.emitUpdate(e.map(i=>i.uri),[]),await this.buildDocuments(e,r,n)}async update(e,r,n=Xn.CancellationToken.None){this.currentState=sn.Changed;const i=[];for(const l of r){const u=this.langiumDocuments.deleteDocuments(l);for(const d of u)i.push(d.uri),this.cleanUpDeleted(d)}const a=(await Promise.all(e.map(l=>this.findChangedUris(l)))).flat();for(const l of a){let u=this.langiumDocuments.getDocument(l);u===void 0&&(u=this.langiumDocumentFactory.fromModel({$type:"INVALID"},l),u.state=sn.Changed,this.langiumDocuments.addDocument(u)),this.resetToState(u,sn.Changed)}const s=Mn(a).concat(i).map(l=>l.toString()).toSet();this.langiumDocuments.all.filter(l=>!s.has(l.uri.toString())&&this.shouldRelink(l,s)).forEach(l=>this.resetToState(l,sn.ComputedScopes)),await this.emitUpdate(a,i),await Ma(n);const o=this.sortDocuments(this.langiumDocuments.all.filter(l=>l.state=1}findMissingValidationCategories(e,r){const n=this.buildState.get(e.uri.toString()),i=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),a=n?.result?.validationChecks?new Set(n?.result?.validationChecks):n?.completed?i:new Set,s=r===void 0||r.validation===!0?i:typeof r.validation=="object"?r.validation.categories??i:[];return Mn(s).filter(o=>!a.has(o)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{const n=await this.fileSystemProvider.stat(e);if(n.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(n))return[e]}catch{}return[]}async emitUpdate(e,r){await Promise.all(this.updateListeners.map(n=>n(e,r)))}sortDocuments(e){let r=0,n=e.length-1;for(;r=0&&!this.hasTextDocument(e[n]);)n--;rn.error!==void 0)?!0:this.indexManager.isAffected(e,r)}onUpdate(e){return this.updateListeners.push(e),pp.create(()=>{const r=this.updateListeners.indexOf(e);r>=0&&this.updateListeners.splice(r,1)})}resetToState(e,r){switch(r){case sn.Changed:case sn.Parsed:this.indexManager.removeContent(e.uri);case sn.IndexedContent:e.localSymbols=void 0;case sn.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case sn.Linked:this.indexManager.removeReferences(e.uri);case sn.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case sn.Validated:}e.state>r&&(e.state=r)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=sn.Changed}async buildDocuments(e,r,n){this.prepareBuild(e,r),await this.runCancelable(e,sn.Parsed,n,s=>this.langiumDocumentFactory.update(s,n)),await this.runCancelable(e,sn.IndexedContent,n,s=>this.indexManager.updateContent(s,n)),await this.runCancelable(e,sn.ComputedScopes,n,async s=>{const o=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.localSymbols=await o.collectLocalSymbols(s,n)});const i=e.filter(s=>this.shouldLink(s));await this.runCancelable(i,sn.Linked,n,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,n)),await this.runCancelable(i,sn.IndexedReferences,n,s=>this.indexManager.updateReferences(s,n));const a=e.filter(s=>this.shouldValidate(s)?!0:(this.markAsCompleted(s),!1));await this.runCancelable(a,sn.Validated,n,async s=>{await this.validate(s,n),this.markAsCompleted(s)})}markAsCompleted(e){const r=this.buildState.get(e.uri.toString());r&&(r.completed=!0)}prepareBuild(e,r){for(const n of e){const i=n.uri.toString(),a=this.buildState.get(i);(!a||a.completed)&&this.buildState.set(i,{completed:!1,options:r,result:a?.result})}}async runCancelable(e,r,n,i){for(const s of e)s.states.state===r);await this.notifyBuildPhase(a,r,n),this.currentState=r}onBuildPhase(e,r){return this.buildPhaseListeners.add(e,r),pp.create(()=>{this.buildPhaseListeners.delete(e,r)})}onDocumentPhase(e,r){return this.documentPhaseListeners.add(e,r),pp.create(()=>{this.documentPhaseListeners.delete(e,r)})}waitUntil(e,r,n){let i;return r&&"path"in r?i=r:n=r,n??(n=Xn.CancellationToken.None),i?this.awaitDocumentState(e,i,n):this.awaitBuilderState(e,n)}awaitDocumentState(e,r,n){const i=this.langiumDocuments.getDocument(r);if(i){if(i.state>=e)return Promise.resolve(r);if(n.isCancellationRequested)return Promise.reject(Qc);if(this.currentState>=e&&e>i.state)return Promise.reject(new y3.ResponseError(y3.LSPErrorCodes.RequestFailed,`Document state of ${r.toString()} is ${sn[i.state]}, requiring ${sn[e]}, but workspace state is already ${sn[this.currentState]}. Returning undefined.`))}else return Promise.reject(new y3.ResponseError(y3.LSPErrorCodes.ServerCancelled,`No document found for URI: ${r.toString()}`));return new Promise((a,s)=>{const o=this.onDocumentPhase(e,u=>{Fs.equals(u.uri,r)&&(o.dispose(),l.dispose(),a(u.uri))}),l=n.onCancellationRequested(()=>{o.dispose(),l.dispose(),s(Qc)})})}awaitBuilderState(e,r){return this.currentState>=e?Promise.resolve():r.isCancellationRequested?Promise.reject(Qc):new Promise((n,i)=>{const a=this.onBuildPhase(e,()=>{a.dispose(),s.dispose(),n()}),s=r.onCancellationRequested(()=>{a.dispose(),s.dispose(),i(Qc)})})}async notifyDocumentPhase(e,r,n){const a=this.documentPhaseListeners.get(r).slice();for(const s of a)try{await Ma(n),await s(e,n)}catch(o){if(!kg(o))throw o}}async notifyBuildPhase(e,r,n){if(e.length===0)return;const a=this.buildPhaseListeners.get(r).slice();for(const s of a)await Ma(n),await s(e,n)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,r){const n=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,i=this.getBuildOptions(e),a=typeof i.validation=="object"?{...i.validation}:{};a.categories=this.findMissingValidationCategories(e,i);const s=await n.validateDocument(e,a,r);e.diagnostics?e.diagnostics.push(...s):e.diagnostics=s;const o=this.buildState.get(e.uri.toString());o&&(o.result??(o.result={}),o.result.validationChecks?o.result.validationChecks=Mn(o.result.validationChecks).concat(a.categories).distinct().toArray():o.result.validationChecks=[...a.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},k(xv,"DefaultDocumentBuilder"),xv),Cv,ake=(Cv=class{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new WA,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,r){const n=sc(e).uri,i=[];return this.referenceIndex.forEach(a=>{a.forEach(s=>{Fs.equals(s.targetUri,n)&&s.targetPath===r&&i.push(s)})}),Mn(i)}allElements(e,r){let n=Mn(this.symbolIndex.keys());return r&&(n=n.filter(i=>!r||r.has(i))),n.map(i=>this.getFileDescriptions(i,e)).flat()}getFileDescriptions(e,r){return r?this.symbolByTypeIndex.get(e,r,()=>(this.symbolIndex.get(e)??[]).filter(a=>this.astReflection.isSubtype(a.type,r))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){const r=e.toString();this.symbolIndex.delete(r),this.symbolByTypeIndex.clear(r)}removeReferences(e){const r=e.toString();this.referenceIndex.delete(r)}async updateContent(e,r=Xn.CancellationToken.None){const i=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,r),a=e.uri.toString();this.symbolIndex.set(a,i),this.symbolByTypeIndex.clear(a)}async updateReferences(e,r=Xn.CancellationToken.None){const i=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,r);this.referenceIndex.set(e.uri.toString(),i)}isAffected(e,r){const n=this.referenceIndex.get(e.uri.toString());return n?n.some(i=>!i.local&&r.has(i.targetUri.toString())):!1}},k(Cv,"DefaultIndexManager"),Cv),wv,ske=(wv=class{constructor(e){this.initialBuildOptions={},this._ready=new F0,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(r=>this.initializeWorkspace(this.folders??[],r))}async initializeWorkspace(e,r=Xn.CancellationToken.None){const n=await this.performStartup(e);await Ma(r),await this.documentBuilder.build(n,this.initialBuildOptions,r)}async performStartup(e){const r=[],n=k(s=>{r.push(s),this.langiumDocuments.hasDocument(s.uri)||this.langiumDocuments.addDocument(s)},"collector");await this.loadAdditionalDocuments(e,n);const i=[];await Promise.all(e.map(s=>this.getRootFolder(s)).map(async s=>this.traverseFolder(s,i)));const a=Mn(i).distinct(s=>s.toString()).filter(s=>!this.langiumDocuments.hasDocument(s));return await this.loadWorkspaceDocuments(a,n),this._ready.resolve(),r}async loadWorkspaceDocuments(e,r){await Promise.all(e.map(async n=>{const i=await this.langiumDocuments.getOrCreateDocument(n);r(i)}))}loadAdditionalDocuments(e,r){return Promise.resolve()}getRootFolder(e){return Lo.parse(e.uri)}async traverseFolder(e,r){try{const n=await this.fileSystemProvider.readDirectory(e);await Promise.all(n.map(async i=>{this.shouldIncludeEntry(i)&&(i.isDirectory?await this.traverseFolder(i.uri,r):i.isFile&&r.push(i.uri))}))}catch(n){console.error("Failure to read directory content of "+e.toString(!0),n)}}async searchFolder(e){const r=[];return await this.traverseFolder(e,r),r}shouldIncludeEntry(e){const r=Fs.basename(e.uri);return r.startsWith(".")?!1:e.isDirectory?r!=="node_modules"&&r!=="out":e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},k(wv,"DefaultWorkspaceManager"),wv),kv,oke=(kv=class{buildUnexpectedCharactersMessage(e,r,n,i,a){return r$.buildUnexpectedCharactersMessage(e,r,n,i,a)}buildUnableToPopLexerModeMessage(e){return r$.buildUnableToPopLexerModeMessage(e)}},k(kv,"DefaultLexerErrorMessageProvider"),kv),zV={mode:"full"},Av,UV=(Av=class{constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;const r=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(r);const n=ww(r)?Object.values(r):r,i=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new Us(n,{positionTracking:"full",skipValidations:i,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,r=zV){const n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:n.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(ww(e))return e;const r=jA(e)?Object.values(e.modes).flat():e,n={};return r.forEach(i=>n[i.name]=i),n}},k(Av,"DefaultLexer"),Av);function XA(t){return Array.isArray(t)&&(t.length===0||"name"in t[0])}k(XA,"isTokenTypeArray");function jA(t){return t&&"modes"in t&&"defaultMode"in t}k(jA,"isIMultiModeLexerDefinition");function ww(t){return!XA(t)&&!jA(t)}k(ww,"isTokenTypeDictionary");LT();function GV(t,e,r){let n,i;typeof t=="string"?(i=e,n=r):(i=t.range.start,n=e),i||(i=xn.create(0,0));const a=YV(t),s=QA(n),o=lke({lines:a,position:i,options:s});return dke({index:0,tokens:o,position:i})}k(GV,"parseJSDoc");function qV(t,e){const r=QA(e),n=YV(t);if(n.length===0)return!1;const i=n[0],a=n[n.length-1],s=r.start,o=r.end;return!!s?.exec(i)&&!!o?.exec(a)}k(qV,"isJSDoc");function YV(t){let e="";return typeof t=="string"?e=t:e=t.text,e.split(dEe)}k(YV,"getLines");var aoe=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,hwt=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function lke(t){const e=[];let r=t.position.line,n=t.position.character;for(let i=0;i=o.length){if(e.length>0){const d=xn.create(r,n);e.push({type:"break",content:"",range:dn.create(d,d)})}}else{aoe.lastIndex=l;const d=aoe.exec(o);if(d){const h=d[0],f=d[1],p=xn.create(r,n+l),g=xn.create(r,n+l+h.length);e.push({type:"tag",content:f,range:dn.create(p,g)}),l+=h.length,l=kw(o,l)}if(l0&&e[e.length-1].type==="break"?e.slice(0,-1):e}k(lke,"tokenize");function cke(t,e,r,n){const i=[];if(t.length===0){const a=xn.create(r,n),s=xn.create(r,n+e.length);i.push({type:"text",content:e,range:dn.create(a,s)})}else{let a=0;for(const o of t){const l=o.index,u=e.substring(a,l);u.length>0&&i.push({type:"text",content:e.substring(a,l),range:dn.create(xn.create(r,a+n),xn.create(r,l+n))});let d=u.length+1;const h=o[1];if(i.push({type:"inline-tag",content:h,range:dn.create(xn.create(r,a+d+n),xn.create(r,a+d+h.length+n))}),d+=h.length,o.length===4){d+=o[2].length;const f=o[3];i.push({type:"text",content:f,range:dn.create(xn.create(r,a+d+n),xn.create(r,a+d+f.length+n))})}else i.push({type:"text",content:"",range:dn.create(xn.create(r,a+d+n),xn.create(r,a+d+n))});a=l+o[0].length}const s=e.substring(a);s.length>0&&i.push({type:"text",content:s,range:dn.create(xn.create(r,a+n),xn.create(r,a+n+s.length))})}return i}k(cke,"buildInlineTokens");var fwt=/\S/,pwt=/\s*$/;function kw(t,e){const r=t.substring(e).match(fwt);return r?e+r.index:t.length}k(kw,"skipWhitespace");function uke(t){const e=t.match(pwt);if(e&&typeof e.index=="number")return e.index}k(uke,"lastCharacter");function dke(t){const e=xn.create(t.position.line,t.position.character);if(t.tokens.length===0)return new soe([],dn.create(e,e));const r=[];for(;t.indexr.name===e)}getTags(e){return this.getAllTags().filter(r=>r.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const r of this.elements)if(e.length===0)e=r.toString();else{const n=r.toString();e+=x$(e)+n}return e.trim()}toMarkdown(e){let r="";for(const n of this.elements)if(r.length===0)r=n.toMarkdown(e);else{const i=n.toMarkdown(e);r+=x$(r)+i}return r.trim()}},k(Rv,"JSDocCommentImpl"),Rv),Nv,IL=(Nv=class{constructor(e,r,n,i){this.name=e,this.content=r,this.inline=n,this.range=i}toString(){let e=`@${this.name}`;const r=this.content.toString();return this.content.inlines.length===1?e=`${e} ${r}`:this.content.inlines.length>1&&(e=`${e} ${r}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){const r=this.content.toMarkdown(e);if(this.inline){const a=gke(this.name,r,e??{});if(typeof a=="string")return a}let n="";e?.tag==="italic"||e?.tag===void 0?n="*":e?.tag==="bold"?n="**":e?.tag==="bold-italic"&&(n="***");let i=`${n}@${this.name}${n}`;return this.content.inlines.length===1?i=`${i} — ${r}`:this.content.inlines.length>1&&(i=`${i} ${r}`),this.inline?`{${i}}`:i}},k(Nv,"JSDocTagImpl"),Nv);function gke(t,e,r){if(t==="linkplain"||t==="linkcode"||t==="link"){const n=e.indexOf(" ");let i=e;if(n>0){const s=kw(e,n);i=e.substring(s),e=e.substring(0,n)}return(t==="linkcode"||t==="link"&&r.link==="code")&&(i=`\`${i}\``),r.renderLink?.(e,i)??mke(e,i)}}k(gke,"renderInlineTag");function mke(t,e){try{return Lo.parse(t,!0),`[${e}](${t})`}catch{return t}}k(mke,"renderLinkDefault");var Iv,T$=(Iv=class{constructor(e,r){this.inlines=e,this.range=r}toString(){let e="";for(let r=0;rn.range.start.line&&(e+=` `)}return e}toMarkdown(e){let r="";for(let n=0;ni.range.start.line&&(r+=` @@ -5395,11 +5395,11 @@ ${r}`),this.inline?`{${i}}`:i}},k(Nv,"JSDocTagImpl"),Nv);function gke(t,e,r){if( `)?` `:` -`}k(x$,"fillNewlines");var Dv,vke=(Dv=class{constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){const r=this.commentProvider.getComment(e);if(r&&qV(r))return GV(r).toMarkdown({renderLink:k((i,a)=>this.documentationLinkRenderer(e,i,a),"renderLink"),renderTag:k(i=>this.documentationTagRenderer(e,i),"renderTag")})}documentationLinkRenderer(e,r,n){const i=this.findNameInLocalSymbols(e,r)??this.findNameInGlobalScope(e,r);if(i&&i.nameSegment){const a=i.nameSegment.range.start.line+1,s=i.nameSegment.range.start.character+1,o=i.documentUri.with({fragment:`L${a},${s}`});return`[${n}](${o.toString()})`}else return}documentationTagRenderer(e,r){}findNameInLocalSymbols(e,r){const i=sc(e).localSymbols;if(!i)return;let a=e;do{const o=i.getStream(a).find(l=>l.name===r);if(o)return o;a=a.$container}while(a)}findNameInGlobalScope(e,r){return this.indexManager.allElements().find(i=>i.name===r)}},k(Dv,"JSDocDocumentationProvider"),Dv),Lv,_ke=(Lv=class{constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return BV(e)?e.$comment:HY(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},k(Lv,"DefaultCommentProvider"),Lv),Mv,bke=(Mv=class{constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,r){return Promise.resolve(this.syncParser.parse(e))}},k(Mv,"DefaultAsyncParser"),Mv),Pv,pwt=(Pv=class{constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length{if(this.queue.length>0){const r=this.queue.shift();r&&(e.lock(),r.resolve(e))}}),this.workerPool.push(e)}}async parse(e,r){const n=await this.acquireParserWorker(r),i=new F0;let a;const s=r.onCancellationRequested(()=>{a=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(o=>{const l=this.hydrator.hydrate(o);i.resolve(l)}).catch(o=>{i.reject(o)}).finally(()=>{s.dispose(),clearTimeout(a)}),i.promise}terminateWorker(e){e.terminate();const r=this.workerPool.indexOf(e);r>=0&&this.workerPool.splice(r,1)}async acquireParserWorker(e){this.initializeWorkers();for(const n of this.workerPool)if(n.ready)return n.lock(),n;const r=new F0;return e.onCancellationRequested(()=>{const n=this.queue.indexOf(r);n>=0&&this.queue.splice(n,1),r.reject(Qc)}),this.queue.push(r),r.promise}},k(Pv,"AbstractThreadedAsyncParser"),Pv),Bv,gwt=(Bv=class{get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,r,n,i){this.onReadyEmitter=new KA.Emitter,this.deferred=new F0,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=i,r(a=>{const s=a;this.deferred.resolve(s),this.unlock()}),n(a=>{this.deferred.reject(a),this.unlock()})}terminate(){this.deferred.reject(Qc),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new F0,this.sendMessage(e),this.deferred.promise}},k(Bv,"ParserWorker"),Bv),Fv,Eke=(Fv=class{constructor(){this.previousTokenSource=new Xn.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();const r=HA();return this.previousTokenSource=r,this.enqueue(this.writeQueue,e,r.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,r,n=Xn.CancellationToken.None){const i=new F0,a={action:r,deferred:i,cancellationToken:n};return e.push(a),this.performNextOperation(),i.promise}async performNextOperation(){if(!this.done)return;const e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:r,deferred:n,cancellationToken:i})=>{try{const a=await Promise.resolve().then(()=>r(i));n.resolve(a)}catch(a){kg(a)?n.resolve(void 0):n.reject(a)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},k(Fv,"DefaultWorkspaceLock"),Fv),$v,Ske=($v=class{constructor(e){this.grammarElementIdMap=new xw,this.tokenTypeIdMap=new xw,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(r=>({...r,message:r.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){const r=new Map,n=new Map;for(const i of oc(e))r.set(i,{});if(e.$cstNode)for(const i of bb(e.$cstNode))n.set(i,{});return{astNodes:r,cstNodes:n}}dehydrateAstNode(e,r){const n=r.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(n.$cstNode=this.dehydrateCstNode(e.$cstNode,r));for(const[i,a]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(a)){const s=[];n[i]=s;for(const o of a)ea(o)?s.push(this.dehydrateAstNode(o,r)):Bs(o)?s.push(this.dehydrateReference(o,r)):s.push(o)}else ea(a)?n[i]=this.dehydrateAstNode(a,r):Bs(a)?n[i]=this.dehydrateReference(a,r):a!==void 0&&(n[i]=a);return n}dehydrateReference(e,r){const n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=r.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,r){const n=r.cstNodes.get(e);return H7(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=r.astNodes.get(e.astNode),N0(e)?n.content=e.content.map(i=>this.dehydrateCstNode(i,r)):lg(e)&&(n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length,n.startLine=e.range.start.line,n.startColumn=e.range.start.character,n.endLine=e.range.end.line,n.endColumn=e.range.end.character),n}hydrate(e){const r=e.value,n=this.createHydrationContext(r);return"$cstNode"in r&&this.hydrateCstNode(r.$cstNode,n),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(r,n)}}createHydrationContext(e){const r=new Map,n=new Map;for(const a of oc(e))r.set(a,{});let i;if(e.$cstNode)for(const a of bb(e.$cstNode)){let s;"fullText"in a?(s=new EV(a.fullText),i=s):"content"in a?s=new zA:"tokenType"in a&&(s=this.hydrateCstLeafNode(a)),s&&(n.set(a,s),s.root=i)}return{astNodes:r,cstNodes:n}}hydrateAstNode(e,r){const n=r.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode&&(n.$cstNode=r.cstNodes.get(e.$cstNode));for(const[i,a]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(a)){const s=[];n[i]=s;for(const o of a)ea(o)?s.push(this.setParent(this.hydrateAstNode(o,r),n)):Bs(o)?s.push(this.hydrateReference(o,n,i,r)):s.push(o)}else ea(a)?n[i]=this.setParent(this.hydrateAstNode(a,r),n):Bs(a)?n[i]=this.hydrateReference(a,n,i,r):a!==void 0&&(n[i]=a);return n}setParent(e,r){return e.$container=r,e}hydrateReference(e,r,n,i){return this.linker.buildReference(r,n,i.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,r,n=0){const i=r.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(i.grammarSource=this.getGrammarElement(e.grammarSource)),i.astNode=r.astNodes.get(e.astNode),N0(i))for(const a of e.content){const s=this.hydrateCstNode(a,r,n++);i.content.push(s)}return i}hydrateCstLeafNode(e){const r=this.getTokenType(e.tokenType),n=e.offset,i=e.length,a=e.startLine,s=e.startColumn,o=e.endLine,l=e.endColumn,u=e.hidden;return new _w(n,i,{start:{line:a,character:s},end:{line:o,character:l}},r,u)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(const r of oc(this.grammar))V7(r)&&this.grammarElementIdMap.set(r,e++)}},k($v,"DefaultHydrator"),$v);function Zo(t){return{documentation:{CommentProvider:k(e=>new _ke(e),"CommentProvider"),DocumentationProvider:k(e=>new vke(e),"DocumentationProvider")},parser:{AsyncParser:k(e=>new bke(e),"AsyncParser"),GrammarConfig:k(e=>gH(e),"GrammarConfig"),LangiumParser:k(e=>kV(e),"LangiumParser"),CompletionParser:k(e=>wV(e),"CompletionParser"),ValueConverter:k(()=>new RV,"ValueConverter"),TokenBuilder:k(()=>new qA,"TokenBuilder"),Lexer:k(e=>new UV(e),"Lexer"),ParserErrorMessageProvider:k(()=>new TV,"ParserErrorMessageProvider"),LexerErrorMessageProvider:k(()=>new oke,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:k(()=>new rke,"AstNodeLocator"),AstNodeDescriptionProvider:k(e=>new eke(e),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:k(e=>new tke(e),"ReferenceDescriptionProvider")},references:{Linker:k(e=>new Gwe(e),"Linker"),NameProvider:k(()=>new qwe,"NameProvider"),ScopeProvider:k(e=>new Kwe(e),"ScopeProvider"),ScopeComputation:k(e=>new Hwe(e),"ScopeComputation"),References:k(e=>new Ywe(e),"References")},serializer:{Hydrator:k(e=>new Ske(e),"Hydrator"),JsonSerializer:k(e=>new Xwe(e),"JsonSerializer")},validation:{DocumentValidator:k(e=>new Jwe(e),"DocumentValidator"),ValidationRegistry:k(e=>new Qwe(e),"ValidationRegistry")},shared:k(()=>t.shared,"shared")}}k(Zo,"createDefaultCoreModule");function Jo(t){return{ServiceRegistry:k(e=>new jwe(e),"ServiceRegistry"),workspace:{LangiumDocuments:k(e=>new Uwe(e),"LangiumDocuments"),LangiumDocumentFactory:k(e=>new zwe(e),"LangiumDocumentFactory"),DocumentBuilder:k(e=>new ike(e),"DocumentBuilder"),IndexManager:k(e=>new ake(e),"IndexManager"),WorkspaceManager:k(e=>new ske(e),"WorkspaceManager"),FileSystemProvider:k(e=>t.fileSystemProvider(e),"FileSystemProvider"),WorkspaceLock:k(()=>new Eke,"WorkspaceLock"),ConfigurationProvider:k(e=>new nke(e),"ConfigurationProvider")},profilers:{}}}k(Jo,"createDefaultSharedCoreModule");var C$;(function(t){t.merge=(e,r)=>wb(wb({},e),r)})(C$||(C$={}));function gi(t,e,r,n,i,a,s,o,l){const u=[t,e,r,n,i,a,s,o,l].reduce(wb,{});return XV(u)}k(gi,"inject");var Tke=Symbol("isProxy");function KV(t){if(t&&t[Tke])for(const e of Object.values(t))KV(e);return t}k(KV,"eagerLoad");function XV(t,e){const r=new Proxy({},{deleteProperty:k(()=>!1,"deleteProperty"),set:k(()=>{throw new Error("Cannot set property on injected service container")},"set"),get:k((n,i)=>i===Tke?!0:w$(n,i,t,e||r),"get"),getOwnPropertyDescriptor:k((n,i)=>(w$(n,i,t,e||r),Object.getOwnPropertyDescriptor(n,i)),"getOwnPropertyDescriptor"),has:k((n,i)=>i in t,"has"),ownKeys:k(()=>[...Object.getOwnPropertyNames(t)],"ownKeys")});return r}k(XV,"_inject");var ooe=Symbol();function w$(t,e,r,n){if(e in t){if(t[e]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+t[e]);if(t[e]===ooe)throw new Error('Cycle detected. Please make "'+String(e)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return t[e]}else if(e in r){const i=r[e];t[e]=ooe;try{t[e]=typeof i=="function"?i(n):XV(i,n)}catch(a){throw t[e]=a instanceof Error?a:void 0,a}return t[e]}else return}k(w$,"_resolve");function wb(t,e){if(e){for(const[r,n]of Object.entries(e))if(n!=null)if(typeof n=="object"){const i=t[r];typeof i=="object"&&i!==null?t[r]=wb(i,n):t[r]=wb({},n)}else t[r]=n}return t}k(wb,"_merge");var k$={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]},op;(function(t){t.REGULAR="indentation-sensitive",t.IGNORE_INDENTATION="ignore-indentation"})(op||(op={}));var zv,xke=(zv=class extends qA{constructor(e=k$){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...k$,...e},this.indentTokenType=i1({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=i1({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,r){const n=super.buildTokens(e,r);if(!XA(n))throw new Error("Invalid tokens built by default builder");const{indentTokenName:i,dedentTokenName:a,whitespaceTokenName:s,ignoreIndentationDelimiters:o}=this.options;let l,u,d;const h=[];for(const f of n){for(const[p,g]of o)f.name===p?f.PUSH_MODE=op.IGNORE_INDENTATION:f.name===g&&(f.POP_MODE=!0);f.name===a?l=f:f.name===i?u=f:f.name===s?d=f:h.push(f)}if(!l||!u||!d)throw new Error("Some indentation/whitespace tokens not found!");return o.length>0?{modes:{[op.REGULAR]:[l,u,...h,d],[op.IGNORE_INDENTATION]:[...h,d]},defaultMode:op.REGULAR}:[l,u,d,...h]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,r){return r===0||`\r -`.includes(e[r-1])}matchWhitespace(e,r,n,i){this.whitespaceRegExp.lastIndex=r;const a=this.whitespaceRegExp.exec(e);return{currIndentLevel:a?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:a}}createIndentationTokenInstance(e,r,n,i){const a=this.getLineNumber(r,i);return jT(e,n,i,i+n.length,a,a,1,n.length)}getLineNumber(e,r){return e.substring(0,r).split(/\r\n|\r|\n/).length}indentMatcher(e,r,n,i){if(!this.isStartOfLine(e,r))return null;const{currIndentLevel:a,prevIndentLevel:s,match:o}=this.matchWhitespace(e,r,n,i);return a<=s?null:(this.indentationStack.push(a),o)}dedentMatcher(e,r,n,i){if(!this.isStartOfLine(e,r))return null;const{currIndentLevel:a,prevIndentLevel:s,match:o}=this.matchWhitespace(e,r,n,i);if(a>=s)return null;const l=this.indentationStack.lastIndexOf(a);if(l===-1)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${a} at offset: ${r}. Current indentation stack: ${this.indentationStack}`,offset:r,length:o?.[0]?.length??0,line:this.getLineNumber(e,r),column:1}),null;const u=this.indentationStack.length-l-1,d=e.substring(0,r).match(/[\r\n]+$/)?.[0].length??1;for(let h=0;h1;)r.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],r}},k(zv,"IndentationAwareTokenBuilder"),zv),Uv,mwt=(Uv=class extends UV{constructor(e){if(super(e),e.parser.TokenBuilder instanceof xke)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,r=zV){const n=super.tokenize(e),i=n.report;r?.mode==="full"&&n.tokens.push(...i.remainingDedents),i.remainingDedents=[];const{indentTokenType:a,dedentTokenType:s}=this.indentationTokenBuilder,o=a.tokenTypeIdx,l=s.tokenTypeIdx,u=[],d=n.tokens.length-1;for(let h=0;h=0&&u.push(n.tokens[d]),n.tokens=u,n}},k(Uv,"IndentationAwareLexer"),Uv),jV={};Uh(jV,{AstUtils:()=>_Y,BiMap:()=>xw,Cancellation:()=>Xn,ContextCache:()=>WA,CstUtils:()=>mY,DONE_RESULT:()=>Ns,Deferred:()=>F0,Disposable:()=>pp,DisposableCache:()=>VA,DocumentCache:()=>Wwe,EMPTY_STREAM:()=>gb,ErrorWithLocation:()=>J7,GrammarUtils:()=>XY,MultiMap:()=>$0,OperationCancelled:()=>Qc,Reduction:()=>b4,RegExpUtils:()=>QY,SimpleCache:()=>MV,StreamImpl:()=>jc,TreeStreamImpl:()=>mb,URI:()=>Lo,UriTrie:()=>DV,UriUtils:()=>Fs,WorkspaceCache:()=>PV,assertCondition:()=>jY,assertUnreachable:()=>Gh,delayNextTick:()=>YA,interruptAndCheck:()=>Ma,isOperationCancelled:()=>kg,loadGrammarFromJson:()=>el,setInterruptionPeriod:()=>NV,startCancelableOperation:()=>HA,stream:()=>Mn});G7(jV,KA);var Gv,Cke=(Gv=class{stat(e){throw new Error("No file system is available.")}statSync(e){throw new Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw new Error("No file system is available.")}readBinarySync(){throw new Error("No file system is available.")}readFile(){throw new Error("No file system is available.")}readFileSync(){throw new Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},k(Gv,"EmptyFileSystemProvider"),Gv),Fl={fileSystemProvider:k(()=>new Cke,"fileSystemProvider")},ywt={Grammar:k(()=>{},"Grammar"),LanguageMetaData:k(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},vwt={AstReflection:k(()=>new zY,"AstReflection")};function wke(){const t=gi(Jo(Fl),vwt),e=gi(Zo({shared:t}),ywt);return t.ServiceRegistry.register(e),e}k(wke,"createMinimalGrammarServices");function el(t){const e=wke(),r=e.serializer.JsonSerializer.deserialize(t);return e.shared.workspace.LangiumDocumentFactory.fromModel(r,Lo.parse(`memory:/${r.name??"grammar"}.langium`)),r}k(el,"loadGrammarFromJson");G7(P2e,jV);var qv,_wt=(qv=class{constructor(e){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=e??new Set(this.allCategories),this.records=new $0}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(r=>this.activeCategories.add(r)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(r=>this.activeCategories.delete(r)):this.activeCategories.clear()}createTask(e,r){if(!this.isActive(e))throw new Error(`Category "${e}" is not active.`);return console.log(`Creating profiling task for '${e}.${r}'.`),new kke(n=>this.records.add(e,this.dumpRecord(e,n)),r)}dumpRecord(e,r){console.info(`Task ${e}.${r.identifier} executed in ${r.duration.toFixed(2)}ms and ended at ${r.date.toISOString()}`);const n=[];for(const s of r.entries.keys()){const o=r.entries.get(s),l=o.reduce((u,d)=>u+d);n.push({name:`${r.identifier}.${s}`,count:o.length,duration:l})}const i=r.duration-n.map(s=>s.duration).reduce((s,o)=>s+o,0);n.push({name:r.identifier,count:1,duration:i}),n.sort((s,o)=>o.duration-s.duration);function a(s){return Math.round(100*s)/100}return k(a,"Round"),console.table(n.map(s=>({Element:s.name,Count:s.count,"Self %":a(100*s.duration/r.duration),"Time (ms)":a(s.duration)}))),r}getRecords(...e){return e.length===0?this.records.values():this.records.entries().filter(r=>e.some(n=>n===r[0])).flatMap(r=>r[1])}},k(qv,"DefaultLangiumProfiler"),qv),Yv,kke=(Yv=class{constructor(e,r){this.stack=[],this.entries=new $0,this.addRecord=e,this.identifier=r}start(){if(this.startTime!==void 0)throw new Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(this.startTime===void 0)throw new Error(`Task "${this.identifier}" was not started.`);if(this.stack.length!==0)throw new Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(r=>r.id).join(", ")}.`);const e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){const r=this.stack.pop();if(!r)throw new Error(`Task "${this.identifier}.${e}" was not started.`);if(r.id!==e)throw new Error(`Sub-Task "${r.id}" is not already stopped.`);const n=performance.now()-r.start;this.stack.at(-1)!==void 0&&(this.stack[this.stack.length-1].content+=n);const i=n-r.content;this.entries.add(e,i)}},k(Yv,"ProfilingTask"),Yv),A$;(t=>{t.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/}})(A$||(A$={}));var R$;(t=>{t.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(R$||(R$={}));var N$;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(N$||(N$={}));var I$;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(I$||(I$={}));var O$;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(O$||(O$={}));var D$;(t=>{t.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(D$||(D$={}));var L$;(t=>{t.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(L$||(L$={}));var M$;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(M$||(M$={}));var P$;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,STRING2:/"[^"]*"|'[^']*'/}})(P$||(P$={}));var B$;(t=>{t.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(B$||(B$={}));({...A$.Terminals,...R$.Terminals,...N$.Terminals,...I$.Terminals,...O$.Terminals,...D$.Terminals,...L$.Terminals,...P$.Terminals,...M$.Terminals,...B$.Terminals});var v3={$type:"Accelerator",name:"name",x:"x",y:"y"},_3={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},j2={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},OL={$type:"Annotations",x:"x",y:"y"},Wu={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};function bwt(t){return tl.isInstance(t,Wu.$type)}k(bwt,"isArchitecture");var b3={$type:"Axis",label:"label",name:"name"},H5={$type:"Branch",name:"name",order:"order"};function Ewt(t){return tl.isInstance(t,H5.$type)}k(Ewt,"isBranch");var loe={$type:"Checkout",branch:"branch"},E3={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},DL={$type:"ClassDefStatement",className:"className",styleText:"styleText"},hm={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};function Swt(t){return tl.isInstance(t,hm.$type)}k(Swt,"isCommit");var S3={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},df={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},T3={$type:"Curve",entries:"entries",label:"label",name:"name"},x3={$type:"Deaccelerator",name:"name",x:"x",y:"y"},coe={$type:"Decorator",strategy:"strategy"},Vg={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},Cc={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},Wg={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},hf={$type:"EmFrame"},Q2={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},uoe={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},LL={$type:"EmModelEntity",name:"name"};function Twt(t){return t==="rmo"||t==="readmodel"||t==="ui"||t==="cmd"||t==="command"||t==="evt"||t==="event"||t==="pcr"||t==="processor"}k(Twt,"isEmModelEntityType");var C3={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},Ku={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};function Ake(t){return tl.isInstance(t,Ku.$type)}k(Ake,"isEmResetFrame");var _d={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},ML={$type:"Entry",axis:"axis",value:"value"},Uu={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},doe={$type:"Evolution",stages:"stages"},w3={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},PL={$type:"Evolve",component:"component",target:"target"},Nf={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};function xwt(t){return tl.isInstance(t,Nf.$type)}k(xwt,"isGitGraph");var Z2={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},IE={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};function Cwt(t){return tl.isInstance(t,IE.$type)}k(Cwt,"isInfo");var J2={$type:"Item",classSelector:"classSelector",name:"name"},BL={$type:"Junction",id:"id",in:"in"},eE={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},k3={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},ff={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},fm={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};function wwt(t){return tl.isInstance(t,fm.$type)}k(wwt,"isMerge");var A3={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},FL={$type:"Option",name:"name",value:"value"},pm={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};function kwt(t){return tl.isInstance(t,pm.$type)}k(kwt,"isPacket");var gm={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};function Awt(t){return tl.isInstance(t,gm.$type)}k(Awt,"isPacketBlock");var If={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};function Rwt(t){return tl.isInstance(t,If.$type)}k(Rwt,"isPie");var V5={$type:"PieSection",label:"label",value:"value"};function Nwt(t){return tl.isInstance(t,V5.$type)}k(Nwt,"isPieSection");var $L={$type:"Pipeline",components:"components",parent:"parent"},R3={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},pf={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},zL={$type:"Section",classSelector:"classSelector",name:"name"},Kg={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},UL={$type:"Size",height:"height",width:"width"},Xg={$type:"Statement"},mm={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};function Iwt(t){return tl.isInstance(t,mm.$type)}k(Iwt,"isTreemap");var GL={$type:"TreemapRow",indent:"indent",item:"item"},qL={$type:"TreeNode",indent:"indent",name:"name"},tE={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},Ha={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"};function Owt(t){return tl.isInstance(t,Ha.$type)}k(Owt,"isWardley");var Hv,Rke=(Hv=class extends vY{constructor(){super(...arguments),this.types={Accelerator:{name:v3.$type,properties:{name:{name:v3.name},x:{name:v3.x},y:{name:v3.y}},superTypes:[]},Anchor:{name:_3.$type,properties:{evolution:{name:_3.evolution},name:{name:_3.name},visibility:{name:_3.visibility}},superTypes:[]},Annotation:{name:j2.$type,properties:{number:{name:j2.number},text:{name:j2.text},x:{name:j2.x},y:{name:j2.y}},superTypes:[]},Annotations:{name:OL.$type,properties:{x:{name:OL.x},y:{name:OL.y}},superTypes:[]},Architecture:{name:Wu.$type,properties:{accDescr:{name:Wu.accDescr},accTitle:{name:Wu.accTitle},edges:{name:Wu.edges,defaultValue:[]},groups:{name:Wu.groups,defaultValue:[]},junctions:{name:Wu.junctions,defaultValue:[]},services:{name:Wu.services,defaultValue:[]},title:{name:Wu.title}},superTypes:[]},Axis:{name:b3.$type,properties:{label:{name:b3.label},name:{name:b3.name}},superTypes:[]},Branch:{name:H5.$type,properties:{name:{name:H5.name},order:{name:H5.order}},superTypes:[Xg.$type]},Checkout:{name:loe.$type,properties:{branch:{name:loe.branch}},superTypes:[Xg.$type]},CherryPicking:{name:E3.$type,properties:{id:{name:E3.id},parent:{name:E3.parent},tags:{name:E3.tags,defaultValue:[]}},superTypes:[Xg.$type]},ClassDefStatement:{name:DL.$type,properties:{className:{name:DL.className},styleText:{name:DL.styleText}},superTypes:[]},Commit:{name:hm.$type,properties:{id:{name:hm.id},message:{name:hm.message},tags:{name:hm.tags,defaultValue:[]},type:{name:hm.type}},superTypes:[Xg.$type]},Common:{name:S3.$type,properties:{accDescr:{name:S3.accDescr},accTitle:{name:S3.accTitle},title:{name:S3.title}},superTypes:[]},Component:{name:df.$type,properties:{decorator:{name:df.decorator},evolution:{name:df.evolution},inertia:{name:df.inertia,defaultValue:!1},label:{name:df.label},name:{name:df.name},visibility:{name:df.visibility}},superTypes:[]},Curve:{name:T3.$type,properties:{entries:{name:T3.entries,defaultValue:[]},label:{name:T3.label},name:{name:T3.name}},superTypes:[]},Deaccelerator:{name:x3.$type,properties:{name:{name:x3.name},x:{name:x3.x},y:{name:x3.y}},superTypes:[]},Decorator:{name:coe.$type,properties:{strategy:{name:coe.strategy}},superTypes:[]},Direction:{name:Vg.$type,properties:{accDescr:{name:Vg.accDescr},accTitle:{name:Vg.accTitle},dir:{name:Vg.dir},statements:{name:Vg.statements,defaultValue:[]},title:{name:Vg.title}},superTypes:[Nf.$type]},Edge:{name:Cc.$type,properties:{lhsDir:{name:Cc.lhsDir},lhsGroup:{name:Cc.lhsGroup,defaultValue:!1},lhsId:{name:Cc.lhsId},lhsInto:{name:Cc.lhsInto,defaultValue:!1},rhsDir:{name:Cc.rhsDir},rhsGroup:{name:Cc.rhsGroup,defaultValue:!1},rhsId:{name:Cc.rhsId},rhsInto:{name:Cc.rhsInto,defaultValue:!1},title:{name:Cc.title}},superTypes:[]},EmDataEntity:{name:Wg.$type,properties:{dataBlockValue:{name:Wg.dataBlockValue},dataType:{name:Wg.dataType},name:{name:Wg.name}},superTypes:[]},EmFrame:{name:hf.$type,properties:{},superTypes:[]},EmGwt:{name:Q2.$type,properties:{givenStatements:{name:Q2.givenStatements,defaultValue:[]},sourceFrame:{name:Q2.sourceFrame,referenceType:hf.$type},thenStatements:{name:Q2.thenStatements,defaultValue:[]},whenStatements:{name:Q2.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:uoe.$type,properties:{entityIdentifier:{name:uoe.entityIdentifier,referenceType:LL.$type}},superTypes:[]},EmModelEntity:{name:LL.$type,properties:{name:{name:LL.name}},superTypes:[]},EmNoteEntity:{name:C3.$type,properties:{dataBlockValue:{name:C3.dataBlockValue},dataType:{name:C3.dataType},sourceFrame:{name:C3.sourceFrame,referenceType:hf.$type}},superTypes:[]},EmResetFrame:{name:Ku.$type,properties:{dataInlineValue:{name:Ku.dataInlineValue},dataReference:{name:Ku.dataReference,referenceType:Wg.$type},dataType:{name:Ku.dataType},entityIdentifier:{name:Ku.entityIdentifier},modelEntityType:{name:Ku.modelEntityType},name:{name:Ku.name},sourceFrames:{name:Ku.sourceFrames,defaultValue:[],referenceType:hf.$type}},superTypes:[hf.$type]},EmTimeFrame:{name:_d.$type,properties:{dataInlineValue:{name:_d.dataInlineValue},dataReference:{name:_d.dataReference,referenceType:Wg.$type},dataType:{name:_d.dataType},entityIdentifier:{name:_d.entityIdentifier},modelEntityType:{name:_d.modelEntityType},name:{name:_d.name},sourceFrames:{name:_d.sourceFrames,defaultValue:[],referenceType:hf.$type}},superTypes:[hf.$type]},Entry:{name:ML.$type,properties:{axis:{name:ML.axis,referenceType:b3.$type},value:{name:ML.value}},superTypes:[]},EventModel:{name:Uu.$type,properties:{accDescr:{name:Uu.accDescr},accTitle:{name:Uu.accTitle},dataEntities:{name:Uu.dataEntities,defaultValue:[]},frames:{name:Uu.frames,defaultValue:[]},gwtEntities:{name:Uu.gwtEntities,defaultValue:[]},modelEntities:{name:Uu.modelEntities,defaultValue:[]},noteEntities:{name:Uu.noteEntities,defaultValue:[]},title:{name:Uu.title}},superTypes:[]},Evolution:{name:doe.$type,properties:{stages:{name:doe.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:w3.$type,properties:{boundary:{name:w3.boundary},name:{name:w3.name},secondName:{name:w3.secondName}},superTypes:[]},Evolve:{name:PL.$type,properties:{component:{name:PL.component},target:{name:PL.target}},superTypes:[]},GitGraph:{name:Nf.$type,properties:{accDescr:{name:Nf.accDescr},accTitle:{name:Nf.accTitle},statements:{name:Nf.statements,defaultValue:[]},title:{name:Nf.title}},superTypes:[]},Group:{name:Z2.$type,properties:{icon:{name:Z2.icon},id:{name:Z2.id},in:{name:Z2.in},title:{name:Z2.title}},superTypes:[]},Info:{name:IE.$type,properties:{accDescr:{name:IE.accDescr},accTitle:{name:IE.accTitle},title:{name:IE.title}},superTypes:[]},Item:{name:J2.$type,properties:{classSelector:{name:J2.classSelector},name:{name:J2.name}},superTypes:[]},Junction:{name:BL.$type,properties:{id:{name:BL.id},in:{name:BL.in}},superTypes:[]},Label:{name:eE.$type,properties:{negX:{name:eE.negX,defaultValue:!1},negY:{name:eE.negY,defaultValue:!1},offsetX:{name:eE.offsetX},offsetY:{name:eE.offsetY}},superTypes:[]},Leaf:{name:k3.$type,properties:{classSelector:{name:k3.classSelector},name:{name:k3.name},value:{name:k3.value}},superTypes:[J2.$type]},Link:{name:ff.$type,properties:{arrow:{name:ff.arrow},from:{name:ff.from},fromPort:{name:ff.fromPort},linkLabel:{name:ff.linkLabel},to:{name:ff.to},toPort:{name:ff.toPort}},superTypes:[]},Merge:{name:fm.$type,properties:{branch:{name:fm.branch},id:{name:fm.id},tags:{name:fm.tags,defaultValue:[]},type:{name:fm.type}},superTypes:[Xg.$type]},Note:{name:A3.$type,properties:{evolution:{name:A3.evolution},text:{name:A3.text},visibility:{name:A3.visibility}},superTypes:[]},Option:{name:FL.$type,properties:{name:{name:FL.name},value:{name:FL.value,defaultValue:!1}},superTypes:[]},Packet:{name:pm.$type,properties:{accDescr:{name:pm.accDescr},accTitle:{name:pm.accTitle},blocks:{name:pm.blocks,defaultValue:[]},title:{name:pm.title}},superTypes:[]},PacketBlock:{name:gm.$type,properties:{bits:{name:gm.bits},end:{name:gm.end},label:{name:gm.label},start:{name:gm.start}},superTypes:[]},Pie:{name:If.$type,properties:{accDescr:{name:If.accDescr},accTitle:{name:If.accTitle},sections:{name:If.sections,defaultValue:[]},showData:{name:If.showData,defaultValue:!1},title:{name:If.title}},superTypes:[]},PieSection:{name:V5.$type,properties:{label:{name:V5.label},value:{name:V5.value}},superTypes:[]},Pipeline:{name:$L.$type,properties:{components:{name:$L.components,defaultValue:[]},parent:{name:$L.parent}},superTypes:[]},PipelineComponent:{name:R3.$type,properties:{evolution:{name:R3.evolution},label:{name:R3.label},name:{name:R3.name}},superTypes:[]},Radar:{name:pf.$type,properties:{accDescr:{name:pf.accDescr},accTitle:{name:pf.accTitle},axes:{name:pf.axes,defaultValue:[]},curves:{name:pf.curves,defaultValue:[]},options:{name:pf.options,defaultValue:[]},title:{name:pf.title}},superTypes:[]},Section:{name:zL.$type,properties:{classSelector:{name:zL.classSelector},name:{name:zL.name}},superTypes:[J2.$type]},Service:{name:Kg.$type,properties:{icon:{name:Kg.icon},iconText:{name:Kg.iconText},id:{name:Kg.id},in:{name:Kg.in},title:{name:Kg.title}},superTypes:[]},Size:{name:UL.$type,properties:{height:{name:UL.height},width:{name:UL.width}},superTypes:[]},Statement:{name:Xg.$type,properties:{},superTypes:[]},TreeNode:{name:qL.$type,properties:{indent:{name:qL.indent},name:{name:qL.name}},superTypes:[]},TreeView:{name:tE.$type,properties:{accDescr:{name:tE.accDescr},accTitle:{name:tE.accTitle},nodes:{name:tE.nodes,defaultValue:[]},title:{name:tE.title}},superTypes:[]},Treemap:{name:mm.$type,properties:{accDescr:{name:mm.accDescr},accTitle:{name:mm.accTitle},title:{name:mm.title},TreemapRows:{name:mm.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:GL.$type,properties:{indent:{name:GL.indent},item:{name:GL.item}},superTypes:[]},Wardley:{name:Ha.$type,properties:{accDescr:{name:Ha.accDescr},accelerators:{name:Ha.accelerators,defaultValue:[]},accTitle:{name:Ha.accTitle},anchors:{name:Ha.anchors,defaultValue:[]},annotation:{name:Ha.annotation,defaultValue:[]},annotations:{name:Ha.annotations,defaultValue:[]},components:{name:Ha.components,defaultValue:[]},deaccelerators:{name:Ha.deaccelerators,defaultValue:[]},evolution:{name:Ha.evolution},evolves:{name:Ha.evolves,defaultValue:[]},links:{name:Ha.links,defaultValue:[]},notes:{name:Ha.notes,defaultValue:[]},pipelines:{name:Ha.pipelines,defaultValue:[]},size:{name:Ha.size},title:{name:Ha.title}},superTypes:[]}}}},k(Hv,"MermaidAstReflection"),Hv),tl=new Rke,hoe,Dwt=k(()=>hoe??(hoe=el(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"ArchitectureGrammarGrammar"),foe,Lwt=k(()=>foe??(foe=el('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),poe,Mwt=k(()=>poe??(poe=el(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"GitGraphGrammarGrammar"),goe,Pwt=k(()=>goe??(goe=el(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"InfoGrammarGrammar"),moe,Bwt=k(()=>moe??(moe=el(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PacketGrammarGrammar"),yoe,Fwt=k(()=>yoe??(yoe=el(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PieGrammarGrammar"),voe,$wt=k(()=>voe??(voe=el(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`)),"RadarGrammarGrammar"),_oe,zwt=k(()=>_oe??(_oe=el(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammarGrammar"),boe,Uwt=k(()=>boe??(boe=el(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@9"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n * Converted from treemap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`)),"TreeViewGrammarGrammar"),Eoe,Gwt=k(()=>Eoe??(Eoe=el(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"WardleyGrammarGrammar"),qwt={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ywt={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Hwt={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Vwt={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Wwt={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Kwt={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Xwt={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},jwt={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Qwt={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Zwt={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Iu={AstReflection:k(()=>new Rke,"AstReflection")},Jwt={Grammar:k(()=>Dwt(),"Grammar"),LanguageMetaData:k(()=>qwt,"LanguageMetaData"),parser:{}},ekt={Grammar:k(()=>Lwt(),"Grammar"),LanguageMetaData:k(()=>Ywt,"LanguageMetaData"),parser:{}},tkt={Grammar:k(()=>Mwt(),"Grammar"),LanguageMetaData:k(()=>Hwt,"LanguageMetaData"),parser:{}},rkt={Grammar:k(()=>Pwt(),"Grammar"),LanguageMetaData:k(()=>Vwt,"LanguageMetaData"),parser:{}},nkt={Grammar:k(()=>Bwt(),"Grammar"),LanguageMetaData:k(()=>Wwt,"LanguageMetaData"),parser:{}},ikt={Grammar:k(()=>Fwt(),"Grammar"),LanguageMetaData:k(()=>Kwt,"LanguageMetaData"),parser:{}},akt={Grammar:k(()=>$wt(),"Grammar"),LanguageMetaData:k(()=>Xwt,"LanguageMetaData"),parser:{}},skt={Grammar:k(()=>zwt(),"Grammar"),LanguageMetaData:k(()=>jwt,"LanguageMetaData"),parser:{}},okt={Grammar:k(()=>Uwt(),"Grammar"),LanguageMetaData:k(()=>Qwt,"LanguageMetaData"),parser:{}},lkt={Grammar:k(()=>Gwt(),"Grammar"),LanguageMetaData:k(()=>Zwt,"LanguageMetaData"),parser:{}},ckt=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ukt=/accTitle[\t ]*:([^\n\r]*)/,dkt=/title([\t ][^\n\r]*|)/,hkt={ACC_DESCR:ckt,ACC_TITLE:ukt,TITLE:dkt},Vv,v2=(Vv=class extends RV{runConverter(e,r,n){let i=this.runCommonConverter(e,r,n);return i===void 0&&(i=this.runCustomConverter(e,r,n)),i===void 0?super.runConverter(e,r,n):i}runCommonConverter(e,r,n){const i=hkt[e.name];if(i===void 0)return;const a=i.exec(r);if(a!==null){if(a[1]!==void 0)return a[1].trim().replace(/[\t ]{2,}/gm," ");if(a[2]!==void 0)return a[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,` -`)}}},k(Vv,"AbstractMermaidValueConverter"),Vv),Wv,ex=(Wv=class extends v2{runCustomConverter(e,r,n){}},k(Wv,"CommonValueConverter"),Wv),Kv,Ou=(Kv=class extends qA{constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,r,n){const i=super.buildKeywordTokens(e,r,n);return i.forEach(a=>{this.keywords.has(a.name)&&a.PATTERN!==void 0&&(a.PATTERN=new RegExp(a.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),i}},k(Kv,"AbstractMermaidTokenBuilder"),Kv),Xv;Xv=class extends Ou{},k(Xv,"CommonTokenBuilder");var jv,fkt=(jv=class extends Ou{constructor(){super(["radar-beta"])}},k(jv,"RadarTokenBuilder"),jv),Nke={parser:{TokenBuilder:k(()=>new fkt,"TokenBuilder"),ValueConverter:k(()=>new ex,"ValueConverter")}};function Ike(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),akt,Nke);return e.ServiceRegistry.register(r),{shared:e,Radar:r}}k(Ike,"createRadarServices");var Qv,pkt=(Qv=class extends Ou{constructor(){super(["treemap"])}},k(Qv,"TreemapTokenBuilder"),Qv),gkt=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Zv,mkt=(Zv=class extends v2{runCustomConverter(e,r,n){if(e.name==="NUMBER2")return parseFloat(r.replace(/,/g,""));if(e.name==="SEPARATOR")return r.substring(1,r.length-1);if(e.name==="STRING2")return r.substring(1,r.length-1);if(e.name==="INDENTATION")return r.length;if(e.name==="ClassDef"){if(typeof r!="string")return r;const i=gkt.exec(r);if(i)return{$type:"ClassDefStatement",className:i[1],styleText:i[2]||void 0}}}},k(Zv,"TreemapValueConverter"),Zv);function Oke(t){const e=t.validation.TreemapValidator,r=t.validation.ValidationRegistry;if(r){const n={Treemap:e.checkSingleRoot.bind(e)};r.register(n,e)}}k(Oke,"registerValidationChecks");var Jv,ykt=(Jv=class{checkSingleRoot(e,r){let n;for(const i of e.TreemapRows)i.item&&(n===void 0&&i.indent===void 0?n=0:i.indent===void 0?r("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}):n!==void 0&&n>=parseInt(i.indent,10)&&r("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}))}},k(Jv,"TreemapValidator"),Jv),Dke={parser:{TokenBuilder:k(()=>new pkt,"TokenBuilder"),ValueConverter:k(()=>new mkt,"ValueConverter")},validation:{TreemapValidator:k(()=>new ykt,"TreemapValidator")}};function Lke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),skt,Dke);return e.ServiceRegistry.register(r),Oke(r),{shared:e,Treemap:r}}k(Lke,"createTreemapServices");var e_,vkt=(e_=class extends v2{runCustomConverter(e,r,n){if(e.name.toUpperCase()==="LINK_LABEL")return r.substring(1).trim()}},k(e_,"WardleyValueConverter"),e_),Mke={parser:{ValueConverter:k(()=>new vkt,"ValueConverter")}};function Pke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),lkt,Mke);return e.ServiceRegistry.register(r),{shared:e,Wardley:r}}k(Pke,"createWardleyServices");var t_,_kt=(t_=class extends Ou{constructor(){super(["gitGraph"])}},k(t_,"GitGraphTokenBuilder"),t_),Bke={parser:{TokenBuilder:k(()=>new _kt,"TokenBuilder"),ValueConverter:k(()=>new ex,"ValueConverter")}};function Fke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),tkt,Bke);return e.ServiceRegistry.register(r),{shared:e,GitGraph:r}}k(Fke,"createGitGraphServices");var r_,bkt=(r_=class extends Ou{constructor(){super(["info","showInfo"])}},k(r_,"InfoTokenBuilder"),r_),$ke={parser:{TokenBuilder:k(()=>new bkt,"TokenBuilder"),ValueConverter:k(()=>new ex,"ValueConverter")}};function zke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),rkt,$ke);return e.ServiceRegistry.register(r),{shared:e,Info:r}}k(zke,"createInfoServices");var n_,Ekt=(n_=class extends Ou{constructor(){super(["packet"])}},k(n_,"PacketTokenBuilder"),n_),Uke={parser:{TokenBuilder:k(()=>new Ekt,"TokenBuilder"),ValueConverter:k(()=>new ex,"ValueConverter")}};function Gke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),nkt,Uke);return e.ServiceRegistry.register(r),{shared:e,Packet:r}}k(Gke,"createPacketServices");var i_,Skt=(i_=class extends Ou{constructor(){super(["pie","showData"])}},k(i_,"PieTokenBuilder"),i_),a_,Tkt=(a_=class extends v2{runCustomConverter(e,r,n){if(e.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},k(a_,"PieValueConverter"),a_),qke={parser:{TokenBuilder:k(()=>new Skt,"TokenBuilder"),ValueConverter:k(()=>new Tkt,"ValueConverter")}};function Yke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),ikt,qke);return e.ServiceRegistry.register(r),{shared:e,Pie:r}}k(Yke,"createPieServices");var s_,xkt=(s_=class extends v2{runCustomConverter(e,r,n){if(e.name==="INDENTATION")return r?.length||0;if(e.name==="STRING2")return r.substring(1,r.length-1)}},k(s_,"TreeViewValueConverter"),s_),o_,Ckt=(o_=class extends Ou{constructor(){super(["treeView-beta"])}},k(o_,"TreeViewTokenBuilder"),o_),Hke={parser:{TokenBuilder:k(()=>new Ckt,"TokenBuilder"),ValueConverter:k(()=>new xkt,"ValueConverter")}};function Vke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),okt,Hke);return e.ServiceRegistry.register(r),{shared:e,TreeView:r}}k(Vke,"createTreeViewServices");var l_,wkt=(l_=class extends Ou{constructor(){super(["architecture"])}},k(l_,"ArchitectureTokenBuilder"),l_),c_,kkt=(c_=class extends v2{runCustomConverter(e,r,n){if(e.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(e.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(e.name==="ARCH_TITLE"){let i=r.replace(/^\[|]$/g,"").trim();return(i.startsWith('"')&&i.endsWith('"')||i.startsWith("'")&&i.endsWith("'"))&&(i=i.slice(1,-1),i=i.replace(/\\"/g,'"').replace(/\\'/g,"'")),i.trim()}}},k(c_,"ArchitectureValueConverter"),c_),Wke={parser:{TokenBuilder:k(()=>new wkt,"TokenBuilder"),ValueConverter:k(()=>new kkt,"ValueConverter")}};function Kke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),Jwt,Wke);return e.ServiceRegistry.register(r),{shared:e,Architecture:r}}k(Kke,"createArchitectureServices");var u_,Akt=(u_=class extends Ou{constructor(){super(["eventmodeling"])}},k(u_,"EventModelingTokenBuilder"),u_),Soe=new Set(["cmd","command"]),Toe=new Set(["evt","event"]),YL=new Set(["rmo","readmodel"]),xoe=new Set(["pcr","processor"]),Coe=new Set(["ui"]);function Xke(t){const e=t.validation.EventModelingValidator,r=t.validation.ValidationRegistry;if(r){const n={EmTimeFrame:e.checkSourceFrameTypes.bind(e),EmResetFrame:e.checkSourceFrameTypes.bind(e)};r.register(n,e)}}k(Xke,"registerValidationChecks");var d_,Rkt=(d_=class{checkSourceFrameTypes(e,r){e.sourceFrames.length!==0&&(Soe.has(e.modelEntityType)?this.validateSources(e,new Set([...Coe,...xoe]),"command","ui or processor",r):Toe.has(e.modelEntityType)?this.validateSources(e,Soe,"event","command",r):YL.has(e.modelEntityType)?this.validateSources(e,Toe,"read model","event",r):xoe.has(e.modelEntityType)?this.validateSources(e,YL,"processor","read model",r):Coe.has(e.modelEntityType)&&this.validateSources(e,YL,"ui","read model",r))}validateSources(e,r,n,i,a){for(const s of e.sourceFrames){const o=s.ref;o!==void 0&&!r.has(o.modelEntityType)&&a("error",`A ${n} can only receive input from a ${i}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},k(d_,"EventModelingValidator"),d_),jke={parser:{TokenBuilder:k(()=>new Akt,"TokenBuilder"),ValueConverter:k(()=>new ex,"ValueConverter")},validation:{EventModelingValidator:k(()=>new Rkt,"EventModelingValidator")}};function Qke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),ekt,jke);return e.ServiceRegistry.register(r),Xke(r),{shared:e,EventModel:r}}k(Qke,"createEventModelingServices");var ll={},Nkt={info:k(async()=>{const{createInfoServices:t}=await Promise.resolve().then(()=>YPt),e=t().Info.parser.LangiumParser;ll.info=e},"info"),packet:k(async()=>{const{createPacketServices:t}=await Promise.resolve().then(()=>HPt),e=t().Packet.parser.LangiumParser;ll.packet=e},"packet"),pie:k(async()=>{const{createPieServices:t}=await Promise.resolve().then(()=>VPt),e=t().Pie.parser.LangiumParser;ll.pie=e},"pie"),treeView:k(async()=>{const{createTreeViewServices:t}=await Promise.resolve().then(()=>WPt),e=t().TreeView.parser.LangiumParser;ll.treeView=e},"treeView"),architecture:k(async()=>{const{createArchitectureServices:t}=await Promise.resolve().then(()=>KPt),e=t().Architecture.parser.LangiumParser;ll.architecture=e},"architecture"),gitGraph:k(async()=>{const{createGitGraphServices:t}=await Promise.resolve().then(()=>XPt),e=t().GitGraph.parser.LangiumParser;ll.gitGraph=e},"gitGraph"),eventmodeling:k(async()=>{const{createEventModelingServices:t}=await Promise.resolve().then(()=>jPt),e=t().EventModel.parser.LangiumParser;ll.eventmodeling=e},"eventmodeling"),radar:k(async()=>{const{createRadarServices:t}=await Promise.resolve().then(()=>QPt),e=t().Radar.parser.LangiumParser;ll.radar=e},"radar"),treemap:k(async()=>{const{createTreemapServices:t}=await Promise.resolve().then(()=>ZPt),e=t().Treemap.parser.LangiumParser;ll.treemap=e},"treemap"),wardley:k(async()=>{const{createWardleyServices:t}=await Promise.resolve().then(()=>JPt),e=t().Wardley.parser.LangiumParser;ll.wardley=e},"wardley")};async function _c(t,e){const r=Nkt[t];if(!r)throw new Error(`Unknown diagram type: ${t}`);ll[t]||await r();const i=ll[t].parse(e);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new Ikt(i);return i.value}k(_c,"parse");var h_,Ikt=(h_=class extends Error{constructor(e){const r=e.lexerErrors.map(i=>{const a=i.line!==void 0&&!isNaN(i.line)?i.line:"?",s=i.column!==void 0&&!isNaN(i.column)?i.column:"?";return`Lexer error on line ${a}, column ${s}: ${i.message}`}).join(` +`}k(x$,"fillNewlines");var Dv,vke=(Dv=class{constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){const r=this.commentProvider.getComment(e);if(r&&qV(r))return GV(r).toMarkdown({renderLink:k((i,a)=>this.documentationLinkRenderer(e,i,a),"renderLink"),renderTag:k(i=>this.documentationTagRenderer(e,i),"renderTag")})}documentationLinkRenderer(e,r,n){const i=this.findNameInLocalSymbols(e,r)??this.findNameInGlobalScope(e,r);if(i&&i.nameSegment){const a=i.nameSegment.range.start.line+1,s=i.nameSegment.range.start.character+1,o=i.documentUri.with({fragment:`L${a},${s}`});return`[${n}](${o.toString()})`}else return}documentationTagRenderer(e,r){}findNameInLocalSymbols(e,r){const i=sc(e).localSymbols;if(!i)return;let a=e;do{const o=i.getStream(a).find(l=>l.name===r);if(o)return o;a=a.$container}while(a)}findNameInGlobalScope(e,r){return this.indexManager.allElements().find(i=>i.name===r)}},k(Dv,"JSDocDocumentationProvider"),Dv),Lv,_ke=(Lv=class{constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return BV(e)?e.$comment:HY(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},k(Lv,"DefaultCommentProvider"),Lv),Mv,bke=(Mv=class{constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,r){return Promise.resolve(this.syncParser.parse(e))}},k(Mv,"DefaultAsyncParser"),Mv),Pv,gwt=(Pv=class{constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length{if(this.queue.length>0){const r=this.queue.shift();r&&(e.lock(),r.resolve(e))}}),this.workerPool.push(e)}}async parse(e,r){const n=await this.acquireParserWorker(r),i=new F0;let a;const s=r.onCancellationRequested(()=>{a=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(o=>{const l=this.hydrator.hydrate(o);i.resolve(l)}).catch(o=>{i.reject(o)}).finally(()=>{s.dispose(),clearTimeout(a)}),i.promise}terminateWorker(e){e.terminate();const r=this.workerPool.indexOf(e);r>=0&&this.workerPool.splice(r,1)}async acquireParserWorker(e){this.initializeWorkers();for(const n of this.workerPool)if(n.ready)return n.lock(),n;const r=new F0;return e.onCancellationRequested(()=>{const n=this.queue.indexOf(r);n>=0&&this.queue.splice(n,1),r.reject(Qc)}),this.queue.push(r),r.promise}},k(Pv,"AbstractThreadedAsyncParser"),Pv),Bv,mwt=(Bv=class{get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,r,n,i){this.onReadyEmitter=new KA.Emitter,this.deferred=new F0,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=i,r(a=>{const s=a;this.deferred.resolve(s),this.unlock()}),n(a=>{this.deferred.reject(a),this.unlock()})}terminate(){this.deferred.reject(Qc),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new F0,this.sendMessage(e),this.deferred.promise}},k(Bv,"ParserWorker"),Bv),Fv,Eke=(Fv=class{constructor(){this.previousTokenSource=new Xn.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();const r=HA();return this.previousTokenSource=r,this.enqueue(this.writeQueue,e,r.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,r,n=Xn.CancellationToken.None){const i=new F0,a={action:r,deferred:i,cancellationToken:n};return e.push(a),this.performNextOperation(),i.promise}async performNextOperation(){if(!this.done)return;const e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:r,deferred:n,cancellationToken:i})=>{try{const a=await Promise.resolve().then(()=>r(i));n.resolve(a)}catch(a){kg(a)?n.resolve(void 0):n.reject(a)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},k(Fv,"DefaultWorkspaceLock"),Fv),$v,Ske=($v=class{constructor(e){this.grammarElementIdMap=new xw,this.tokenTypeIdMap=new xw,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(r=>({...r,message:r.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){const r=new Map,n=new Map;for(const i of oc(e))r.set(i,{});if(e.$cstNode)for(const i of bb(e.$cstNode))n.set(i,{});return{astNodes:r,cstNodes:n}}dehydrateAstNode(e,r){const n=r.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(n.$cstNode=this.dehydrateCstNode(e.$cstNode,r));for(const[i,a]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(a)){const s=[];n[i]=s;for(const o of a)ea(o)?s.push(this.dehydrateAstNode(o,r)):Bs(o)?s.push(this.dehydrateReference(o,r)):s.push(o)}else ea(a)?n[i]=this.dehydrateAstNode(a,r):Bs(a)?n[i]=this.dehydrateReference(a,r):a!==void 0&&(n[i]=a);return n}dehydrateReference(e,r){const n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=r.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,r){const n=r.cstNodes.get(e);return H7(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=r.astNodes.get(e.astNode),N0(e)?n.content=e.content.map(i=>this.dehydrateCstNode(i,r)):lg(e)&&(n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length,n.startLine=e.range.start.line,n.startColumn=e.range.start.character,n.endLine=e.range.end.line,n.endColumn=e.range.end.character),n}hydrate(e){const r=e.value,n=this.createHydrationContext(r);return"$cstNode"in r&&this.hydrateCstNode(r.$cstNode,n),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(r,n)}}createHydrationContext(e){const r=new Map,n=new Map;for(const a of oc(e))r.set(a,{});let i;if(e.$cstNode)for(const a of bb(e.$cstNode)){let s;"fullText"in a?(s=new EV(a.fullText),i=s):"content"in a?s=new zA:"tokenType"in a&&(s=this.hydrateCstLeafNode(a)),s&&(n.set(a,s),s.root=i)}return{astNodes:r,cstNodes:n}}hydrateAstNode(e,r){const n=r.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode&&(n.$cstNode=r.cstNodes.get(e.$cstNode));for(const[i,a]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(a)){const s=[];n[i]=s;for(const o of a)ea(o)?s.push(this.setParent(this.hydrateAstNode(o,r),n)):Bs(o)?s.push(this.hydrateReference(o,n,i,r)):s.push(o)}else ea(a)?n[i]=this.setParent(this.hydrateAstNode(a,r),n):Bs(a)?n[i]=this.hydrateReference(a,n,i,r):a!==void 0&&(n[i]=a);return n}setParent(e,r){return e.$container=r,e}hydrateReference(e,r,n,i){return this.linker.buildReference(r,n,i.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,r,n=0){const i=r.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(i.grammarSource=this.getGrammarElement(e.grammarSource)),i.astNode=r.astNodes.get(e.astNode),N0(i))for(const a of e.content){const s=this.hydrateCstNode(a,r,n++);i.content.push(s)}return i}hydrateCstLeafNode(e){const r=this.getTokenType(e.tokenType),n=e.offset,i=e.length,a=e.startLine,s=e.startColumn,o=e.endLine,l=e.endColumn,u=e.hidden;return new _w(n,i,{start:{line:a,character:s},end:{line:o,character:l}},r,u)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(const r of oc(this.grammar))V7(r)&&this.grammarElementIdMap.set(r,e++)}},k($v,"DefaultHydrator"),$v);function Zo(t){return{documentation:{CommentProvider:k(e=>new _ke(e),"CommentProvider"),DocumentationProvider:k(e=>new vke(e),"DocumentationProvider")},parser:{AsyncParser:k(e=>new bke(e),"AsyncParser"),GrammarConfig:k(e=>gH(e),"GrammarConfig"),LangiumParser:k(e=>kV(e),"LangiumParser"),CompletionParser:k(e=>wV(e),"CompletionParser"),ValueConverter:k(()=>new RV,"ValueConverter"),TokenBuilder:k(()=>new qA,"TokenBuilder"),Lexer:k(e=>new UV(e),"Lexer"),ParserErrorMessageProvider:k(()=>new TV,"ParserErrorMessageProvider"),LexerErrorMessageProvider:k(()=>new oke,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:k(()=>new rke,"AstNodeLocator"),AstNodeDescriptionProvider:k(e=>new eke(e),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:k(e=>new tke(e),"ReferenceDescriptionProvider")},references:{Linker:k(e=>new Gwe(e),"Linker"),NameProvider:k(()=>new qwe,"NameProvider"),ScopeProvider:k(e=>new Kwe(e),"ScopeProvider"),ScopeComputation:k(e=>new Hwe(e),"ScopeComputation"),References:k(e=>new Ywe(e),"References")},serializer:{Hydrator:k(e=>new Ske(e),"Hydrator"),JsonSerializer:k(e=>new Xwe(e),"JsonSerializer")},validation:{DocumentValidator:k(e=>new Jwe(e),"DocumentValidator"),ValidationRegistry:k(e=>new Qwe(e),"ValidationRegistry")},shared:k(()=>t.shared,"shared")}}k(Zo,"createDefaultCoreModule");function Jo(t){return{ServiceRegistry:k(e=>new jwe(e),"ServiceRegistry"),workspace:{LangiumDocuments:k(e=>new Uwe(e),"LangiumDocuments"),LangiumDocumentFactory:k(e=>new zwe(e),"LangiumDocumentFactory"),DocumentBuilder:k(e=>new ike(e),"DocumentBuilder"),IndexManager:k(e=>new ake(e),"IndexManager"),WorkspaceManager:k(e=>new ske(e),"WorkspaceManager"),FileSystemProvider:k(e=>t.fileSystemProvider(e),"FileSystemProvider"),WorkspaceLock:k(()=>new Eke,"WorkspaceLock"),ConfigurationProvider:k(e=>new nke(e),"ConfigurationProvider")},profilers:{}}}k(Jo,"createDefaultSharedCoreModule");var C$;(function(t){t.merge=(e,r)=>wb(wb({},e),r)})(C$||(C$={}));function gi(t,e,r,n,i,a,s,o,l){const u=[t,e,r,n,i,a,s,o,l].reduce(wb,{});return XV(u)}k(gi,"inject");var Tke=Symbol("isProxy");function KV(t){if(t&&t[Tke])for(const e of Object.values(t))KV(e);return t}k(KV,"eagerLoad");function XV(t,e){const r=new Proxy({},{deleteProperty:k(()=>!1,"deleteProperty"),set:k(()=>{throw new Error("Cannot set property on injected service container")},"set"),get:k((n,i)=>i===Tke?!0:w$(n,i,t,e||r),"get"),getOwnPropertyDescriptor:k((n,i)=>(w$(n,i,t,e||r),Object.getOwnPropertyDescriptor(n,i)),"getOwnPropertyDescriptor"),has:k((n,i)=>i in t,"has"),ownKeys:k(()=>[...Object.getOwnPropertyNames(t)],"ownKeys")});return r}k(XV,"_inject");var ooe=Symbol();function w$(t,e,r,n){if(e in t){if(t[e]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+t[e]);if(t[e]===ooe)throw new Error('Cycle detected. Please make "'+String(e)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return t[e]}else if(e in r){const i=r[e];t[e]=ooe;try{t[e]=typeof i=="function"?i(n):XV(i,n)}catch(a){throw t[e]=a instanceof Error?a:void 0,a}return t[e]}else return}k(w$,"_resolve");function wb(t,e){if(e){for(const[r,n]of Object.entries(e))if(n!=null)if(typeof n=="object"){const i=t[r];typeof i=="object"&&i!==null?t[r]=wb(i,n):t[r]=wb({},n)}else t[r]=n}return t}k(wb,"_merge");var k$={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]},op;(function(t){t.REGULAR="indentation-sensitive",t.IGNORE_INDENTATION="ignore-indentation"})(op||(op={}));var zv,xke=(zv=class extends qA{constructor(e=k$){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...k$,...e},this.indentTokenType=i1({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=i1({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,r){const n=super.buildTokens(e,r);if(!XA(n))throw new Error("Invalid tokens built by default builder");const{indentTokenName:i,dedentTokenName:a,whitespaceTokenName:s,ignoreIndentationDelimiters:o}=this.options;let l,u,d;const h=[];for(const f of n){for(const[p,g]of o)f.name===p?f.PUSH_MODE=op.IGNORE_INDENTATION:f.name===g&&(f.POP_MODE=!0);f.name===a?l=f:f.name===i?u=f:f.name===s?d=f:h.push(f)}if(!l||!u||!d)throw new Error("Some indentation/whitespace tokens not found!");return o.length>0?{modes:{[op.REGULAR]:[l,u,...h,d],[op.IGNORE_INDENTATION]:[...h,d]},defaultMode:op.REGULAR}:[l,u,d,...h]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,r){return r===0||`\r +`.includes(e[r-1])}matchWhitespace(e,r,n,i){this.whitespaceRegExp.lastIndex=r;const a=this.whitespaceRegExp.exec(e);return{currIndentLevel:a?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:a}}createIndentationTokenInstance(e,r,n,i){const a=this.getLineNumber(r,i);return jT(e,n,i,i+n.length,a,a,1,n.length)}getLineNumber(e,r){return e.substring(0,r).split(/\r\n|\r|\n/).length}indentMatcher(e,r,n,i){if(!this.isStartOfLine(e,r))return null;const{currIndentLevel:a,prevIndentLevel:s,match:o}=this.matchWhitespace(e,r,n,i);return a<=s?null:(this.indentationStack.push(a),o)}dedentMatcher(e,r,n,i){if(!this.isStartOfLine(e,r))return null;const{currIndentLevel:a,prevIndentLevel:s,match:o}=this.matchWhitespace(e,r,n,i);if(a>=s)return null;const l=this.indentationStack.lastIndexOf(a);if(l===-1)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${a} at offset: ${r}. Current indentation stack: ${this.indentationStack}`,offset:r,length:o?.[0]?.length??0,line:this.getLineNumber(e,r),column:1}),null;const u=this.indentationStack.length-l-1,d=e.substring(0,r).match(/[\r\n]+$/)?.[0].length??1;for(let h=0;h1;)r.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],r}},k(zv,"IndentationAwareTokenBuilder"),zv),Uv,ywt=(Uv=class extends UV{constructor(e){if(super(e),e.parser.TokenBuilder instanceof xke)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,r=zV){const n=super.tokenize(e),i=n.report;r?.mode==="full"&&n.tokens.push(...i.remainingDedents),i.remainingDedents=[];const{indentTokenType:a,dedentTokenType:s}=this.indentationTokenBuilder,o=a.tokenTypeIdx,l=s.tokenTypeIdx,u=[],d=n.tokens.length-1;for(let h=0;h=0&&u.push(n.tokens[d]),n.tokens=u,n}},k(Uv,"IndentationAwareLexer"),Uv),jV={};Uh(jV,{AstUtils:()=>_Y,BiMap:()=>xw,Cancellation:()=>Xn,ContextCache:()=>WA,CstUtils:()=>mY,DONE_RESULT:()=>Ns,Deferred:()=>F0,Disposable:()=>pp,DisposableCache:()=>VA,DocumentCache:()=>Wwe,EMPTY_STREAM:()=>gb,ErrorWithLocation:()=>J7,GrammarUtils:()=>XY,MultiMap:()=>$0,OperationCancelled:()=>Qc,Reduction:()=>b4,RegExpUtils:()=>QY,SimpleCache:()=>MV,StreamImpl:()=>jc,TreeStreamImpl:()=>mb,URI:()=>Lo,UriTrie:()=>DV,UriUtils:()=>Fs,WorkspaceCache:()=>PV,assertCondition:()=>jY,assertUnreachable:()=>Gh,delayNextTick:()=>YA,interruptAndCheck:()=>Ma,isOperationCancelled:()=>kg,loadGrammarFromJson:()=>el,setInterruptionPeriod:()=>NV,startCancelableOperation:()=>HA,stream:()=>Mn});G7(jV,KA);var Gv,Cke=(Gv=class{stat(e){throw new Error("No file system is available.")}statSync(e){throw new Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw new Error("No file system is available.")}readBinarySync(){throw new Error("No file system is available.")}readFile(){throw new Error("No file system is available.")}readFileSync(){throw new Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},k(Gv,"EmptyFileSystemProvider"),Gv),Fl={fileSystemProvider:k(()=>new Cke,"fileSystemProvider")},vwt={Grammar:k(()=>{},"Grammar"),LanguageMetaData:k(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},_wt={AstReflection:k(()=>new zY,"AstReflection")};function wke(){const t=gi(Jo(Fl),_wt),e=gi(Zo({shared:t}),vwt);return t.ServiceRegistry.register(e),e}k(wke,"createMinimalGrammarServices");function el(t){const e=wke(),r=e.serializer.JsonSerializer.deserialize(t);return e.shared.workspace.LangiumDocumentFactory.fromModel(r,Lo.parse(`memory:/${r.name??"grammar"}.langium`)),r}k(el,"loadGrammarFromJson");G7(P2e,jV);var qv,bwt=(qv=class{constructor(e){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=e??new Set(this.allCategories),this.records=new $0}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(r=>this.activeCategories.add(r)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(r=>this.activeCategories.delete(r)):this.activeCategories.clear()}createTask(e,r){if(!this.isActive(e))throw new Error(`Category "${e}" is not active.`);return console.log(`Creating profiling task for '${e}.${r}'.`),new kke(n=>this.records.add(e,this.dumpRecord(e,n)),r)}dumpRecord(e,r){console.info(`Task ${e}.${r.identifier} executed in ${r.duration.toFixed(2)}ms and ended at ${r.date.toISOString()}`);const n=[];for(const s of r.entries.keys()){const o=r.entries.get(s),l=o.reduce((u,d)=>u+d);n.push({name:`${r.identifier}.${s}`,count:o.length,duration:l})}const i=r.duration-n.map(s=>s.duration).reduce((s,o)=>s+o,0);n.push({name:r.identifier,count:1,duration:i}),n.sort((s,o)=>o.duration-s.duration);function a(s){return Math.round(100*s)/100}return k(a,"Round"),console.table(n.map(s=>({Element:s.name,Count:s.count,"Self %":a(100*s.duration/r.duration),"Time (ms)":a(s.duration)}))),r}getRecords(...e){return e.length===0?this.records.values():this.records.entries().filter(r=>e.some(n=>n===r[0])).flatMap(r=>r[1])}},k(qv,"DefaultLangiumProfiler"),qv),Yv,kke=(Yv=class{constructor(e,r){this.stack=[],this.entries=new $0,this.addRecord=e,this.identifier=r}start(){if(this.startTime!==void 0)throw new Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(this.startTime===void 0)throw new Error(`Task "${this.identifier}" was not started.`);if(this.stack.length!==0)throw new Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(r=>r.id).join(", ")}.`);const e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){const r=this.stack.pop();if(!r)throw new Error(`Task "${this.identifier}.${e}" was not started.`);if(r.id!==e)throw new Error(`Sub-Task "${r.id}" is not already stopped.`);const n=performance.now()-r.start;this.stack.at(-1)!==void 0&&(this.stack[this.stack.length-1].content+=n);const i=n-r.content;this.entries.add(e,i)}},k(Yv,"ProfilingTask"),Yv),A$;(t=>{t.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/}})(A$||(A$={}));var R$;(t=>{t.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(R$||(R$={}));var N$;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(N$||(N$={}));var I$;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(I$||(I$={}));var O$;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(O$||(O$={}));var D$;(t=>{t.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(D$||(D$={}));var L$;(t=>{t.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(L$||(L$={}));var M$;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(M$||(M$={}));var P$;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,STRING2:/"[^"]*"|'[^']*'/}})(P$||(P$={}));var B$;(t=>{t.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(B$||(B$={}));({...A$.Terminals,...R$.Terminals,...N$.Terminals,...I$.Terminals,...O$.Terminals,...D$.Terminals,...L$.Terminals,...P$.Terminals,...M$.Terminals,...B$.Terminals});var v3={$type:"Accelerator",name:"name",x:"x",y:"y"},_3={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},j2={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},OL={$type:"Annotations",x:"x",y:"y"},Wu={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};function Ewt(t){return tl.isInstance(t,Wu.$type)}k(Ewt,"isArchitecture");var b3={$type:"Axis",label:"label",name:"name"},H5={$type:"Branch",name:"name",order:"order"};function Swt(t){return tl.isInstance(t,H5.$type)}k(Swt,"isBranch");var loe={$type:"Checkout",branch:"branch"},E3={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},DL={$type:"ClassDefStatement",className:"className",styleText:"styleText"},hm={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};function Twt(t){return tl.isInstance(t,hm.$type)}k(Twt,"isCommit");var S3={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},df={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},T3={$type:"Curve",entries:"entries",label:"label",name:"name"},x3={$type:"Deaccelerator",name:"name",x:"x",y:"y"},coe={$type:"Decorator",strategy:"strategy"},Vg={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},Cc={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},Wg={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},hf={$type:"EmFrame"},Q2={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},uoe={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},LL={$type:"EmModelEntity",name:"name"};function xwt(t){return t==="rmo"||t==="readmodel"||t==="ui"||t==="cmd"||t==="command"||t==="evt"||t==="event"||t==="pcr"||t==="processor"}k(xwt,"isEmModelEntityType");var C3={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},Ku={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};function Ake(t){return tl.isInstance(t,Ku.$type)}k(Ake,"isEmResetFrame");var _d={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},ML={$type:"Entry",axis:"axis",value:"value"},Uu={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},doe={$type:"Evolution",stages:"stages"},w3={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},PL={$type:"Evolve",component:"component",target:"target"},Nf={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};function Cwt(t){return tl.isInstance(t,Nf.$type)}k(Cwt,"isGitGraph");var Z2={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},IE={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};function wwt(t){return tl.isInstance(t,IE.$type)}k(wwt,"isInfo");var J2={$type:"Item",classSelector:"classSelector",name:"name"},BL={$type:"Junction",id:"id",in:"in"},eE={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},k3={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},ff={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},fm={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};function kwt(t){return tl.isInstance(t,fm.$type)}k(kwt,"isMerge");var A3={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},FL={$type:"Option",name:"name",value:"value"},pm={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};function Awt(t){return tl.isInstance(t,pm.$type)}k(Awt,"isPacket");var gm={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};function Rwt(t){return tl.isInstance(t,gm.$type)}k(Rwt,"isPacketBlock");var If={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};function Nwt(t){return tl.isInstance(t,If.$type)}k(Nwt,"isPie");var V5={$type:"PieSection",label:"label",value:"value"};function Iwt(t){return tl.isInstance(t,V5.$type)}k(Iwt,"isPieSection");var $L={$type:"Pipeline",components:"components",parent:"parent"},R3={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},pf={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},zL={$type:"Section",classSelector:"classSelector",name:"name"},Kg={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},UL={$type:"Size",height:"height",width:"width"},Xg={$type:"Statement"},mm={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};function Owt(t){return tl.isInstance(t,mm.$type)}k(Owt,"isTreemap");var GL={$type:"TreemapRow",indent:"indent",item:"item"},qL={$type:"TreeNode",indent:"indent",name:"name"},tE={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},Ha={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"};function Dwt(t){return tl.isInstance(t,Ha.$type)}k(Dwt,"isWardley");var Hv,Rke=(Hv=class extends vY{constructor(){super(...arguments),this.types={Accelerator:{name:v3.$type,properties:{name:{name:v3.name},x:{name:v3.x},y:{name:v3.y}},superTypes:[]},Anchor:{name:_3.$type,properties:{evolution:{name:_3.evolution},name:{name:_3.name},visibility:{name:_3.visibility}},superTypes:[]},Annotation:{name:j2.$type,properties:{number:{name:j2.number},text:{name:j2.text},x:{name:j2.x},y:{name:j2.y}},superTypes:[]},Annotations:{name:OL.$type,properties:{x:{name:OL.x},y:{name:OL.y}},superTypes:[]},Architecture:{name:Wu.$type,properties:{accDescr:{name:Wu.accDescr},accTitle:{name:Wu.accTitle},edges:{name:Wu.edges,defaultValue:[]},groups:{name:Wu.groups,defaultValue:[]},junctions:{name:Wu.junctions,defaultValue:[]},services:{name:Wu.services,defaultValue:[]},title:{name:Wu.title}},superTypes:[]},Axis:{name:b3.$type,properties:{label:{name:b3.label},name:{name:b3.name}},superTypes:[]},Branch:{name:H5.$type,properties:{name:{name:H5.name},order:{name:H5.order}},superTypes:[Xg.$type]},Checkout:{name:loe.$type,properties:{branch:{name:loe.branch}},superTypes:[Xg.$type]},CherryPicking:{name:E3.$type,properties:{id:{name:E3.id},parent:{name:E3.parent},tags:{name:E3.tags,defaultValue:[]}},superTypes:[Xg.$type]},ClassDefStatement:{name:DL.$type,properties:{className:{name:DL.className},styleText:{name:DL.styleText}},superTypes:[]},Commit:{name:hm.$type,properties:{id:{name:hm.id},message:{name:hm.message},tags:{name:hm.tags,defaultValue:[]},type:{name:hm.type}},superTypes:[Xg.$type]},Common:{name:S3.$type,properties:{accDescr:{name:S3.accDescr},accTitle:{name:S3.accTitle},title:{name:S3.title}},superTypes:[]},Component:{name:df.$type,properties:{decorator:{name:df.decorator},evolution:{name:df.evolution},inertia:{name:df.inertia,defaultValue:!1},label:{name:df.label},name:{name:df.name},visibility:{name:df.visibility}},superTypes:[]},Curve:{name:T3.$type,properties:{entries:{name:T3.entries,defaultValue:[]},label:{name:T3.label},name:{name:T3.name}},superTypes:[]},Deaccelerator:{name:x3.$type,properties:{name:{name:x3.name},x:{name:x3.x},y:{name:x3.y}},superTypes:[]},Decorator:{name:coe.$type,properties:{strategy:{name:coe.strategy}},superTypes:[]},Direction:{name:Vg.$type,properties:{accDescr:{name:Vg.accDescr},accTitle:{name:Vg.accTitle},dir:{name:Vg.dir},statements:{name:Vg.statements,defaultValue:[]},title:{name:Vg.title}},superTypes:[Nf.$type]},Edge:{name:Cc.$type,properties:{lhsDir:{name:Cc.lhsDir},lhsGroup:{name:Cc.lhsGroup,defaultValue:!1},lhsId:{name:Cc.lhsId},lhsInto:{name:Cc.lhsInto,defaultValue:!1},rhsDir:{name:Cc.rhsDir},rhsGroup:{name:Cc.rhsGroup,defaultValue:!1},rhsId:{name:Cc.rhsId},rhsInto:{name:Cc.rhsInto,defaultValue:!1},title:{name:Cc.title}},superTypes:[]},EmDataEntity:{name:Wg.$type,properties:{dataBlockValue:{name:Wg.dataBlockValue},dataType:{name:Wg.dataType},name:{name:Wg.name}},superTypes:[]},EmFrame:{name:hf.$type,properties:{},superTypes:[]},EmGwt:{name:Q2.$type,properties:{givenStatements:{name:Q2.givenStatements,defaultValue:[]},sourceFrame:{name:Q2.sourceFrame,referenceType:hf.$type},thenStatements:{name:Q2.thenStatements,defaultValue:[]},whenStatements:{name:Q2.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:uoe.$type,properties:{entityIdentifier:{name:uoe.entityIdentifier,referenceType:LL.$type}},superTypes:[]},EmModelEntity:{name:LL.$type,properties:{name:{name:LL.name}},superTypes:[]},EmNoteEntity:{name:C3.$type,properties:{dataBlockValue:{name:C3.dataBlockValue},dataType:{name:C3.dataType},sourceFrame:{name:C3.sourceFrame,referenceType:hf.$type}},superTypes:[]},EmResetFrame:{name:Ku.$type,properties:{dataInlineValue:{name:Ku.dataInlineValue},dataReference:{name:Ku.dataReference,referenceType:Wg.$type},dataType:{name:Ku.dataType},entityIdentifier:{name:Ku.entityIdentifier},modelEntityType:{name:Ku.modelEntityType},name:{name:Ku.name},sourceFrames:{name:Ku.sourceFrames,defaultValue:[],referenceType:hf.$type}},superTypes:[hf.$type]},EmTimeFrame:{name:_d.$type,properties:{dataInlineValue:{name:_d.dataInlineValue},dataReference:{name:_d.dataReference,referenceType:Wg.$type},dataType:{name:_d.dataType},entityIdentifier:{name:_d.entityIdentifier},modelEntityType:{name:_d.modelEntityType},name:{name:_d.name},sourceFrames:{name:_d.sourceFrames,defaultValue:[],referenceType:hf.$type}},superTypes:[hf.$type]},Entry:{name:ML.$type,properties:{axis:{name:ML.axis,referenceType:b3.$type},value:{name:ML.value}},superTypes:[]},EventModel:{name:Uu.$type,properties:{accDescr:{name:Uu.accDescr},accTitle:{name:Uu.accTitle},dataEntities:{name:Uu.dataEntities,defaultValue:[]},frames:{name:Uu.frames,defaultValue:[]},gwtEntities:{name:Uu.gwtEntities,defaultValue:[]},modelEntities:{name:Uu.modelEntities,defaultValue:[]},noteEntities:{name:Uu.noteEntities,defaultValue:[]},title:{name:Uu.title}},superTypes:[]},Evolution:{name:doe.$type,properties:{stages:{name:doe.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:w3.$type,properties:{boundary:{name:w3.boundary},name:{name:w3.name},secondName:{name:w3.secondName}},superTypes:[]},Evolve:{name:PL.$type,properties:{component:{name:PL.component},target:{name:PL.target}},superTypes:[]},GitGraph:{name:Nf.$type,properties:{accDescr:{name:Nf.accDescr},accTitle:{name:Nf.accTitle},statements:{name:Nf.statements,defaultValue:[]},title:{name:Nf.title}},superTypes:[]},Group:{name:Z2.$type,properties:{icon:{name:Z2.icon},id:{name:Z2.id},in:{name:Z2.in},title:{name:Z2.title}},superTypes:[]},Info:{name:IE.$type,properties:{accDescr:{name:IE.accDescr},accTitle:{name:IE.accTitle},title:{name:IE.title}},superTypes:[]},Item:{name:J2.$type,properties:{classSelector:{name:J2.classSelector},name:{name:J2.name}},superTypes:[]},Junction:{name:BL.$type,properties:{id:{name:BL.id},in:{name:BL.in}},superTypes:[]},Label:{name:eE.$type,properties:{negX:{name:eE.negX,defaultValue:!1},negY:{name:eE.negY,defaultValue:!1},offsetX:{name:eE.offsetX},offsetY:{name:eE.offsetY}},superTypes:[]},Leaf:{name:k3.$type,properties:{classSelector:{name:k3.classSelector},name:{name:k3.name},value:{name:k3.value}},superTypes:[J2.$type]},Link:{name:ff.$type,properties:{arrow:{name:ff.arrow},from:{name:ff.from},fromPort:{name:ff.fromPort},linkLabel:{name:ff.linkLabel},to:{name:ff.to},toPort:{name:ff.toPort}},superTypes:[]},Merge:{name:fm.$type,properties:{branch:{name:fm.branch},id:{name:fm.id},tags:{name:fm.tags,defaultValue:[]},type:{name:fm.type}},superTypes:[Xg.$type]},Note:{name:A3.$type,properties:{evolution:{name:A3.evolution},text:{name:A3.text},visibility:{name:A3.visibility}},superTypes:[]},Option:{name:FL.$type,properties:{name:{name:FL.name},value:{name:FL.value,defaultValue:!1}},superTypes:[]},Packet:{name:pm.$type,properties:{accDescr:{name:pm.accDescr},accTitle:{name:pm.accTitle},blocks:{name:pm.blocks,defaultValue:[]},title:{name:pm.title}},superTypes:[]},PacketBlock:{name:gm.$type,properties:{bits:{name:gm.bits},end:{name:gm.end},label:{name:gm.label},start:{name:gm.start}},superTypes:[]},Pie:{name:If.$type,properties:{accDescr:{name:If.accDescr},accTitle:{name:If.accTitle},sections:{name:If.sections,defaultValue:[]},showData:{name:If.showData,defaultValue:!1},title:{name:If.title}},superTypes:[]},PieSection:{name:V5.$type,properties:{label:{name:V5.label},value:{name:V5.value}},superTypes:[]},Pipeline:{name:$L.$type,properties:{components:{name:$L.components,defaultValue:[]},parent:{name:$L.parent}},superTypes:[]},PipelineComponent:{name:R3.$type,properties:{evolution:{name:R3.evolution},label:{name:R3.label},name:{name:R3.name}},superTypes:[]},Radar:{name:pf.$type,properties:{accDescr:{name:pf.accDescr},accTitle:{name:pf.accTitle},axes:{name:pf.axes,defaultValue:[]},curves:{name:pf.curves,defaultValue:[]},options:{name:pf.options,defaultValue:[]},title:{name:pf.title}},superTypes:[]},Section:{name:zL.$type,properties:{classSelector:{name:zL.classSelector},name:{name:zL.name}},superTypes:[J2.$type]},Service:{name:Kg.$type,properties:{icon:{name:Kg.icon},iconText:{name:Kg.iconText},id:{name:Kg.id},in:{name:Kg.in},title:{name:Kg.title}},superTypes:[]},Size:{name:UL.$type,properties:{height:{name:UL.height},width:{name:UL.width}},superTypes:[]},Statement:{name:Xg.$type,properties:{},superTypes:[]},TreeNode:{name:qL.$type,properties:{indent:{name:qL.indent},name:{name:qL.name}},superTypes:[]},TreeView:{name:tE.$type,properties:{accDescr:{name:tE.accDescr},accTitle:{name:tE.accTitle},nodes:{name:tE.nodes,defaultValue:[]},title:{name:tE.title}},superTypes:[]},Treemap:{name:mm.$type,properties:{accDescr:{name:mm.accDescr},accTitle:{name:mm.accTitle},title:{name:mm.title},TreemapRows:{name:mm.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:GL.$type,properties:{indent:{name:GL.indent},item:{name:GL.item}},superTypes:[]},Wardley:{name:Ha.$type,properties:{accDescr:{name:Ha.accDescr},accelerators:{name:Ha.accelerators,defaultValue:[]},accTitle:{name:Ha.accTitle},anchors:{name:Ha.anchors,defaultValue:[]},annotation:{name:Ha.annotation,defaultValue:[]},annotations:{name:Ha.annotations,defaultValue:[]},components:{name:Ha.components,defaultValue:[]},deaccelerators:{name:Ha.deaccelerators,defaultValue:[]},evolution:{name:Ha.evolution},evolves:{name:Ha.evolves,defaultValue:[]},links:{name:Ha.links,defaultValue:[]},notes:{name:Ha.notes,defaultValue:[]},pipelines:{name:Ha.pipelines,defaultValue:[]},size:{name:Ha.size},title:{name:Ha.title}},superTypes:[]}}}},k(Hv,"MermaidAstReflection"),Hv),tl=new Rke,hoe,Lwt=k(()=>hoe??(hoe=el(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"ArchitectureGrammarGrammar"),foe,Mwt=k(()=>foe??(foe=el('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),poe,Pwt=k(()=>poe??(poe=el(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"GitGraphGrammarGrammar"),goe,Bwt=k(()=>goe??(goe=el(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"InfoGrammarGrammar"),moe,Fwt=k(()=>moe??(moe=el(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PacketGrammarGrammar"),yoe,$wt=k(()=>yoe??(yoe=el(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PieGrammarGrammar"),voe,zwt=k(()=>voe??(voe=el(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`)),"RadarGrammarGrammar"),_oe,Uwt=k(()=>_oe??(_oe=el(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammarGrammar"),boe,Gwt=k(()=>boe??(boe=el(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@9"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n * Converted from treemap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`)),"TreeViewGrammarGrammar"),Eoe,qwt=k(()=>Eoe??(Eoe=el(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"WardleyGrammarGrammar"),Ywt={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Hwt={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Vwt={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Wwt={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Kwt={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Xwt={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},jwt={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Qwt={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Zwt={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Jwt={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Iu={AstReflection:k(()=>new Rke,"AstReflection")},ekt={Grammar:k(()=>Lwt(),"Grammar"),LanguageMetaData:k(()=>Ywt,"LanguageMetaData"),parser:{}},tkt={Grammar:k(()=>Mwt(),"Grammar"),LanguageMetaData:k(()=>Hwt,"LanguageMetaData"),parser:{}},rkt={Grammar:k(()=>Pwt(),"Grammar"),LanguageMetaData:k(()=>Vwt,"LanguageMetaData"),parser:{}},nkt={Grammar:k(()=>Bwt(),"Grammar"),LanguageMetaData:k(()=>Wwt,"LanguageMetaData"),parser:{}},ikt={Grammar:k(()=>Fwt(),"Grammar"),LanguageMetaData:k(()=>Kwt,"LanguageMetaData"),parser:{}},akt={Grammar:k(()=>$wt(),"Grammar"),LanguageMetaData:k(()=>Xwt,"LanguageMetaData"),parser:{}},skt={Grammar:k(()=>zwt(),"Grammar"),LanguageMetaData:k(()=>jwt,"LanguageMetaData"),parser:{}},okt={Grammar:k(()=>Uwt(),"Grammar"),LanguageMetaData:k(()=>Qwt,"LanguageMetaData"),parser:{}},lkt={Grammar:k(()=>Gwt(),"Grammar"),LanguageMetaData:k(()=>Zwt,"LanguageMetaData"),parser:{}},ckt={Grammar:k(()=>qwt(),"Grammar"),LanguageMetaData:k(()=>Jwt,"LanguageMetaData"),parser:{}},ukt=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,dkt=/accTitle[\t ]*:([^\n\r]*)/,hkt=/title([\t ][^\n\r]*|)/,fkt={ACC_DESCR:ukt,ACC_TITLE:dkt,TITLE:hkt},Vv,v2=(Vv=class extends RV{runConverter(e,r,n){let i=this.runCommonConverter(e,r,n);return i===void 0&&(i=this.runCustomConverter(e,r,n)),i===void 0?super.runConverter(e,r,n):i}runCommonConverter(e,r,n){const i=fkt[e.name];if(i===void 0)return;const a=i.exec(r);if(a!==null){if(a[1]!==void 0)return a[1].trim().replace(/[\t ]{2,}/gm," ");if(a[2]!==void 0)return a[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,` +`)}}},k(Vv,"AbstractMermaidValueConverter"),Vv),Wv,ex=(Wv=class extends v2{runCustomConverter(e,r,n){}},k(Wv,"CommonValueConverter"),Wv),Kv,Ou=(Kv=class extends qA{constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,r,n){const i=super.buildKeywordTokens(e,r,n);return i.forEach(a=>{this.keywords.has(a.name)&&a.PATTERN!==void 0&&(a.PATTERN=new RegExp(a.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),i}},k(Kv,"AbstractMermaidTokenBuilder"),Kv),Xv;Xv=class extends Ou{},k(Xv,"CommonTokenBuilder");var jv,pkt=(jv=class extends Ou{constructor(){super(["radar-beta"])}},k(jv,"RadarTokenBuilder"),jv),Nke={parser:{TokenBuilder:k(()=>new pkt,"TokenBuilder"),ValueConverter:k(()=>new ex,"ValueConverter")}};function Ike(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),skt,Nke);return e.ServiceRegistry.register(r),{shared:e,Radar:r}}k(Ike,"createRadarServices");var Qv,gkt=(Qv=class extends Ou{constructor(){super(["treemap"])}},k(Qv,"TreemapTokenBuilder"),Qv),mkt=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Zv,ykt=(Zv=class extends v2{runCustomConverter(e,r,n){if(e.name==="NUMBER2")return parseFloat(r.replace(/,/g,""));if(e.name==="SEPARATOR")return r.substring(1,r.length-1);if(e.name==="STRING2")return r.substring(1,r.length-1);if(e.name==="INDENTATION")return r.length;if(e.name==="ClassDef"){if(typeof r!="string")return r;const i=mkt.exec(r);if(i)return{$type:"ClassDefStatement",className:i[1],styleText:i[2]||void 0}}}},k(Zv,"TreemapValueConverter"),Zv);function Oke(t){const e=t.validation.TreemapValidator,r=t.validation.ValidationRegistry;if(r){const n={Treemap:e.checkSingleRoot.bind(e)};r.register(n,e)}}k(Oke,"registerValidationChecks");var Jv,vkt=(Jv=class{checkSingleRoot(e,r){let n;for(const i of e.TreemapRows)i.item&&(n===void 0&&i.indent===void 0?n=0:i.indent===void 0?r("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}):n!==void 0&&n>=parseInt(i.indent,10)&&r("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}))}},k(Jv,"TreemapValidator"),Jv),Dke={parser:{TokenBuilder:k(()=>new gkt,"TokenBuilder"),ValueConverter:k(()=>new ykt,"ValueConverter")},validation:{TreemapValidator:k(()=>new vkt,"TreemapValidator")}};function Lke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),okt,Dke);return e.ServiceRegistry.register(r),Oke(r),{shared:e,Treemap:r}}k(Lke,"createTreemapServices");var e_,_kt=(e_=class extends v2{runCustomConverter(e,r,n){if(e.name.toUpperCase()==="LINK_LABEL")return r.substring(1).trim()}},k(e_,"WardleyValueConverter"),e_),Mke={parser:{ValueConverter:k(()=>new _kt,"ValueConverter")}};function Pke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),ckt,Mke);return e.ServiceRegistry.register(r),{shared:e,Wardley:r}}k(Pke,"createWardleyServices");var t_,bkt=(t_=class extends Ou{constructor(){super(["gitGraph"])}},k(t_,"GitGraphTokenBuilder"),t_),Bke={parser:{TokenBuilder:k(()=>new bkt,"TokenBuilder"),ValueConverter:k(()=>new ex,"ValueConverter")}};function Fke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),rkt,Bke);return e.ServiceRegistry.register(r),{shared:e,GitGraph:r}}k(Fke,"createGitGraphServices");var r_,Ekt=(r_=class extends Ou{constructor(){super(["info","showInfo"])}},k(r_,"InfoTokenBuilder"),r_),$ke={parser:{TokenBuilder:k(()=>new Ekt,"TokenBuilder"),ValueConverter:k(()=>new ex,"ValueConverter")}};function zke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),nkt,$ke);return e.ServiceRegistry.register(r),{shared:e,Info:r}}k(zke,"createInfoServices");var n_,Skt=(n_=class extends Ou{constructor(){super(["packet"])}},k(n_,"PacketTokenBuilder"),n_),Uke={parser:{TokenBuilder:k(()=>new Skt,"TokenBuilder"),ValueConverter:k(()=>new ex,"ValueConverter")}};function Gke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),ikt,Uke);return e.ServiceRegistry.register(r),{shared:e,Packet:r}}k(Gke,"createPacketServices");var i_,Tkt=(i_=class extends Ou{constructor(){super(["pie","showData"])}},k(i_,"PieTokenBuilder"),i_),a_,xkt=(a_=class extends v2{runCustomConverter(e,r,n){if(e.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},k(a_,"PieValueConverter"),a_),qke={parser:{TokenBuilder:k(()=>new Tkt,"TokenBuilder"),ValueConverter:k(()=>new xkt,"ValueConverter")}};function Yke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),akt,qke);return e.ServiceRegistry.register(r),{shared:e,Pie:r}}k(Yke,"createPieServices");var s_,Ckt=(s_=class extends v2{runCustomConverter(e,r,n){if(e.name==="INDENTATION")return r?.length||0;if(e.name==="STRING2")return r.substring(1,r.length-1)}},k(s_,"TreeViewValueConverter"),s_),o_,wkt=(o_=class extends Ou{constructor(){super(["treeView-beta"])}},k(o_,"TreeViewTokenBuilder"),o_),Hke={parser:{TokenBuilder:k(()=>new wkt,"TokenBuilder"),ValueConverter:k(()=>new Ckt,"ValueConverter")}};function Vke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),lkt,Hke);return e.ServiceRegistry.register(r),{shared:e,TreeView:r}}k(Vke,"createTreeViewServices");var l_,kkt=(l_=class extends Ou{constructor(){super(["architecture"])}},k(l_,"ArchitectureTokenBuilder"),l_),c_,Akt=(c_=class extends v2{runCustomConverter(e,r,n){if(e.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(e.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(e.name==="ARCH_TITLE"){let i=r.replace(/^\[|]$/g,"").trim();return(i.startsWith('"')&&i.endsWith('"')||i.startsWith("'")&&i.endsWith("'"))&&(i=i.slice(1,-1),i=i.replace(/\\"/g,'"').replace(/\\'/g,"'")),i.trim()}}},k(c_,"ArchitectureValueConverter"),c_),Wke={parser:{TokenBuilder:k(()=>new kkt,"TokenBuilder"),ValueConverter:k(()=>new Akt,"ValueConverter")}};function Kke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),ekt,Wke);return e.ServiceRegistry.register(r),{shared:e,Architecture:r}}k(Kke,"createArchitectureServices");var u_,Rkt=(u_=class extends Ou{constructor(){super(["eventmodeling"])}},k(u_,"EventModelingTokenBuilder"),u_),Soe=new Set(["cmd","command"]),Toe=new Set(["evt","event"]),YL=new Set(["rmo","readmodel"]),xoe=new Set(["pcr","processor"]),Coe=new Set(["ui"]);function Xke(t){const e=t.validation.EventModelingValidator,r=t.validation.ValidationRegistry;if(r){const n={EmTimeFrame:e.checkSourceFrameTypes.bind(e),EmResetFrame:e.checkSourceFrameTypes.bind(e)};r.register(n,e)}}k(Xke,"registerValidationChecks");var d_,Nkt=(d_=class{checkSourceFrameTypes(e,r){e.sourceFrames.length!==0&&(Soe.has(e.modelEntityType)?this.validateSources(e,new Set([...Coe,...xoe]),"command","ui or processor",r):Toe.has(e.modelEntityType)?this.validateSources(e,Soe,"event","command",r):YL.has(e.modelEntityType)?this.validateSources(e,Toe,"read model","event",r):xoe.has(e.modelEntityType)?this.validateSources(e,YL,"processor","read model",r):Coe.has(e.modelEntityType)&&this.validateSources(e,YL,"ui","read model",r))}validateSources(e,r,n,i,a){for(const s of e.sourceFrames){const o=s.ref;o!==void 0&&!r.has(o.modelEntityType)&&a("error",`A ${n} can only receive input from a ${i}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},k(d_,"EventModelingValidator"),d_),jke={parser:{TokenBuilder:k(()=>new Rkt,"TokenBuilder"),ValueConverter:k(()=>new ex,"ValueConverter")},validation:{EventModelingValidator:k(()=>new Nkt,"EventModelingValidator")}};function Qke(t=Fl){const e=gi(Jo(t),Iu),r=gi(Zo({shared:e}),tkt,jke);return e.ServiceRegistry.register(r),Xke(r),{shared:e,EventModel:r}}k(Qke,"createEventModelingServices");var ll={},Ikt={info:k(async()=>{const{createInfoServices:t}=await Promise.resolve().then(()=>HPt),e=t().Info.parser.LangiumParser;ll.info=e},"info"),packet:k(async()=>{const{createPacketServices:t}=await Promise.resolve().then(()=>VPt),e=t().Packet.parser.LangiumParser;ll.packet=e},"packet"),pie:k(async()=>{const{createPieServices:t}=await Promise.resolve().then(()=>WPt),e=t().Pie.parser.LangiumParser;ll.pie=e},"pie"),treeView:k(async()=>{const{createTreeViewServices:t}=await Promise.resolve().then(()=>KPt),e=t().TreeView.parser.LangiumParser;ll.treeView=e},"treeView"),architecture:k(async()=>{const{createArchitectureServices:t}=await Promise.resolve().then(()=>XPt),e=t().Architecture.parser.LangiumParser;ll.architecture=e},"architecture"),gitGraph:k(async()=>{const{createGitGraphServices:t}=await Promise.resolve().then(()=>jPt),e=t().GitGraph.parser.LangiumParser;ll.gitGraph=e},"gitGraph"),eventmodeling:k(async()=>{const{createEventModelingServices:t}=await Promise.resolve().then(()=>QPt),e=t().EventModel.parser.LangiumParser;ll.eventmodeling=e},"eventmodeling"),radar:k(async()=>{const{createRadarServices:t}=await Promise.resolve().then(()=>ZPt),e=t().Radar.parser.LangiumParser;ll.radar=e},"radar"),treemap:k(async()=>{const{createTreemapServices:t}=await Promise.resolve().then(()=>JPt),e=t().Treemap.parser.LangiumParser;ll.treemap=e},"treemap"),wardley:k(async()=>{const{createWardleyServices:t}=await Promise.resolve().then(()=>eBt),e=t().Wardley.parser.LangiumParser;ll.wardley=e},"wardley")};async function _c(t,e){const r=Ikt[t];if(!r)throw new Error(`Unknown diagram type: ${t}`);ll[t]||await r();const i=ll[t].parse(e);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new Okt(i);return i.value}k(_c,"parse");var h_,Okt=(h_=class extends Error{constructor(e){const r=e.lexerErrors.map(i=>{const a=i.line!==void 0&&!isNaN(i.line)?i.line:"?",s=i.column!==void 0&&!isNaN(i.column)?i.column:"?";return`Lexer error on line ${a}, column ${s}: ${i.message}`}).join(` `),n=e.parserErrors.map(i=>{const a=i.token.startLine!==void 0&&!isNaN(i.token.startLine)?i.token.startLine:"?",s=i.token.startColumn!==void 0&&!isNaN(i.token.startColumn)?i.token.startColumn:"?";return`Parse error on line ${a}, column ${s}: ${i.message}`}).join(` -`);super(`Parsing failed: ${r} ${n}`),this.result=e}},k(h_,"MermaidParseError"),h_),Bn={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Okt=on.gitGraph,Ag=S(()=>$i({...Okt,...xr().gitGraph}),"getConfig"),ir=new uY(()=>{const t=Ag(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function ZA(){return Xfe({length:7})}S(ZA,"getID");function Zke(t,e){const r=Object.create(null);return t.reduce((n,i)=>{const a=e(i);return r[a]||(r[a]=!0,n.push(i)),n},[])}S(Zke,"uniqBy");var Dkt=S(function(t){ir.records.direction=t},"setDirection"),Lkt=S(function(t){ge.debug("options str",t),t=t?.trim(),t=t||"{}";try{ir.records.options=JSON.parse(t)}catch(e){ge.error("error while parsing gitGraph options",e.message)}},"setOptions"),Mkt=S(function(){return ir.records.options},"getOptions"),Pkt=S(function(t){let e=t.msg,r=t.id;const n=t.type;let i=t.tags;ge.info("commit",e,r,n,i),ge.debug("Entering commit:",e,r,n,i);const a=Ag();r=qt.sanitizeText(r,a),e=qt.sanitizeText(e,a),i=i?.map(o=>qt.sanitizeText(o,a));const s={id:r||ir.records.seq+"-"+ZA(),message:e,seq:ir.records.seq++,type:n??Bn.NORMAL,tags:i??[],parents:ir.records.head==null?[]:[ir.records.head.id],branch:ir.records.currBranch};ir.records.head=s,ge.info("main branch",a.mainBranchName),ir.records.commits.has(s.id)&&ge.warn(`Commit ID ${s.id} already exists`),ir.records.commits.set(s.id,s),ir.records.branches.set(ir.records.currBranch,s.id),ge.debug("in pushCommit "+s.id)},"commit"),Bkt=S(function(t){let e=t.name;const r=t.order;if(e=qt.sanitizeText(e,Ag()),ir.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);ir.records.branches.set(e,ir.records.head!=null?ir.records.head.id:null),ir.records.branchConfig.set(e,{name:e,order:r}),Jke(e),ge.debug("in createBranch")},"branch"),Fkt=S(t=>{let e=t.branch,r=t.id;const n=t.type,i=t.tags,a=Ag();e=qt.sanitizeText(e,a),r&&(r=qt.sanitizeText(r,a));const s=ir.records.branches.get(ir.records.currBranch),o=ir.records.branches.get(e),l=s?ir.records.commits.get(s):void 0,u=o?ir.records.commits.get(o):void 0;if(l&&u&&l.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(ir.records.currBranch===e){const f=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},f}if(l===void 0||!l){const f=new Error(`Incorrect usage of "merge". Current branch (${ir.records.currBranch})has no commits`);throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},f}if(!ir.records.branches.has(e)){const f=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},f}if(u===void 0||!u){const f=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},f}if(l===u){const f=new Error('Incorrect usage of "merge". Both branches have same head');throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},f}if(r&&ir.records.commits.has(r)){const f=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw f.hash={text:`merge ${e} ${r} ${n} ${i?.join(" ")}`,token:`merge ${e} ${r} ${n} ${i?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${n} ${i?.join(" ")}`]},f}const d=o||"",h={id:r||`${ir.records.seq}-${ZA()}`,message:`merged branch ${e} into ${ir.records.currBranch}`,seq:ir.records.seq++,parents:ir.records.head==null?[]:[ir.records.head.id,d],branch:ir.records.currBranch,type:Bn.MERGE,customType:n,customId:!!r,tags:i??[]};ir.records.head=h,ir.records.commits.set(h.id,h),ir.records.branches.set(ir.records.currBranch,h.id),ge.debug(ir.records.branches),ge.debug("in mergeBranch")},"merge"),$kt=S(function(t){let e=t.id,r=t.targetId,n=t.tags,i=t.parent;ge.debug("Entering cherryPick:",e,r,n);const a=Ag();if(e=qt.sanitizeText(e,a),r=qt.sanitizeText(r,a),n=n?.map(l=>qt.sanitizeText(l,a)),i=qt.sanitizeText(i,a),!e||!ir.records.commits.has(e)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},l}const s=ir.records.commits.get(e);if(s===void 0||!s)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(s.parents)&&s.parents.includes(i)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=s.branch;if(s.type===Bn.MERGE&&!i)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!ir.records.commits.has(r)){if(o===ir.records.currBranch){const h=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw h.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},h}const l=ir.records.branches.get(ir.records.currBranch);if(l===void 0||!l){const h=new Error(`Incorrect usage of "cherry-pick". Current branch (${ir.records.currBranch})has no commits`);throw h.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},h}const u=ir.records.commits.get(l);if(u===void 0||!u){const h=new Error(`Incorrect usage of "cherry-pick". Current branch (${ir.records.currBranch})has no commits`);throw h.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},h}const d={id:ir.records.seq+"-"+ZA(),message:`cherry-picked ${s?.message} into ${ir.records.currBranch}`,seq:ir.records.seq++,parents:ir.records.head==null?[]:[ir.records.head.id,s.id],branch:ir.records.currBranch,type:Bn.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===Bn.MERGE?`|parent:${i}`:""}`]};ir.records.head=d,ir.records.commits.set(d.id,d),ir.records.branches.set(ir.records.currBranch,d.id),ge.debug(ir.records.branches),ge.debug("in cherryPick")}},"cherryPick"),Jke=S(function(t){if(t=qt.sanitizeText(t,Ag()),ir.records.branches.has(t)){ir.records.currBranch=t;const e=ir.records.branches.get(ir.records.currBranch);e===void 0||!e?ir.records.head=null:ir.records.head=ir.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function F$(t,e,r){const n=t.indexOf(e);n===-1?t.push(r):t.splice(n,1,r)}S(F$,"upsert");function QV(t){const e=t.reduce((i,a)=>i.seq>a.seq?i:a,t[0]);let r="";t.forEach(function(i){i===e?r+=" *":r+=" |"});const n=[r,e.id,e.seq];for(const i in ir.records.branches)ir.records.branches.get(i)===e.id&&n.push(i);if(ge.debug(n.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const i=ir.records.commits.get(e.parents[0]);F$(t,e,i),e.parents[1]&&t.push(ir.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const i=ir.records.commits.get(e.parents[0]);F$(t,e,i)}}t=Zke(t,i=>i.id),QV(t)}S(QV,"prettyPrintCommitHistory");var zkt=S(function(){ge.debug(ir.records.commits);const t=e7e()[0];QV([t])},"prettyPrint"),Ukt=S(function(){ir.reset(),oi()},"clear"),Gkt=S(function(){return[...ir.records.branchConfig.values()].map((e,r)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${r}`)}).sort((e,r)=>(e.order??0)-(r.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),qkt=S(function(){return ir.records.branches},"getBranches"),Ykt=S(function(){return ir.records.commits},"getCommits"),e7e=S(function(){const t=[...ir.records.commits.values()];return t.forEach(function(e){ge.debug(e.id)}),t.sort((e,r)=>e.seq-r.seq),t},"getCommitsArray"),Hkt=S(function(){return ir.records.currBranch},"getCurrentBranch"),Vkt=S(function(){return ir.records.direction},"getDirection"),Wkt=S(function(){return ir.records.head},"getHead"),t7e={commitType:Bn,getConfig:Ag,setDirection:Dkt,setOptions:Lkt,getOptions:Mkt,commit:Pkt,branch:Bkt,merge:Fkt,cherryPick:$kt,checkout:Jke,prettyPrint:zkt,clear:Ukt,getBranchesAsObjArray:Gkt,getBranches:qkt,getCommits:Ykt,getCommitsArray:e7e,getCurrentBranch:Hkt,getDirection:Vkt,getHead:Wkt,setAccTitle:ai,getAccTitle:yi,getAccDescription:_i,setAccDescription:vi,setDiagramTitle:pi,getDiagramTitle:li},Kkt=S((t,e)=>{wu(t,e),t.dir&&e.setDirection(t.dir);for(const r of t.statements)Xkt(r,e)},"populate"),Xkt=S((t,e)=>{const n={Commit:S(i=>e.commit(jkt(i)),"Commit"),Branch:S(i=>e.branch(Qkt(i)),"Branch"),Merge:S(i=>e.merge(Zkt(i)),"Merge"),Checkout:S(i=>e.checkout(Jkt(i)),"Checkout"),CherryPicking:S(i=>e.cherryPick(e7t(i)),"CherryPicking")}[t.$type];n?n(t):ge.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),jkt=S(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?Bn[t.type]:Bn.NORMAL,tags:t.tags??void 0}),"parseCommit"),Qkt=S(t=>({name:t.name,order:t.order??0}),"parseBranch"),Zkt=S(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?Bn[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Jkt=S(t=>t.branch,"parseCheckout"),e7t=S(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),t7t={parse:S(async t=>{const e=await _c("gitGraph",t);ge.debug(e),Kkt(e,t7e)},"parse")},Yd=10,Hd=40,Oc=4,Ju=2,Xf=8,JA=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),$$=12,ZV=new Set(["redux-color","redux-dark-color"]),r7t=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),jf=S((t,e,r=!1)=>r&&t>0?(t-1)%(e-1)+1:t%e,"calcColorIndex"),go=new Map,vo=new Map,Aw=30,OE=new Map,Rw=[],e0=0,ln="LR",n7t=S(()=>{go.clear(),vo.clear(),OE.clear(),e0=0,Rw=[],ln="LR"},"clear"),r7e=S(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|/gi):t).forEach(n=>{const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=n.trim(),e.appendChild(i)}),e},"drawText"),n7e=S(t=>{let e,r,n;return ln==="BT"?(r=S((i,a)=>i<=a,"comparisonFunc"),n=1/0):(r=S((i,a)=>i>=a,"comparisonFunc"),n=0),t.forEach(i=>{const a=ln==="TB"||ln=="BT"?vo.get(i)?.y:vo.get(i)?.x;a!==void 0&&r(a,n)&&(e=i,n=a)}),e},"findClosestParent"),i7t=S(t=>{let e="",r=1/0;return t.forEach(n=>{const i=vo.get(n).y;i<=r&&(e=n,r=i)}),e||void 0},"findClosestParentBT"),a7t=S((t,e,r)=>{let n=r,i=r;const a=[];t.forEach(s=>{const o=e.get(s);if(!o)throw new Error(`Commit not found for key ${s}`);o.parents.length?(n=o7t(o),i=Math.max(n,i)):a.push(o),l7t(o,n)}),n=i,a.forEach(s=>{c7t(s,n,r)}),t.forEach(s=>{const o=e.get(s);if(o?.parents.length){const l=i7t(o.parents);n=vo.get(l).y-Hd,n<=i&&(i=n);const u=go.get(o.branch).pos,d=n-Yd;vo.set(o.id,{x:u,y:d})}})},"setParallelBTPos"),s7t=S(t=>{const e=n7e(t.parents.filter(n=>n!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const r=vo.get(e)?.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return r},"findClosestParentPos"),o7t=S(t=>s7t(t)+Hd,"calculateCommitPosition"),l7t=S((t,e)=>{const r=go.get(t.branch);if(!r)throw new Error(`Branch not found for commit ${t.id}`);const n=r.pos,i=e+Yd;return vo.set(t.id,{x:n,y:i}),{x:n,y:i}},"setCommitPosition"),c7t=S((t,e,r)=>{const n=go.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const i=e+r,a=n.pos;vo.set(t.id,{x:a,y:i})},"setRootPosition"),u7t=S((t,e,r,n,i,a)=>{const{theme:s}=Ke(),o=JA.has(s??""),l=ZV.has(s??""),u=r7t.has(s??"");if(a===Bn.HIGHLIGHT)t.append("rect").attr("x",r.x-10+(o?3:0)).attr("y",r.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${e.id} commit-highlight${jf(i,Xf,l)} ${n}-outer`),t.append("rect").attr("x",r.x-6+(o?2:0)).attr("y",r.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${e.id} commit${jf(i,Xf,l)} ${n}-inner`);else if(a===Bn.CHERRY_PICK)t.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",o?7:10).attr("class",`commit ${e.id} ${n}`),t.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",o?2.5:2.75).attr("fill",u?"#000000":"#fff").attr("class",`commit ${e.id} ${n}`),t.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",o?2.5:2.75).attr("fill",u?"#000000":"#fff").attr("class",`commit ${e.id} ${n}`),t.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",u?"#000000":"#fff").attr("class",`commit ${e.id} ${n}`),t.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",u?"#000000":"#fff").attr("class",`commit ${e.id} ${n}`);else{const d=t.append("circle");if(d.attr("cx",r.x),d.attr("cy",r.y),d.attr("r",o?7:10),d.attr("class",`commit ${e.id} commit${jf(i,Xf,l)}`),a===Bn.MERGE){const h=t.append("circle");h.attr("cx",r.x),h.attr("cy",r.y),h.attr("r",o?5:6),h.attr("class",`commit ${n} ${e.id} commit${jf(i,Xf,l)}`)}if(a===Bn.REVERSE){const h=t.append("path"),f=o?4:5;h.attr("d",`M ${r.x-f},${r.y-f}L${r.x+f},${r.y+f}M${r.x-f},${r.y+f}L${r.x+f},${r.y-f}`).attr("class",`commit ${n} ${e.id} commit${jf(i,Xf,l)}`)}}},"drawCommitBullet"),d7t=S((t,e,r,n,i)=>{if(e.type!==Bn.CHERRY_PICK&&(e.customId&&e.type===Bn.MERGE||e.type!==Bn.MERGE)&&i.showCommitLabel){const a=t.append("g"),s=a.insert("rect").attr("class","commit-label-bkg"),o=a.append("text").attr("x",n).attr("y",r.y+25).attr("class","commit-label").text(e.id),l=o.node()?.getBBox();if(l&&(s.attr("x",r.posWithOffset-l.width/2-Ju).attr("y",r.y+13.5).attr("width",l.width+2*Ju).attr("height",l.height+2*Ju),ln==="TB"||ln==="BT"?(s.attr("x",r.x-(l.width+4*Oc+5)).attr("y",r.y-12),o.attr("x",r.x-(l.width+4*Oc)).attr("y",r.y+l.height-12)):o.attr("x",r.posWithOffset-l.width/2),i.rotateCommitLabel))if(ln==="TB"||ln==="BT")o.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),s.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{const u=-7.5-(l.width+10)/25*9.5,d=10+l.width/25*8.5;a.attr("transform","translate("+u+", "+d+") rotate(-45, "+n+", "+r.y+")")}}},"drawCommitLabel"),h7t=S((t,e,r,n)=>{if(e.tags.length>0){let i=0,a=0,s=0;const o=[];for(const l of e.tags.reverse()){const u=t.insert("polygon"),d=t.append("circle"),h=t.append("text").attr("y",r.y-16-i).attr("class","tag-label").text(l),f=h.node()?.getBBox();if(!f)throw new Error("Tag bbox not found");a=Math.max(a,f.width),s=Math.max(s,f.height),h.attr("x",r.posWithOffset-f.width/2),o.push({tag:h,hole:d,rect:u,yOffset:i}),i+=20}for(const{tag:l,hole:u,rect:d,yOffset:h}of o){const f=s/2,p=r.y-19.2-h;if(d.attr("class","tag-label-bkg").attr("points",` +`);super(`Parsing failed: ${r} ${n}`),this.result=e}},k(h_,"MermaidParseError"),h_),Bn={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Dkt=on.gitGraph,Ag=S(()=>$i({...Dkt,...xr().gitGraph}),"getConfig"),ir=new uY(()=>{const t=Ag(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function ZA(){return Xfe({length:7})}S(ZA,"getID");function Zke(t,e){const r=Object.create(null);return t.reduce((n,i)=>{const a=e(i);return r[a]||(r[a]=!0,n.push(i)),n},[])}S(Zke,"uniqBy");var Lkt=S(function(t){ir.records.direction=t},"setDirection"),Mkt=S(function(t){ge.debug("options str",t),t=t?.trim(),t=t||"{}";try{ir.records.options=JSON.parse(t)}catch(e){ge.error("error while parsing gitGraph options",e.message)}},"setOptions"),Pkt=S(function(){return ir.records.options},"getOptions"),Bkt=S(function(t){let e=t.msg,r=t.id;const n=t.type;let i=t.tags;ge.info("commit",e,r,n,i),ge.debug("Entering commit:",e,r,n,i);const a=Ag();r=qt.sanitizeText(r,a),e=qt.sanitizeText(e,a),i=i?.map(o=>qt.sanitizeText(o,a));const s={id:r||ir.records.seq+"-"+ZA(),message:e,seq:ir.records.seq++,type:n??Bn.NORMAL,tags:i??[],parents:ir.records.head==null?[]:[ir.records.head.id],branch:ir.records.currBranch};ir.records.head=s,ge.info("main branch",a.mainBranchName),ir.records.commits.has(s.id)&&ge.warn(`Commit ID ${s.id} already exists`),ir.records.commits.set(s.id,s),ir.records.branches.set(ir.records.currBranch,s.id),ge.debug("in pushCommit "+s.id)},"commit"),Fkt=S(function(t){let e=t.name;const r=t.order;if(e=qt.sanitizeText(e,Ag()),ir.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);ir.records.branches.set(e,ir.records.head!=null?ir.records.head.id:null),ir.records.branchConfig.set(e,{name:e,order:r}),Jke(e),ge.debug("in createBranch")},"branch"),$kt=S(t=>{let e=t.branch,r=t.id;const n=t.type,i=t.tags,a=Ag();e=qt.sanitizeText(e,a),r&&(r=qt.sanitizeText(r,a));const s=ir.records.branches.get(ir.records.currBranch),o=ir.records.branches.get(e),l=s?ir.records.commits.get(s):void 0,u=o?ir.records.commits.get(o):void 0;if(l&&u&&l.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(ir.records.currBranch===e){const f=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},f}if(l===void 0||!l){const f=new Error(`Incorrect usage of "merge". Current branch (${ir.records.currBranch})has no commits`);throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},f}if(!ir.records.branches.has(e)){const f=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},f}if(u===void 0||!u){const f=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},f}if(l===u){const f=new Error('Incorrect usage of "merge". Both branches have same head');throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},f}if(r&&ir.records.commits.has(r)){const f=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw f.hash={text:`merge ${e} ${r} ${n} ${i?.join(" ")}`,token:`merge ${e} ${r} ${n} ${i?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${n} ${i?.join(" ")}`]},f}const d=o||"",h={id:r||`${ir.records.seq}-${ZA()}`,message:`merged branch ${e} into ${ir.records.currBranch}`,seq:ir.records.seq++,parents:ir.records.head==null?[]:[ir.records.head.id,d],branch:ir.records.currBranch,type:Bn.MERGE,customType:n,customId:!!r,tags:i??[]};ir.records.head=h,ir.records.commits.set(h.id,h),ir.records.branches.set(ir.records.currBranch,h.id),ge.debug(ir.records.branches),ge.debug("in mergeBranch")},"merge"),zkt=S(function(t){let e=t.id,r=t.targetId,n=t.tags,i=t.parent;ge.debug("Entering cherryPick:",e,r,n);const a=Ag();if(e=qt.sanitizeText(e,a),r=qt.sanitizeText(r,a),n=n?.map(l=>qt.sanitizeText(l,a)),i=qt.sanitizeText(i,a),!e||!ir.records.commits.has(e)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},l}const s=ir.records.commits.get(e);if(s===void 0||!s)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(s.parents)&&s.parents.includes(i)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=s.branch;if(s.type===Bn.MERGE&&!i)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!ir.records.commits.has(r)){if(o===ir.records.currBranch){const h=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw h.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},h}const l=ir.records.branches.get(ir.records.currBranch);if(l===void 0||!l){const h=new Error(`Incorrect usage of "cherry-pick". Current branch (${ir.records.currBranch})has no commits`);throw h.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},h}const u=ir.records.commits.get(l);if(u===void 0||!u){const h=new Error(`Incorrect usage of "cherry-pick". Current branch (${ir.records.currBranch})has no commits`);throw h.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},h}const d={id:ir.records.seq+"-"+ZA(),message:`cherry-picked ${s?.message} into ${ir.records.currBranch}`,seq:ir.records.seq++,parents:ir.records.head==null?[]:[ir.records.head.id,s.id],branch:ir.records.currBranch,type:Bn.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===Bn.MERGE?`|parent:${i}`:""}`]};ir.records.head=d,ir.records.commits.set(d.id,d),ir.records.branches.set(ir.records.currBranch,d.id),ge.debug(ir.records.branches),ge.debug("in cherryPick")}},"cherryPick"),Jke=S(function(t){if(t=qt.sanitizeText(t,Ag()),ir.records.branches.has(t)){ir.records.currBranch=t;const e=ir.records.branches.get(ir.records.currBranch);e===void 0||!e?ir.records.head=null:ir.records.head=ir.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function F$(t,e,r){const n=t.indexOf(e);n===-1?t.push(r):t.splice(n,1,r)}S(F$,"upsert");function QV(t){const e=t.reduce((i,a)=>i.seq>a.seq?i:a,t[0]);let r="";t.forEach(function(i){i===e?r+=" *":r+=" |"});const n=[r,e.id,e.seq];for(const i in ir.records.branches)ir.records.branches.get(i)===e.id&&n.push(i);if(ge.debug(n.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const i=ir.records.commits.get(e.parents[0]);F$(t,e,i),e.parents[1]&&t.push(ir.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const i=ir.records.commits.get(e.parents[0]);F$(t,e,i)}}t=Zke(t,i=>i.id),QV(t)}S(QV,"prettyPrintCommitHistory");var Ukt=S(function(){ge.debug(ir.records.commits);const t=e7e()[0];QV([t])},"prettyPrint"),Gkt=S(function(){ir.reset(),oi()},"clear"),qkt=S(function(){return[...ir.records.branchConfig.values()].map((e,r)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${r}`)}).sort((e,r)=>(e.order??0)-(r.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),Ykt=S(function(){return ir.records.branches},"getBranches"),Hkt=S(function(){return ir.records.commits},"getCommits"),e7e=S(function(){const t=[...ir.records.commits.values()];return t.forEach(function(e){ge.debug(e.id)}),t.sort((e,r)=>e.seq-r.seq),t},"getCommitsArray"),Vkt=S(function(){return ir.records.currBranch},"getCurrentBranch"),Wkt=S(function(){return ir.records.direction},"getDirection"),Kkt=S(function(){return ir.records.head},"getHead"),t7e={commitType:Bn,getConfig:Ag,setDirection:Lkt,setOptions:Mkt,getOptions:Pkt,commit:Bkt,branch:Fkt,merge:$kt,cherryPick:zkt,checkout:Jke,prettyPrint:Ukt,clear:Gkt,getBranchesAsObjArray:qkt,getBranches:Ykt,getCommits:Hkt,getCommitsArray:e7e,getCurrentBranch:Vkt,getDirection:Wkt,getHead:Kkt,setAccTitle:ai,getAccTitle:yi,getAccDescription:_i,setAccDescription:vi,setDiagramTitle:pi,getDiagramTitle:li},Xkt=S((t,e)=>{wu(t,e),t.dir&&e.setDirection(t.dir);for(const r of t.statements)jkt(r,e)},"populate"),jkt=S((t,e)=>{const n={Commit:S(i=>e.commit(Qkt(i)),"Commit"),Branch:S(i=>e.branch(Zkt(i)),"Branch"),Merge:S(i=>e.merge(Jkt(i)),"Merge"),Checkout:S(i=>e.checkout(e7t(i)),"Checkout"),CherryPicking:S(i=>e.cherryPick(t7t(i)),"CherryPicking")}[t.$type];n?n(t):ge.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Qkt=S(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?Bn[t.type]:Bn.NORMAL,tags:t.tags??void 0}),"parseCommit"),Zkt=S(t=>({name:t.name,order:t.order??0}),"parseBranch"),Jkt=S(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?Bn[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),e7t=S(t=>t.branch,"parseCheckout"),t7t=S(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),r7t={parse:S(async t=>{const e=await _c("gitGraph",t);ge.debug(e),Xkt(e,t7e)},"parse")},Yd=10,Hd=40,Oc=4,Ju=2,Xf=8,JA=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),$$=12,ZV=new Set(["redux-color","redux-dark-color"]),n7t=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),jf=S((t,e,r=!1)=>r&&t>0?(t-1)%(e-1)+1:t%e,"calcColorIndex"),go=new Map,vo=new Map,Aw=30,OE=new Map,Rw=[],e0=0,ln="LR",i7t=S(()=>{go.clear(),vo.clear(),OE.clear(),e0=0,Rw=[],ln="LR"},"clear"),r7e=S(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|/gi):t).forEach(n=>{const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=n.trim(),e.appendChild(i)}),e},"drawText"),n7e=S(t=>{let e,r,n;return ln==="BT"?(r=S((i,a)=>i<=a,"comparisonFunc"),n=1/0):(r=S((i,a)=>i>=a,"comparisonFunc"),n=0),t.forEach(i=>{const a=ln==="TB"||ln=="BT"?vo.get(i)?.y:vo.get(i)?.x;a!==void 0&&r(a,n)&&(e=i,n=a)}),e},"findClosestParent"),a7t=S(t=>{let e="",r=1/0;return t.forEach(n=>{const i=vo.get(n).y;i<=r&&(e=n,r=i)}),e||void 0},"findClosestParentBT"),s7t=S((t,e,r)=>{let n=r,i=r;const a=[];t.forEach(s=>{const o=e.get(s);if(!o)throw new Error(`Commit not found for key ${s}`);o.parents.length?(n=l7t(o),i=Math.max(n,i)):a.push(o),c7t(o,n)}),n=i,a.forEach(s=>{u7t(s,n,r)}),t.forEach(s=>{const o=e.get(s);if(o?.parents.length){const l=a7t(o.parents);n=vo.get(l).y-Hd,n<=i&&(i=n);const u=go.get(o.branch).pos,d=n-Yd;vo.set(o.id,{x:u,y:d})}})},"setParallelBTPos"),o7t=S(t=>{const e=n7e(t.parents.filter(n=>n!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const r=vo.get(e)?.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return r},"findClosestParentPos"),l7t=S(t=>o7t(t)+Hd,"calculateCommitPosition"),c7t=S((t,e)=>{const r=go.get(t.branch);if(!r)throw new Error(`Branch not found for commit ${t.id}`);const n=r.pos,i=e+Yd;return vo.set(t.id,{x:n,y:i}),{x:n,y:i}},"setCommitPosition"),u7t=S((t,e,r)=>{const n=go.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const i=e+r,a=n.pos;vo.set(t.id,{x:a,y:i})},"setRootPosition"),d7t=S((t,e,r,n,i,a)=>{const{theme:s}=Ke(),o=JA.has(s??""),l=ZV.has(s??""),u=n7t.has(s??"");if(a===Bn.HIGHLIGHT)t.append("rect").attr("x",r.x-10+(o?3:0)).attr("y",r.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${e.id} commit-highlight${jf(i,Xf,l)} ${n}-outer`),t.append("rect").attr("x",r.x-6+(o?2:0)).attr("y",r.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${e.id} commit${jf(i,Xf,l)} ${n}-inner`);else if(a===Bn.CHERRY_PICK)t.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",o?7:10).attr("class",`commit ${e.id} ${n}`),t.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",o?2.5:2.75).attr("fill",u?"#000000":"#fff").attr("class",`commit ${e.id} ${n}`),t.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",o?2.5:2.75).attr("fill",u?"#000000":"#fff").attr("class",`commit ${e.id} ${n}`),t.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",u?"#000000":"#fff").attr("class",`commit ${e.id} ${n}`),t.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",u?"#000000":"#fff").attr("class",`commit ${e.id} ${n}`);else{const d=t.append("circle");if(d.attr("cx",r.x),d.attr("cy",r.y),d.attr("r",o?7:10),d.attr("class",`commit ${e.id} commit${jf(i,Xf,l)}`),a===Bn.MERGE){const h=t.append("circle");h.attr("cx",r.x),h.attr("cy",r.y),h.attr("r",o?5:6),h.attr("class",`commit ${n} ${e.id} commit${jf(i,Xf,l)}`)}if(a===Bn.REVERSE){const h=t.append("path"),f=o?4:5;h.attr("d",`M ${r.x-f},${r.y-f}L${r.x+f},${r.y+f}M${r.x-f},${r.y+f}L${r.x+f},${r.y-f}`).attr("class",`commit ${n} ${e.id} commit${jf(i,Xf,l)}`)}}},"drawCommitBullet"),h7t=S((t,e,r,n,i)=>{if(e.type!==Bn.CHERRY_PICK&&(e.customId&&e.type===Bn.MERGE||e.type!==Bn.MERGE)&&i.showCommitLabel){const a=t.append("g"),s=a.insert("rect").attr("class","commit-label-bkg"),o=a.append("text").attr("x",n).attr("y",r.y+25).attr("class","commit-label").text(e.id),l=o.node()?.getBBox();if(l&&(s.attr("x",r.posWithOffset-l.width/2-Ju).attr("y",r.y+13.5).attr("width",l.width+2*Ju).attr("height",l.height+2*Ju),ln==="TB"||ln==="BT"?(s.attr("x",r.x-(l.width+4*Oc+5)).attr("y",r.y-12),o.attr("x",r.x-(l.width+4*Oc)).attr("y",r.y+l.height-12)):o.attr("x",r.posWithOffset-l.width/2),i.rotateCommitLabel))if(ln==="TB"||ln==="BT")o.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),s.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{const u=-7.5-(l.width+10)/25*9.5,d=10+l.width/25*8.5;a.attr("transform","translate("+u+", "+d+") rotate(-45, "+n+", "+r.y+")")}}},"drawCommitLabel"),f7t=S((t,e,r,n)=>{if(e.tags.length>0){let i=0,a=0,s=0;const o=[];for(const l of e.tags.reverse()){const u=t.insert("polygon"),d=t.append("circle"),h=t.append("text").attr("y",r.y-16-i).attr("class","tag-label").text(l),f=h.node()?.getBBox();if(!f)throw new Error("Tag bbox not found");a=Math.max(a,f.width),s=Math.max(s,f.height),h.attr("x",r.posWithOffset-f.width/2),o.push({tag:h,hole:d,rect:u,yOffset:i}),i+=20}for(const{tag:l,hole:u,rect:d,yOffset:h}of o){const f=s/2,p=r.y-19.2-h;if(d.attr("class","tag-label-bkg").attr("points",` ${n-a/2-Oc/2},${p+Ju} ${n-a/2-Oc/2},${p-Ju} ${r.posWithOffset-a/2-Oc},${p-f-Ju} @@ -5411,22 +5411,22 @@ ${r}`),this.inline?`{${i}}`:i}},k(Nv,"JSDocTagImpl"),Nv);function gke(t,e,r){if( ${r.x+Yd},${g-f-2} ${r.x+Yd+a+4},${g-f-2} ${r.x+Yd+a+4},${g+f+2} - ${r.x+Yd},${g+f+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+n+")"),u.attr("cx",r.x+Oc/2).attr("cy",g).attr("transform","translate(12,12) rotate(45, "+r.x+","+n+")"),l.attr("x",r.x+5).attr("y",g+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+n+")")}}}},"drawCommitTags"),f7t=S(t=>{switch(t.customType??t.type){case Bn.NORMAL:return"commit-normal";case Bn.REVERSE:return"commit-reverse";case Bn.HIGHLIGHT:return"commit-highlight";case Bn.MERGE:return"commit-merge";case Bn.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),p7t=S((t,e,r,n)=>{const i={x:0,y:0};if(t.parents.length>0){const a=n7e(t.parents);if(a){const s=n.get(a)??i;return e==="TB"?s.y+Hd:e==="BT"?(n.get(t.id)??i).y-Hd:s.x+Hd}}else return e==="TB"?Aw:e==="BT"?(n.get(t.id)??i).y-Hd:0;return 0},"calculatePosition"),g7t=S((t,e,r)=>{const n=ln==="BT"&&r?e:e+Yd,i=go.get(t.branch)?.pos,a=ln==="TB"||ln==="BT"?go.get(t.branch)?.pos:n;if(a===void 0||i===void 0)throw new Error(`Position were undefined for commit ${t.id}`);const s=JA.has(Ke().theme??""),o=ln==="TB"||ln==="BT"?n:i+(s?$$/2+1:-2);return{x:a,y:o,posWithOffset:n}},"getCommitPosition"),woe=S((t,e,r,n)=>{const i=t.append("g").attr("class","commit-bullets"),a=t.append("g").attr("class","commit-labels");let s=ln==="TB"||ln==="BT"?Aw:0;const o=[...e.keys()],l=n.parallelCommits??!1,u=S((h,f)=>{const p=e.get(h)?.seq,g=e.get(f)?.seq;return p!==void 0&&g!==void 0?p-g:0},"sortKeys");let d=o.sort(u);ln==="BT"&&(l&&a7t(d,e,s),d=d.reverse()),d.forEach(h=>{const f=e.get(h);if(!f)throw new Error(`Commit not found for key ${h}`);l&&(s=p7t(f,ln,s,vo));const p=g7t(f,s,l);if(r){const g=f7t(f),m=f.customType??f.type,y=go.get(f.branch)?.index??0;u7t(i,f,p,g,y,m),d7t(a,f,p,s,n),h7t(a,f,p,s)}ln==="TB"||ln==="BT"?vo.set(f.id,{x:p.x,y:p.posWithOffset}):vo.set(f.id,{x:p.posWithOffset,y:p.y}),s=ln==="BT"&&l?s+Hd:s+Hd+Yd,s>e0&&(e0=s)})},"drawCommits"),m7t=S((t,e,r,n,i)=>{const s=(ln==="TB"||ln==="BT"?r.xu.branch===s,"isOnBranchToGetCurve"),l=S(u=>u.seq>t.seq&&u.seql(u)&&o(u))},"shouldRerouteArrow"),DE=S((t,e,r=0)=>{const n=t+Math.abs(t-e)/2;if(r>5)return n;if(Rw.every(s=>Math.abs(s-n)>=10))return Rw.push(n),n;const a=Math.abs(t-e);return DE(t,e-a/5,r+1)},"findLane"),y7t=S((t,e,r,n)=>{const{theme:i}=Ke(),a=ZV.has(i??""),s=vo.get(e.id),o=vo.get(r.id);if(s===void 0||o===void 0)throw new Error(`Commit positions not found for commits ${e.id} and ${r.id}`);const l=m7t(e,r,s,o,n);let u="",d="",h=0,f=0,p=go.get(r.branch)?.index;r.type===Bn.MERGE&&e.id!==r.parents[0]&&(p=go.get(e.branch)?.index);let g;if(l){u="A 10 10, 0, 0, 0,",d="A 10 10, 0, 0, 1,",h=10,f=10;const m=s.yo.x&&(u="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",h=20,f=20,r.type===Bn.MERGE&&e.id!==r.parents[0]?g=`M ${s.x} ${s.y} L ${s.x} ${o.y-h} ${d} ${s.x-f} ${o.y} L ${o.x} ${o.y}`:g=`M ${s.x} ${s.y} L ${o.x+h} ${s.y} ${u} ${o.x} ${s.y+f} L ${o.x} ${o.y}`),s.x===o.x&&(g=`M ${s.x} ${s.y} L ${o.x} ${o.y}`)):ln==="BT"?(s.xo.x&&(u="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",h=20,f=20,r.type===Bn.MERGE&&e.id!==r.parents[0]?g=`M ${s.x} ${s.y} L ${s.x} ${o.y+h} ${u} ${s.x-f} ${o.y} L ${o.x} ${o.y}`:g=`M ${s.x} ${s.y} L ${o.x+h} ${s.y} ${d} ${o.x} ${s.y-f} L ${o.x} ${o.y}`),s.x===o.x&&(g=`M ${s.x} ${s.y} L ${o.x} ${o.y}`)):(s.yo.y&&(r.type===Bn.MERGE&&e.id!==r.parents[0]?g=`M ${s.x} ${s.y} L ${o.x-h} ${s.y} ${u} ${o.x} ${s.y-f} L ${o.x} ${o.y}`:g=`M ${s.x} ${s.y} L ${s.x} ${o.y+h} ${d} ${s.x+f} ${o.y} L ${o.x} ${o.y}`),s.y===o.y&&(g=`M ${s.x} ${s.y} L ${o.x} ${o.y}`));if(g===void 0)throw new Error("Line definition not found");t.append("path").attr("d",g).attr("class","arrow arrow"+jf(p,Xf,a))},"drawArrow"),v7t=S((t,e)=>{const r=t.append("g").attr("class","commit-arrows");[...e.keys()].forEach(n=>{const i=e.get(n);i.parents&&i.parents.length>0&&i.parents.forEach(a=>{y7t(r,e.get(a),i,e)})})},"drawArrows"),_7t=S((t,e,r,n)=>{const{look:i,theme:a,themeVariables:s}=Ke(),{dropShadow:o,THEME_COLOR_LIMIT:l}=s,u=JA.has(a??""),d=ZV.has(a??""),h=t.append("g");e.forEach((f,p)=>{const g=jf(p,u?l:Xf,d),m=go.get(f.name)?.pos;if(m===void 0)throw new Error(`Position not found for branch ${f.name}`);const y=ln==="TB"||ln==="BT"?m:u?m+$$/2+1:m-2,v=h.append("line");v.attr("x1",0),v.attr("y1",y),v.attr("x2",e0),v.attr("y2",y),v.attr("class","branch branch"+g),ln==="TB"?(v.attr("y1",Aw),v.attr("x1",m),v.attr("y2",e0),v.attr("x2",m)):ln==="BT"&&(v.attr("y1",e0),v.attr("x1",m),v.attr("y2",Aw),v.attr("x2",m)),Rw.push(y);const b=f.name,_=r7e(b),E=h.insert("rect"),C=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+g);C.node().appendChild(_);const T=_.getBBox(),w=u?0:4,N=u?16:0,O=u?$$:0;i==="neo"&&E.attr("data-look","neo"),E.attr("class","branchLabelBkg label"+g).attr("style",i==="neo"?`filter:${u?`url(#${n}-drop-shadow)`:o}`:"").attr("rx",w).attr("ry",w).attr("x",-T.width-4-(r.rotateCommitLabel===!0?30:0)).attr("y",-T.height/2+10).attr("width",T.width+18+N).attr("height",T.height+4+O),C.attr("transform","translate("+(-T.width-14-(r.rotateCommitLabel===!0?30:0)+N/2)+", "+(y-T.height/2-2)+")"),ln==="TB"?(E.attr("x",m-T.width/2-10).attr("y",0),C.attr("transform","translate("+(m-T.width/2-5)+", 0)"),u&&(E.attr("transform",`translate(${-N/2-3}, ${-O-10})`),C.attr("transform","translate("+(m-T.width/2-5)+", "+(-O*2+7)+")"))):ln==="BT"?(E.attr("x",m-T.width/2-10).attr("y",e0),C.attr("transform","translate("+(m-T.width/2-5)+", "+e0+")"),u&&(E.attr("transform",`translate(${-N/2-3}, ${O+10})`),C.attr("transform","translate("+(m-T.width/2-5)+", "+(e0+O*2+4)+")"))):E.attr("transform","translate(-19, "+(y-12-O/2)+")")})},"drawBranches"),b7t=S(function(t,e,r,n,i){return go.set(t,{pos:e,index:r}),e+=50+(i?40:0)+(ln==="TB"||ln==="BT"?n.width/2:0),e},"setBranchPosition"),E7t=S(function(t,e,r,n){n7t(),ge.debug("in gitgraph renderer",t+` -`,"id:",e,r);const i=n.db;if(!i.getConfig){ge.error("getConfig method is not available on db");return}const a=i.getConfig(),s=a.rotateCommitLabel??!1;OE=i.getCommits();const o=i.getBranchesAsObjArray();ln=i.getDirection();const l=At(`[id="${e}"]`),{look:u,theme:d,themeVariables:h}=Ke(),{useGradient:f,gradientStart:p,gradientStop:g,filterColor:m}=h;if(f){const v=l.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");v.append("stop").attr("offset","0%").attr("stop-color",p).attr("stop-opacity",1),v.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}u==="neo"&&JA.has(d??"")&&l.append("defs").append("filter").attr("id",e+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",m);let y=0;o.forEach((v,b)=>{const _=r7e(v.name),E=l.append("g"),x=E.insert("g").attr("class","branchLabel"),C=x.insert("g").attr("class","label branch-label");C.node()?.appendChild(_);const T=_.getBBox();y=b7t(v.name,y,b,T,s),C.remove(),x.remove(),E.remove()}),woe(l,OE,!1,a),a.showBranches&&_7t(l,o,a,e),v7t(l,OE),woe(l,OE,!0,a),Wr.insertTitle(l,"gitTitleText",a.titleTopMargin??0,i.getDiagramTitle()),EU(void 0,l,a.diagramPadding,a.useMaxWidth)},"draw"),S7t={draw:E7t},i7e=8,a7e=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),T7t=new Set(["redux-color","redux-dark-color"]),x7t=new Set(["neo","neo-dark"]),C7t=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),w7t=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),k7t=S(t=>{const{svgId:e}=t;let r="";if(t.useGradient&&e)for(let n=0;n{switch(t.customType??t.type){case Bn.NORMAL:return"commit-normal";case Bn.REVERSE:return"commit-reverse";case Bn.HIGHLIGHT:return"commit-highlight";case Bn.MERGE:return"commit-merge";case Bn.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),g7t=S((t,e,r,n)=>{const i={x:0,y:0};if(t.parents.length>0){const a=n7e(t.parents);if(a){const s=n.get(a)??i;return e==="TB"?s.y+Hd:e==="BT"?(n.get(t.id)??i).y-Hd:s.x+Hd}}else return e==="TB"?Aw:e==="BT"?(n.get(t.id)??i).y-Hd:0;return 0},"calculatePosition"),m7t=S((t,e,r)=>{const n=ln==="BT"&&r?e:e+Yd,i=go.get(t.branch)?.pos,a=ln==="TB"||ln==="BT"?go.get(t.branch)?.pos:n;if(a===void 0||i===void 0)throw new Error(`Position were undefined for commit ${t.id}`);const s=JA.has(Ke().theme??""),o=ln==="TB"||ln==="BT"?n:i+(s?$$/2+1:-2);return{x:a,y:o,posWithOffset:n}},"getCommitPosition"),woe=S((t,e,r,n)=>{const i=t.append("g").attr("class","commit-bullets"),a=t.append("g").attr("class","commit-labels");let s=ln==="TB"||ln==="BT"?Aw:0;const o=[...e.keys()],l=n.parallelCommits??!1,u=S((h,f)=>{const p=e.get(h)?.seq,g=e.get(f)?.seq;return p!==void 0&&g!==void 0?p-g:0},"sortKeys");let d=o.sort(u);ln==="BT"&&(l&&s7t(d,e,s),d=d.reverse()),d.forEach(h=>{const f=e.get(h);if(!f)throw new Error(`Commit not found for key ${h}`);l&&(s=g7t(f,ln,s,vo));const p=m7t(f,s,l);if(r){const g=p7t(f),m=f.customType??f.type,y=go.get(f.branch)?.index??0;d7t(i,f,p,g,y,m),h7t(a,f,p,s,n),f7t(a,f,p,s)}ln==="TB"||ln==="BT"?vo.set(f.id,{x:p.x,y:p.posWithOffset}):vo.set(f.id,{x:p.posWithOffset,y:p.y}),s=ln==="BT"&&l?s+Hd:s+Hd+Yd,s>e0&&(e0=s)})},"drawCommits"),y7t=S((t,e,r,n,i)=>{const s=(ln==="TB"||ln==="BT"?r.xu.branch===s,"isOnBranchToGetCurve"),l=S(u=>u.seq>t.seq&&u.seql(u)&&o(u))},"shouldRerouteArrow"),DE=S((t,e,r=0)=>{const n=t+Math.abs(t-e)/2;if(r>5)return n;if(Rw.every(s=>Math.abs(s-n)>=10))return Rw.push(n),n;const a=Math.abs(t-e);return DE(t,e-a/5,r+1)},"findLane"),v7t=S((t,e,r,n)=>{const{theme:i}=Ke(),a=ZV.has(i??""),s=vo.get(e.id),o=vo.get(r.id);if(s===void 0||o===void 0)throw new Error(`Commit positions not found for commits ${e.id} and ${r.id}`);const l=y7t(e,r,s,o,n);let u="",d="",h=0,f=0,p=go.get(r.branch)?.index;r.type===Bn.MERGE&&e.id!==r.parents[0]&&(p=go.get(e.branch)?.index);let g;if(l){u="A 10 10, 0, 0, 0,",d="A 10 10, 0, 0, 1,",h=10,f=10;const m=s.yo.x&&(u="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",h=20,f=20,r.type===Bn.MERGE&&e.id!==r.parents[0]?g=`M ${s.x} ${s.y} L ${s.x} ${o.y-h} ${d} ${s.x-f} ${o.y} L ${o.x} ${o.y}`:g=`M ${s.x} ${s.y} L ${o.x+h} ${s.y} ${u} ${o.x} ${s.y+f} L ${o.x} ${o.y}`),s.x===o.x&&(g=`M ${s.x} ${s.y} L ${o.x} ${o.y}`)):ln==="BT"?(s.xo.x&&(u="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",h=20,f=20,r.type===Bn.MERGE&&e.id!==r.parents[0]?g=`M ${s.x} ${s.y} L ${s.x} ${o.y+h} ${u} ${s.x-f} ${o.y} L ${o.x} ${o.y}`:g=`M ${s.x} ${s.y} L ${o.x+h} ${s.y} ${d} ${o.x} ${s.y-f} L ${o.x} ${o.y}`),s.x===o.x&&(g=`M ${s.x} ${s.y} L ${o.x} ${o.y}`)):(s.yo.y&&(r.type===Bn.MERGE&&e.id!==r.parents[0]?g=`M ${s.x} ${s.y} L ${o.x-h} ${s.y} ${u} ${o.x} ${s.y-f} L ${o.x} ${o.y}`:g=`M ${s.x} ${s.y} L ${s.x} ${o.y+h} ${d} ${s.x+f} ${o.y} L ${o.x} ${o.y}`),s.y===o.y&&(g=`M ${s.x} ${s.y} L ${o.x} ${o.y}`));if(g===void 0)throw new Error("Line definition not found");t.append("path").attr("d",g).attr("class","arrow arrow"+jf(p,Xf,a))},"drawArrow"),_7t=S((t,e)=>{const r=t.append("g").attr("class","commit-arrows");[...e.keys()].forEach(n=>{const i=e.get(n);i.parents&&i.parents.length>0&&i.parents.forEach(a=>{v7t(r,e.get(a),i,e)})})},"drawArrows"),b7t=S((t,e,r,n)=>{const{look:i,theme:a,themeVariables:s}=Ke(),{dropShadow:o,THEME_COLOR_LIMIT:l}=s,u=JA.has(a??""),d=ZV.has(a??""),h=t.append("g");e.forEach((f,p)=>{const g=jf(p,u?l:Xf,d),m=go.get(f.name)?.pos;if(m===void 0)throw new Error(`Position not found for branch ${f.name}`);const y=ln==="TB"||ln==="BT"?m:u?m+$$/2+1:m-2,v=h.append("line");v.attr("x1",0),v.attr("y1",y),v.attr("x2",e0),v.attr("y2",y),v.attr("class","branch branch"+g),ln==="TB"?(v.attr("y1",Aw),v.attr("x1",m),v.attr("y2",e0),v.attr("x2",m)):ln==="BT"&&(v.attr("y1",e0),v.attr("x1",m),v.attr("y2",Aw),v.attr("x2",m)),Rw.push(y);const b=f.name,_=r7e(b),E=h.insert("rect"),C=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+g);C.node().appendChild(_);const T=_.getBBox(),w=u?0:4,N=u?16:0,O=u?$$:0;i==="neo"&&E.attr("data-look","neo"),E.attr("class","branchLabelBkg label"+g).attr("style",i==="neo"?`filter:${u?`url(#${n}-drop-shadow)`:o}`:"").attr("rx",w).attr("ry",w).attr("x",-T.width-4-(r.rotateCommitLabel===!0?30:0)).attr("y",-T.height/2+10).attr("width",T.width+18+N).attr("height",T.height+4+O),C.attr("transform","translate("+(-T.width-14-(r.rotateCommitLabel===!0?30:0)+N/2)+", "+(y-T.height/2-2)+")"),ln==="TB"?(E.attr("x",m-T.width/2-10).attr("y",0),C.attr("transform","translate("+(m-T.width/2-5)+", 0)"),u&&(E.attr("transform",`translate(${-N/2-3}, ${-O-10})`),C.attr("transform","translate("+(m-T.width/2-5)+", "+(-O*2+7)+")"))):ln==="BT"?(E.attr("x",m-T.width/2-10).attr("y",e0),C.attr("transform","translate("+(m-T.width/2-5)+", "+e0+")"),u&&(E.attr("transform",`translate(${-N/2-3}, ${O+10})`),C.attr("transform","translate("+(m-T.width/2-5)+", "+(e0+O*2+4)+")"))):E.attr("transform","translate(-19, "+(y-12-O/2)+")")})},"drawBranches"),E7t=S(function(t,e,r,n,i){return go.set(t,{pos:e,index:r}),e+=50+(i?40:0)+(ln==="TB"||ln==="BT"?n.width/2:0),e},"setBranchPosition"),S7t=S(function(t,e,r,n){i7t(),ge.debug("in gitgraph renderer",t+` +`,"id:",e,r);const i=n.db;if(!i.getConfig){ge.error("getConfig method is not available on db");return}const a=i.getConfig(),s=a.rotateCommitLabel??!1;OE=i.getCommits();const o=i.getBranchesAsObjArray();ln=i.getDirection();const l=At(`[id="${e}"]`),{look:u,theme:d,themeVariables:h}=Ke(),{useGradient:f,gradientStart:p,gradientStop:g,filterColor:m}=h;if(f){const v=l.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");v.append("stop").attr("offset","0%").attr("stop-color",p).attr("stop-opacity",1),v.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}u==="neo"&&JA.has(d??"")&&l.append("defs").append("filter").attr("id",e+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",m);let y=0;o.forEach((v,b)=>{const _=r7e(v.name),E=l.append("g"),x=E.insert("g").attr("class","branchLabel"),C=x.insert("g").attr("class","label branch-label");C.node()?.appendChild(_);const T=_.getBBox();y=E7t(v.name,y,b,T,s),C.remove(),x.remove(),E.remove()}),woe(l,OE,!1,a),a.showBranches&&b7t(l,o,a,e),_7t(l,OE),woe(l,OE,!0,a),Wr.insertTitle(l,"gitTitleText",a.titleTopMargin??0,i.getDiagramTitle()),EU(void 0,l,a.diagramPadding,a.useMaxWidth)},"draw"),T7t={draw:S7t},i7e=8,a7e=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),x7t=new Set(["redux-color","redux-dark-color"]),C7t=new Set(["neo","neo-dark"]),w7t=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),k7t=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),A7t=S(t=>{const{svgId:e}=t;let r="";if(t.useGradient&&e)for(let n=0;n{const e=xr(),{theme:r,themeVariables:n}=e,{borderColorArray:i}=n,a=a7e.has(r);if(x7t.has(r)){let s="";for(let o=0;o{const e=xr(),{theme:r,themeVariables:n}=e,{borderColorArray:i}=n,a=a7e.has(r);if(C7t.has(r)){let s="";for(let o=0;o`${Array.from({length:t.THEME_COLOR_LIMIT},(e,r)=>r).map(e=>{const r=e%i7e;return` + `;return s}},"genColor"),N7t=S(t=>`${Array.from({length:t.THEME_COLOR_LIMIT},(e,r)=>r).map(e=>{const r=e%i7e;return` .branch-label${e} { fill: ${t["gitBranchLabel"+r]}; } .commit${e} { stroke: ${t["git"+r]}; fill: ${t["git"+r]}; } .commit-highlight${e} { stroke: ${t["gitInv"+r]}; fill: ${t["gitInv"+r]}; } .label${e} { fill: ${t["git"+r]}; } .arrow${e} { stroke: ${t["git"+r]}; } `}).join(` -`)}`,"normalTheme"),N7t=S(t=>{const e=xr(),{theme:r}=e,n=w7t.has(r);return` +`)}`,"normalTheme"),I7t=S(t=>{const e=xr(),{theme:r}=e,n=k7t.has(r);return` .commit-id, .commit-msg, .branch-label { @@ -5464,7 +5464,7 @@ ${r}`),this.inline?`{${i}}`:i}},k(Nv,"JSDocTagImpl"),Nv);function gke(t,e,r){if( font-family: var(--mermaid-font-family); } - ${n?A7t(t):R7t(t)} + ${n?R7t(t):N7t(t)} .branch { stroke-width: ${t.strokeWidth}; @@ -5504,12 +5504,12 @@ ${r}`),this.inline?`{${i}}`:i}},k(Nv,"JSDocTagImpl"),Nv);function gke(t,e,r){if( font-size: 18px; fill: ${t.textColor}; } -`},"getStyles"),I7t=N7t,O7t={parser:t7t,db:t7e,renderer:S7t,styles:I7t};const D7t=Object.freeze(Object.defineProperty({__proto__:null,diagram:O7t},Symbol.toStringTag,{value:"Module"}));var W5={exports:{}},L7t=W5.exports,koe;function M7t(){return koe||(koe=1,(function(t,e){(function(r,n){t.exports=n()})(L7t,(function(){var r="day";return function(n,i,a){var s=function(u){return u.add(4-u.isoWeekday(),r)},o=i.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),r);var d,h,f,p,g=s(this),m=(d=this.isoWeekYear(),h=this.$u,f=(h?a.utc:a)().year(d).startOf("year"),p=4-f.isoWeekday(),f.isoWeekday()>4&&(p+=7),f.add(p,r));return g.diff(m,"week")+1},o.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var l=o.startOf;o.startOf=function(u,d){var h=this.$utils(),f=!!h.u(d)||d;return h.p(u)==="isoweek"?f?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(u,d)}}}))})(W5)),W5.exports}var P7t=M7t();const B7t=Ml(P7t);var K5={exports:{}},F7t=K5.exports,Aoe;function $7t(){return Aoe||(Aoe=1,(function(t,e){(function(r,n){t.exports=n()})(F7t,(function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,l={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(v){this[y]=+v}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(v){if(!v||v==="Z")return 0;var b=v.match(/([+-]|\d\d)/g),_=60*b[1]+(+b[2]||0);return _===0?0:b[0]==="+"?-_:_})(y)}],f=function(y){var v=l[y];return v&&(v.indexOf?v:v.s.concat(v.f))},p=function(y,v){var b,_=l.meridiem;if(_){for(var E=1;E<=24;E+=1)if(y.indexOf(_(E,0,v))>-1){b=E>12;break}}else b=y===(v?"pm":"PM");return b},g={A:[o,function(y){this.afternoon=p(y,!1)}],a:[o,function(y){this.afternoon=p(y,!0)}],Q:[i,function(y){this.month=3*(y-1)+1}],S:[i,function(y){this.milliseconds=100*+y}],SS:[a,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[a,d("day")],Do:[o,function(y){var v=l.ordinal,b=y.match(/\d+/);if(this.day=b[0],v)for(var _=1;_<=31;_+=1)v(_).replace(/\[|\]/g,"")===y&&(this.day=_)}],w:[s,d("week")],ww:[a,d("week")],M:[s,d("month")],MM:[a,d("month")],MMM:[o,function(y){var v=f("months"),b=(f("monthsShort")||v.map((function(_){return _.slice(0,3)}))).indexOf(y)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[o,function(y){var v=f("months").indexOf(y)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function m(y){var v,b;v=y,b=l&&l.formats;for(var _=(y=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,M,$){var F=$&&$.toUpperCase();return M||b[$]||r[$]||b[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(A,I,D){return I||D.slice(1)}))}))).match(n),E=_.length,x=0;x-1)return new Date((R==="X"?1e3:1)*L);var B=m(R)(L),q=B.year,Y=B.month,Q=B.day,H=B.hours,J=B.minutes,Z=B.seconds,pe=B.milliseconds,re=B.zone,ce=B.week,ae=new Date,se=Q||(q||Y?1:ae.getDate()),xe=q||ae.getFullYear(),Te=0;q&&!Y||(Te=Y>0?Y-1:ae.getMonth());var Ge,ze=H||0,Xe=J||0,Le=Z||0,Re=pe||0;return re?new Date(Date.UTC(xe,Te,se,ze,Xe,Le,Re+60*re.offset*1e3)):P?new Date(Date.UTC(xe,Te,se,ze,Xe,Le,Re)):(Ge=new Date(xe,Te,se,ze,Xe,Le,Re),ce&&(Ge=z(Ge).week(ce).toDate()),Ge)}catch{return new Date("")}})(C,N,T,b),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),$&&C!=this.format(N)&&(this.$d=new Date("")),l={}}else if(N instanceof Array)for(var A=N.length,I=1;I<=A;I+=1){w[1]=N[I-1];var D=b.apply(this,w);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}I===A&&(this.$d=new Date(""))}else E.call(this,x)}}}))})(K5)),K5.exports}var z7t=$7t();const U7t=Ml(z7t);var X5={exports:{}},G7t=X5.exports,Roe;function q7t(){return Roe||(Roe=1,(function(t,e){(function(r,n){t.exports=n()})(G7t,(function(){return function(r,n){var i=n.prototype,a=i.format;i.format=function(s){var o=this,l=this.$locale();if(!this.isValid())return a.bind(this)(s);var u=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(h){switch(h){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return l.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return l.ordinal(o.week(),"W");case"w":case"ww":return u.s(o.week(),h==="w"?1:2,"0");case"W":case"WW":return u.s(o.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return u.s(String(o.$H===0?24:o.$H),h==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1e3);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return h}}));return a.bind(this)(d)}}}))})(X5)),X5.exports}var Y7t=q7t();const H7t=Ml(Y7t);var j5={exports:{}},V7t=j5.exports,Noe;function W7t(){return Noe||(Noe=1,(function(t,e){(function(r,n){t.exports=n()})(V7t,(function(){var r,n,i=1e3,a=6e4,s=36e5,o=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,d=2628e6,h=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:u,months:d,days:o,hours:s,minutes:a,seconds:i,milliseconds:1,weeks:6048e5},p=function(C){return C instanceof E},g=function(C,T,w){return new E(C,w,T.$l)},m=function(C){return n.p(C)+"s"},y=function(C){return C<0},v=function(C){return y(C)?Math.ceil(C):Math.floor(C)},b=function(C){return Math.abs(C)},_=function(C,T){return C?y(C)?{negative:!0,format:""+b(C)+T}:{negative:!1,format:""+C+T}:{negative:!1,format:""}},E=(function(){function C(w,N,O){var M=this;if(this.$d={},this.$l=O,w===void 0&&(this.$ms=0,this.parseFromMilliseconds()),N)return g(w*f[m(N)],this);if(typeof w=="number")return this.$ms=w,this.parseFromMilliseconds(),this;if(typeof w=="object")return Object.keys(w).forEach((function(A){M.$d[m(A)]=w[A]})),this.calMilliseconds(),this;if(typeof w=="string"){var $=w.match(h);if($){var F=$.slice(2).map((function(A){return A!=null?Number(A):0}));return this.$d.years=F[0],this.$d.months=F[1],this.$d.weeks=F[2],this.$d.days=F[3],this.$d.hours=F[4],this.$d.minutes=F[5],this.$d.seconds=F[6],this.calMilliseconds(),this}}return this}var T=C.prototype;return T.calMilliseconds=function(){var w=this;this.$ms=Object.keys(this.$d).reduce((function(N,O){return N+(w.$d[O]||0)*f[O]}),0)},T.parseFromMilliseconds=function(){var w=this.$ms;this.$d.years=v(w/u),w%=u,this.$d.months=v(w/d),w%=d,this.$d.days=v(w/o),w%=o,this.$d.hours=v(w/s),w%=s,this.$d.minutes=v(w/a),w%=a,this.$d.seconds=v(w/i),w%=i,this.$d.milliseconds=w},T.toISOString=function(){var w=_(this.$d.years,"Y"),N=_(this.$d.months,"M"),O=+this.$d.days||0;this.$d.weeks&&(O+=7*this.$d.weeks);var M=_(O,"D"),$=_(this.$d.hours,"H"),F=_(this.$d.minutes,"M"),A=this.$d.seconds||0;this.$d.milliseconds&&(A+=this.$d.milliseconds/1e3,A=Math.round(1e3*A)/1e3);var I=_(A,"S"),D=w.negative||N.negative||M.negative||$.negative||F.negative||I.negative,L=$.format||F.format||I.format?"T":"",R=(D?"-":"")+"P"+w.format+N.format+M.format+L+$.format+F.format+I.format;return R==="P"||R==="-P"?"P0D":R},T.toJSON=function(){return this.toISOString()},T.format=function(w){var N=w||"YYYY-MM-DDTHH:mm:ss",O={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return N.replace(l,(function(M,$){return $||String(O[M])}))},T.as=function(w){return this.$ms/f[m(w)]},T.get=function(w){var N=this.$ms,O=m(w);return O==="milliseconds"?N%=1e3:N=O==="weeks"?v(N/f[O]):this.$d[O],N||0},T.add=function(w,N,O){var M;return M=N?w*f[m(N)]:p(w)?w.$ms:g(w,this).$ms,g(this.$ms+M*(O?-1:1),this)},T.subtract=function(w,N){return this.add(w,N,!0)},T.locale=function(w){var N=this.clone();return N.$l=w,N},T.clone=function(){return g(this.$ms,this)},T.humanize=function(w){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!w)},T.valueOf=function(){return this.asMilliseconds()},T.milliseconds=function(){return this.get("milliseconds")},T.asMilliseconds=function(){return this.as("milliseconds")},T.seconds=function(){return this.get("seconds")},T.asSeconds=function(){return this.as("seconds")},T.minutes=function(){return this.get("minutes")},T.asMinutes=function(){return this.as("minutes")},T.hours=function(){return this.get("hours")},T.asHours=function(){return this.as("hours")},T.days=function(){return this.get("days")},T.asDays=function(){return this.as("days")},T.weeks=function(){return this.get("weeks")},T.asWeeks=function(){return this.as("weeks")},T.months=function(){return this.get("months")},T.asMonths=function(){return this.as("months")},T.years=function(){return this.get("years")},T.asYears=function(){return this.as("years")},C})(),x=function(C,T,w){return C.add(T.years()*w,"y").add(T.months()*w,"M").add(T.days()*w,"d").add(T.hours()*w,"h").add(T.minutes()*w,"m").add(T.seconds()*w,"s").add(T.milliseconds()*w,"ms")};return function(C,T,w){r=w,n=w().$utils(),w.duration=function(M,$){var F=w.locale();return g(M,{$l:F},$)},w.isDuration=p;var N=T.prototype.add,O=T.prototype.subtract;T.prototype.add=function(M,$){return p(M)?x(this,M,1):N.bind(this)(M,$)},T.prototype.subtract=function(M,$){return p(M)?x(this,M,-1):O.bind(this)(M,$)}}}))})(j5)),j5.exports}var K7t=W7t();const X7t=Ml(K7t);var z$=(function(){var t=S(function(F,A,I,D){for(I=I||{},D=F.length;D--;I[F[D]]=A);return I},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],n=[1,27],i=[1,28],a=[1,29],s=[1,30],o=[1,31],l=[1,32],u=[1,33],d=[1,34],h=[1,9],f=[1,10],p=[1,11],g=[1,12],m=[1,13],y=[1,14],v=[1,15],b=[1,16],_=[1,19],E=[1,20],x=[1,21],C=[1,22],T=[1,23],w=[1,25],N=[1,35],O={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:S(function(A,I,D,L,R,P,z){var B=P.length-1;switch(R){case 1:return P[B-1];case 2:this.$=[];break;case 3:P[B-1].push(P[B]),this.$=P[B-1];break;case 4:case 5:this.$=P[B];break;case 6:case 7:this.$=[];break;case 8:L.setWeekday("monday");break;case 9:L.setWeekday("tuesday");break;case 10:L.setWeekday("wednesday");break;case 11:L.setWeekday("thursday");break;case 12:L.setWeekday("friday");break;case 13:L.setWeekday("saturday");break;case 14:L.setWeekday("sunday");break;case 15:L.setWeekend("friday");break;case 16:L.setWeekend("saturday");break;case 17:L.setDateFormat(P[B].substr(11)),this.$=P[B].substr(11);break;case 18:L.enableInclusiveEndDates(),this.$=P[B].substr(18);break;case 19:L.TopAxis(),this.$=P[B].substr(8);break;case 20:L.setAxisFormat(P[B].substr(11)),this.$=P[B].substr(11);break;case 21:L.setTickInterval(P[B].substr(13)),this.$=P[B].substr(13);break;case 22:L.setExcludes(P[B].substr(9)),this.$=P[B].substr(9);break;case 23:L.setIncludes(P[B].substr(9)),this.$=P[B].substr(9);break;case 24:L.setTodayMarker(P[B].substr(12)),this.$=P[B].substr(12);break;case 27:L.setDiagramTitle(P[B].substr(6)),this.$=P[B].substr(6);break;case 28:this.$=P[B].trim(),L.setAccTitle(this.$);break;case 29:case 30:this.$=P[B].trim(),L.setAccDescription(this.$);break;case 31:L.addSection(P[B].substr(8)),this.$=P[B].substr(8);break;case 33:L.addTask(P[B-1],P[B]),this.$="task";break;case 34:this.$=P[B-1],L.setClickEvent(P[B-1],P[B],null);break;case 35:this.$=P[B-2],L.setClickEvent(P[B-2],P[B-1],P[B]);break;case 36:this.$=P[B-2],L.setClickEvent(P[B-2],P[B-1],null),L.setLink(P[B-2],P[B]);break;case 37:this.$=P[B-3],L.setClickEvent(P[B-3],P[B-2],P[B-1]),L.setLink(P[B-3],P[B]);break;case 38:this.$=P[B-2],L.setClickEvent(P[B-2],P[B],null),L.setLink(P[B-2],P[B-1]);break;case 39:this.$=P[B-3],L.setClickEvent(P[B-3],P[B-1],P[B]),L.setLink(P[B-3],P[B-2]);break;case 40:this.$=P[B-1],L.setLink(P[B-1],P[B]);break;case 41:case 47:this.$=P[B-1]+" "+P[B];break;case 42:case 43:case 45:this.$=P[B-2]+" "+P[B-1]+" "+P[B];break;case 44:case 46:this.$=P[B-3]+" "+P[B-2]+" "+P[B-1]+" "+P[B];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:n,14:i,15:a,16:s,17:o,18:l,19:18,20:u,21:d,22:h,23:f,24:p,25:g,26:m,27:y,28:v,29:b,30:_,31:E,33:x,35:C,36:T,37:24,38:w,40:N},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:r,13:n,14:i,15:a,16:s,17:o,18:l,19:18,20:u,21:d,22:h,23:f,24:p,25:g,26:m,27:y,28:v,29:b,30:_,31:E,33:x,35:C,36:T,37:24,38:w,40:N},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:S(function(A,I){if(I.recoverable)this.trace(A);else{var D=new Error(A);throw D.hash=I,D}},"parseError"),parse:S(function(A){var I=this,D=[0],L=[],R=[null],P=[],z=this.table,B="",q=0,Y=0,Q=2,H=1,J=P.slice.call(arguments,1),Z=Object.create(this.lexer),pe={yy:{}};for(var re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,re)&&(pe.yy[re]=this.yy[re]);Z.setInput(A,pe.yy),pe.yy.lexer=Z,pe.yy.parser=this,typeof Z.yylloc>"u"&&(Z.yylloc={});var ce=Z.yylloc;P.push(ce);var ae=Z.options&&Z.options.ranges;typeof pe.yy.parseError=="function"?this.parseError=pe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(Je){D.length=D.length-2*Je,R.length=R.length-Je,P.length=P.length-Je}S(se,"popStack");function xe(){var Je;return Je=L.pop()||Z.lex()||H,typeof Je!="number"&&(Je instanceof Array&&(L=Je,Je=L.pop()),Je=I.symbols_[Je]||Je),Je}S(xe,"lex");for(var Te,Ge,ze,Xe,Le={},Re,qe,Ne,ut;;){if(Ge=D[D.length-1],this.defaultActions[Ge]?ze=this.defaultActions[Ge]:((Te===null||typeof Te>"u")&&(Te=xe()),ze=z[Ge]&&z[Ge][Te]),typeof ze>"u"||!ze.length||!ze[0]){var De="";ut=[];for(Re in z[Ge])this.terminals_[Re]&&Re>Q&&ut.push("'"+this.terminals_[Re]+"'");Z.showPosition?De="Parse error on line "+(q+1)+`: +`},"getStyles"),O7t=I7t,D7t={parser:r7t,db:t7e,renderer:T7t,styles:O7t};const L7t=Object.freeze(Object.defineProperty({__proto__:null,diagram:D7t},Symbol.toStringTag,{value:"Module"}));var W5={exports:{}},M7t=W5.exports,koe;function P7t(){return koe||(koe=1,(function(t,e){(function(r,n){t.exports=n()})(M7t,(function(){var r="day";return function(n,i,a){var s=function(u){return u.add(4-u.isoWeekday(),r)},o=i.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),r);var d,h,f,p,g=s(this),m=(d=this.isoWeekYear(),h=this.$u,f=(h?a.utc:a)().year(d).startOf("year"),p=4-f.isoWeekday(),f.isoWeekday()>4&&(p+=7),f.add(p,r));return g.diff(m,"week")+1},o.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var l=o.startOf;o.startOf=function(u,d){var h=this.$utils(),f=!!h.u(d)||d;return h.p(u)==="isoweek"?f?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(u,d)}}}))})(W5)),W5.exports}var B7t=P7t();const F7t=Ml(B7t);var K5={exports:{}},$7t=K5.exports,Aoe;function z7t(){return Aoe||(Aoe=1,(function(t,e){(function(r,n){t.exports=n()})($7t,(function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,l={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(v){this[y]=+v}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(v){if(!v||v==="Z")return 0;var b=v.match(/([+-]|\d\d)/g),_=60*b[1]+(+b[2]||0);return _===0?0:b[0]==="+"?-_:_})(y)}],f=function(y){var v=l[y];return v&&(v.indexOf?v:v.s.concat(v.f))},p=function(y,v){var b,_=l.meridiem;if(_){for(var E=1;E<=24;E+=1)if(y.indexOf(_(E,0,v))>-1){b=E>12;break}}else b=y===(v?"pm":"PM");return b},g={A:[o,function(y){this.afternoon=p(y,!1)}],a:[o,function(y){this.afternoon=p(y,!0)}],Q:[i,function(y){this.month=3*(y-1)+1}],S:[i,function(y){this.milliseconds=100*+y}],SS:[a,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[a,d("day")],Do:[o,function(y){var v=l.ordinal,b=y.match(/\d+/);if(this.day=b[0],v)for(var _=1;_<=31;_+=1)v(_).replace(/\[|\]/g,"")===y&&(this.day=_)}],w:[s,d("week")],ww:[a,d("week")],M:[s,d("month")],MM:[a,d("month")],MMM:[o,function(y){var v=f("months"),b=(f("monthsShort")||v.map((function(_){return _.slice(0,3)}))).indexOf(y)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[o,function(y){var v=f("months").indexOf(y)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function m(y){var v,b;v=y,b=l&&l.formats;for(var _=(y=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,M,$){var F=$&&$.toUpperCase();return M||b[$]||r[$]||b[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(A,I,D){return I||D.slice(1)}))}))).match(n),E=_.length,x=0;x-1)return new Date((R==="X"?1e3:1)*L);var B=m(R)(L),q=B.year,Y=B.month,Q=B.day,H=B.hours,J=B.minutes,Z=B.seconds,pe=B.milliseconds,re=B.zone,ce=B.week,ae=new Date,se=Q||(q||Y?1:ae.getDate()),xe=q||ae.getFullYear(),Te=0;q&&!Y||(Te=Y>0?Y-1:ae.getMonth());var Ge,ze=H||0,Xe=J||0,Le=Z||0,Re=pe||0;return re?new Date(Date.UTC(xe,Te,se,ze,Xe,Le,Re+60*re.offset*1e3)):P?new Date(Date.UTC(xe,Te,se,ze,Xe,Le,Re)):(Ge=new Date(xe,Te,se,ze,Xe,Le,Re),ce&&(Ge=z(Ge).week(ce).toDate()),Ge)}catch{return new Date("")}})(C,N,T,b),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),$&&C!=this.format(N)&&(this.$d=new Date("")),l={}}else if(N instanceof Array)for(var A=N.length,I=1;I<=A;I+=1){w[1]=N[I-1];var D=b.apply(this,w);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}I===A&&(this.$d=new Date(""))}else E.call(this,x)}}}))})(K5)),K5.exports}var U7t=z7t();const G7t=Ml(U7t);var X5={exports:{}},q7t=X5.exports,Roe;function Y7t(){return Roe||(Roe=1,(function(t,e){(function(r,n){t.exports=n()})(q7t,(function(){return function(r,n){var i=n.prototype,a=i.format;i.format=function(s){var o=this,l=this.$locale();if(!this.isValid())return a.bind(this)(s);var u=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(h){switch(h){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return l.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return l.ordinal(o.week(),"W");case"w":case"ww":return u.s(o.week(),h==="w"?1:2,"0");case"W":case"WW":return u.s(o.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return u.s(String(o.$H===0?24:o.$H),h==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1e3);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return h}}));return a.bind(this)(d)}}}))})(X5)),X5.exports}var H7t=Y7t();const V7t=Ml(H7t);var j5={exports:{}},W7t=j5.exports,Noe;function K7t(){return Noe||(Noe=1,(function(t,e){(function(r,n){t.exports=n()})(W7t,(function(){var r,n,i=1e3,a=6e4,s=36e5,o=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,d=2628e6,h=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:u,months:d,days:o,hours:s,minutes:a,seconds:i,milliseconds:1,weeks:6048e5},p=function(C){return C instanceof E},g=function(C,T,w){return new E(C,w,T.$l)},m=function(C){return n.p(C)+"s"},y=function(C){return C<0},v=function(C){return y(C)?Math.ceil(C):Math.floor(C)},b=function(C){return Math.abs(C)},_=function(C,T){return C?y(C)?{negative:!0,format:""+b(C)+T}:{negative:!1,format:""+C+T}:{negative:!1,format:""}},E=(function(){function C(w,N,O){var M=this;if(this.$d={},this.$l=O,w===void 0&&(this.$ms=0,this.parseFromMilliseconds()),N)return g(w*f[m(N)],this);if(typeof w=="number")return this.$ms=w,this.parseFromMilliseconds(),this;if(typeof w=="object")return Object.keys(w).forEach((function(A){M.$d[m(A)]=w[A]})),this.calMilliseconds(),this;if(typeof w=="string"){var $=w.match(h);if($){var F=$.slice(2).map((function(A){return A!=null?Number(A):0}));return this.$d.years=F[0],this.$d.months=F[1],this.$d.weeks=F[2],this.$d.days=F[3],this.$d.hours=F[4],this.$d.minutes=F[5],this.$d.seconds=F[6],this.calMilliseconds(),this}}return this}var T=C.prototype;return T.calMilliseconds=function(){var w=this;this.$ms=Object.keys(this.$d).reduce((function(N,O){return N+(w.$d[O]||0)*f[O]}),0)},T.parseFromMilliseconds=function(){var w=this.$ms;this.$d.years=v(w/u),w%=u,this.$d.months=v(w/d),w%=d,this.$d.days=v(w/o),w%=o,this.$d.hours=v(w/s),w%=s,this.$d.minutes=v(w/a),w%=a,this.$d.seconds=v(w/i),w%=i,this.$d.milliseconds=w},T.toISOString=function(){var w=_(this.$d.years,"Y"),N=_(this.$d.months,"M"),O=+this.$d.days||0;this.$d.weeks&&(O+=7*this.$d.weeks);var M=_(O,"D"),$=_(this.$d.hours,"H"),F=_(this.$d.minutes,"M"),A=this.$d.seconds||0;this.$d.milliseconds&&(A+=this.$d.milliseconds/1e3,A=Math.round(1e3*A)/1e3);var I=_(A,"S"),D=w.negative||N.negative||M.negative||$.negative||F.negative||I.negative,L=$.format||F.format||I.format?"T":"",R=(D?"-":"")+"P"+w.format+N.format+M.format+L+$.format+F.format+I.format;return R==="P"||R==="-P"?"P0D":R},T.toJSON=function(){return this.toISOString()},T.format=function(w){var N=w||"YYYY-MM-DDTHH:mm:ss",O={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return N.replace(l,(function(M,$){return $||String(O[M])}))},T.as=function(w){return this.$ms/f[m(w)]},T.get=function(w){var N=this.$ms,O=m(w);return O==="milliseconds"?N%=1e3:N=O==="weeks"?v(N/f[O]):this.$d[O],N||0},T.add=function(w,N,O){var M;return M=N?w*f[m(N)]:p(w)?w.$ms:g(w,this).$ms,g(this.$ms+M*(O?-1:1),this)},T.subtract=function(w,N){return this.add(w,N,!0)},T.locale=function(w){var N=this.clone();return N.$l=w,N},T.clone=function(){return g(this.$ms,this)},T.humanize=function(w){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!w)},T.valueOf=function(){return this.asMilliseconds()},T.milliseconds=function(){return this.get("milliseconds")},T.asMilliseconds=function(){return this.as("milliseconds")},T.seconds=function(){return this.get("seconds")},T.asSeconds=function(){return this.as("seconds")},T.minutes=function(){return this.get("minutes")},T.asMinutes=function(){return this.as("minutes")},T.hours=function(){return this.get("hours")},T.asHours=function(){return this.as("hours")},T.days=function(){return this.get("days")},T.asDays=function(){return this.as("days")},T.weeks=function(){return this.get("weeks")},T.asWeeks=function(){return this.as("weeks")},T.months=function(){return this.get("months")},T.asMonths=function(){return this.as("months")},T.years=function(){return this.get("years")},T.asYears=function(){return this.as("years")},C})(),x=function(C,T,w){return C.add(T.years()*w,"y").add(T.months()*w,"M").add(T.days()*w,"d").add(T.hours()*w,"h").add(T.minutes()*w,"m").add(T.seconds()*w,"s").add(T.milliseconds()*w,"ms")};return function(C,T,w){r=w,n=w().$utils(),w.duration=function(M,$){var F=w.locale();return g(M,{$l:F},$)},w.isDuration=p;var N=T.prototype.add,O=T.prototype.subtract;T.prototype.add=function(M,$){return p(M)?x(this,M,1):N.bind(this)(M,$)},T.prototype.subtract=function(M,$){return p(M)?x(this,M,-1):O.bind(this)(M,$)}}}))})(j5)),j5.exports}var X7t=K7t();const j7t=Ml(X7t);var z$=(function(){var t=S(function(F,A,I,D){for(I=I||{},D=F.length;D--;I[F[D]]=A);return I},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],n=[1,27],i=[1,28],a=[1,29],s=[1,30],o=[1,31],l=[1,32],u=[1,33],d=[1,34],h=[1,9],f=[1,10],p=[1,11],g=[1,12],m=[1,13],y=[1,14],v=[1,15],b=[1,16],_=[1,19],E=[1,20],x=[1,21],C=[1,22],T=[1,23],w=[1,25],N=[1,35],O={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:S(function(A,I,D,L,R,P,z){var B=P.length-1;switch(R){case 1:return P[B-1];case 2:this.$=[];break;case 3:P[B-1].push(P[B]),this.$=P[B-1];break;case 4:case 5:this.$=P[B];break;case 6:case 7:this.$=[];break;case 8:L.setWeekday("monday");break;case 9:L.setWeekday("tuesday");break;case 10:L.setWeekday("wednesday");break;case 11:L.setWeekday("thursday");break;case 12:L.setWeekday("friday");break;case 13:L.setWeekday("saturday");break;case 14:L.setWeekday("sunday");break;case 15:L.setWeekend("friday");break;case 16:L.setWeekend("saturday");break;case 17:L.setDateFormat(P[B].substr(11)),this.$=P[B].substr(11);break;case 18:L.enableInclusiveEndDates(),this.$=P[B].substr(18);break;case 19:L.TopAxis(),this.$=P[B].substr(8);break;case 20:L.setAxisFormat(P[B].substr(11)),this.$=P[B].substr(11);break;case 21:L.setTickInterval(P[B].substr(13)),this.$=P[B].substr(13);break;case 22:L.setExcludes(P[B].substr(9)),this.$=P[B].substr(9);break;case 23:L.setIncludes(P[B].substr(9)),this.$=P[B].substr(9);break;case 24:L.setTodayMarker(P[B].substr(12)),this.$=P[B].substr(12);break;case 27:L.setDiagramTitle(P[B].substr(6)),this.$=P[B].substr(6);break;case 28:this.$=P[B].trim(),L.setAccTitle(this.$);break;case 29:case 30:this.$=P[B].trim(),L.setAccDescription(this.$);break;case 31:L.addSection(P[B].substr(8)),this.$=P[B].substr(8);break;case 33:L.addTask(P[B-1],P[B]),this.$="task";break;case 34:this.$=P[B-1],L.setClickEvent(P[B-1],P[B],null);break;case 35:this.$=P[B-2],L.setClickEvent(P[B-2],P[B-1],P[B]);break;case 36:this.$=P[B-2],L.setClickEvent(P[B-2],P[B-1],null),L.setLink(P[B-2],P[B]);break;case 37:this.$=P[B-3],L.setClickEvent(P[B-3],P[B-2],P[B-1]),L.setLink(P[B-3],P[B]);break;case 38:this.$=P[B-2],L.setClickEvent(P[B-2],P[B],null),L.setLink(P[B-2],P[B-1]);break;case 39:this.$=P[B-3],L.setClickEvent(P[B-3],P[B-1],P[B]),L.setLink(P[B-3],P[B-2]);break;case 40:this.$=P[B-1],L.setLink(P[B-1],P[B]);break;case 41:case 47:this.$=P[B-1]+" "+P[B];break;case 42:case 43:case 45:this.$=P[B-2]+" "+P[B-1]+" "+P[B];break;case 44:case 46:this.$=P[B-3]+" "+P[B-2]+" "+P[B-1]+" "+P[B];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:n,14:i,15:a,16:s,17:o,18:l,19:18,20:u,21:d,22:h,23:f,24:p,25:g,26:m,27:y,28:v,29:b,30:_,31:E,33:x,35:C,36:T,37:24,38:w,40:N},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:r,13:n,14:i,15:a,16:s,17:o,18:l,19:18,20:u,21:d,22:h,23:f,24:p,25:g,26:m,27:y,28:v,29:b,30:_,31:E,33:x,35:C,36:T,37:24,38:w,40:N},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:S(function(A,I){if(I.recoverable)this.trace(A);else{var D=new Error(A);throw D.hash=I,D}},"parseError"),parse:S(function(A){var I=this,D=[0],L=[],R=[null],P=[],z=this.table,B="",q=0,Y=0,Q=2,H=1,J=P.slice.call(arguments,1),Z=Object.create(this.lexer),pe={yy:{}};for(var re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,re)&&(pe.yy[re]=this.yy[re]);Z.setInput(A,pe.yy),pe.yy.lexer=Z,pe.yy.parser=this,typeof Z.yylloc>"u"&&(Z.yylloc={});var ce=Z.yylloc;P.push(ce);var ae=Z.options&&Z.options.ranges;typeof pe.yy.parseError=="function"?this.parseError=pe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(Je){D.length=D.length-2*Je,R.length=R.length-Je,P.length=P.length-Je}S(se,"popStack");function xe(){var Je;return Je=L.pop()||Z.lex()||H,typeof Je!="number"&&(Je instanceof Array&&(L=Je,Je=L.pop()),Je=I.symbols_[Je]||Je),Je}S(xe,"lex");for(var Te,Ge,ze,Xe,Le={},Re,qe,Ne,ut;;){if(Ge=D[D.length-1],this.defaultActions[Ge]?ze=this.defaultActions[Ge]:((Te===null||typeof Te>"u")&&(Te=xe()),ze=z[Ge]&&z[Ge][Te]),typeof ze>"u"||!ze.length||!ze[0]){var De="";ut=[];for(Re in z[Ge])this.terminals_[Re]&&Re>Q&&ut.push("'"+this.terminals_[Re]+"'");Z.showPosition?De="Parse error on line "+(q+1)+`: `+Z.showPosition()+` Expecting `+ut.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":De="Parse error on line "+(q+1)+": Unexpected "+(Te==H?"end of input":"'"+(this.terminals_[Te]||Te)+"'"),this.parseError(De,{text:Z.match,token:this.terminals_[Te]||Te,line:Z.yylineno,loc:ce,expected:ut})}if(ze[0]instanceof Array&&ze.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ge+", token: "+Te);switch(ze[0]){case 1:D.push(Te),R.push(Z.yytext),P.push(Z.yylloc),D.push(ze[1]),Te=null,Y=Z.yyleng,B=Z.yytext,q=Z.yylineno,ce=Z.yylloc;break;case 2:if(qe=this.productions_[ze[1]][1],Le.$=R[R.length-qe],Le._$={first_line:P[P.length-(qe||1)].first_line,last_line:P[P.length-1].last_line,first_column:P[P.length-(qe||1)].first_column,last_column:P[P.length-1].last_column},ae&&(Le._$.range=[P[P.length-(qe||1)].range[0],P[P.length-1].range[1]]),Xe=this.performAction.apply(Le,[B,Y,q,pe.yy,ze[1],R,P].concat(J)),typeof Xe<"u")return Xe;qe&&(D=D.slice(0,-1*qe*2),R=R.slice(0,-1*qe),P=P.slice(0,-1*qe)),D.push(this.productions_[ze[1]][0]),R.push(Le.$),P.push(Le._$),Ne=z[D[D.length-2]][D[D.length-1]],D.push(Ne);break;case 3:return!0}}return!0},"parse")},M=(function(){var F={EOF:1,parseError:S(function(I,D){if(this.yy.parser)this.yy.parser.parseError(I,D);else throw new Error(I)},"parseError"),setInput:S(function(A,I){return this.yy=I||this.yy||{},this._input=A,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var A=this._input[0];this.yytext+=A,this.yyleng++,this.offset++,this.match+=A,this.matched+=A;var I=A.match(/(?:\r\n?|\n).*/g);return I?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),A},"input"),unput:S(function(A){var I=A.length,D=A.split(/(?:\r\n?|\n)/g);this._input=A+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-I),this.offset-=I;var L=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),D.length-1&&(this.yylineno-=D.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:D?(D.length===L.length?this.yylloc.first_column:0)+L[L.length-D.length].length-D[0].length:this.yylloc.first_column-I},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-I]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(A){this.unput(this.match.slice(A))},"less"),pastInput:S(function(){var A=this.matched.substr(0,this.matched.length-this.match.length);return(A.length>20?"...":"")+A.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var A=this.match;return A.length<20&&(A+=this._input.substr(0,20-A.length)),(A.substr(0,20)+(A.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var A=this.pastInput(),I=new Array(A.length+1).join("-");return A+this.upcomingInput()+` `+I+"^"},"showPosition"),test_match:S(function(A,I){var D,L,R;if(this.options.backtrack_lexer&&(R={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(R.yylloc.range=this.yylloc.range.slice(0))),L=A[0].match(/(?:\r\n?|\n).*/g),L&&(this.yylineno+=L.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:L?L[L.length-1].length-L[L.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+A[0].length},this.yytext+=A[0],this.match+=A[0],this.matches=A,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(A[0].length),this.matched+=A[0],D=this.performAction.call(this,this.yy,this,I,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),D)return D;if(this._backtrack){for(var P in R)this[P]=R[P];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var A,I,D,L;this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),P=0;PI[0].length)){if(I=D,L=P,this.options.backtrack_lexer){if(A=this.test_match(D,R[P]),A!==!1)return A;if(this._backtrack){I=!1;continue}else return!1}else if(!this.options.flex)break}return I?(A=this.test_match(I,R[L]),A!==!1?A:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var I=this.next();return I||this.lex()},"lex"),begin:S(function(I){this.conditionStack.push(I)},"begin"),popState:S(function(){var I=this.conditionStack.length-1;return I>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(I){return I=this.conditionStack.length-1-Math.abs(I||0),I>=0?this.conditionStack[I]:"INITIAL"},"topState"),pushState:S(function(I){this.begin(I)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(I,D,L,R){switch(L){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return F})();O.lexer=M;function $(){this.yy={}}return S($,"Parser"),$.prototype=O,O.Parser=$,new $})();z$.parser=z$;var j7t=z$;Pa.extend(B7t);Pa.extend(U7t);Pa.extend(H7t);var Ioe={friday:5,saturday:6},Zc="",JV="",eW=void 0,tW="",tx=[],rx=[],rW=new Map,nW=[],Nw=[],kb="",iW="",s7e=["active","done","crit","milestone","vert"],aW=[],Fm="",nx=!1,sW=!1,oW="sunday",Iw="saturday",U$=0,Q7t=S(function(){nW=[],Nw=[],kb="",aW=[],Q5=0,q$=void 0,Z5=void 0,ma=[],Zc="",JV="",iW="",eW=void 0,tW="",tx=[],rx=[],nx=!1,sW=!1,U$=0,rW=new Map,Fm="",oi(),oW="sunday",Iw="saturday"},"clear"),Z7t=S(function(t){Fm=t},"setDiagramId"),J7t=S(function(t){JV=t},"setAxisFormat"),eAt=S(function(){return JV},"getAxisFormat"),tAt=S(function(t){eW=t},"setTickInterval"),rAt=S(function(){return eW},"getTickInterval"),nAt=S(function(t){tW=t},"setTodayMarker"),iAt=S(function(){return tW},"getTodayMarker"),aAt=S(function(t){Zc=t},"setDateFormat"),sAt=S(function(){nx=!0},"enableInclusiveEndDates"),oAt=S(function(){return nx},"endDatesAreInclusive"),lAt=S(function(){sW=!0},"enableTopAxis"),cAt=S(function(){return sW},"topAxisEnabled"),uAt=S(function(t){iW=t},"setDisplayMode"),dAt=S(function(){return iW},"getDisplayMode"),hAt=S(function(){return Zc},"getDateFormat"),fAt=S(function(t){tx=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),pAt=S(function(){return tx},"getIncludes"),gAt=S(function(t){rx=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),mAt=S(function(){return rx},"getExcludes"),yAt=S(function(){return rW},"getLinks"),vAt=S(function(t){kb=t,nW.push(t)},"addSection"),_At=S(function(){return nW},"getSections"),bAt=S(function(){let t=Ooe();const e=10;let r=0;for(;!t&&ro))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,s]},"fixTaskDates"),G$=S(function(t,e,r){if(r=r.trim(),S(o=>{const l=o.trim();return l==="x"||l==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(r))return new Date(Number(r));const a=/^after\s+(?[\d\w- ]+)/.exec(r);if(a!==null){let o=null;for(const u of a.groups.ids.split(" ")){let d=Rg(u);d!==void 0&&(!o||d.endTime>o.endTime)&&(o=d)}if(o)return o.endTime;const l=new Date;return l.setHours(0,0,0,0),l}let s=Pa(r,e.trim(),!0);if(s.isValid())return s.toDate();{ge.debug("Invalid date:"+r),ge.debug("With date format:"+e.trim());const o=new Date(r);if(o===void 0||isNaN(o.getTime())||o.getFullYear()<-1e4||o.getFullYear()>1e4)throw new Error("Invalid date:"+r);return o}},"getStartDate"),c7e=S(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),u7e=S(function(t,e,r,n=!1){r=r.trim();const a=/^until\s+(?[\d\w- ]+)/.exec(r);if(a!==null){let d=null;for(const f of a.groups.ids.split(" ")){let p=Rg(f);p!==void 0&&(!d||p.startTime{window.open(r,"_self")}),rW.set(n,r))}),h7e(t,"clickable")},"setLink"),h7e=S(function(t,e){t.split(",").forEach(function(r){let n=Rg(r);n!==void 0&&n.classes.push(e)})},"setClass"),NAt=S(function(t,e,r){if(Ke().securityLevel!=="loose"||e===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a{Wr.runFunc(e,...n)})},"setClickFun"),f7e=S(function(t,e){aW.push(function(){const r=Fm?`${Fm}-${t}`:t,n=document.querySelector(`[id="${r}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const r=Fm?`${Fm}-${t}`:t,n=document.querySelector(`[id="${r}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},"pushFun"),IAt=S(function(t,e,r){t.split(",").forEach(function(n){NAt(n,e,r)}),h7e(t,"clickable")},"setClickEvent"),OAt=S(function(t){aW.forEach(function(e){e(t)})},"bindFunctions"),DAt={getConfig:S(()=>Ke().gantt,"getConfig"),clear:Q7t,setDateFormat:aAt,getDateFormat:hAt,enableInclusiveEndDates:sAt,endDatesAreInclusive:oAt,enableTopAxis:lAt,topAxisEnabled:cAt,setAxisFormat:J7t,getAxisFormat:eAt,setTickInterval:tAt,getTickInterval:rAt,setTodayMarker:nAt,getTodayMarker:iAt,setAccTitle:ai,getAccTitle:yi,setDiagramTitle:pi,getDiagramTitle:li,setDiagramId:Z7t,setDisplayMode:uAt,getDisplayMode:dAt,setAccDescription:vi,getAccDescription:_i,addSection:vAt,getSections:_At,getTasks:bAt,addTask:kAt,findTaskById:Rg,addTaskOrg:AAt,setIncludes:fAt,getIncludes:pAt,setExcludes:gAt,getExcludes:mAt,setClickEvent:IAt,setLink:RAt,getLinks:yAt,bindFunctions:OAt,parseDuration:c7e,isInvalidDate:o7e,setWeekday:EAt,getWeekday:SAt,setWeekend:TAt};function lW(t,e,r){let n=!0;for(;n;)n=!1,r.forEach(function(i){const a="^\\s*"+i+"\\s*$",s=new RegExp(a);t[0].match(s)&&(e[i]=!0,t.shift(1),n=!0)})}S(lW,"getTaskTags");Pa.extend(X7t);var LAt=S(function(){ge.debug("Something is calling, setConf, remove the call")},"setConf"),Doe={monday:BS,tuesday:fde,wednesday:pde,thursday:xp,friday:gde,saturday:mde,sunday:nT},MAt=S((t,e)=>{let r=[...t].map(()=>-1/0),n=[...t].sort((a,s)=>a.startTime-s.startTime||a.order-s.order),i=0;for(const a of n)for(let s=0;s=r[s]){r[s]=a.endTime,a.order=s+e,s>i&&(i=s);break}return i},"getMaxIntersections"),Gu,HL=1e4,PAt=S(function(t,e,r,n){const i=Ke().gantt;n.db.setDiagramId(e);const a=Ke().securityLevel;let s;a==="sandbox"&&(s=At("#i"+e));const o=At(a==="sandbox"?s.nodes()[0].contentDocument.body:"body"),l=a==="sandbox"?s.nodes()[0].contentDocument:document,u=l.getElementById(e);Gu=u.parentElement.offsetWidth,Gu===void 0&&(Gu=1200),i.useWidth!==void 0&&(Gu=i.useWidth);const d=n.db.getTasks();let h=[];for(const N of d)h.push(N.type);h=w(h);const f={};let p=2*i.topPadding;if(n.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const N={};for(const M of d)N[M.section]===void 0?N[M.section]=[M]:N[M.section].push(M);let O=0;for(const M of Object.keys(N)){const $=MAt(N[M],O)+1;O+=$,p+=$*(i.barHeight+i.barGap),f[M]=$}}else{p+=d.length*(i.barHeight+i.barGap);for(const N of h)f[N]=d.filter(O=>O.type===N).length}u.setAttribute("viewBox","0 0 "+Gu+" "+p);const g=o.select(`[id="${e}"]`),m=Qqe().domain([iFe(d,function(N){return N.startTime}),nFe(d,function(N){return N.endTime})]).rangeRound([0,Gu-i.leftPadding-i.rightPadding]);function y(N,O){const M=N.startTime,$=O.startTime;let F=0;return M>$?F=1:M<$&&(F=-1),F}S(y,"taskCompare"),d.sort(y),v(d,Gu,p),ua(g,p,Gu,i.useMaxWidth),g.append("text").text(n.db.getDiagramTitle()).attr("x",Gu/2).attr("y",i.titleTopMargin).attr("class","titleText");function v(N,O,M){const $=i.barHeight,F=$+i.barGap,A=i.topPadding,I=i.leftPadding,D=K_().domain([0,h.length]).range(["#00B9FA","#F95002"]).interpolate(kze);_(F,A,I,O,M,N,n.db.getExcludes(),n.db.getIncludes()),x(I,A,O,M),b(N,F,A,I,$,D,O),C(F,A),T(I,A,O,M)}S(v,"makeGantt");function b(N,O,M,$,F,A,I){N.sort((B,q)=>B.vert===q.vert?0:B.vert?1:-1);const L=[...new Set(N.map(B=>B.order))].map(B=>N.find(q=>q.order===B));g.append("g").selectAll("rect").data(L).enter().append("rect").attr("x",0).attr("y",function(B,q){return q=B.order,q*O+M-2}).attr("width",function(){return I-i.rightPadding/2}).attr("height",O).attr("class",function(B){for(const[q,Y]of h.entries())if(B.type===Y)return"section section"+q%i.numberSectionStyles;return"section section0"}).enter();const R=g.append("g").selectAll("rect").data(N).enter(),P=n.db.getLinks();if(R.append("rect").attr("id",function(B){return e+"-"+B.id}).attr("rx",3).attr("ry",3).attr("x",function(B){return B.milestone?m(B.startTime)+$+.5*(m(B.endTime)-m(B.startTime))-.5*F:m(B.startTime)+$}).attr("y",function(B,q){return q=B.order,B.vert?i.gridLineStartPadding:q*O+M}).attr("width",function(B){return B.milestone?F:B.vert?.08*F:m(B.renderEndTime||B.endTime)-m(B.startTime)}).attr("height",function(B){return B.vert?d.length*(i.barHeight+i.barGap)+i.barHeight*2:F}).attr("transform-origin",function(B,q){return q=B.order,(m(B.startTime)+$+.5*(m(B.endTime)-m(B.startTime))).toString()+"px "+(q*O+M+.5*F).toString()+"px"}).attr("class",function(B){const q="task";let Y="";B.classes.length>0&&(Y=B.classes.join(" "));let Q=0;for(const[J,Z]of h.entries())B.type===Z&&(Q=J%i.numberSectionStyles);let H="";return B.active?B.crit?H+=" activeCrit":H=" active":B.done?B.crit?H=" doneCrit":H=" done":B.crit&&(H+=" crit"),H.length===0&&(H=" task"),B.milestone&&(H=" milestone "+H),B.vert&&(H=" vert "+H),H+=Q,H+=" "+Y,q+H}),R.append("text").attr("id",function(B){return e+"-"+B.id+"-text"}).text(function(B){return B.task}).attr("font-size",i.fontSize).attr("x",function(B){let q=m(B.startTime),Y=m(B.renderEndTime||B.endTime);if(B.milestone&&(q+=.5*(m(B.endTime)-m(B.startTime))-.5*F,Y=q+F),B.vert)return m(B.startTime)+$;const Q=this.getBBox().width;return Q>Y-q?Y+Q+1.5*i.leftPadding>I?q+$-5:Y+$+5:(Y-q)/2+q+$}).attr("y",function(B,q){return B.vert?i.gridLineStartPadding+d.length*(i.barHeight+i.barGap)+60:(q=B.order,q*O+i.barHeight/2+(i.fontSize/2-2)+M)}).attr("text-height",F).attr("class",function(B){const q=m(B.startTime);let Y=m(B.endTime);B.milestone&&(Y=q+F);const Q=this.getBBox().width;let H="";B.classes.length>0&&(H=B.classes.join(" "));let J=0;for(const[pe,re]of h.entries())B.type===re&&(J=pe%i.numberSectionStyles);let Z="";return B.active&&(B.crit?Z="activeCritText"+J:Z="activeText"+J),B.done?B.crit?Z=Z+" doneCritText"+J:Z=Z+" doneText"+J:B.crit&&(Z=Z+" critText"+J),B.milestone&&(Z+=" milestoneText"),B.vert&&(Z+=" vertText"),Q>Y-q?Y+Q+1.5*i.leftPadding>I?H+" taskTextOutsideLeft taskTextOutside"+J+" "+Z:H+" taskTextOutsideRight taskTextOutside"+J+" "+Z+" width-"+Q:H+" taskText taskText"+J+" "+Z+" width-"+Q}),Ke().securityLevel==="sandbox"){let B;B=At("#i"+e);const q=B.nodes()[0].contentDocument;R.filter(function(Y){return P.has(Y.id)}).each(function(Y){var Q=q.querySelector("#"+CSS.escape(e+"-"+Y.id)),H=q.querySelector("#"+CSS.escape(e+"-"+Y.id+"-text"));const J=Q.parentNode;var Z=q.createElement("a");Z.setAttribute("xlink:href",P.get(Y.id)),Z.setAttribute("target","_top"),J.appendChild(Z),Z.appendChild(Q),Z.appendChild(H)})}}S(b,"drawRects");function _(N,O,M,$,F,A,I,D){if(I.length===0&&D.length===0)return;let L,R;for(const{startTime:Q,endTime:H}of A)(L===void 0||QR)&&(R=H);if(!L||!R)return;if(Pa(R).diff(Pa(L),"year")>5){ge.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const P=n.db.getDateFormat(),z=[];let B=null,q=Pa(L);for(;q.valueOf()<=R;)n.db.isInvalidDate(q,P,I,D)?B?B.end=q:B={start:q,end:q}:B&&(z.push(B),B=null),q=q.add(1,"d");g.append("g").selectAll("rect").data(z).enter().append("rect").attr("id",Q=>e+"-exclude-"+Q.start.format("YYYY-MM-DD")).attr("x",Q=>m(Q.start.startOf("day"))+M).attr("y",i.gridLineStartPadding).attr("width",Q=>m(Q.end.endOf("day"))-m(Q.start.startOf("day"))).attr("height",F-O-i.gridLineStartPadding).attr("transform-origin",function(Q,H){return(m(Q.start)+M+.5*(m(Q.end)-m(Q.start))).toString()+"px "+(H*N+.5*F).toString()+"px"}).attr("class","exclude-range")}S(_,"drawExcludeDays");function E(N,O,M,$){if(M<=0||N>O)return 1/0;const F=O-N,A=Pa.duration({[$??"day"]:M}).asMilliseconds();return A<=0?1/0:Math.ceil(F/A)}S(E,"getEstimatedTickCount");function x(N,O,M,$){const F=n.db.getDateFormat(),A=n.db.getAxisFormat();let I;A?I=A:F==="D"?I="%d":I=i.axisFormat??"%Y-%m-%d";let D=fFe(m).tickSize(-$+O+i.gridLineStartPadding).tickFormat(BC(I));const R=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||i.tickInterval);if(R!==null){const P=parseInt(R[1],10);if(isNaN(P)||P<=0)ge.warn(`Invalid tick interval value: "${R[1]}". Skipping custom tick interval.`);else{const z=R[2],B=n.db.getWeekday()||i.weekday,q=m.domain(),Y=q[0],Q=q[1],H=E(Y,Q,P,z);if(H>HL)ge.warn(`The tick interval "${P}${z}" would generate ${H} ticks, which exceeds the maximum allowed (${HL}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(z){case"millisecond":D.ticks(X_.every(P));break;case"second":D.ticks(Pd.every(P));break;case"minute":D.ticks(MS.every(P));break;case"hour":D.ticks(PS.every(P));break;case"day":D.ticks(Tp.every(P));break;case"week":D.ticks(Doe[B].every(P));break;case"month":D.ticks(FS.every(P));break}}}if(g.append("g").attr("class","grid").attr("transform","translate("+N+", "+($-50)+")").call(D).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),n.db.topAxisEnabled()||i.topAxis){let P=hFe(m).tickSize(-$+O+i.gridLineStartPadding).tickFormat(BC(I));if(R!==null){const z=parseInt(R[1],10);if(isNaN(z)||z<=0)ge.warn(`Invalid tick interval value: "${R[1]}". Skipping custom tick interval.`);else{const B=R[2],q=n.db.getWeekday()||i.weekday,Y=m.domain(),Q=Y[0],H=Y[1];if(E(Q,H,z,B)<=HL)switch(B){case"millisecond":P.ticks(X_.every(z));break;case"second":P.ticks(Pd.every(z));break;case"minute":P.ticks(MS.every(z));break;case"hour":P.ticks(PS.every(z));break;case"day":P.ticks(Tp.every(z));break;case"week":P.ticks(Doe[q].every(z));break;case"month":P.ticks(FS.every(z));break}}}g.append("g").attr("class","grid").attr("transform","translate("+N+", "+O+")").call(P).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}S(x,"makeGrid");function C(N,O){let M=0;const $=Object.keys(f).map(F=>[F,f[F]]);g.append("g").selectAll("text").data($).enter().append(function(F){const A=F[0].split(qt.lineBreakRegex),I=-(A.length-1)/2,D=l.createElementNS("http://www.w3.org/2000/svg","text");D.setAttribute("dy",I+"em");for(const[L,R]of A.entries()){const P=l.createElementNS("http://www.w3.org/2000/svg","tspan");P.setAttribute("alignment-baseline","central"),P.setAttribute("x","10"),L>0&&P.setAttribute("dy","1em"),P.textContent=R,D.appendChild(P)}return D}).attr("x",10).attr("y",function(F,A){if(A>0)for(let I=0;I` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var I=this.next();return I||this.lex()},"lex"),begin:S(function(I){this.conditionStack.push(I)},"begin"),popState:S(function(){var I=this.conditionStack.length-1;return I>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(I){return I=this.conditionStack.length-1-Math.abs(I||0),I>=0?this.conditionStack[I]:"INITIAL"},"topState"),pushState:S(function(I){this.begin(I)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(I,D,L,R){switch(L){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return F})();O.lexer=M;function $(){this.yy={}}return S($,"Parser"),$.prototype=O,O.Parser=$,new $})();z$.parser=z$;var Q7t=z$;Pa.extend(F7t);Pa.extend(G7t);Pa.extend(V7t);var Ioe={friday:5,saturday:6},Zc="",JV="",eW=void 0,tW="",tx=[],rx=[],rW=new Map,nW=[],Nw=[],kb="",iW="",s7e=["active","done","crit","milestone","vert"],aW=[],Fm="",nx=!1,sW=!1,oW="sunday",Iw="saturday",U$=0,Z7t=S(function(){nW=[],Nw=[],kb="",aW=[],Q5=0,q$=void 0,Z5=void 0,ma=[],Zc="",JV="",iW="",eW=void 0,tW="",tx=[],rx=[],nx=!1,sW=!1,U$=0,rW=new Map,Fm="",oi(),oW="sunday",Iw="saturday"},"clear"),J7t=S(function(t){Fm=t},"setDiagramId"),eAt=S(function(t){JV=t},"setAxisFormat"),tAt=S(function(){return JV},"getAxisFormat"),rAt=S(function(t){eW=t},"setTickInterval"),nAt=S(function(){return eW},"getTickInterval"),iAt=S(function(t){tW=t},"setTodayMarker"),aAt=S(function(){return tW},"getTodayMarker"),sAt=S(function(t){Zc=t},"setDateFormat"),oAt=S(function(){nx=!0},"enableInclusiveEndDates"),lAt=S(function(){return nx},"endDatesAreInclusive"),cAt=S(function(){sW=!0},"enableTopAxis"),uAt=S(function(){return sW},"topAxisEnabled"),dAt=S(function(t){iW=t},"setDisplayMode"),hAt=S(function(){return iW},"getDisplayMode"),fAt=S(function(){return Zc},"getDateFormat"),pAt=S(function(t){tx=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),gAt=S(function(){return tx},"getIncludes"),mAt=S(function(t){rx=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),yAt=S(function(){return rx},"getExcludes"),vAt=S(function(){return rW},"getLinks"),_At=S(function(t){kb=t,nW.push(t)},"addSection"),bAt=S(function(){return nW},"getSections"),EAt=S(function(){let t=Ooe();const e=10;let r=0;for(;!t&&ro))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,s]},"fixTaskDates"),G$=S(function(t,e,r){if(r=r.trim(),S(o=>{const l=o.trim();return l==="x"||l==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(r))return new Date(Number(r));const a=/^after\s+(?[\d\w- ]+)/.exec(r);if(a!==null){let o=null;for(const u of a.groups.ids.split(" ")){let d=Rg(u);d!==void 0&&(!o||d.endTime>o.endTime)&&(o=d)}if(o)return o.endTime;const l=new Date;return l.setHours(0,0,0,0),l}let s=Pa(r,e.trim(),!0);if(s.isValid())return s.toDate();{ge.debug("Invalid date:"+r),ge.debug("With date format:"+e.trim());const o=new Date(r);if(o===void 0||isNaN(o.getTime())||o.getFullYear()<-1e4||o.getFullYear()>1e4)throw new Error("Invalid date:"+r);return o}},"getStartDate"),c7e=S(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),u7e=S(function(t,e,r,n=!1){r=r.trim();const a=/^until\s+(?[\d\w- ]+)/.exec(r);if(a!==null){let d=null;for(const f of a.groups.ids.split(" ")){let p=Rg(f);p!==void 0&&(!d||p.startTime{window.open(r,"_self")}),rW.set(n,r))}),h7e(t,"clickable")},"setLink"),h7e=S(function(t,e){t.split(",").forEach(function(r){let n=Rg(r);n!==void 0&&n.classes.push(e)})},"setClass"),IAt=S(function(t,e,r){if(Ke().securityLevel!=="loose"||e===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a{Wr.runFunc(e,...n)})},"setClickFun"),f7e=S(function(t,e){aW.push(function(){const r=Fm?`${Fm}-${t}`:t,n=document.querySelector(`[id="${r}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const r=Fm?`${Fm}-${t}`:t,n=document.querySelector(`[id="${r}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},"pushFun"),OAt=S(function(t,e,r){t.split(",").forEach(function(n){IAt(n,e,r)}),h7e(t,"clickable")},"setClickEvent"),DAt=S(function(t){aW.forEach(function(e){e(t)})},"bindFunctions"),LAt={getConfig:S(()=>Ke().gantt,"getConfig"),clear:Z7t,setDateFormat:sAt,getDateFormat:fAt,enableInclusiveEndDates:oAt,endDatesAreInclusive:lAt,enableTopAxis:cAt,topAxisEnabled:uAt,setAxisFormat:eAt,getAxisFormat:tAt,setTickInterval:rAt,getTickInterval:nAt,setTodayMarker:iAt,getTodayMarker:aAt,setAccTitle:ai,getAccTitle:yi,setDiagramTitle:pi,getDiagramTitle:li,setDiagramId:J7t,setDisplayMode:dAt,getDisplayMode:hAt,setAccDescription:vi,getAccDescription:_i,addSection:_At,getSections:bAt,getTasks:EAt,addTask:AAt,findTaskById:Rg,addTaskOrg:RAt,setIncludes:pAt,getIncludes:gAt,setExcludes:mAt,getExcludes:yAt,setClickEvent:OAt,setLink:NAt,getLinks:vAt,bindFunctions:DAt,parseDuration:c7e,isInvalidDate:o7e,setWeekday:SAt,getWeekday:TAt,setWeekend:xAt};function lW(t,e,r){let n=!0;for(;n;)n=!1,r.forEach(function(i){const a="^\\s*"+i+"\\s*$",s=new RegExp(a);t[0].match(s)&&(e[i]=!0,t.shift(1),n=!0)})}S(lW,"getTaskTags");Pa.extend(j7t);var MAt=S(function(){ge.debug("Something is calling, setConf, remove the call")},"setConf"),Doe={monday:BS,tuesday:fde,wednesday:pde,thursday:xp,friday:gde,saturday:mde,sunday:nT},PAt=S((t,e)=>{let r=[...t].map(()=>-1/0),n=[...t].sort((a,s)=>a.startTime-s.startTime||a.order-s.order),i=0;for(const a of n)for(let s=0;s=r[s]){r[s]=a.endTime,a.order=s+e,s>i&&(i=s);break}return i},"getMaxIntersections"),Gu,HL=1e4,BAt=S(function(t,e,r,n){const i=Ke().gantt;n.db.setDiagramId(e);const a=Ke().securityLevel;let s;a==="sandbox"&&(s=At("#i"+e));const o=At(a==="sandbox"?s.nodes()[0].contentDocument.body:"body"),l=a==="sandbox"?s.nodes()[0].contentDocument:document,u=l.getElementById(e);Gu=u.parentElement.offsetWidth,Gu===void 0&&(Gu=1200),i.useWidth!==void 0&&(Gu=i.useWidth);const d=n.db.getTasks();let h=[];for(const N of d)h.push(N.type);h=w(h);const f={};let p=2*i.topPadding;if(n.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const N={};for(const M of d)N[M.section]===void 0?N[M.section]=[M]:N[M.section].push(M);let O=0;for(const M of Object.keys(N)){const $=PAt(N[M],O)+1;O+=$,p+=$*(i.barHeight+i.barGap),f[M]=$}}else{p+=d.length*(i.barHeight+i.barGap);for(const N of h)f[N]=d.filter(O=>O.type===N).length}u.setAttribute("viewBox","0 0 "+Gu+" "+p);const g=o.select(`[id="${e}"]`),m=Zqe().domain([aFe(d,function(N){return N.startTime}),iFe(d,function(N){return N.endTime})]).rangeRound([0,Gu-i.leftPadding-i.rightPadding]);function y(N,O){const M=N.startTime,$=O.startTime;let F=0;return M>$?F=1:M<$&&(F=-1),F}S(y,"taskCompare"),d.sort(y),v(d,Gu,p),ua(g,p,Gu,i.useMaxWidth),g.append("text").text(n.db.getDiagramTitle()).attr("x",Gu/2).attr("y",i.titleTopMargin).attr("class","titleText");function v(N,O,M){const $=i.barHeight,F=$+i.barGap,A=i.topPadding,I=i.leftPadding,D=K_().domain([0,h.length]).range(["#00B9FA","#F95002"]).interpolate(Aze);_(F,A,I,O,M,N,n.db.getExcludes(),n.db.getIncludes()),x(I,A,O,M),b(N,F,A,I,$,D,O),C(F,A),T(I,A,O,M)}S(v,"makeGantt");function b(N,O,M,$,F,A,I){N.sort((B,q)=>B.vert===q.vert?0:B.vert?1:-1);const L=[...new Set(N.map(B=>B.order))].map(B=>N.find(q=>q.order===B));g.append("g").selectAll("rect").data(L).enter().append("rect").attr("x",0).attr("y",function(B,q){return q=B.order,q*O+M-2}).attr("width",function(){return I-i.rightPadding/2}).attr("height",O).attr("class",function(B){for(const[q,Y]of h.entries())if(B.type===Y)return"section section"+q%i.numberSectionStyles;return"section section0"}).enter();const R=g.append("g").selectAll("rect").data(N).enter(),P=n.db.getLinks();if(R.append("rect").attr("id",function(B){return e+"-"+B.id}).attr("rx",3).attr("ry",3).attr("x",function(B){return B.milestone?m(B.startTime)+$+.5*(m(B.endTime)-m(B.startTime))-.5*F:m(B.startTime)+$}).attr("y",function(B,q){return q=B.order,B.vert?i.gridLineStartPadding:q*O+M}).attr("width",function(B){return B.milestone?F:B.vert?.08*F:m(B.renderEndTime||B.endTime)-m(B.startTime)}).attr("height",function(B){return B.vert?d.length*(i.barHeight+i.barGap)+i.barHeight*2:F}).attr("transform-origin",function(B,q){return q=B.order,(m(B.startTime)+$+.5*(m(B.endTime)-m(B.startTime))).toString()+"px "+(q*O+M+.5*F).toString()+"px"}).attr("class",function(B){const q="task";let Y="";B.classes.length>0&&(Y=B.classes.join(" "));let Q=0;for(const[J,Z]of h.entries())B.type===Z&&(Q=J%i.numberSectionStyles);let H="";return B.active?B.crit?H+=" activeCrit":H=" active":B.done?B.crit?H=" doneCrit":H=" done":B.crit&&(H+=" crit"),H.length===0&&(H=" task"),B.milestone&&(H=" milestone "+H),B.vert&&(H=" vert "+H),H+=Q,H+=" "+Y,q+H}),R.append("text").attr("id",function(B){return e+"-"+B.id+"-text"}).text(function(B){return B.task}).attr("font-size",i.fontSize).attr("x",function(B){let q=m(B.startTime),Y=m(B.renderEndTime||B.endTime);if(B.milestone&&(q+=.5*(m(B.endTime)-m(B.startTime))-.5*F,Y=q+F),B.vert)return m(B.startTime)+$;const Q=this.getBBox().width;return Q>Y-q?Y+Q+1.5*i.leftPadding>I?q+$-5:Y+$+5:(Y-q)/2+q+$}).attr("y",function(B,q){return B.vert?i.gridLineStartPadding+d.length*(i.barHeight+i.barGap)+60:(q=B.order,q*O+i.barHeight/2+(i.fontSize/2-2)+M)}).attr("text-height",F).attr("class",function(B){const q=m(B.startTime);let Y=m(B.endTime);B.milestone&&(Y=q+F);const Q=this.getBBox().width;let H="";B.classes.length>0&&(H=B.classes.join(" "));let J=0;for(const[pe,re]of h.entries())B.type===re&&(J=pe%i.numberSectionStyles);let Z="";return B.active&&(B.crit?Z="activeCritText"+J:Z="activeText"+J),B.done?B.crit?Z=Z+" doneCritText"+J:Z=Z+" doneText"+J:B.crit&&(Z=Z+" critText"+J),B.milestone&&(Z+=" milestoneText"),B.vert&&(Z+=" vertText"),Q>Y-q?Y+Q+1.5*i.leftPadding>I?H+" taskTextOutsideLeft taskTextOutside"+J+" "+Z:H+" taskTextOutsideRight taskTextOutside"+J+" "+Z+" width-"+Q:H+" taskText taskText"+J+" "+Z+" width-"+Q}),Ke().securityLevel==="sandbox"){let B;B=At("#i"+e);const q=B.nodes()[0].contentDocument;R.filter(function(Y){return P.has(Y.id)}).each(function(Y){var Q=q.querySelector("#"+CSS.escape(e+"-"+Y.id)),H=q.querySelector("#"+CSS.escape(e+"-"+Y.id+"-text"));const J=Q.parentNode;var Z=q.createElement("a");Z.setAttribute("xlink:href",P.get(Y.id)),Z.setAttribute("target","_top"),J.appendChild(Z),Z.appendChild(Q),Z.appendChild(H)})}}S(b,"drawRects");function _(N,O,M,$,F,A,I,D){if(I.length===0&&D.length===0)return;let L,R;for(const{startTime:Q,endTime:H}of A)(L===void 0||QR)&&(R=H);if(!L||!R)return;if(Pa(R).diff(Pa(L),"year")>5){ge.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const P=n.db.getDateFormat(),z=[];let B=null,q=Pa(L);for(;q.valueOf()<=R;)n.db.isInvalidDate(q,P,I,D)?B?B.end=q:B={start:q,end:q}:B&&(z.push(B),B=null),q=q.add(1,"d");g.append("g").selectAll("rect").data(z).enter().append("rect").attr("id",Q=>e+"-exclude-"+Q.start.format("YYYY-MM-DD")).attr("x",Q=>m(Q.start.startOf("day"))+M).attr("y",i.gridLineStartPadding).attr("width",Q=>m(Q.end.endOf("day"))-m(Q.start.startOf("day"))).attr("height",F-O-i.gridLineStartPadding).attr("transform-origin",function(Q,H){return(m(Q.start)+M+.5*(m(Q.end)-m(Q.start))).toString()+"px "+(H*N+.5*F).toString()+"px"}).attr("class","exclude-range")}S(_,"drawExcludeDays");function E(N,O,M,$){if(M<=0||N>O)return 1/0;const F=O-N,A=Pa.duration({[$??"day"]:M}).asMilliseconds();return A<=0?1/0:Math.ceil(F/A)}S(E,"getEstimatedTickCount");function x(N,O,M,$){const F=n.db.getDateFormat(),A=n.db.getAxisFormat();let I;A?I=A:F==="D"?I="%d":I=i.axisFormat??"%Y-%m-%d";let D=pFe(m).tickSize(-$+O+i.gridLineStartPadding).tickFormat(BC(I));const R=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||i.tickInterval);if(R!==null){const P=parseInt(R[1],10);if(isNaN(P)||P<=0)ge.warn(`Invalid tick interval value: "${R[1]}". Skipping custom tick interval.`);else{const z=R[2],B=n.db.getWeekday()||i.weekday,q=m.domain(),Y=q[0],Q=q[1],H=E(Y,Q,P,z);if(H>HL)ge.warn(`The tick interval "${P}${z}" would generate ${H} ticks, which exceeds the maximum allowed (${HL}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(z){case"millisecond":D.ticks(X_.every(P));break;case"second":D.ticks(Pd.every(P));break;case"minute":D.ticks(MS.every(P));break;case"hour":D.ticks(PS.every(P));break;case"day":D.ticks(Tp.every(P));break;case"week":D.ticks(Doe[B].every(P));break;case"month":D.ticks(FS.every(P));break}}}if(g.append("g").attr("class","grid").attr("transform","translate("+N+", "+($-50)+")").call(D).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),n.db.topAxisEnabled()||i.topAxis){let P=fFe(m).tickSize(-$+O+i.gridLineStartPadding).tickFormat(BC(I));if(R!==null){const z=parseInt(R[1],10);if(isNaN(z)||z<=0)ge.warn(`Invalid tick interval value: "${R[1]}". Skipping custom tick interval.`);else{const B=R[2],q=n.db.getWeekday()||i.weekday,Y=m.domain(),Q=Y[0],H=Y[1];if(E(Q,H,z,B)<=HL)switch(B){case"millisecond":P.ticks(X_.every(z));break;case"second":P.ticks(Pd.every(z));break;case"minute":P.ticks(MS.every(z));break;case"hour":P.ticks(PS.every(z));break;case"day":P.ticks(Tp.every(z));break;case"week":P.ticks(Doe[q].every(z));break;case"month":P.ticks(FS.every(z));break}}}g.append("g").attr("class","grid").attr("transform","translate("+N+", "+O+")").call(P).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}S(x,"makeGrid");function C(N,O){let M=0;const $=Object.keys(f).map(F=>[F,f[F]]);g.append("g").selectAll("text").data($).enter().append(function(F){const A=F[0].split(qt.lineBreakRegex),I=-(A.length-1)/2,D=l.createElementNS("http://www.w3.org/2000/svg","text");D.setAttribute("dy",I+"em");for(const[L,R]of A.entries()){const P=l.createElementNS("http://www.w3.org/2000/svg","tspan");P.setAttribute("alignment-baseline","central"),P.setAttribute("x","10"),L>0&&P.setAttribute("dy","1em"),P.textContent=R,D.appendChild(P)}return D}).attr("x",10).attr("y",function(F,A){if(A>0)for(let I=0;I` .mermaid-main-font { font-family: ${t.fontFamily}; } @@ -5795,8 +5795,8 @@ Expecting `+ut.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":De="Parse erro fill: ${t.titleColor||t.textColor}; font-family: ${t.fontFamily}; } -`,"getStyles"),$At=FAt,zAt={parser:j7t,db:DAt,renderer:BAt,styles:$At};const UAt=Object.freeze(Object.defineProperty({__proto__:null,diagram:zAt},Symbol.toStringTag,{value:"Module"}));var GAt={parse:S(async t=>{const e=await _c("info",t);ge.debug(e)},"parse")},qAt={version:"11.15.0"},YAt=S(()=>qAt.version,"getVersion"),HAt={getVersion:YAt},VAt=S((t,e,r)=>{ge.debug(`rendering info diagram -`+t);const n=To(e);ua(n,100,400,!0),n.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},"draw"),WAt={draw:VAt},KAt={parser:GAt,db:HAt,renderer:WAt};const XAt=Object.freeze(Object.defineProperty({__proto__:null,diagram:KAt},Symbol.toStringTag,{value:"Module"}));var jAt=on.pie,cW={sections:new Map,showData:!1},Ow=cW.sections,uW=cW.showData,QAt=structuredClone(jAt),ZAt=S(()=>structuredClone(QAt),"getConfig"),JAt=S(()=>{Ow=new Map,uW=cW.showData,oi()},"clear"),e8t=S(({label:t,value:e})=>{if(e<0)throw new Error(`"${t}" has invalid value: ${e}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);Ow.has(t)||(Ow.set(t,e),ge.debug(`added new section: ${t}, with value: ${e}`))},"addSection"),t8t=S(()=>Ow,"getSections"),r8t=S(t=>{uW=t},"setShowData"),n8t=S(()=>uW,"getShowData"),p7e={getConfig:ZAt,clear:JAt,setDiagramTitle:pi,getDiagramTitle:li,setAccTitle:ai,getAccTitle:yi,setAccDescription:vi,getAccDescription:_i,addSection:e8t,getSections:t8t,setShowData:r8t,getShowData:n8t},i8t=S((t,e)=>{wu(t,e),e.setShowData(t.showData),t.sections.map(e.addSection)},"populateDb"),a8t={parse:S(async t=>{const e=await _c("pie",t);ge.debug(e),i8t(e,p7e)},"parse")},s8t=S(t=>` +`,"getStyles"),zAt=$At,UAt={parser:Q7t,db:LAt,renderer:FAt,styles:zAt};const GAt=Object.freeze(Object.defineProperty({__proto__:null,diagram:UAt},Symbol.toStringTag,{value:"Module"}));var qAt={parse:S(async t=>{const e=await _c("info",t);ge.debug(e)},"parse")},YAt={version:"11.15.0"},HAt=S(()=>YAt.version,"getVersion"),VAt={getVersion:HAt},WAt=S((t,e,r)=>{ge.debug(`rendering info diagram +`+t);const n=To(e);ua(n,100,400,!0),n.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},"draw"),KAt={draw:WAt},XAt={parser:qAt,db:VAt,renderer:KAt};const jAt=Object.freeze(Object.defineProperty({__proto__:null,diagram:XAt},Symbol.toStringTag,{value:"Module"}));var QAt=on.pie,cW={sections:new Map,showData:!1},Ow=cW.sections,uW=cW.showData,ZAt=structuredClone(QAt),JAt=S(()=>structuredClone(ZAt),"getConfig"),e8t=S(()=>{Ow=new Map,uW=cW.showData,oi()},"clear"),t8t=S(({label:t,value:e})=>{if(e<0)throw new Error(`"${t}" has invalid value: ${e}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);Ow.has(t)||(Ow.set(t,e),ge.debug(`added new section: ${t}, with value: ${e}`))},"addSection"),r8t=S(()=>Ow,"getSections"),n8t=S(t=>{uW=t},"setShowData"),i8t=S(()=>uW,"getShowData"),p7e={getConfig:JAt,clear:e8t,setDiagramTitle:pi,getDiagramTitle:li,setAccTitle:ai,getAccTitle:yi,setAccDescription:vi,getAccDescription:_i,addSection:t8t,getSections:r8t,setShowData:n8t,getShowData:i8t},a8t=S((t,e)=>{wu(t,e),e.setShowData(t.showData),t.sections.map(e.addSection)},"populateDb"),s8t={parse:S(async t=>{const e=await _c("pie",t);ge.debug(e),a8t(e,p7e)},"parse")},o8t=S(t=>` .pieCircle{ stroke: ${t.pieStrokeColor}; stroke-width : ${t.pieStrokeWidth}; @@ -5824,25 +5824,25 @@ Expecting `+ut.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":De="Parse erro font-family: ${t.fontFamily}; font-size: ${t.pieLegendTextSize}; } -`,"getStyles"),o8t=s8t,l8t=S(t=>{const e=[...t.values()].reduce((i,a)=>i+a,0),r=[...t.entries()].map(([i,a])=>({label:i,value:a})).filter(i=>i.value/e*100>=1);return hYe().value(i=>i.value).sort(null)(r)},"createPieArcs"),c8t=S((t,e,r,n)=>{ge.debug(`rendering pie chart -`+t);const i=n.db,a=Ke(),s=$i(i.getConfig(),a.pie),o=40,l=18,u=4,d=450,h=d,f=To(e),p=f.append("g");p.attr("transform","translate("+h/2+","+d/2+")");const{themeVariables:g}=a;let[m]=Y0(g.pieOuterStrokeWidth);m??=2;const y=s.textPosition,v=Math.min(h,d)/2-o,b=Q_().innerRadius(0).outerRadius(v),_=Q_().innerRadius(v*y).outerRadius(v*y);p.append("circle").attr("cx",0).attr("cy",0).attr("r",v+m/2).attr("class","pieOuterCircle");const E=i.getSections(),x=l8t(E),C=[g.pie1,g.pie2,g.pie3,g.pie4,g.pie5,g.pie6,g.pie7,g.pie8,g.pie9,g.pie10,g.pie11,g.pie12];let T=0;E.forEach(B=>{T+=B});const w=x.filter(B=>(B.data.value/T*100).toFixed(0)!=="0"),N=hp(C).domain([...E.keys()]);p.selectAll("mySlices").data(w).enter().append("path").attr("d",b).attr("fill",B=>N(B.data.label)).attr("class","pieCircle"),p.selectAll("mySlices").data(w).enter().append("text").text(B=>(B.data.value/T*100).toFixed(0)+"%").attr("transform",B=>"translate("+_.centroid(B)+")").style("text-anchor","middle").attr("class","slice");const O=p.append("text").text(i.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText"),M=[...E.entries()].map(([B,q])=>({label:B,value:q})),$=p.selectAll(".legend").data(M).enter().append("g").attr("class","legend").attr("transform",(B,q)=>{const Y=l+u,Q=Y*M.length/2,H=12*l,J=q*Y-Q;return"translate("+H+","+J+")"});$.append("rect").attr("width",l).attr("height",l).style("fill",B=>N(B.label)).style("stroke",B=>N(B.label)),$.append("text").attr("x",l+u).attr("y",l-u).text(B=>i.getShowData()?`${B.label} [${B.value}]`:B.label);const F=Math.max(...$.selectAll("text").nodes().map(B=>B?.getBoundingClientRect().width??0)),A=h+o+l+u+F,I=O.node()?.getBoundingClientRect().width??0,D=h/2-I/2,L=h/2+I/2,R=Math.min(0,D),z=Math.max(A,L)-R;f.attr("viewBox",`${R} 0 ${z} ${d}`),ua(f,d,z,s.useMaxWidth)},"draw"),u8t={draw:c8t},d8t={parser:a8t,db:p7e,renderer:u8t,styles:o8t};const h8t=Object.freeze(Object.defineProperty({__proto__:null,diagram:d8t},Symbol.toStringTag,{value:"Module"}));var Y$=(function(){var t=S(function(G,ie,j,V){for(j=j||{},V=G.length;V--;j[G[V]]=ie);return j},"o"),e=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[1,7],s=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],o=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],h=[1,36],f=[1,38],p=[1,35],g=[1,43],m=[1,41],y=[1,45],v=[1,14],b=[1,23],_=[1,18],E=[1,19],x=[1,20],C=[1,21],T=[1,22],w=[1,24],N=[1,25],O=[1,26],M=[1,27],$=[1,28],F=[1,29],A=[1,32],I=[1,33],D=[1,34],L=[1,39],R=[1,40],P=[1,42],z=[1,44],B=[1,63],q=[1,62],Y=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Q=[1,66],H=[1,67],J=[1,68],Z=[1,69],pe=[1,70],re=[1,71],ce=[1,72],ae=[1,73],se=[1,74],xe=[1,75],Te=[1,76],Ge=[1,77],ze=[4,5,6,7,8,9,10,11,12,13,14,15,18],Xe=[1,91],Le=[1,92],Re=[1,93],qe=[1,100],Ne=[1,94],ut=[1,97],De=[1,95],Je=[1,96],st=[1,98],ct=[1,99],ot=[1,103],it=[10,55,56,57],Oe=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],U={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:S(function(ie,j,V,ue,Fe,me,Ce){var ye=me.length-1;switch(Fe){case 23:this.$=me[ye];break;case 24:this.$=me[ye-1]+""+me[ye];break;case 26:this.$=me[ye-1]+me[ye];break;case 27:this.$=[me[ye].trim()];break;case 28:me[ye-2].push(me[ye].trim()),this.$=me[ye-2];break;case 29:this.$=me[ye-4],ue.addClass(me[ye-2],me[ye]);break;case 37:this.$=[];break;case 42:this.$=me[ye].trim(),ue.setDiagramTitle(this.$);break;case 43:this.$=me[ye].trim(),ue.setAccTitle(this.$);break;case 44:case 45:this.$=me[ye].trim(),ue.setAccDescription(this.$);break;case 46:ue.addSection(me[ye].substr(8)),this.$=me[ye].substr(8);break;case 47:ue.addPoint(me[ye-3],"",me[ye-1],me[ye],[]);break;case 48:ue.addPoint(me[ye-4],me[ye-3],me[ye-1],me[ye],[]);break;case 49:ue.addPoint(me[ye-4],"",me[ye-2],me[ye-1],me[ye]);break;case 50:ue.addPoint(me[ye-5],me[ye-4],me[ye-2],me[ye-1],me[ye]);break;case 51:ue.setXAxisLeftText(me[ye-2]),ue.setXAxisRightText(me[ye]);break;case 52:me[ye-1].text+=" ⟶ ",ue.setXAxisLeftText(me[ye-1]);break;case 53:ue.setXAxisLeftText(me[ye]);break;case 54:ue.setYAxisBottomText(me[ye-2]),ue.setYAxisTopText(me[ye]);break;case 55:me[ye-1].text+=" ⟶ ",ue.setYAxisBottomText(me[ye-1]);break;case 56:ue.setYAxisBottomText(me[ye]);break;case 57:ue.setQuadrant1Text(me[ye]);break;case 58:ue.setQuadrant2Text(me[ye]);break;case 59:ue.setQuadrant3Text(me[ye]);break;case 60:ue.setQuadrant4Text(me[ye]);break;case 64:this.$={text:me[ye],type:"text"};break;case 65:this.$={text:me[ye-1].text+""+me[ye],type:me[ye-1].type};break;case 66:this.$={text:me[ye],type:"text"};break;case 67:this.$={text:me[ye],type:"markdown"};break;case 68:this.$=me[ye];break;case 69:this.$=me[ye-1]+""+me[ye];break}},"anonymous"),table:[{18:e,26:1,27:2,28:r,55:n,56:i,57:a},{1:[3]},{18:e,26:8,27:2,28:r,55:n,56:i,57:a},{18:e,26:9,27:2,28:r,55:n,56:i,57:a},t(s,[2,33],{29:10}),t(o,[2,61]),t(o,[2,62]),t(o,[2,63]),{1:[2,30]},{1:[2,31]},t(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:h,10:f,12:p,13:g,14:m,15:y,18:v,25:b,35:_,37:E,39:x,41:C,42:T,48:w,50:N,51:O,52:M,53:$,54:F,60:A,61:I,63:D,64:L,65:R,66:P,67:z}),t(s,[2,34]),{27:46,55:n,56:i,57:a},t(l,[2,37]),t(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:h,10:f,12:p,13:g,14:m,15:y,18:v,25:b,35:_,37:E,39:x,41:C,42:T,48:w,50:N,51:O,52:M,53:$,54:F,60:A,61:I,63:D,64:L,65:R,66:P,67:z}),t(l,[2,39]),t(l,[2,40]),t(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(l,[2,45]),t(l,[2,46]),{18:[1,51]},{4:d,5:h,10:f,12:p,13:g,14:m,15:y,43:52,58:31,60:A,61:I,63:D,64:L,65:R,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:y,43:53,58:31,60:A,61:I,63:D,64:L,65:R,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:y,43:54,58:31,60:A,61:I,63:D,64:L,65:R,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:y,43:55,58:31,60:A,61:I,63:D,64:L,65:R,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:y,43:56,58:31,60:A,61:I,63:D,64:L,65:R,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:y,43:57,58:31,60:A,61:I,63:D,64:L,65:R,66:P,67:z},{4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,44:[1,58],47:[1,59],58:61,59:60,63:D,64:L,65:R,66:P,67:z},t(Y,[2,64]),t(Y,[2,66]),t(Y,[2,67]),t(Y,[2,70]),t(Y,[2,71]),t(Y,[2,72]),t(Y,[2,73]),t(Y,[2,74]),t(Y,[2,75]),t(Y,[2,76]),t(Y,[2,77]),t(Y,[2,78]),t(Y,[2,79]),t(Y,[2,80]),t(Y,[2,81]),t(s,[2,35]),t(l,[2,38]),t(l,[2,42]),t(l,[2,43]),t(l,[2,44]),{3:65,4:Q,5:H,6:J,7:Z,8:pe,9:re,10:ce,11:ae,12:se,13:xe,14:Te,15:Ge,21:64},t(l,[2,53],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,49:[1,78],63:D,64:L,65:R,66:P,67:z}),t(l,[2,56],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,49:[1,79],63:D,64:L,65:R,66:P,67:z}),t(l,[2,57],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,63:D,64:L,65:R,66:P,67:z}),t(l,[2,58],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,63:D,64:L,65:R,66:P,67:z}),t(l,[2,59],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,63:D,64:L,65:R,66:P,67:z}),t(l,[2,60],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,63:D,64:L,65:R,66:P,67:z}),{45:[1,80]},{44:[1,81]},t(Y,[2,65]),t(Y,[2,82]),t(Y,[2,83]),t(Y,[2,84]),{3:83,4:Q,5:H,6:J,7:Z,8:pe,9:re,10:ce,11:ae,12:se,13:xe,14:Te,15:Ge,18:[1,82]},t(ze,[2,23]),t(ze,[2,1]),t(ze,[2,2]),t(ze,[2,3]),t(ze,[2,4]),t(ze,[2,5]),t(ze,[2,6]),t(ze,[2,7]),t(ze,[2,8]),t(ze,[2,9]),t(ze,[2,10]),t(ze,[2,11]),t(ze,[2,12]),t(l,[2,52],{58:31,43:84,4:d,5:h,10:f,12:p,13:g,14:m,15:y,60:A,61:I,63:D,64:L,65:R,66:P,67:z}),t(l,[2,55],{58:31,43:85,4:d,5:h,10:f,12:p,13:g,14:m,15:y,60:A,61:I,63:D,64:L,65:R,66:P,67:z}),{46:[1,86]},{45:[1,87]},{4:Xe,5:Le,6:Re,8:qe,11:Ne,13:ut,16:90,17:De,18:Je,19:st,20:ct,22:89,23:88},t(ze,[2,24]),t(l,[2,51],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,63:D,64:L,65:R,66:P,67:z}),t(l,[2,54],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,63:D,64:L,65:R,66:P,67:z}),t(l,[2,47],{22:89,16:90,23:101,4:Xe,5:Le,6:Re,8:qe,11:Ne,13:ut,17:De,18:Je,19:st,20:ct}),{46:[1,102]},t(l,[2,29],{10:ot}),t(it,[2,27],{16:104,4:Xe,5:Le,6:Re,8:qe,11:Ne,13:ut,17:De,18:Je,19:st,20:ct}),t(Oe,[2,25]),t(Oe,[2,13]),t(Oe,[2,14]),t(Oe,[2,15]),t(Oe,[2,16]),t(Oe,[2,17]),t(Oe,[2,18]),t(Oe,[2,19]),t(Oe,[2,20]),t(Oe,[2,21]),t(Oe,[2,22]),t(l,[2,49],{10:ot}),t(l,[2,48],{22:89,16:90,23:105,4:Xe,5:Le,6:Re,8:qe,11:Ne,13:ut,17:De,18:Je,19:st,20:ct}),{4:Xe,5:Le,6:Re,8:qe,11:Ne,13:ut,16:90,17:De,18:Je,19:st,20:ct,22:106},t(Oe,[2,26]),t(l,[2,50],{10:ot}),t(it,[2,28],{16:104,4:Xe,5:Le,6:Re,8:qe,11:Ne,13:ut,17:De,18:Je,19:st,20:ct})],defaultActions:{8:[2,30],9:[2,31]},parseError:S(function(ie,j){if(j.recoverable)this.trace(ie);else{var V=new Error(ie);throw V.hash=j,V}},"parseError"),parse:S(function(ie){var j=this,V=[0],ue=[],Fe=[null],me=[],Ce=this.table,ye="",Me=0,Ie=0,he=2,le=1,Be=me.slice.call(arguments,1),ve=Object.create(this.lexer),gt={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(gt.yy[Et]=this.yy[Et]);ve.setInput(ie,gt.yy),gt.yy.lexer=ve,gt.yy.parser=this,typeof ve.yylloc>"u"&&(ve.yylloc={});var et=ve.yylloc;me.push(et);var dt=ve.options&&ve.options.ranges;typeof gt.yy.parseError=="function"?this.parseError=gt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(Qt){V.length=V.length-2*Qt,Fe.length=Fe.length-Qt,me.length=me.length-Qt}S(ft,"popStack");function mt(){var Qt;return Qt=ue.pop()||ve.lex()||le,typeof Qt!="number"&&(Qt instanceof Array&&(ue=Qt,Qt=ue.pop()),Qt=j.symbols_[Qt]||Qt),Qt}S(mt,"lex");for(var fe,It,St,Tt,Nt={},Hr,Pe,yt,bt;;){if(It=V[V.length-1],this.defaultActions[It]?St=this.defaultActions[It]:((fe===null||typeof fe>"u")&&(fe=mt()),St=Ce[It]&&Ce[It][fe]),typeof St>"u"||!St.length||!St[0]){var Ot="";bt=[];for(Hr in Ce[It])this.terminals_[Hr]&&Hr>he&&bt.push("'"+this.terminals_[Hr]+"'");ve.showPosition?Ot="Parse error on line "+(Me+1)+`: +`,"getStyles"),l8t=o8t,c8t=S(t=>{const e=[...t.values()].reduce((i,a)=>i+a,0),r=[...t.entries()].map(([i,a])=>({label:i,value:a})).filter(i=>i.value/e*100>=1);return fYe().value(i=>i.value).sort(null)(r)},"createPieArcs"),u8t=S((t,e,r,n)=>{ge.debug(`rendering pie chart +`+t);const i=n.db,a=Ke(),s=$i(i.getConfig(),a.pie),o=40,l=18,u=4,d=450,h=d,f=To(e),p=f.append("g");p.attr("transform","translate("+h/2+","+d/2+")");const{themeVariables:g}=a;let[m]=Y0(g.pieOuterStrokeWidth);m??=2;const y=s.textPosition,v=Math.min(h,d)/2-o,b=Q_().innerRadius(0).outerRadius(v),_=Q_().innerRadius(v*y).outerRadius(v*y);p.append("circle").attr("cx",0).attr("cy",0).attr("r",v+m/2).attr("class","pieOuterCircle");const E=i.getSections(),x=c8t(E),C=[g.pie1,g.pie2,g.pie3,g.pie4,g.pie5,g.pie6,g.pie7,g.pie8,g.pie9,g.pie10,g.pie11,g.pie12];let T=0;E.forEach(B=>{T+=B});const w=x.filter(B=>(B.data.value/T*100).toFixed(0)!=="0"),N=hp(C).domain([...E.keys()]);p.selectAll("mySlices").data(w).enter().append("path").attr("d",b).attr("fill",B=>N(B.data.label)).attr("class","pieCircle"),p.selectAll("mySlices").data(w).enter().append("text").text(B=>(B.data.value/T*100).toFixed(0)+"%").attr("transform",B=>"translate("+_.centroid(B)+")").style("text-anchor","middle").attr("class","slice");const O=p.append("text").text(i.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText"),M=[...E.entries()].map(([B,q])=>({label:B,value:q})),$=p.selectAll(".legend").data(M).enter().append("g").attr("class","legend").attr("transform",(B,q)=>{const Y=l+u,Q=Y*M.length/2,H=12*l,J=q*Y-Q;return"translate("+H+","+J+")"});$.append("rect").attr("width",l).attr("height",l).style("fill",B=>N(B.label)).style("stroke",B=>N(B.label)),$.append("text").attr("x",l+u).attr("y",l-u).text(B=>i.getShowData()?`${B.label} [${B.value}]`:B.label);const F=Math.max(...$.selectAll("text").nodes().map(B=>B?.getBoundingClientRect().width??0)),A=h+o+l+u+F,I=O.node()?.getBoundingClientRect().width??0,D=h/2-I/2,L=h/2+I/2,R=Math.min(0,D),z=Math.max(A,L)-R;f.attr("viewBox",`${R} 0 ${z} ${d}`),ua(f,d,z,s.useMaxWidth)},"draw"),d8t={draw:u8t},h8t={parser:s8t,db:p7e,renderer:d8t,styles:l8t};const f8t=Object.freeze(Object.defineProperty({__proto__:null,diagram:h8t},Symbol.toStringTag,{value:"Module"}));var Y$=(function(){var t=S(function(G,ie,j,V){for(j=j||{},V=G.length;V--;j[G[V]]=ie);return j},"o"),e=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[1,7],s=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],o=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],h=[1,36],f=[1,38],p=[1,35],g=[1,43],m=[1,41],y=[1,45],v=[1,14],b=[1,23],_=[1,18],E=[1,19],x=[1,20],C=[1,21],T=[1,22],w=[1,24],N=[1,25],O=[1,26],M=[1,27],$=[1,28],F=[1,29],A=[1,32],I=[1,33],D=[1,34],L=[1,39],R=[1,40],P=[1,42],z=[1,44],B=[1,63],q=[1,62],Y=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Q=[1,66],H=[1,67],J=[1,68],Z=[1,69],pe=[1,70],re=[1,71],ce=[1,72],ae=[1,73],se=[1,74],xe=[1,75],Te=[1,76],Ge=[1,77],ze=[4,5,6,7,8,9,10,11,12,13,14,15,18],Xe=[1,91],Le=[1,92],Re=[1,93],qe=[1,100],Ne=[1,94],ut=[1,97],De=[1,95],Je=[1,96],st=[1,98],ct=[1,99],ot=[1,103],it=[10,55,56,57],Oe=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],U={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:S(function(ie,j,V,ue,Fe,me,Ce){var ye=me.length-1;switch(Fe){case 23:this.$=me[ye];break;case 24:this.$=me[ye-1]+""+me[ye];break;case 26:this.$=me[ye-1]+me[ye];break;case 27:this.$=[me[ye].trim()];break;case 28:me[ye-2].push(me[ye].trim()),this.$=me[ye-2];break;case 29:this.$=me[ye-4],ue.addClass(me[ye-2],me[ye]);break;case 37:this.$=[];break;case 42:this.$=me[ye].trim(),ue.setDiagramTitle(this.$);break;case 43:this.$=me[ye].trim(),ue.setAccTitle(this.$);break;case 44:case 45:this.$=me[ye].trim(),ue.setAccDescription(this.$);break;case 46:ue.addSection(me[ye].substr(8)),this.$=me[ye].substr(8);break;case 47:ue.addPoint(me[ye-3],"",me[ye-1],me[ye],[]);break;case 48:ue.addPoint(me[ye-4],me[ye-3],me[ye-1],me[ye],[]);break;case 49:ue.addPoint(me[ye-4],"",me[ye-2],me[ye-1],me[ye]);break;case 50:ue.addPoint(me[ye-5],me[ye-4],me[ye-2],me[ye-1],me[ye]);break;case 51:ue.setXAxisLeftText(me[ye-2]),ue.setXAxisRightText(me[ye]);break;case 52:me[ye-1].text+=" ⟶ ",ue.setXAxisLeftText(me[ye-1]);break;case 53:ue.setXAxisLeftText(me[ye]);break;case 54:ue.setYAxisBottomText(me[ye-2]),ue.setYAxisTopText(me[ye]);break;case 55:me[ye-1].text+=" ⟶ ",ue.setYAxisBottomText(me[ye-1]);break;case 56:ue.setYAxisBottomText(me[ye]);break;case 57:ue.setQuadrant1Text(me[ye]);break;case 58:ue.setQuadrant2Text(me[ye]);break;case 59:ue.setQuadrant3Text(me[ye]);break;case 60:ue.setQuadrant4Text(me[ye]);break;case 64:this.$={text:me[ye],type:"text"};break;case 65:this.$={text:me[ye-1].text+""+me[ye],type:me[ye-1].type};break;case 66:this.$={text:me[ye],type:"text"};break;case 67:this.$={text:me[ye],type:"markdown"};break;case 68:this.$=me[ye];break;case 69:this.$=me[ye-1]+""+me[ye];break}},"anonymous"),table:[{18:e,26:1,27:2,28:r,55:n,56:i,57:a},{1:[3]},{18:e,26:8,27:2,28:r,55:n,56:i,57:a},{18:e,26:9,27:2,28:r,55:n,56:i,57:a},t(s,[2,33],{29:10}),t(o,[2,61]),t(o,[2,62]),t(o,[2,63]),{1:[2,30]},{1:[2,31]},t(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:h,10:f,12:p,13:g,14:m,15:y,18:v,25:b,35:_,37:E,39:x,41:C,42:T,48:w,50:N,51:O,52:M,53:$,54:F,60:A,61:I,63:D,64:L,65:R,66:P,67:z}),t(s,[2,34]),{27:46,55:n,56:i,57:a},t(l,[2,37]),t(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:h,10:f,12:p,13:g,14:m,15:y,18:v,25:b,35:_,37:E,39:x,41:C,42:T,48:w,50:N,51:O,52:M,53:$,54:F,60:A,61:I,63:D,64:L,65:R,66:P,67:z}),t(l,[2,39]),t(l,[2,40]),t(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(l,[2,45]),t(l,[2,46]),{18:[1,51]},{4:d,5:h,10:f,12:p,13:g,14:m,15:y,43:52,58:31,60:A,61:I,63:D,64:L,65:R,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:y,43:53,58:31,60:A,61:I,63:D,64:L,65:R,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:y,43:54,58:31,60:A,61:I,63:D,64:L,65:R,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:y,43:55,58:31,60:A,61:I,63:D,64:L,65:R,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:y,43:56,58:31,60:A,61:I,63:D,64:L,65:R,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:y,43:57,58:31,60:A,61:I,63:D,64:L,65:R,66:P,67:z},{4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,44:[1,58],47:[1,59],58:61,59:60,63:D,64:L,65:R,66:P,67:z},t(Y,[2,64]),t(Y,[2,66]),t(Y,[2,67]),t(Y,[2,70]),t(Y,[2,71]),t(Y,[2,72]),t(Y,[2,73]),t(Y,[2,74]),t(Y,[2,75]),t(Y,[2,76]),t(Y,[2,77]),t(Y,[2,78]),t(Y,[2,79]),t(Y,[2,80]),t(Y,[2,81]),t(s,[2,35]),t(l,[2,38]),t(l,[2,42]),t(l,[2,43]),t(l,[2,44]),{3:65,4:Q,5:H,6:J,7:Z,8:pe,9:re,10:ce,11:ae,12:se,13:xe,14:Te,15:Ge,21:64},t(l,[2,53],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,49:[1,78],63:D,64:L,65:R,66:P,67:z}),t(l,[2,56],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,49:[1,79],63:D,64:L,65:R,66:P,67:z}),t(l,[2,57],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,63:D,64:L,65:R,66:P,67:z}),t(l,[2,58],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,63:D,64:L,65:R,66:P,67:z}),t(l,[2,59],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,63:D,64:L,65:R,66:P,67:z}),t(l,[2,60],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,63:D,64:L,65:R,66:P,67:z}),{45:[1,80]},{44:[1,81]},t(Y,[2,65]),t(Y,[2,82]),t(Y,[2,83]),t(Y,[2,84]),{3:83,4:Q,5:H,6:J,7:Z,8:pe,9:re,10:ce,11:ae,12:se,13:xe,14:Te,15:Ge,18:[1,82]},t(ze,[2,23]),t(ze,[2,1]),t(ze,[2,2]),t(ze,[2,3]),t(ze,[2,4]),t(ze,[2,5]),t(ze,[2,6]),t(ze,[2,7]),t(ze,[2,8]),t(ze,[2,9]),t(ze,[2,10]),t(ze,[2,11]),t(ze,[2,12]),t(l,[2,52],{58:31,43:84,4:d,5:h,10:f,12:p,13:g,14:m,15:y,60:A,61:I,63:D,64:L,65:R,66:P,67:z}),t(l,[2,55],{58:31,43:85,4:d,5:h,10:f,12:p,13:g,14:m,15:y,60:A,61:I,63:D,64:L,65:R,66:P,67:z}),{46:[1,86]},{45:[1,87]},{4:Xe,5:Le,6:Re,8:qe,11:Ne,13:ut,16:90,17:De,18:Je,19:st,20:ct,22:89,23:88},t(ze,[2,24]),t(l,[2,51],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,63:D,64:L,65:R,66:P,67:z}),t(l,[2,54],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:y,18:q,63:D,64:L,65:R,66:P,67:z}),t(l,[2,47],{22:89,16:90,23:101,4:Xe,5:Le,6:Re,8:qe,11:Ne,13:ut,17:De,18:Je,19:st,20:ct}),{46:[1,102]},t(l,[2,29],{10:ot}),t(it,[2,27],{16:104,4:Xe,5:Le,6:Re,8:qe,11:Ne,13:ut,17:De,18:Je,19:st,20:ct}),t(Oe,[2,25]),t(Oe,[2,13]),t(Oe,[2,14]),t(Oe,[2,15]),t(Oe,[2,16]),t(Oe,[2,17]),t(Oe,[2,18]),t(Oe,[2,19]),t(Oe,[2,20]),t(Oe,[2,21]),t(Oe,[2,22]),t(l,[2,49],{10:ot}),t(l,[2,48],{22:89,16:90,23:105,4:Xe,5:Le,6:Re,8:qe,11:Ne,13:ut,17:De,18:Je,19:st,20:ct}),{4:Xe,5:Le,6:Re,8:qe,11:Ne,13:ut,16:90,17:De,18:Je,19:st,20:ct,22:106},t(Oe,[2,26]),t(l,[2,50],{10:ot}),t(it,[2,28],{16:104,4:Xe,5:Le,6:Re,8:qe,11:Ne,13:ut,17:De,18:Je,19:st,20:ct})],defaultActions:{8:[2,30],9:[2,31]},parseError:S(function(ie,j){if(j.recoverable)this.trace(ie);else{var V=new Error(ie);throw V.hash=j,V}},"parseError"),parse:S(function(ie){var j=this,V=[0],ue=[],Fe=[null],me=[],Ce=this.table,ye="",Me=0,Ie=0,he=2,le=1,Be=me.slice.call(arguments,1),ve=Object.create(this.lexer),gt={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(gt.yy[Et]=this.yy[Et]);ve.setInput(ie,gt.yy),gt.yy.lexer=ve,gt.yy.parser=this,typeof ve.yylloc>"u"&&(ve.yylloc={});var et=ve.yylloc;me.push(et);var dt=ve.options&&ve.options.ranges;typeof gt.yy.parseError=="function"?this.parseError=gt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(Qt){V.length=V.length-2*Qt,Fe.length=Fe.length-Qt,me.length=me.length-Qt}S(ft,"popStack");function mt(){var Qt;return Qt=ue.pop()||ve.lex()||le,typeof Qt!="number"&&(Qt instanceof Array&&(ue=Qt,Qt=ue.pop()),Qt=j.symbols_[Qt]||Qt),Qt}S(mt,"lex");for(var fe,It,St,Tt,Nt={},Hr,Pe,yt,bt;;){if(It=V[V.length-1],this.defaultActions[It]?St=this.defaultActions[It]:((fe===null||typeof fe>"u")&&(fe=mt()),St=Ce[It]&&Ce[It][fe]),typeof St>"u"||!St.length||!St[0]){var Ot="";bt=[];for(Hr in Ce[It])this.terminals_[Hr]&&Hr>he&&bt.push("'"+this.terminals_[Hr]+"'");ve.showPosition?Ot="Parse error on line "+(Me+1)+`: `+ve.showPosition()+` Expecting `+bt.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":Ot="Parse error on line "+(Me+1)+": Unexpected "+(fe==le?"end of input":"'"+(this.terminals_[fe]||fe)+"'"),this.parseError(Ot,{text:ve.match,token:this.terminals_[fe]||fe,line:ve.yylineno,loc:et,expected:bt})}if(St[0]instanceof Array&&St.length>1)throw new Error("Parse Error: multiple actions possible at state: "+It+", token: "+fe);switch(St[0]){case 1:V.push(fe),Fe.push(ve.yytext),me.push(ve.yylloc),V.push(St[1]),fe=null,Ie=ve.yyleng,ye=ve.yytext,Me=ve.yylineno,et=ve.yylloc;break;case 2:if(Pe=this.productions_[St[1]][1],Nt.$=Fe[Fe.length-Pe],Nt._$={first_line:me[me.length-(Pe||1)].first_line,last_line:me[me.length-1].last_line,first_column:me[me.length-(Pe||1)].first_column,last_column:me[me.length-1].last_column},dt&&(Nt._$.range=[me[me.length-(Pe||1)].range[0],me[me.length-1].range[1]]),Tt=this.performAction.apply(Nt,[ye,Ie,Me,gt.yy,St[1],Fe,me].concat(Be)),typeof Tt<"u")return Tt;Pe&&(V=V.slice(0,-1*Pe*2),Fe=Fe.slice(0,-1*Pe),me=me.slice(0,-1*Pe)),V.push(this.productions_[St[1]][0]),Fe.push(Nt.$),me.push(Nt._$),yt=Ce[V[V.length-2]][V[V.length-1]],V.push(yt);break;case 3:return!0}}return!0},"parse")},oe=(function(){var G={EOF:1,parseError:S(function(j,V){if(this.yy.parser)this.yy.parser.parseError(j,V);else throw new Error(j)},"parseError"),setInput:S(function(ie,j){return this.yy=j||this.yy||{},this._input=ie,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var ie=this._input[0];this.yytext+=ie,this.yyleng++,this.offset++,this.match+=ie,this.matched+=ie;var j=ie.match(/(?:\r\n?|\n).*/g);return j?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ie},"input"),unput:S(function(ie){var j=ie.length,V=ie.split(/(?:\r\n?|\n)/g);this._input=ie+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-j),this.offset-=j;var ue=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),V.length-1&&(this.yylineno-=V.length-1);var Fe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:V?(V.length===ue.length?this.yylloc.first_column:0)+ue[ue.length-V.length].length-V[0].length:this.yylloc.first_column-j},this.options.ranges&&(this.yylloc.range=[Fe[0],Fe[0]+this.yyleng-j]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(ie){this.unput(this.match.slice(ie))},"less"),pastInput:S(function(){var ie=this.matched.substr(0,this.matched.length-this.match.length);return(ie.length>20?"...":"")+ie.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var ie=this.match;return ie.length<20&&(ie+=this._input.substr(0,20-ie.length)),(ie.substr(0,20)+(ie.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var ie=this.pastInput(),j=new Array(ie.length+1).join("-");return ie+this.upcomingInput()+` `+j+"^"},"showPosition"),test_match:S(function(ie,j){var V,ue,Fe;if(this.options.backtrack_lexer&&(Fe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Fe.yylloc.range=this.yylloc.range.slice(0))),ue=ie[0].match(/(?:\r\n?|\n).*/g),ue&&(this.yylineno+=ue.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ue?ue[ue.length-1].length-ue[ue.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ie[0].length},this.yytext+=ie[0],this.match+=ie[0],this.matches=ie,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ie[0].length),this.matched+=ie[0],V=this.performAction.call(this,this.yy,this,j,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),V)return V;if(this._backtrack){for(var me in Fe)this[me]=Fe[me];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ie,j,V,ue;this._more||(this.yytext="",this.match="");for(var Fe=this._currentRules(),me=0;mej[0].length)){if(j=V,ue=me,this.options.backtrack_lexer){if(ie=this.test_match(V,Fe[me]),ie!==!1)return ie;if(this._backtrack){j=!1;continue}else return!1}else if(!this.options.flex)break}return j?(ie=this.test_match(j,Fe[ue]),ie!==!1?ie:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var j=this.next();return j||this.lex()},"lex"),begin:S(function(j){this.conditionStack.push(j)},"begin"),popState:S(function(){var j=this.conditionStack.length-1;return j>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(j){return j=this.conditionStack.length-1-Math.abs(j||0),j>=0?this.conditionStack[j]:"INITIAL"},"topState"),pushState:S(function(j){this.begin(j)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(j,V,ue,Fe){switch(ue){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return G})();U.lexer=oe;function de(){this.yy={}}return S(de,"Parser"),de.prototype=U,U.Parser=de,new de})();Y$.parser=Y$;var f8t=Y$,xs=Fb(),f_,p8t=(f_=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:on.quadrantChart?.chartWidth||500,chartWidth:on.quadrantChart?.chartHeight||500,titlePadding:on.quadrantChart?.titlePadding||10,titleFontSize:on.quadrantChart?.titleFontSize||20,quadrantPadding:on.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:on.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:on.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:on.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:on.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:on.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:on.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:on.quadrantChart?.pointTextPadding||5,pointLabelFontSize:on.quadrantChart?.pointLabelFontSize||12,pointRadius:on.quadrantChart?.pointRadius||5,xAxisPosition:on.quadrantChart?.xAxisPosition||"top",yAxisPosition:on.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:on.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:on.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:xs.quadrant1Fill,quadrant2Fill:xs.quadrant2Fill,quadrant3Fill:xs.quadrant3Fill,quadrant4Fill:xs.quadrant4Fill,quadrant1TextFill:xs.quadrant1TextFill,quadrant2TextFill:xs.quadrant2TextFill,quadrant3TextFill:xs.quadrant3TextFill,quadrant4TextFill:xs.quadrant4TextFill,quadrantPointFill:xs.quadrantPointFill,quadrantPointTextFill:xs.quadrantPointTextFill,quadrantXAxisTextFill:xs.quadrantXAxisTextFill,quadrantYAxisTextFill:xs.quadrantYAxisTextFill,quadrantTitleFill:xs.quadrantTitleFill,quadrantInternalBorderStrokeFill:xs.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:xs.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,ge.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,r){this.classes.set(e,r)}setConfig(e){ge.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){ge.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,n,i){const a=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,s={top:e==="top"&&r?a:0,bottom:e==="bottom"&&r?a:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,l={left:this.config.yAxisPosition==="left"&&n?o:0,right:this.config.yAxisPosition==="right"&&n?o:0},u=this.config.titleFontSize+this.config.titlePadding*2,d={top:i?u:0},h=this.config.quadrantPadding+l.left,f=this.config.quadrantPadding+s.top+d.top,p=this.config.chartWidth-this.config.quadrantPadding*2-l.left-l.right,g=this.config.chartHeight-this.config.quadrantPadding*2-s.top-s.bottom-d.top,m=p/2,y=g/2;return{xAxisSpace:s,yAxisSpace:l,titleSpace:d,quadrantSpace:{quadrantLeft:h,quadrantTop:f,quadrantWidth:p,quadrantHalfWidth:m,quadrantHeight:g,quadrantHalfHeight:y}}}getAxisLabels(e,r,n,i){const{quadrantSpace:a,titleSpace:s}=i,{quadrantHalfHeight:o,quadrantHeight:l,quadrantLeft:u,quadrantHalfWidth:d,quadrantTop:h,quadrantWidth:f}=a,p=!!this.data.xAxisRightText,g=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&r&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+(p?d/2:0),y:e==="top"?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+h+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&r&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+d+(p?d/2:0),y:e==="top"?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+h+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+f+this.config.quadrantPadding,y:h+l-(g?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+f+this.config.quadrantPadding,y:h+o-(g?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),m}getQuadrants(e){const{quadrantSpace:r}=e,{quadrantHalfHeight:n,quadrantLeft:i,quadrantHalfWidth:a,quadrantTop:s}=r,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:s,width:a,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:s,width:a,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:s+n,width:a,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:s+n,width:a,height:n,fill:this.themeConfig.quadrant4Fill}];for(const l of o)l.text.x=l.x+l.width/2,this.data.points.length===0?(l.text.y=l.y+l.height/2,l.text.horizontalPos="middle"):(l.text.y=l.y+this.config.quadrantTextTopPadding,l.text.horizontalPos="top");return o}getQuadrantPoints(e){const{quadrantSpace:r}=e,{quadrantHeight:n,quadrantLeft:i,quadrantTop:a,quadrantWidth:s}=r,o=K_().domain([0,1]).range([i,s+i]),l=K_().domain([0,1]).range([n+a,a]);return this.data.points.map(d=>{const h=this.classes.get(d.className);return h&&(d={...h,...d}),{x:o(d.x),y:l(d.y),fill:d.color??this.themeConfig.quadrantPointFill,radius:d.radius??this.config.pointRadius,text:{text:d.text,fill:this.themeConfig.quadrantPointTextFill,x:o(d.x),y:l(d.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:d.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:d.strokeWidth??"0px"}})}getBorders(e){const r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:i,quadrantHeight:a,quadrantLeft:s,quadrantHalfWidth:o,quadrantTop:l,quadrantWidth:u}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-r,y1:l,x2:s+u+r,y2:l},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s+u,y1:l+r,x2:s+u,y2:l+a-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-r,y1:l+a,x2:s+u+r,y2:l+a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s,y1:l+r,x2:s,y2:l+a-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+o,y1:l+r,x2:s+o,y2:l+a-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+r,y1:l+i,x2:s+u-r,y2:l+i}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,i=this.data.points.length>0?"bottom":this.config.xAxisPosition,a=this.calculateSpace(i,e,r,n);return{points:this.getQuadrantPoints(a),quadrants:this.getQuadrants(a),axisLabels:this.getAxisLabels(i,e,r,a),borderLines:this.getBorders(a),title:this.getTitle(n)}}},S(f_,"QuadrantBuilder"),f_),p_,N3=(p_=class extends Error{constructor(e,r,n){super(`value for ${e} ${r} is invalid, please use a valid ${n}`),this.name="InvalidStyleError"}},S(p_,"InvalidStyleError"),p_);function H$(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}S(H$,"validateHexCode");function g7e(t){return!/^\d+$/.test(t)}S(g7e,"validateNumber");function m7e(t){return!/^\d+px$/.test(t)}S(m7e,"validateSizeInPixels");var g8t=Ke();function Du(t){return un(t.trim(),g8t)}S(Du,"textSanitizer");var Xa=new p8t;function y7e(t){Xa.setData({quadrant1Text:Du(t.text)})}S(y7e,"setQuadrant1Text");function v7e(t){Xa.setData({quadrant2Text:Du(t.text)})}S(v7e,"setQuadrant2Text");function _7e(t){Xa.setData({quadrant3Text:Du(t.text)})}S(_7e,"setQuadrant3Text");function b7e(t){Xa.setData({quadrant4Text:Du(t.text)})}S(b7e,"setQuadrant4Text");function E7e(t){Xa.setData({xAxisLeftText:Du(t.text)})}S(E7e,"setXAxisLeftText");function S7e(t){Xa.setData({xAxisRightText:Du(t.text)})}S(S7e,"setXAxisRightText");function T7e(t){Xa.setData({yAxisTopText:Du(t.text)})}S(T7e,"setYAxisTopText");function x7e(t){Xa.setData({yAxisBottomText:Du(t.text)})}S(x7e,"setYAxisBottomText");function e8(t){const e={};for(const r of t){const[n,i]=r.trim().split(/\s*:\s*/);if(n==="radius"){if(g7e(i))throw new N3(n,i,"number");e.radius=parseInt(i)}else if(n==="color"){if(H$(i))throw new N3(n,i,"hex code");e.color=i}else if(n==="stroke-color"){if(H$(i))throw new N3(n,i,"hex code");e.strokeColor=i}else if(n==="stroke-width"){if(m7e(i))throw new N3(n,i,"number of pixels (eg. 10px)");e.strokeWidth=i}else throw new Error(`style named ${n} is not supported.`)}return e}S(e8,"parseStyles");function C7e(t,e,r,n,i){const a=e8(i);Xa.addPoints([{x:r,y:n,text:Du(t.text),className:e,...a}])}S(C7e,"addPoint");function w7e(t,e){Xa.addClass(t,e8(e))}S(w7e,"addClass");function k7e(t){Xa.setConfig({chartWidth:t})}S(k7e,"setWidth");function A7e(t){Xa.setConfig({chartHeight:t})}S(A7e,"setHeight");function R7e(){const t=Ke(),{themeVariables:e,quadrantChart:r}=t;return r&&Xa.setConfig(r),Xa.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),Xa.setData({titleText:li()}),Xa.build()}S(R7e,"getQuadrantData");var m8t=S(function(){Xa.clear(),oi()},"clear"),y8t={setWidth:k7e,setHeight:A7e,setQuadrant1Text:y7e,setQuadrant2Text:v7e,setQuadrant3Text:_7e,setQuadrant4Text:b7e,setXAxisLeftText:E7e,setXAxisRightText:S7e,setYAxisTopText:T7e,setYAxisBottomText:x7e,parseStyles:e8,addPoint:C7e,addClass:w7e,getQuadrantData:R7e,clear:m8t,setAccTitle:ai,getAccTitle:yi,setDiagramTitle:pi,getDiagramTitle:li,getAccDescription:_i,setAccDescription:vi},v8t=S((t,e,r,n)=>{function i(w){return w==="top"?"hanging":"middle"}S(i,"getDominantBaseLine");function a(w){return w==="left"?"start":"middle"}S(a,"getTextAnchor");function s(w){return`translate(${w.x}, ${w.y}) rotate(${w.rotation||0})`}S(s,"getTransformation");const o=Ke();ge.debug(`Rendering quadrant chart -`+t);const l=o.securityLevel;let u;l==="sandbox"&&(u=At("#i"+e));const h=At(l==="sandbox"?u.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`),f=h.append("g").attr("class","main"),p=o.quadrantChart?.chartWidth??500,g=o.quadrantChart?.chartHeight??500;ua(h,g,p,o.quadrantChart?.useMaxWidth??!0),h.attr("viewBox","0 0 "+p+" "+g),n.db.setHeight(g),n.db.setWidth(p);const m=n.db.getQuadrantData(),y=f.append("g").attr("class","quadrants"),v=f.append("g").attr("class","border"),b=f.append("g").attr("class","data-points"),_=f.append("g").attr("class","labels"),E=f.append("g").attr("class","title");m.title&&E.append("text").attr("x",0).attr("y",0).attr("fill",m.title.fill).attr("font-size",m.title.fontSize).attr("dominant-baseline",i(m.title.horizontalPos)).attr("text-anchor",a(m.title.verticalPos)).attr("transform",s(m.title)).text(m.title.text),m.borderLines&&v.selectAll("line").data(m.borderLines).enter().append("line").attr("x1",w=>w.x1).attr("y1",w=>w.y1).attr("x2",w=>w.x2).attr("y2",w=>w.y2).style("stroke",w=>w.strokeFill).style("stroke-width",w=>w.strokeWidth);const x=y.selectAll("g.quadrant").data(m.quadrants).enter().append("g").attr("class","quadrant");x.append("rect").attr("x",w=>w.x).attr("y",w=>w.y).attr("width",w=>w.width).attr("height",w=>w.height).attr("fill",w=>w.fill),x.append("text").attr("x",0).attr("y",0).attr("fill",w=>w.text.fill).attr("font-size",w=>w.text.fontSize).attr("dominant-baseline",w=>i(w.text.horizontalPos)).attr("text-anchor",w=>a(w.text.verticalPos)).attr("transform",w=>s(w.text)).text(w=>w.text.text),_.selectAll("g.label").data(m.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(w=>w.text).attr("fill",w=>w.fill).attr("font-size",w=>w.fontSize).attr("dominant-baseline",w=>i(w.horizontalPos)).attr("text-anchor",w=>a(w.verticalPos)).attr("transform",w=>s(w));const T=b.selectAll("g.data-point").data(m.points).enter().append("g").attr("class","data-point");T.append("circle").attr("cx",w=>w.x).attr("cy",w=>w.y).attr("r",w=>w.radius).attr("fill",w=>w.fill).attr("stroke",w=>w.strokeColor).attr("stroke-width",w=>w.strokeWidth),T.append("text").attr("x",0).attr("y",0).text(w=>w.text.text).attr("fill",w=>w.text.fill).attr("font-size",w=>w.text.fontSize).attr("dominant-baseline",w=>i(w.text.horizontalPos)).attr("text-anchor",w=>a(w.text.verticalPos)).attr("transform",w=>s(w.text))},"draw"),_8t={draw:v8t},b8t={parser:f8t,db:y8t,renderer:_8t,styles:S(()=>"","styles")};const E8t=Object.freeze(Object.defineProperty({__proto__:null,diagram:b8t},Symbol.toStringTag,{value:"Module"}));var V$=(function(){var t=S(function(I,D,L,R){for(L=L||{},R=I.length;R--;L[I[R]]=D);return L},"o"),e=[1,10,12,14,16,18,19,21,23],r=[2,6],n=[1,3],i=[1,5],a=[1,6],s=[1,7],o=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],u=[1,26],d=[1,28],h=[1,29],f=[1,30],p=[1,31],g=[1,32],m=[1,33],y=[1,34],v=[1,35],b=[1,36],_=[1,37],E=[1,43],x=[1,42],C=[1,47],T=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],N=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],O=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],M=[1,64],$={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:S(function(D,L,R,P,z,B,q){var Y=B.length-1;switch(z){case 5:P.setOrientation(B[Y]);break;case 9:P.setDiagramTitle(B[Y].text.trim());break;case 12:P.setLineData({text:"",type:"text"},B[Y]);break;case 13:P.setLineData(B[Y-1],B[Y]);break;case 14:P.setBarData({text:"",type:"text"},B[Y]);break;case 15:P.setBarData(B[Y-1],B[Y]);break;case 16:this.$=B[Y].trim(),P.setAccTitle(this.$);break;case 17:case 18:this.$=B[Y].trim(),P.setAccDescription(this.$);break;case 19:this.$=B[Y-1];break;case 20:this.$=[Number(B[Y-2]),...B[Y]];break;case 21:this.$=[Number(B[Y])];break;case 22:P.setXAxisTitle(B[Y]);break;case 23:P.setXAxisTitle(B[Y-1]);break;case 24:P.setXAxisTitle({type:"text",text:""});break;case 25:P.setXAxisBand(B[Y]);break;case 26:P.setXAxisRangeData(Number(B[Y-2]),Number(B[Y]));break;case 27:this.$=B[Y-1];break;case 28:this.$=[B[Y-2],...B[Y]];break;case 29:this.$=[B[Y]];break;case 30:P.setYAxisTitle(B[Y]);break;case 31:P.setYAxisTitle(B[Y-1]);break;case 32:P.setYAxisTitle({type:"text",text:""});break;case 33:P.setYAxisRangeData(Number(B[Y-2]),Number(B[Y]));break;case 37:this.$={text:B[Y],type:"text"};break;case 38:this.$={text:B[Y],type:"text"};break;case 39:this.$={text:B[Y],type:"markdown"};break;case 40:this.$=B[Y];break;case 41:this.$=B[Y-1]+""+B[Y];break}},"anonymous"),table:[t(e,r,{3:1,4:2,7:4,5:n,34:i,35:a,36:s}),{1:[3]},t(e,r,{4:2,7:4,3:8,5:n,34:i,35:a,36:s}),t(e,r,{4:2,7:4,6:9,3:10,5:n,8:[1,11],34:i,35:a,36:s}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(o,[2,34]),t(o,[2,35]),t(o,[2,36]),{1:[2,1]},t(e,r,{4:2,7:4,3:21,5:n,34:i,35:a,36:s}),{1:[2,3]},t(o,[2,5]),t(e,[2,7],{4:22,34:i,35:a,36:s}),{11:23,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},{11:39,13:38,24:E,27:x,29:40,30:41,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},{11:45,15:44,27:C,33:46,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},{11:49,17:48,24:T,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},{11:52,17:51,24:T,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},{20:[1,53]},{22:[1,54]},t(w,[2,18]),{1:[2,2]},t(w,[2,8]),t(w,[2,9]),t(N,[2,37],{40:55,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_}),t(N,[2,38]),t(N,[2,39]),t(O,[2,40]),t(O,[2,42]),t(O,[2,43]),t(O,[2,44]),t(O,[2,45]),t(O,[2,46]),t(O,[2,47]),t(O,[2,48]),t(O,[2,49]),t(O,[2,50]),t(O,[2,51]),t(w,[2,10]),t(w,[2,22],{30:41,29:56,24:E,27:x}),t(w,[2,24]),t(w,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},t(w,[2,11]),t(w,[2,30],{33:60,27:C}),t(w,[2,32]),{31:[1,61]},t(w,[2,12]),{17:62,24:T},{25:63,27:M},t(w,[2,14]),{17:65,24:T},t(w,[2,16]),t(w,[2,17]),t(O,[2,41]),t(w,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(w,[2,31]),{27:[1,69]},t(w,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(w,[2,15]),t(w,[2,26]),t(w,[2,27]),{11:59,32:72,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},t(w,[2,33]),t(w,[2,19]),{25:73,27:M},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:S(function(D,L){if(L.recoverable)this.trace(D);else{var R=new Error(D);throw R.hash=L,R}},"parseError"),parse:S(function(D){var L=this,R=[0],P=[],z=[null],B=[],q=this.table,Y="",Q=0,H=0,J=2,Z=1,pe=B.slice.call(arguments,1),re=Object.create(this.lexer),ce={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(ce.yy[ae]=this.yy[ae]);re.setInput(D,ce.yy),ce.yy.lexer=re,ce.yy.parser=this,typeof re.yylloc>"u"&&(re.yylloc={});var se=re.yylloc;B.push(se);var xe=re.options&&re.options.ranges;typeof ce.yy.parseError=="function"?this.parseError=ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(ct){R.length=R.length-2*ct,z.length=z.length-ct,B.length=B.length-ct}S(Te,"popStack");function Ge(){var ct;return ct=P.pop()||re.lex()||Z,typeof ct!="number"&&(ct instanceof Array&&(P=ct,ct=P.pop()),ct=L.symbols_[ct]||ct),ct}S(Ge,"lex");for(var ze,Xe,Le,Re,qe={},Ne,ut,De,Je;;){if(Xe=R[R.length-1],this.defaultActions[Xe]?Le=this.defaultActions[Xe]:((ze===null||typeof ze>"u")&&(ze=Ge()),Le=q[Xe]&&q[Xe][ze]),typeof Le>"u"||!Le.length||!Le[0]){var st="";Je=[];for(Ne in q[Xe])this.terminals_[Ne]&&Ne>J&&Je.push("'"+this.terminals_[Ne]+"'");re.showPosition?st="Parse error on line "+(Q+1)+`: +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var j=this.next();return j||this.lex()},"lex"),begin:S(function(j){this.conditionStack.push(j)},"begin"),popState:S(function(){var j=this.conditionStack.length-1;return j>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(j){return j=this.conditionStack.length-1-Math.abs(j||0),j>=0?this.conditionStack[j]:"INITIAL"},"topState"),pushState:S(function(j){this.begin(j)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(j,V,ue,Fe){switch(ue){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return G})();U.lexer=oe;function de(){this.yy={}}return S(de,"Parser"),de.prototype=U,U.Parser=de,new de})();Y$.parser=Y$;var p8t=Y$,xs=Fb(),f_,g8t=(f_=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:on.quadrantChart?.chartWidth||500,chartWidth:on.quadrantChart?.chartHeight||500,titlePadding:on.quadrantChart?.titlePadding||10,titleFontSize:on.quadrantChart?.titleFontSize||20,quadrantPadding:on.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:on.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:on.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:on.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:on.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:on.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:on.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:on.quadrantChart?.pointTextPadding||5,pointLabelFontSize:on.quadrantChart?.pointLabelFontSize||12,pointRadius:on.quadrantChart?.pointRadius||5,xAxisPosition:on.quadrantChart?.xAxisPosition||"top",yAxisPosition:on.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:on.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:on.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:xs.quadrant1Fill,quadrant2Fill:xs.quadrant2Fill,quadrant3Fill:xs.quadrant3Fill,quadrant4Fill:xs.quadrant4Fill,quadrant1TextFill:xs.quadrant1TextFill,quadrant2TextFill:xs.quadrant2TextFill,quadrant3TextFill:xs.quadrant3TextFill,quadrant4TextFill:xs.quadrant4TextFill,quadrantPointFill:xs.quadrantPointFill,quadrantPointTextFill:xs.quadrantPointTextFill,quadrantXAxisTextFill:xs.quadrantXAxisTextFill,quadrantYAxisTextFill:xs.quadrantYAxisTextFill,quadrantTitleFill:xs.quadrantTitleFill,quadrantInternalBorderStrokeFill:xs.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:xs.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,ge.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,r){this.classes.set(e,r)}setConfig(e){ge.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){ge.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,n,i){const a=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,s={top:e==="top"&&r?a:0,bottom:e==="bottom"&&r?a:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,l={left:this.config.yAxisPosition==="left"&&n?o:0,right:this.config.yAxisPosition==="right"&&n?o:0},u=this.config.titleFontSize+this.config.titlePadding*2,d={top:i?u:0},h=this.config.quadrantPadding+l.left,f=this.config.quadrantPadding+s.top+d.top,p=this.config.chartWidth-this.config.quadrantPadding*2-l.left-l.right,g=this.config.chartHeight-this.config.quadrantPadding*2-s.top-s.bottom-d.top,m=p/2,y=g/2;return{xAxisSpace:s,yAxisSpace:l,titleSpace:d,quadrantSpace:{quadrantLeft:h,quadrantTop:f,quadrantWidth:p,quadrantHalfWidth:m,quadrantHeight:g,quadrantHalfHeight:y}}}getAxisLabels(e,r,n,i){const{quadrantSpace:a,titleSpace:s}=i,{quadrantHalfHeight:o,quadrantHeight:l,quadrantLeft:u,quadrantHalfWidth:d,quadrantTop:h,quadrantWidth:f}=a,p=!!this.data.xAxisRightText,g=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&r&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+(p?d/2:0),y:e==="top"?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+h+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&r&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+d+(p?d/2:0),y:e==="top"?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+h+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+f+this.config.quadrantPadding,y:h+l-(g?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+f+this.config.quadrantPadding,y:h+o-(g?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),m}getQuadrants(e){const{quadrantSpace:r}=e,{quadrantHalfHeight:n,quadrantLeft:i,quadrantHalfWidth:a,quadrantTop:s}=r,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:s,width:a,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:s,width:a,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:s+n,width:a,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:s+n,width:a,height:n,fill:this.themeConfig.quadrant4Fill}];for(const l of o)l.text.x=l.x+l.width/2,this.data.points.length===0?(l.text.y=l.y+l.height/2,l.text.horizontalPos="middle"):(l.text.y=l.y+this.config.quadrantTextTopPadding,l.text.horizontalPos="top");return o}getQuadrantPoints(e){const{quadrantSpace:r}=e,{quadrantHeight:n,quadrantLeft:i,quadrantTop:a,quadrantWidth:s}=r,o=K_().domain([0,1]).range([i,s+i]),l=K_().domain([0,1]).range([n+a,a]);return this.data.points.map(d=>{const h=this.classes.get(d.className);return h&&(d={...h,...d}),{x:o(d.x),y:l(d.y),fill:d.color??this.themeConfig.quadrantPointFill,radius:d.radius??this.config.pointRadius,text:{text:d.text,fill:this.themeConfig.quadrantPointTextFill,x:o(d.x),y:l(d.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:d.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:d.strokeWidth??"0px"}})}getBorders(e){const r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:i,quadrantHeight:a,quadrantLeft:s,quadrantHalfWidth:o,quadrantTop:l,quadrantWidth:u}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-r,y1:l,x2:s+u+r,y2:l},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s+u,y1:l+r,x2:s+u,y2:l+a-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-r,y1:l+a,x2:s+u+r,y2:l+a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s,y1:l+r,x2:s,y2:l+a-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+o,y1:l+r,x2:s+o,y2:l+a-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+r,y1:l+i,x2:s+u-r,y2:l+i}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,i=this.data.points.length>0?"bottom":this.config.xAxisPosition,a=this.calculateSpace(i,e,r,n);return{points:this.getQuadrantPoints(a),quadrants:this.getQuadrants(a),axisLabels:this.getAxisLabels(i,e,r,a),borderLines:this.getBorders(a),title:this.getTitle(n)}}},S(f_,"QuadrantBuilder"),f_),p_,N3=(p_=class extends Error{constructor(e,r,n){super(`value for ${e} ${r} is invalid, please use a valid ${n}`),this.name="InvalidStyleError"}},S(p_,"InvalidStyleError"),p_);function H$(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}S(H$,"validateHexCode");function g7e(t){return!/^\d+$/.test(t)}S(g7e,"validateNumber");function m7e(t){return!/^\d+px$/.test(t)}S(m7e,"validateSizeInPixels");var m8t=Ke();function Du(t){return un(t.trim(),m8t)}S(Du,"textSanitizer");var Xa=new g8t;function y7e(t){Xa.setData({quadrant1Text:Du(t.text)})}S(y7e,"setQuadrant1Text");function v7e(t){Xa.setData({quadrant2Text:Du(t.text)})}S(v7e,"setQuadrant2Text");function _7e(t){Xa.setData({quadrant3Text:Du(t.text)})}S(_7e,"setQuadrant3Text");function b7e(t){Xa.setData({quadrant4Text:Du(t.text)})}S(b7e,"setQuadrant4Text");function E7e(t){Xa.setData({xAxisLeftText:Du(t.text)})}S(E7e,"setXAxisLeftText");function S7e(t){Xa.setData({xAxisRightText:Du(t.text)})}S(S7e,"setXAxisRightText");function T7e(t){Xa.setData({yAxisTopText:Du(t.text)})}S(T7e,"setYAxisTopText");function x7e(t){Xa.setData({yAxisBottomText:Du(t.text)})}S(x7e,"setYAxisBottomText");function e8(t){const e={};for(const r of t){const[n,i]=r.trim().split(/\s*:\s*/);if(n==="radius"){if(g7e(i))throw new N3(n,i,"number");e.radius=parseInt(i)}else if(n==="color"){if(H$(i))throw new N3(n,i,"hex code");e.color=i}else if(n==="stroke-color"){if(H$(i))throw new N3(n,i,"hex code");e.strokeColor=i}else if(n==="stroke-width"){if(m7e(i))throw new N3(n,i,"number of pixels (eg. 10px)");e.strokeWidth=i}else throw new Error(`style named ${n} is not supported.`)}return e}S(e8,"parseStyles");function C7e(t,e,r,n,i){const a=e8(i);Xa.addPoints([{x:r,y:n,text:Du(t.text),className:e,...a}])}S(C7e,"addPoint");function w7e(t,e){Xa.addClass(t,e8(e))}S(w7e,"addClass");function k7e(t){Xa.setConfig({chartWidth:t})}S(k7e,"setWidth");function A7e(t){Xa.setConfig({chartHeight:t})}S(A7e,"setHeight");function R7e(){const t=Ke(),{themeVariables:e,quadrantChart:r}=t;return r&&Xa.setConfig(r),Xa.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),Xa.setData({titleText:li()}),Xa.build()}S(R7e,"getQuadrantData");var y8t=S(function(){Xa.clear(),oi()},"clear"),v8t={setWidth:k7e,setHeight:A7e,setQuadrant1Text:y7e,setQuadrant2Text:v7e,setQuadrant3Text:_7e,setQuadrant4Text:b7e,setXAxisLeftText:E7e,setXAxisRightText:S7e,setYAxisTopText:T7e,setYAxisBottomText:x7e,parseStyles:e8,addPoint:C7e,addClass:w7e,getQuadrantData:R7e,clear:y8t,setAccTitle:ai,getAccTitle:yi,setDiagramTitle:pi,getDiagramTitle:li,getAccDescription:_i,setAccDescription:vi},_8t=S((t,e,r,n)=>{function i(w){return w==="top"?"hanging":"middle"}S(i,"getDominantBaseLine");function a(w){return w==="left"?"start":"middle"}S(a,"getTextAnchor");function s(w){return`translate(${w.x}, ${w.y}) rotate(${w.rotation||0})`}S(s,"getTransformation");const o=Ke();ge.debug(`Rendering quadrant chart +`+t);const l=o.securityLevel;let u;l==="sandbox"&&(u=At("#i"+e));const h=At(l==="sandbox"?u.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`),f=h.append("g").attr("class","main"),p=o.quadrantChart?.chartWidth??500,g=o.quadrantChart?.chartHeight??500;ua(h,g,p,o.quadrantChart?.useMaxWidth??!0),h.attr("viewBox","0 0 "+p+" "+g),n.db.setHeight(g),n.db.setWidth(p);const m=n.db.getQuadrantData(),y=f.append("g").attr("class","quadrants"),v=f.append("g").attr("class","border"),b=f.append("g").attr("class","data-points"),_=f.append("g").attr("class","labels"),E=f.append("g").attr("class","title");m.title&&E.append("text").attr("x",0).attr("y",0).attr("fill",m.title.fill).attr("font-size",m.title.fontSize).attr("dominant-baseline",i(m.title.horizontalPos)).attr("text-anchor",a(m.title.verticalPos)).attr("transform",s(m.title)).text(m.title.text),m.borderLines&&v.selectAll("line").data(m.borderLines).enter().append("line").attr("x1",w=>w.x1).attr("y1",w=>w.y1).attr("x2",w=>w.x2).attr("y2",w=>w.y2).style("stroke",w=>w.strokeFill).style("stroke-width",w=>w.strokeWidth);const x=y.selectAll("g.quadrant").data(m.quadrants).enter().append("g").attr("class","quadrant");x.append("rect").attr("x",w=>w.x).attr("y",w=>w.y).attr("width",w=>w.width).attr("height",w=>w.height).attr("fill",w=>w.fill),x.append("text").attr("x",0).attr("y",0).attr("fill",w=>w.text.fill).attr("font-size",w=>w.text.fontSize).attr("dominant-baseline",w=>i(w.text.horizontalPos)).attr("text-anchor",w=>a(w.text.verticalPos)).attr("transform",w=>s(w.text)).text(w=>w.text.text),_.selectAll("g.label").data(m.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(w=>w.text).attr("fill",w=>w.fill).attr("font-size",w=>w.fontSize).attr("dominant-baseline",w=>i(w.horizontalPos)).attr("text-anchor",w=>a(w.verticalPos)).attr("transform",w=>s(w));const T=b.selectAll("g.data-point").data(m.points).enter().append("g").attr("class","data-point");T.append("circle").attr("cx",w=>w.x).attr("cy",w=>w.y).attr("r",w=>w.radius).attr("fill",w=>w.fill).attr("stroke",w=>w.strokeColor).attr("stroke-width",w=>w.strokeWidth),T.append("text").attr("x",0).attr("y",0).text(w=>w.text.text).attr("fill",w=>w.text.fill).attr("font-size",w=>w.text.fontSize).attr("dominant-baseline",w=>i(w.text.horizontalPos)).attr("text-anchor",w=>a(w.text.verticalPos)).attr("transform",w=>s(w.text))},"draw"),b8t={draw:_8t},E8t={parser:p8t,db:v8t,renderer:b8t,styles:S(()=>"","styles")};const S8t=Object.freeze(Object.defineProperty({__proto__:null,diagram:E8t},Symbol.toStringTag,{value:"Module"}));var V$=(function(){var t=S(function(I,D,L,R){for(L=L||{},R=I.length;R--;L[I[R]]=D);return L},"o"),e=[1,10,12,14,16,18,19,21,23],r=[2,6],n=[1,3],i=[1,5],a=[1,6],s=[1,7],o=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],u=[1,26],d=[1,28],h=[1,29],f=[1,30],p=[1,31],g=[1,32],m=[1,33],y=[1,34],v=[1,35],b=[1,36],_=[1,37],E=[1,43],x=[1,42],C=[1,47],T=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],N=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],O=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],M=[1,64],$={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:S(function(D,L,R,P,z,B,q){var Y=B.length-1;switch(z){case 5:P.setOrientation(B[Y]);break;case 9:P.setDiagramTitle(B[Y].text.trim());break;case 12:P.setLineData({text:"",type:"text"},B[Y]);break;case 13:P.setLineData(B[Y-1],B[Y]);break;case 14:P.setBarData({text:"",type:"text"},B[Y]);break;case 15:P.setBarData(B[Y-1],B[Y]);break;case 16:this.$=B[Y].trim(),P.setAccTitle(this.$);break;case 17:case 18:this.$=B[Y].trim(),P.setAccDescription(this.$);break;case 19:this.$=B[Y-1];break;case 20:this.$=[Number(B[Y-2]),...B[Y]];break;case 21:this.$=[Number(B[Y])];break;case 22:P.setXAxisTitle(B[Y]);break;case 23:P.setXAxisTitle(B[Y-1]);break;case 24:P.setXAxisTitle({type:"text",text:""});break;case 25:P.setXAxisBand(B[Y]);break;case 26:P.setXAxisRangeData(Number(B[Y-2]),Number(B[Y]));break;case 27:this.$=B[Y-1];break;case 28:this.$=[B[Y-2],...B[Y]];break;case 29:this.$=[B[Y]];break;case 30:P.setYAxisTitle(B[Y]);break;case 31:P.setYAxisTitle(B[Y-1]);break;case 32:P.setYAxisTitle({type:"text",text:""});break;case 33:P.setYAxisRangeData(Number(B[Y-2]),Number(B[Y]));break;case 37:this.$={text:B[Y],type:"text"};break;case 38:this.$={text:B[Y],type:"text"};break;case 39:this.$={text:B[Y],type:"markdown"};break;case 40:this.$=B[Y];break;case 41:this.$=B[Y-1]+""+B[Y];break}},"anonymous"),table:[t(e,r,{3:1,4:2,7:4,5:n,34:i,35:a,36:s}),{1:[3]},t(e,r,{4:2,7:4,3:8,5:n,34:i,35:a,36:s}),t(e,r,{4:2,7:4,6:9,3:10,5:n,8:[1,11],34:i,35:a,36:s}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(o,[2,34]),t(o,[2,35]),t(o,[2,36]),{1:[2,1]},t(e,r,{4:2,7:4,3:21,5:n,34:i,35:a,36:s}),{1:[2,3]},t(o,[2,5]),t(e,[2,7],{4:22,34:i,35:a,36:s}),{11:23,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},{11:39,13:38,24:E,27:x,29:40,30:41,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},{11:45,15:44,27:C,33:46,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},{11:49,17:48,24:T,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},{11:52,17:51,24:T,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},{20:[1,53]},{22:[1,54]},t(w,[2,18]),{1:[2,2]},t(w,[2,8]),t(w,[2,9]),t(N,[2,37],{40:55,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_}),t(N,[2,38]),t(N,[2,39]),t(O,[2,40]),t(O,[2,42]),t(O,[2,43]),t(O,[2,44]),t(O,[2,45]),t(O,[2,46]),t(O,[2,47]),t(O,[2,48]),t(O,[2,49]),t(O,[2,50]),t(O,[2,51]),t(w,[2,10]),t(w,[2,22],{30:41,29:56,24:E,27:x}),t(w,[2,24]),t(w,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},t(w,[2,11]),t(w,[2,30],{33:60,27:C}),t(w,[2,32]),{31:[1,61]},t(w,[2,12]),{17:62,24:T},{25:63,27:M},t(w,[2,14]),{17:65,24:T},t(w,[2,16]),t(w,[2,17]),t(O,[2,41]),t(w,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(w,[2,31]),{27:[1,69]},t(w,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(w,[2,15]),t(w,[2,26]),t(w,[2,27]),{11:59,32:72,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:y,48:v,49:b,50:_},t(w,[2,33]),t(w,[2,19]),{25:73,27:M},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:S(function(D,L){if(L.recoverable)this.trace(D);else{var R=new Error(D);throw R.hash=L,R}},"parseError"),parse:S(function(D){var L=this,R=[0],P=[],z=[null],B=[],q=this.table,Y="",Q=0,H=0,J=2,Z=1,pe=B.slice.call(arguments,1),re=Object.create(this.lexer),ce={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(ce.yy[ae]=this.yy[ae]);re.setInput(D,ce.yy),ce.yy.lexer=re,ce.yy.parser=this,typeof re.yylloc>"u"&&(re.yylloc={});var se=re.yylloc;B.push(se);var xe=re.options&&re.options.ranges;typeof ce.yy.parseError=="function"?this.parseError=ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(ct){R.length=R.length-2*ct,z.length=z.length-ct,B.length=B.length-ct}S(Te,"popStack");function Ge(){var ct;return ct=P.pop()||re.lex()||Z,typeof ct!="number"&&(ct instanceof Array&&(P=ct,ct=P.pop()),ct=L.symbols_[ct]||ct),ct}S(Ge,"lex");for(var ze,Xe,Le,Re,qe={},Ne,ut,De,Je;;){if(Xe=R[R.length-1],this.defaultActions[Xe]?Le=this.defaultActions[Xe]:((ze===null||typeof ze>"u")&&(ze=Ge()),Le=q[Xe]&&q[Xe][ze]),typeof Le>"u"||!Le.length||!Le[0]){var st="";Je=[];for(Ne in q[Xe])this.terminals_[Ne]&&Ne>J&&Je.push("'"+this.terminals_[Ne]+"'");re.showPosition?st="Parse error on line "+(Q+1)+`: `+re.showPosition()+` Expecting `+Je.join(", ")+", got '"+(this.terminals_[ze]||ze)+"'":st="Parse error on line "+(Q+1)+": Unexpected "+(ze==Z?"end of input":"'"+(this.terminals_[ze]||ze)+"'"),this.parseError(st,{text:re.match,token:this.terminals_[ze]||ze,line:re.yylineno,loc:se,expected:Je})}if(Le[0]instanceof Array&&Le.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xe+", token: "+ze);switch(Le[0]){case 1:R.push(ze),z.push(re.yytext),B.push(re.yylloc),R.push(Le[1]),ze=null,H=re.yyleng,Y=re.yytext,Q=re.yylineno,se=re.yylloc;break;case 2:if(ut=this.productions_[Le[1]][1],qe.$=z[z.length-ut],qe._$={first_line:B[B.length-(ut||1)].first_line,last_line:B[B.length-1].last_line,first_column:B[B.length-(ut||1)].first_column,last_column:B[B.length-1].last_column},xe&&(qe._$.range=[B[B.length-(ut||1)].range[0],B[B.length-1].range[1]]),Re=this.performAction.apply(qe,[Y,H,Q,ce.yy,Le[1],z,B].concat(pe)),typeof Re<"u")return Re;ut&&(R=R.slice(0,-1*ut*2),z=z.slice(0,-1*ut),B=B.slice(0,-1*ut)),R.push(this.productions_[Le[1]][0]),z.push(qe.$),B.push(qe._$),De=q[R[R.length-2]][R[R.length-1]],R.push(De);break;case 3:return!0}}return!0},"parse")},F=(function(){var I={EOF:1,parseError:S(function(L,R){if(this.yy.parser)this.yy.parser.parseError(L,R);else throw new Error(L)},"parseError"),setInput:S(function(D,L){return this.yy=L||this.yy||{},this._input=D,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var D=this._input[0];this.yytext+=D,this.yyleng++,this.offset++,this.match+=D,this.matched+=D;var L=D.match(/(?:\r\n?|\n).*/g);return L?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),D},"input"),unput:S(function(D){var L=D.length,R=D.split(/(?:\r\n?|\n)/g);this._input=D+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-L),this.offset-=L;var P=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),R.length-1&&(this.yylineno-=R.length-1);var z=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:R?(R.length===P.length?this.yylloc.first_column:0)+P[P.length-R.length].length-R[0].length:this.yylloc.first_column-L},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-L]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(D){this.unput(this.match.slice(D))},"less"),pastInput:S(function(){var D=this.matched.substr(0,this.matched.length-this.match.length);return(D.length>20?"...":"")+D.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var D=this.match;return D.length<20&&(D+=this._input.substr(0,20-D.length)),(D.substr(0,20)+(D.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var D=this.pastInput(),L=new Array(D.length+1).join("-");return D+this.upcomingInput()+` `+L+"^"},"showPosition"),test_match:S(function(D,L){var R,P,z;if(this.options.backtrack_lexer&&(z={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(z.yylloc.range=this.yylloc.range.slice(0))),P=D[0].match(/(?:\r\n?|\n).*/g),P&&(this.yylineno+=P.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:P?P[P.length-1].length-P[P.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+D[0].length},this.yytext+=D[0],this.match+=D[0],this.matches=D,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(D[0].length),this.matched+=D[0],R=this.performAction.call(this,this.yy,this,L,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),R)return R;if(this._backtrack){for(var B in z)this[B]=z[B];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var D,L,R,P;this._more||(this.yytext="",this.match="");for(var z=this._currentRules(),B=0;BL[0].length)){if(L=R,P=B,this.options.backtrack_lexer){if(D=this.test_match(R,z[B]),D!==!1)return D;if(this._backtrack){L=!1;continue}else return!1}else if(!this.options.flex)break}return L?(D=this.test_match(L,z[P]),D!==!1?D:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var L=this.next();return L||this.lex()},"lex"),begin:S(function(L){this.conditionStack.push(L)},"begin"),popState:S(function(){var L=this.conditionStack.length-1;return L>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(L){return L=this.conditionStack.length-1-Math.abs(L||0),L>=0?this.conditionStack[L]:"INITIAL"},"topState"),pushState:S(function(L){this.begin(L)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(L,R,P,z){switch(P){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return I})();$.lexer=F;function A(){this.yy={}}return S(A,"Parser"),A.prototype=$,$.Parser=A,new A})();V$.parser=V$;var S8t=V$;function W$(t){return t.type==="bar"}S(W$,"isBarPlot");function dW(t){return t.type==="band"}S(dW,"isBandAxisData");function o1(t){return t.type==="linear"}S(o1,"isLinearAxisData");var g_,N7e=(g_=class{constructor(e){this.parentGroup=e}getMaxDimension(e,r){if(!this.parentGroup)return{width:e.reduce((a,s)=>Math.max(s.length,a),0)*r,height:r};const n={width:0,height:0},i=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r);for(const a of e){const s=xpe(i,1,a),o=s?s.width:a.length*r,l=s?s.height:r;n.width=Math.max(n.width,o),n.height=Math.max(n.height,l)}return i.remove(),n}},S(g_,"TextDimensionCalculatorWithFont"),g_),Loe=.7,Moe=.2,m_,I7e=(m_=class{constructor(e,r,n,i){this.axisConfig=e,this.title=r,this.textDimensionCalculator=n,this.axisThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(e){this.range=e,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=e[1]-e[0]:this.boundingRect.width=e[1]-e[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){const e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(e=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Loe*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Loe*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let r=e.height;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const n=this.getLabelDimension(),i=Moe*e.width;this.outerPadding=Math.min(n.width/2,i);const a=n.height+this.axisConfig.labelPadding*2;this.labelTextHeight=n.height,a<=r&&(r-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),i=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,i<=r&&(r-=i,this.showTitle=!0)}this.boundingRect.width=e.width,this.boundingRect.height=e.height-r}calculateSpaceIfDrawnVertical(e){let r=e.width;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const n=this.getLabelDimension(),i=Moe*e.height;this.outerPadding=Math.min(n.height/2,i);const a=n.width+this.axisConfig.labelPadding*2;a<=r&&(r-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),i=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,i<=r&&(r-=i,this.showTitle=!0)}this.boundingRect.width=e.width-r,this.boundingRect.height=e.height}calculateSpace(e){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(e):this.calculateSpaceIfDrawnHorizontally(e),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}getDrawableElementsForLeftAxis(){const e=[];if(this.showAxisLine){const r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${r},${this.boundingRect.y} L ${r},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(r),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const r=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${r},${this.getScaleValue(n)} L ${r-this.axisConfig.tickLength},${this.getScaleValue(n)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElementsForBottomAxis(){const e=[];if(this.showAxisLine){const r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${r} L ${this.getScaleValue(n)},${r+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElementsForTopAxis(){const e=[];if(this.showAxisLine){const r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y;e.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${r+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(n)},${r+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},S(m_,"BaseAxis"),m_),y_,T8t=(y_=class extends I7e{constructor(e,r,n,i,a){super(e,i,a,r),this.categories=n,this.scale=eP().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=eP().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),ge.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},S(y_,"BandAxis"),y_),v_,x8t=(v_=class extends I7e{constructor(e,r,n,i,a){super(e,i,a,r),this.domain=n,this.scale=K_().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const e=[...this.domain];this.axisPosition==="left"&&e.reverse(),this.scale=K_().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}},S(v_,"LinearAxis"),v_);function K$(t,e,r,n){const i=new N7e(n);return dW(t)?new T8t(e,r,t.categories,t.title,i):new x8t(e,r,[t.min,t.max],t.title,i)}S(K$,"getAxis");var __,C8t=(__=class{constructor(e,r,n,i){this.textDimensionCalculator=e,this.chartConfig=r,this.chartData=n,this.chartThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){const r=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(r.width,e.width),i=r.height+2*this.chartConfig.titlePadding;return r.width<=n&&r.height<=i&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=i,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const e=[];return this.showChartTitle&&e.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),e}},S(__,"ChartTitle"),__);function O7e(t,e,r,n){const i=new N7e(n);return new C8t(i,t,e,r)}S(O7e,"getChartTitleComponent");var b_,w8t=(b_=class{constructor(e,r,n,i,a){this.plotData=e,this.xAxis=r,this.yAxis=n,this.orientation=i,this.plotIndex=a}getDrawableElement(){const e=this.plotData.data.map(n=>[this.xAxis.getScaleValue(n[0]),this.yAxis.getScaleValue(n[1])]);let r;return this.orientation==="horizontal"?r=zS().y(n=>n[0]).x(n=>n[1])(e):r=zS().x(n=>n[0]).y(n=>n[1])(e),r?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:r,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},S(b_,"LinePlot"),b_),E_,k8t=(E_=class{constructor(e,r,n,i,a,s){this.barData=e,this.boundingRect=r,this.xAxis=n,this.yAxis=i,this.orientation=a,this.plotIndex=s}getDrawableElement(){const e=this.barData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]),n=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),i=n/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(a=>({x:this.boundingRect.x,y:a[0]-i,height:n,width:a[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(a=>({x:a[0]-i,y:a[1],width:n,height:this.boundingRect.y+this.boundingRect.height-a[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},S(E_,"BarPlot"),E_),S_,A8t=(S_=class{constructor(e,r,n){this.chartConfig=e,this.chartData=r,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(e,r){this.xAxis=e,this.yAxis=r}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const e=[];for(const[r,n]of this.chartData.plots.entries())switch(n.type){case"line":{const i=new w8t(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...i.getDrawableElement())}break;case"bar":{const i=new k8t(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...i.getDrawableElement())}break}return e}},S(S_,"BasePlot"),S_);function D7e(t,e,r){return new A8t(t,e,r)}S(D7e,"getPlotComponent");var T_,R8t=(T_=class{constructor(e,r,n,i){this.chartConfig=e,this.chartData=r,this.componentStore={title:O7e(e,r,n,i),plot:D7e(e,r,n),xAxis:K$(r.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},i),yAxis:K$(r.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},i)}}calculateVerticalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,i=0,a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:a,height:s});e-=o.width,r-=o.height,o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),i=o.height,r-=o.height,this.componentStore.xAxis.setAxisPosition("bottom"),o=this.componentStore.xAxis.calculateSpace({width:e,height:r}),r-=o.height,this.componentStore.yAxis.setAxisPosition("left"),o=this.componentStore.yAxis.calculateSpace({width:e,height:r}),n=o.width,e-=o.width,e>0&&(a+=e,e=0),r>0&&(s+=r,r=0),this.componentStore.plot.calculateSpace({width:a,height:s}),this.componentStore.plot.setBoundingBoxXY({x:n,y:i}),this.componentStore.xAxis.setRange([n,n+a]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:i+s}),this.componentStore.yAxis.setRange([i,i+s]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(l=>W$(l))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,i=0,a=0,s=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),l=this.componentStore.plot.calculateSpace({width:s,height:o});e-=l.width,r-=l.height,l=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),n=l.height,r-=l.height,this.componentStore.xAxis.setAxisPosition("left"),l=this.componentStore.xAxis.calculateSpace({width:e,height:r}),e-=l.width,i=l.width,this.componentStore.yAxis.setAxisPosition("top"),l=this.componentStore.yAxis.calculateSpace({width:e,height:r}),r-=l.height,a=n+l.height,e>0&&(s+=e,e=0),r>0&&(o+=r,r=0),this.componentStore.plot.calculateSpace({width:s,height:o}),this.componentStore.plot.setBoundingBoxXY({x:i,y:a}),this.componentStore.yAxis.setRange([i,i+s]),this.componentStore.yAxis.setBoundingBoxXY({x:i,y:n}),this.componentStore.xAxis.setRange([a,a+o]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(u=>W$(u))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const r of Object.values(this.componentStore))e.push(...r.getDrawableElements());return e}},S(T_,"Orchestrator"),T_),x_,N8t=(x_=class{static build(e,r,n,i){return new R8t(e,r,n,i).getDrawableElement()}},S(x_,"XYChartBuilder"),x_),P4=0,L7e,B4=pW(),F4=fW(),Nn=gW(),X$=F4.plotColorPalette.split(",").map(t=>t.trim()),t8=!1,hW=!1;function fW(){const t=Fb(),e=xr();return $i(t.xyChart,e.themeVariables.xyChart)}S(fW,"getChartDefaultThemeConfig");function pW(){const t=xr();return $i(on.xyChart,t.xyChart)}S(pW,"getChartDefaultConfig");function gW(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}S(gW,"getChartDefaultData");function r8(t){const e=xr();return un(t.trim(),e)}S(r8,"textSanitizer");function M7e(t){L7e=t}S(M7e,"setTmpSVGG");function P7e(t){t==="horizontal"?B4.chartOrientation="horizontal":B4.chartOrientation="vertical"}S(P7e,"setOrientation");function B7e(t){Nn.xAxis.title=r8(t.text)}S(B7e,"setXAxisTitle");function mW(t,e){Nn.xAxis={type:"linear",title:Nn.xAxis.title,min:t,max:e},t8=!0}S(mW,"setXAxisRangeData");function F7e(t){Nn.xAxis={type:"band",title:Nn.xAxis.title,categories:t.map(e=>r8(e.text))},t8=!0}S(F7e,"setXAxisBand");function $7e(t){Nn.yAxis.title=r8(t.text)}S($7e,"setYAxisTitle");function z7e(t,e){Nn.yAxis={type:"linear",title:Nn.yAxis.title,min:t,max:e},hW=!0}S(z7e,"setYAxisRangeData");function U7e(t){const e=Math.min(...t),r=Math.max(...t),n=o1(Nn.yAxis)?Nn.yAxis.min:1/0,i=o1(Nn.yAxis)?Nn.yAxis.max:-1/0;Nn.yAxis={type:"linear",title:Nn.yAxis.title,min:Math.min(n,e),max:Math.max(i,r)}}S(U7e,"setYAxisRangeFromPlotData");function yW(t){let e=[];if(t.length===0)return e;if(!t8){const r=o1(Nn.xAxis)?Nn.xAxis.min:1/0,n=o1(Nn.xAxis)?Nn.xAxis.max:-1/0;mW(Math.min(r,1),Math.max(n,t.length))}if(hW||U7e(t),dW(Nn.xAxis)&&(e=Nn.xAxis.categories.map((r,n)=>[r,t[n]])),o1(Nn.xAxis)){const r=Nn.xAxis.min,n=Nn.xAxis.max,i=(n-r)/(t.length-1),a=[];for(let s=r;s<=n;s+=i)a.push(`${s}`);e=a.map((s,o)=>[s,t[o]])}return e}S(yW,"transformDataWithoutCategory");function vW(t){return X$[t===0?0:t%X$.length]}S(vW,"getPlotColorFromPalette");function G7e(t,e){const r=yW(e);Nn.plots.push({type:"line",strokeFill:vW(P4),strokeWidth:2,data:r}),P4++}S(G7e,"setLineData");function q7e(t,e){const r=yW(e);Nn.plots.push({type:"bar",fill:vW(P4),data:r}),P4++}S(q7e,"setBarData");function Y7e(){if(Nn.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return Nn.title=li(),N8t.build(B4,Nn,F4,L7e)}S(Y7e,"getDrawableElem");function H7e(){return F4}S(H7e,"getChartThemeConfig");function V7e(){return B4}S(V7e,"getChartConfig");function W7e(){return Nn}S(W7e,"getXYChartData");var I8t=S(function(){oi(),P4=0,B4=pW(),Nn=gW(),F4=fW(),X$=F4.plotColorPalette.split(",").map(t=>t.trim()),t8=!1,hW=!1},"clear"),O8t={getDrawableElem:Y7e,clear:I8t,setAccTitle:ai,getAccTitle:yi,setDiagramTitle:pi,getDiagramTitle:li,getAccDescription:_i,setAccDescription:vi,setOrientation:P7e,setXAxisTitle:B7e,setXAxisRangeData:mW,setXAxisBand:F7e,setYAxisTitle:$7e,setYAxisRangeData:z7e,setLineData:G7e,setBarData:q7e,setTmpSVGG:M7e,getChartThemeConfig:H7e,getChartConfig:V7e,getXYChartData:W7e},D8t=S((t,e,r,n)=>{const i=n.db,a=i.getChartThemeConfig(),s=i.getChartConfig(),o=i.getXYChartData().plots[0].data.map(v=>v[1]);function l(v){return v==="top"?"text-before-edge":"middle"}S(l,"getDominantBaseLine");function u(v){return v==="left"?"start":v==="right"?"end":"middle"}S(u,"getTextAnchor");function d(v){return`translate(${v.x}, ${v.y}) rotate(${v.rotation||0})`}S(d,"getTextTransformation"),ge.debug(`Rendering xychart chart -`+t);const h=To(e),f=h.append("g").attr("class","main"),p=f.append("rect").attr("width",s.width).attr("height",s.height).attr("class","background");ua(h,s.height,s.width,!0),h.attr("viewBox",`0 0 ${s.width} ${s.height}`),p.attr("fill",a.backgroundColor),i.setTmpSVGG(h.append("g").attr("class","mermaid-tmp-group"));const g=i.getDrawableElem(),m={};function y(v){let b=f,_="";for(const[E]of v.entries()){let x=f;E>0&&m[_]&&(x=m[_]),_+=v[E],b=m[_],b||(b=m[_]=x.append("g").attr("class",v[E]))}return b}S(y,"getGroup");for(const v of g){if(v.data.length===0)continue;const b=y(v.groupTexts);switch(v.type){case"rect":if(b.selectAll("rect").data(v.data).enter().append("rect").attr("x",_=>_.x).attr("y",_=>_.y).attr("width",_=>_.width).attr("height",_=>_.height).attr("fill",_=>_.fill).attr("stroke",_=>_.strokeFill).attr("stroke-width",_=>_.strokeWidth),s.showDataLabel){const _=s.showDataLabelOutsideBar;if(s.chartOrientation==="horizontal"){let E=function(M,$){const{data:F,label:A}=M;return $*A.length*x<=F.width-C};S(E,"fitsHorizontally");const x=.7,C=10,T=v.data.map((M,$)=>({data:M,label:o[$].toString()})).filter(M=>M.data.width>0&&M.data.height>0),w=T.map(M=>{const{data:$}=M;let F=$.height*.7;for(;!E(M,F)&&F>0;)F-=1;return F}),N=Math.floor(Math.min(...w)),O=S(M=>_?M.data.x+M.data.width+C:M.data.x+M.data.width-C,"determineLabelXPosition");b.selectAll("text").data(T).enter().append("text").attr("x",O).attr("y",M=>M.data.y+M.data.height/2).attr("text-anchor",_?"start":"end").attr("dominant-baseline","middle").attr("fill",a.dataLabelColor).attr("font-size",`${N}px`).text(M=>M.label)}else{let E=function(O,M,$){const{data:F,label:A}=O,D=M*A.length*.7,L=F.x+F.width/2,R=L-D/2,P=L+D/2,z=R>=F.x&&P<=F.x+F.width,B=F.y+$+M<=F.y+F.height;return z&&B};S(E,"fitsInBar");const x=10,C=v.data.map((O,M)=>({data:O,label:o[M].toString()})).filter(O=>O.data.width>0&&O.data.height>0),T=C.map(O=>{const{data:M,label:$}=O;let F=M.width/($.length*.7);for(;!E(O,F,x)&&F>0;)F-=1;return F}),w=Math.floor(Math.min(...T)),N=S(O=>_?O.data.y-x:O.data.y+x,"determineLabelYPosition");b.selectAll("text").data(C).enter().append("text").attr("x",O=>O.data.x+O.data.width/2).attr("y",N).attr("text-anchor","middle").attr("dominant-baseline",_?"auto":"hanging").attr("fill",a.dataLabelColor).attr("font-size",`${w}px`).text(O=>O.label)}}break;case"text":b.selectAll("text").data(v.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",_=>_.fill).attr("font-size",_=>_.fontSize).attr("dominant-baseline",_=>l(_.verticalPos)).attr("text-anchor",_=>u(_.horizontalPos)).attr("transform",_=>d(_)).text(_=>_.text);break;case"path":b.selectAll("path").data(v.data).enter().append("path").attr("d",_=>_.path).attr("fill",_=>_.fill?_.fill:"none").attr("stroke",_=>_.strokeFill).attr("stroke-width",_=>_.strokeWidth);break}}},"draw"),L8t={draw:D8t},M8t={parser:S8t,db:O8t,renderer:L8t};const P8t=Object.freeze(Object.defineProperty({__proto__:null,diagram:M8t},Symbol.toStringTag,{value:"Module"}));var j$=(function(){var t=S(function(Oe,U,oe,de){for(oe=oe||{},de=Oe.length;de--;oe[Oe[de]]=U);return oe},"o"),e=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],s=[1,22],o=[2,7],l=[1,26],u=[1,27],d=[1,28],h=[1,29],f=[1,33],p=[1,34],g=[1,35],m=[1,36],y=[1,37],v=[1,38],b=[1,24],_=[1,31],E=[1,32],x=[1,30],C=[1,39],T=[1,40],w=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],N=[1,61],O=[89,90],M=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],$=[27,29],F=[1,70],A=[1,71],I=[1,72],D=[1,73],L=[1,74],R=[1,75],P=[1,76],z=[1,83],B=[1,80],q=[1,84],Y=[1,85],Q=[1,86],H=[1,87],J=[1,88],Z=[1,89],pe=[1,90],re=[1,91],ce=[1,92],ae=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],se=[63,64],xe=[1,101],Te=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],Ge=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],ze=[1,110],Xe=[1,106],Le=[1,107],Re=[1,108],qe=[1,109],Ne=[1,111],ut=[1,116],De=[1,117],Je=[1,114],st=[1,115],ct={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:S(function(U,oe,de,G,ie,j,V){var ue=j.length-1;switch(ie){case 4:this.$=j[ue].trim(),G.setAccTitle(this.$);break;case 5:case 6:this.$=j[ue].trim(),G.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:G.setDirection("TB");break;case 18:G.setDirection("BT");break;case 19:G.setDirection("RL");break;case 20:G.setDirection("LR");break;case 21:G.addRequirement(j[ue-3],j[ue-4]);break;case 22:G.addRequirement(j[ue-5],j[ue-6]),G.setClass([j[ue-5]],j[ue-3]);break;case 23:G.setNewReqId(j[ue-2]);break;case 24:G.setNewReqText(j[ue-2]);break;case 25:G.setNewReqRisk(j[ue-2]);break;case 26:G.setNewReqVerifyMethod(j[ue-2]);break;case 29:this.$=G.RequirementType.REQUIREMENT;break;case 30:this.$=G.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=G.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=G.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=G.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=G.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=G.RiskLevel.LOW_RISK;break;case 36:this.$=G.RiskLevel.MED_RISK;break;case 37:this.$=G.RiskLevel.HIGH_RISK;break;case 38:this.$=G.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=G.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=G.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=G.VerifyType.VERIFY_TEST;break;case 42:G.addElement(j[ue-3]);break;case 43:G.addElement(j[ue-5]),G.setClass([j[ue-5]],j[ue-3]);break;case 44:G.setNewElementType(j[ue-2]);break;case 45:G.setNewElementDocRef(j[ue-2]);break;case 48:G.addRelationship(j[ue-2],j[ue],j[ue-4]);break;case 49:G.addRelationship(j[ue-2],j[ue-4],j[ue]);break;case 50:this.$=G.Relationships.CONTAINS;break;case 51:this.$=G.Relationships.COPIES;break;case 52:this.$=G.Relationships.DERIVES;break;case 53:this.$=G.Relationships.SATISFIES;break;case 54:this.$=G.Relationships.VERIFIES;break;case 55:this.$=G.Relationships.REFINES;break;case 56:this.$=G.Relationships.TRACES;break;case 57:this.$=j[ue-2],G.defineClass(j[ue-1],j[ue]);break;case 58:G.setClass(j[ue-1],j[ue]);break;case 59:G.setClass([j[ue-2]],j[ue]);break;case 60:case 62:this.$=[j[ue]];break;case 61:case 63:this.$=j[ue-2].concat([j[ue]]);break;case 64:this.$=j[ue-2],G.setCssStyle(j[ue-1],j[ue]);break;case 65:this.$=[j[ue]];break;case 66:j[ue-2].push(j[ue]),this.$=j[ue-2];break;case 68:this.$=j[ue-1]+j[ue];break}},"anonymous"),table:[{3:1,4:2,6:e,9:r,11:n,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:e,9:r,11:n,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(a,[2,6]),{3:12,4:2,6:e,9:r,11:n,13:i},{1:[2,2]},{4:17,5:s,7:13,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},t(a,[2,4]),t(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:s,7:42,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:43,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:44,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:45,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:46,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:47,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:48,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:49,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:50,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},t(w,[2,17]),t(w,[2,18]),t(w,[2,19]),t(w,[2,20]),{30:60,33:62,75:N,89:C,90:T},{30:63,33:62,75:N,89:C,90:T},{30:64,33:62,75:N,89:C,90:T},t(O,[2,29]),t(O,[2,30]),t(O,[2,31]),t(O,[2,32]),t(O,[2,33]),t(O,[2,34]),t(M,[2,81]),t(M,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},t($,[2,79]),t($,[2,80]),{27:[1,67],29:[1,68]},t($,[2,85]),t($,[2,86]),{62:69,65:F,66:A,67:I,68:D,69:L,70:R,71:P},{62:77,65:F,66:A,67:I,68:D,69:L,70:R,71:P},{30:78,33:62,75:N,89:C,90:T},{73:79,75:z,76:B,78:81,79:82,80:q,81:Y,82:Q,83:H,84:J,85:Z,86:pe,87:re,88:ce},t(ae,[2,60]),t(ae,[2,62]),{73:93,75:z,76:B,78:81,79:82,80:q,81:Y,82:Q,83:H,84:J,85:Z,86:pe,87:re,88:ce},{30:94,33:62,75:N,76:B,89:C,90:T},{5:[1,95]},{30:96,33:62,75:N,89:C,90:T},{5:[1,97]},{30:98,33:62,75:N,89:C,90:T},{63:[1,99]},t(se,[2,50]),t(se,[2,51]),t(se,[2,52]),t(se,[2,53]),t(se,[2,54]),t(se,[2,55]),t(se,[2,56]),{64:[1,100]},t(w,[2,59],{76:B}),t(w,[2,64],{76:xe}),{33:103,75:[1,102],89:C,90:T},t(Te,[2,65],{79:104,75:z,80:q,81:Y,82:Q,83:H,84:J,85:Z,86:pe,87:re,88:ce}),t(Ge,[2,67]),t(Ge,[2,69]),t(Ge,[2,70]),t(Ge,[2,71]),t(Ge,[2,72]),t(Ge,[2,73]),t(Ge,[2,74]),t(Ge,[2,75]),t(Ge,[2,76]),t(Ge,[2,77]),t(Ge,[2,78]),t(w,[2,57],{76:xe}),t(w,[2,58],{76:B}),{5:ze,28:105,31:Xe,34:Le,36:Re,38:qe,40:Ne},{27:[1,112],76:B},{5:ut,40:De,56:113,57:Je,59:st},{27:[1,118],76:B},{33:119,89:C,90:T},{33:120,89:C,90:T},{75:z,78:121,79:82,80:q,81:Y,82:Q,83:H,84:J,85:Z,86:pe,87:re,88:ce},t(ae,[2,61]),t(ae,[2,63]),t(Ge,[2,68]),t(w,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:ze,28:126,31:Xe,34:Le,36:Re,38:qe,40:Ne},t(w,[2,28]),{5:[1,127]},t(w,[2,42]),{32:[1,128]},{32:[1,129]},{5:ut,40:De,56:130,57:Je,59:st},t(w,[2,47]),{5:[1,131]},t(w,[2,48]),t(w,[2,49]),t(Te,[2,66],{79:104,75:z,80:q,81:Y,82:Q,83:H,84:J,85:Z,86:pe,87:re,88:ce}),{33:132,89:C,90:T},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},t(w,[2,27]),{5:ze,28:145,31:Xe,34:Le,36:Re,38:qe,40:Ne},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},t(w,[2,46]),{5:ut,40:De,56:152,57:Je,59:st},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},t(w,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},t(w,[2,43]),{5:ze,28:159,31:Xe,34:Le,36:Re,38:qe,40:Ne},{5:ze,28:160,31:Xe,34:Le,36:Re,38:qe,40:Ne},{5:ze,28:161,31:Xe,34:Le,36:Re,38:qe,40:Ne},{5:ze,28:162,31:Xe,34:Le,36:Re,38:qe,40:Ne},{5:ut,40:De,56:163,57:Je,59:st},{5:ut,40:De,56:164,57:Je,59:st},t(w,[2,23]),t(w,[2,24]),t(w,[2,25]),t(w,[2,26]),t(w,[2,44]),t(w,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:S(function(U,oe){if(oe.recoverable)this.trace(U);else{var de=new Error(U);throw de.hash=oe,de}},"parseError"),parse:S(function(U){var oe=this,de=[0],G=[],ie=[null],j=[],V=this.table,ue="",Fe=0,me=0,Ce=2,ye=1,Me=j.slice.call(arguments,1),Ie=Object.create(this.lexer),he={yy:{}};for(var le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(he.yy[le]=this.yy[le]);Ie.setInput(U,he.yy),he.yy.lexer=Ie,he.yy.parser=this,typeof Ie.yylloc>"u"&&(Ie.yylloc={});var Be=Ie.yylloc;j.push(Be);var ve=Ie.options&&Ie.options.ranges;typeof he.yy.parseError=="function"?this.parseError=he.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gt(Pe){de.length=de.length-2*Pe,ie.length=ie.length-Pe,j.length=j.length-Pe}S(gt,"popStack");function Et(){var Pe;return Pe=G.pop()||Ie.lex()||ye,typeof Pe!="number"&&(Pe instanceof Array&&(G=Pe,Pe=G.pop()),Pe=oe.symbols_[Pe]||Pe),Pe}S(Et,"lex");for(var et,dt,ft,mt,fe={},It,St,Tt,Nt;;){if(dt=de[de.length-1],this.defaultActions[dt]?ft=this.defaultActions[dt]:((et===null||typeof et>"u")&&(et=Et()),ft=V[dt]&&V[dt][et]),typeof ft>"u"||!ft.length||!ft[0]){var Hr="";Nt=[];for(It in V[dt])this.terminals_[It]&&It>Ce&&Nt.push("'"+this.terminals_[It]+"'");Ie.showPosition?Hr="Parse error on line "+(Fe+1)+`: +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var L=this.next();return L||this.lex()},"lex"),begin:S(function(L){this.conditionStack.push(L)},"begin"),popState:S(function(){var L=this.conditionStack.length-1;return L>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(L){return L=this.conditionStack.length-1-Math.abs(L||0),L>=0?this.conditionStack[L]:"INITIAL"},"topState"),pushState:S(function(L){this.begin(L)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(L,R,P,z){switch(P){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return I})();$.lexer=F;function A(){this.yy={}}return S(A,"Parser"),A.prototype=$,$.Parser=A,new A})();V$.parser=V$;var T8t=V$;function W$(t){return t.type==="bar"}S(W$,"isBarPlot");function dW(t){return t.type==="band"}S(dW,"isBandAxisData");function o1(t){return t.type==="linear"}S(o1,"isLinearAxisData");var g_,N7e=(g_=class{constructor(e){this.parentGroup=e}getMaxDimension(e,r){if(!this.parentGroup)return{width:e.reduce((a,s)=>Math.max(s.length,a),0)*r,height:r};const n={width:0,height:0},i=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r);for(const a of e){const s=xpe(i,1,a),o=s?s.width:a.length*r,l=s?s.height:r;n.width=Math.max(n.width,o),n.height=Math.max(n.height,l)}return i.remove(),n}},S(g_,"TextDimensionCalculatorWithFont"),g_),Loe=.7,Moe=.2,m_,I7e=(m_=class{constructor(e,r,n,i){this.axisConfig=e,this.title=r,this.textDimensionCalculator=n,this.axisThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(e){this.range=e,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=e[1]-e[0]:this.boundingRect.width=e[1]-e[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){const e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(e=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Loe*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Loe*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let r=e.height;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const n=this.getLabelDimension(),i=Moe*e.width;this.outerPadding=Math.min(n.width/2,i);const a=n.height+this.axisConfig.labelPadding*2;this.labelTextHeight=n.height,a<=r&&(r-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),i=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,i<=r&&(r-=i,this.showTitle=!0)}this.boundingRect.width=e.width,this.boundingRect.height=e.height-r}calculateSpaceIfDrawnVertical(e){let r=e.width;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const n=this.getLabelDimension(),i=Moe*e.height;this.outerPadding=Math.min(n.height/2,i);const a=n.width+this.axisConfig.labelPadding*2;a<=r&&(r-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),i=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,i<=r&&(r-=i,this.showTitle=!0)}this.boundingRect.width=e.width-r,this.boundingRect.height=e.height}calculateSpace(e){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(e):this.calculateSpaceIfDrawnHorizontally(e),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}getDrawableElementsForLeftAxis(){const e=[];if(this.showAxisLine){const r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${r},${this.boundingRect.y} L ${r},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(r),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const r=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${r},${this.getScaleValue(n)} L ${r-this.axisConfig.tickLength},${this.getScaleValue(n)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElementsForBottomAxis(){const e=[];if(this.showAxisLine){const r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${r} L ${this.getScaleValue(n)},${r+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElementsForTopAxis(){const e=[];if(this.showAxisLine){const r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y;e.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${r+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(n)},${r+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},S(m_,"BaseAxis"),m_),y_,x8t=(y_=class extends I7e{constructor(e,r,n,i,a){super(e,i,a,r),this.categories=n,this.scale=eP().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=eP().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),ge.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},S(y_,"BandAxis"),y_),v_,C8t=(v_=class extends I7e{constructor(e,r,n,i,a){super(e,i,a,r),this.domain=n,this.scale=K_().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const e=[...this.domain];this.axisPosition==="left"&&e.reverse(),this.scale=K_().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}},S(v_,"LinearAxis"),v_);function K$(t,e,r,n){const i=new N7e(n);return dW(t)?new x8t(e,r,t.categories,t.title,i):new C8t(e,r,[t.min,t.max],t.title,i)}S(K$,"getAxis");var __,w8t=(__=class{constructor(e,r,n,i){this.textDimensionCalculator=e,this.chartConfig=r,this.chartData=n,this.chartThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){const r=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(r.width,e.width),i=r.height+2*this.chartConfig.titlePadding;return r.width<=n&&r.height<=i&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=i,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const e=[];return this.showChartTitle&&e.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),e}},S(__,"ChartTitle"),__);function O7e(t,e,r,n){const i=new N7e(n);return new w8t(i,t,e,r)}S(O7e,"getChartTitleComponent");var b_,k8t=(b_=class{constructor(e,r,n,i,a){this.plotData=e,this.xAxis=r,this.yAxis=n,this.orientation=i,this.plotIndex=a}getDrawableElement(){const e=this.plotData.data.map(n=>[this.xAxis.getScaleValue(n[0]),this.yAxis.getScaleValue(n[1])]);let r;return this.orientation==="horizontal"?r=zS().y(n=>n[0]).x(n=>n[1])(e):r=zS().x(n=>n[0]).y(n=>n[1])(e),r?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:r,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},S(b_,"LinePlot"),b_),E_,A8t=(E_=class{constructor(e,r,n,i,a,s){this.barData=e,this.boundingRect=r,this.xAxis=n,this.yAxis=i,this.orientation=a,this.plotIndex=s}getDrawableElement(){const e=this.barData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]),n=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),i=n/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(a=>({x:this.boundingRect.x,y:a[0]-i,height:n,width:a[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(a=>({x:a[0]-i,y:a[1],width:n,height:this.boundingRect.y+this.boundingRect.height-a[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},S(E_,"BarPlot"),E_),S_,R8t=(S_=class{constructor(e,r,n){this.chartConfig=e,this.chartData=r,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(e,r){this.xAxis=e,this.yAxis=r}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const e=[];for(const[r,n]of this.chartData.plots.entries())switch(n.type){case"line":{const i=new k8t(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...i.getDrawableElement())}break;case"bar":{const i=new A8t(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...i.getDrawableElement())}break}return e}},S(S_,"BasePlot"),S_);function D7e(t,e,r){return new R8t(t,e,r)}S(D7e,"getPlotComponent");var T_,N8t=(T_=class{constructor(e,r,n,i){this.chartConfig=e,this.chartData=r,this.componentStore={title:O7e(e,r,n,i),plot:D7e(e,r,n),xAxis:K$(r.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},i),yAxis:K$(r.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},i)}}calculateVerticalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,i=0,a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:a,height:s});e-=o.width,r-=o.height,o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),i=o.height,r-=o.height,this.componentStore.xAxis.setAxisPosition("bottom"),o=this.componentStore.xAxis.calculateSpace({width:e,height:r}),r-=o.height,this.componentStore.yAxis.setAxisPosition("left"),o=this.componentStore.yAxis.calculateSpace({width:e,height:r}),n=o.width,e-=o.width,e>0&&(a+=e,e=0),r>0&&(s+=r,r=0),this.componentStore.plot.calculateSpace({width:a,height:s}),this.componentStore.plot.setBoundingBoxXY({x:n,y:i}),this.componentStore.xAxis.setRange([n,n+a]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:i+s}),this.componentStore.yAxis.setRange([i,i+s]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(l=>W$(l))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,i=0,a=0,s=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),l=this.componentStore.plot.calculateSpace({width:s,height:o});e-=l.width,r-=l.height,l=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),n=l.height,r-=l.height,this.componentStore.xAxis.setAxisPosition("left"),l=this.componentStore.xAxis.calculateSpace({width:e,height:r}),e-=l.width,i=l.width,this.componentStore.yAxis.setAxisPosition("top"),l=this.componentStore.yAxis.calculateSpace({width:e,height:r}),r-=l.height,a=n+l.height,e>0&&(s+=e,e=0),r>0&&(o+=r,r=0),this.componentStore.plot.calculateSpace({width:s,height:o}),this.componentStore.plot.setBoundingBoxXY({x:i,y:a}),this.componentStore.yAxis.setRange([i,i+s]),this.componentStore.yAxis.setBoundingBoxXY({x:i,y:n}),this.componentStore.xAxis.setRange([a,a+o]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(u=>W$(u))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const r of Object.values(this.componentStore))e.push(...r.getDrawableElements());return e}},S(T_,"Orchestrator"),T_),x_,I8t=(x_=class{static build(e,r,n,i){return new N8t(e,r,n,i).getDrawableElement()}},S(x_,"XYChartBuilder"),x_),P4=0,L7e,B4=pW(),F4=fW(),Nn=gW(),X$=F4.plotColorPalette.split(",").map(t=>t.trim()),t8=!1,hW=!1;function fW(){const t=Fb(),e=xr();return $i(t.xyChart,e.themeVariables.xyChart)}S(fW,"getChartDefaultThemeConfig");function pW(){const t=xr();return $i(on.xyChart,t.xyChart)}S(pW,"getChartDefaultConfig");function gW(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}S(gW,"getChartDefaultData");function r8(t){const e=xr();return un(t.trim(),e)}S(r8,"textSanitizer");function M7e(t){L7e=t}S(M7e,"setTmpSVGG");function P7e(t){t==="horizontal"?B4.chartOrientation="horizontal":B4.chartOrientation="vertical"}S(P7e,"setOrientation");function B7e(t){Nn.xAxis.title=r8(t.text)}S(B7e,"setXAxisTitle");function mW(t,e){Nn.xAxis={type:"linear",title:Nn.xAxis.title,min:t,max:e},t8=!0}S(mW,"setXAxisRangeData");function F7e(t){Nn.xAxis={type:"band",title:Nn.xAxis.title,categories:t.map(e=>r8(e.text))},t8=!0}S(F7e,"setXAxisBand");function $7e(t){Nn.yAxis.title=r8(t.text)}S($7e,"setYAxisTitle");function z7e(t,e){Nn.yAxis={type:"linear",title:Nn.yAxis.title,min:t,max:e},hW=!0}S(z7e,"setYAxisRangeData");function U7e(t){const e=Math.min(...t),r=Math.max(...t),n=o1(Nn.yAxis)?Nn.yAxis.min:1/0,i=o1(Nn.yAxis)?Nn.yAxis.max:-1/0;Nn.yAxis={type:"linear",title:Nn.yAxis.title,min:Math.min(n,e),max:Math.max(i,r)}}S(U7e,"setYAxisRangeFromPlotData");function yW(t){let e=[];if(t.length===0)return e;if(!t8){const r=o1(Nn.xAxis)?Nn.xAxis.min:1/0,n=o1(Nn.xAxis)?Nn.xAxis.max:-1/0;mW(Math.min(r,1),Math.max(n,t.length))}if(hW||U7e(t),dW(Nn.xAxis)&&(e=Nn.xAxis.categories.map((r,n)=>[r,t[n]])),o1(Nn.xAxis)){const r=Nn.xAxis.min,n=Nn.xAxis.max,i=(n-r)/(t.length-1),a=[];for(let s=r;s<=n;s+=i)a.push(`${s}`);e=a.map((s,o)=>[s,t[o]])}return e}S(yW,"transformDataWithoutCategory");function vW(t){return X$[t===0?0:t%X$.length]}S(vW,"getPlotColorFromPalette");function G7e(t,e){const r=yW(e);Nn.plots.push({type:"line",strokeFill:vW(P4),strokeWidth:2,data:r}),P4++}S(G7e,"setLineData");function q7e(t,e){const r=yW(e);Nn.plots.push({type:"bar",fill:vW(P4),data:r}),P4++}S(q7e,"setBarData");function Y7e(){if(Nn.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return Nn.title=li(),I8t.build(B4,Nn,F4,L7e)}S(Y7e,"getDrawableElem");function H7e(){return F4}S(H7e,"getChartThemeConfig");function V7e(){return B4}S(V7e,"getChartConfig");function W7e(){return Nn}S(W7e,"getXYChartData");var O8t=S(function(){oi(),P4=0,B4=pW(),Nn=gW(),F4=fW(),X$=F4.plotColorPalette.split(",").map(t=>t.trim()),t8=!1,hW=!1},"clear"),D8t={getDrawableElem:Y7e,clear:O8t,setAccTitle:ai,getAccTitle:yi,setDiagramTitle:pi,getDiagramTitle:li,getAccDescription:_i,setAccDescription:vi,setOrientation:P7e,setXAxisTitle:B7e,setXAxisRangeData:mW,setXAxisBand:F7e,setYAxisTitle:$7e,setYAxisRangeData:z7e,setLineData:G7e,setBarData:q7e,setTmpSVGG:M7e,getChartThemeConfig:H7e,getChartConfig:V7e,getXYChartData:W7e},L8t=S((t,e,r,n)=>{const i=n.db,a=i.getChartThemeConfig(),s=i.getChartConfig(),o=i.getXYChartData().plots[0].data.map(v=>v[1]);function l(v){return v==="top"?"text-before-edge":"middle"}S(l,"getDominantBaseLine");function u(v){return v==="left"?"start":v==="right"?"end":"middle"}S(u,"getTextAnchor");function d(v){return`translate(${v.x}, ${v.y}) rotate(${v.rotation||0})`}S(d,"getTextTransformation"),ge.debug(`Rendering xychart chart +`+t);const h=To(e),f=h.append("g").attr("class","main"),p=f.append("rect").attr("width",s.width).attr("height",s.height).attr("class","background");ua(h,s.height,s.width,!0),h.attr("viewBox",`0 0 ${s.width} ${s.height}`),p.attr("fill",a.backgroundColor),i.setTmpSVGG(h.append("g").attr("class","mermaid-tmp-group"));const g=i.getDrawableElem(),m={};function y(v){let b=f,_="";for(const[E]of v.entries()){let x=f;E>0&&m[_]&&(x=m[_]),_+=v[E],b=m[_],b||(b=m[_]=x.append("g").attr("class",v[E]))}return b}S(y,"getGroup");for(const v of g){if(v.data.length===0)continue;const b=y(v.groupTexts);switch(v.type){case"rect":if(b.selectAll("rect").data(v.data).enter().append("rect").attr("x",_=>_.x).attr("y",_=>_.y).attr("width",_=>_.width).attr("height",_=>_.height).attr("fill",_=>_.fill).attr("stroke",_=>_.strokeFill).attr("stroke-width",_=>_.strokeWidth),s.showDataLabel){const _=s.showDataLabelOutsideBar;if(s.chartOrientation==="horizontal"){let E=function(M,$){const{data:F,label:A}=M;return $*A.length*x<=F.width-C};S(E,"fitsHorizontally");const x=.7,C=10,T=v.data.map((M,$)=>({data:M,label:o[$].toString()})).filter(M=>M.data.width>0&&M.data.height>0),w=T.map(M=>{const{data:$}=M;let F=$.height*.7;for(;!E(M,F)&&F>0;)F-=1;return F}),N=Math.floor(Math.min(...w)),O=S(M=>_?M.data.x+M.data.width+C:M.data.x+M.data.width-C,"determineLabelXPosition");b.selectAll("text").data(T).enter().append("text").attr("x",O).attr("y",M=>M.data.y+M.data.height/2).attr("text-anchor",_?"start":"end").attr("dominant-baseline","middle").attr("fill",a.dataLabelColor).attr("font-size",`${N}px`).text(M=>M.label)}else{let E=function(O,M,$){const{data:F,label:A}=O,D=M*A.length*.7,L=F.x+F.width/2,R=L-D/2,P=L+D/2,z=R>=F.x&&P<=F.x+F.width,B=F.y+$+M<=F.y+F.height;return z&&B};S(E,"fitsInBar");const x=10,C=v.data.map((O,M)=>({data:O,label:o[M].toString()})).filter(O=>O.data.width>0&&O.data.height>0),T=C.map(O=>{const{data:M,label:$}=O;let F=M.width/($.length*.7);for(;!E(O,F,x)&&F>0;)F-=1;return F}),w=Math.floor(Math.min(...T)),N=S(O=>_?O.data.y-x:O.data.y+x,"determineLabelYPosition");b.selectAll("text").data(C).enter().append("text").attr("x",O=>O.data.x+O.data.width/2).attr("y",N).attr("text-anchor","middle").attr("dominant-baseline",_?"auto":"hanging").attr("fill",a.dataLabelColor).attr("font-size",`${w}px`).text(O=>O.label)}}break;case"text":b.selectAll("text").data(v.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",_=>_.fill).attr("font-size",_=>_.fontSize).attr("dominant-baseline",_=>l(_.verticalPos)).attr("text-anchor",_=>u(_.horizontalPos)).attr("transform",_=>d(_)).text(_=>_.text);break;case"path":b.selectAll("path").data(v.data).enter().append("path").attr("d",_=>_.path).attr("fill",_=>_.fill?_.fill:"none").attr("stroke",_=>_.strokeFill).attr("stroke-width",_=>_.strokeWidth);break}}},"draw"),M8t={draw:L8t},P8t={parser:T8t,db:D8t,renderer:M8t};const B8t=Object.freeze(Object.defineProperty({__proto__:null,diagram:P8t},Symbol.toStringTag,{value:"Module"}));var j$=(function(){var t=S(function(Oe,U,oe,de){for(oe=oe||{},de=Oe.length;de--;oe[Oe[de]]=U);return oe},"o"),e=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],s=[1,22],o=[2,7],l=[1,26],u=[1,27],d=[1,28],h=[1,29],f=[1,33],p=[1,34],g=[1,35],m=[1,36],y=[1,37],v=[1,38],b=[1,24],_=[1,31],E=[1,32],x=[1,30],C=[1,39],T=[1,40],w=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],N=[1,61],O=[89,90],M=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],$=[27,29],F=[1,70],A=[1,71],I=[1,72],D=[1,73],L=[1,74],R=[1,75],P=[1,76],z=[1,83],B=[1,80],q=[1,84],Y=[1,85],Q=[1,86],H=[1,87],J=[1,88],Z=[1,89],pe=[1,90],re=[1,91],ce=[1,92],ae=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],se=[63,64],xe=[1,101],Te=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],Ge=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],ze=[1,110],Xe=[1,106],Le=[1,107],Re=[1,108],qe=[1,109],Ne=[1,111],ut=[1,116],De=[1,117],Je=[1,114],st=[1,115],ct={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:S(function(U,oe,de,G,ie,j,V){var ue=j.length-1;switch(ie){case 4:this.$=j[ue].trim(),G.setAccTitle(this.$);break;case 5:case 6:this.$=j[ue].trim(),G.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:G.setDirection("TB");break;case 18:G.setDirection("BT");break;case 19:G.setDirection("RL");break;case 20:G.setDirection("LR");break;case 21:G.addRequirement(j[ue-3],j[ue-4]);break;case 22:G.addRequirement(j[ue-5],j[ue-6]),G.setClass([j[ue-5]],j[ue-3]);break;case 23:G.setNewReqId(j[ue-2]);break;case 24:G.setNewReqText(j[ue-2]);break;case 25:G.setNewReqRisk(j[ue-2]);break;case 26:G.setNewReqVerifyMethod(j[ue-2]);break;case 29:this.$=G.RequirementType.REQUIREMENT;break;case 30:this.$=G.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=G.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=G.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=G.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=G.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=G.RiskLevel.LOW_RISK;break;case 36:this.$=G.RiskLevel.MED_RISK;break;case 37:this.$=G.RiskLevel.HIGH_RISK;break;case 38:this.$=G.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=G.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=G.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=G.VerifyType.VERIFY_TEST;break;case 42:G.addElement(j[ue-3]);break;case 43:G.addElement(j[ue-5]),G.setClass([j[ue-5]],j[ue-3]);break;case 44:G.setNewElementType(j[ue-2]);break;case 45:G.setNewElementDocRef(j[ue-2]);break;case 48:G.addRelationship(j[ue-2],j[ue],j[ue-4]);break;case 49:G.addRelationship(j[ue-2],j[ue-4],j[ue]);break;case 50:this.$=G.Relationships.CONTAINS;break;case 51:this.$=G.Relationships.COPIES;break;case 52:this.$=G.Relationships.DERIVES;break;case 53:this.$=G.Relationships.SATISFIES;break;case 54:this.$=G.Relationships.VERIFIES;break;case 55:this.$=G.Relationships.REFINES;break;case 56:this.$=G.Relationships.TRACES;break;case 57:this.$=j[ue-2],G.defineClass(j[ue-1],j[ue]);break;case 58:G.setClass(j[ue-1],j[ue]);break;case 59:G.setClass([j[ue-2]],j[ue]);break;case 60:case 62:this.$=[j[ue]];break;case 61:case 63:this.$=j[ue-2].concat([j[ue]]);break;case 64:this.$=j[ue-2],G.setCssStyle(j[ue-1],j[ue]);break;case 65:this.$=[j[ue]];break;case 66:j[ue-2].push(j[ue]),this.$=j[ue-2];break;case 68:this.$=j[ue-1]+j[ue];break}},"anonymous"),table:[{3:1,4:2,6:e,9:r,11:n,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:e,9:r,11:n,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(a,[2,6]),{3:12,4:2,6:e,9:r,11:n,13:i},{1:[2,2]},{4:17,5:s,7:13,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},t(a,[2,4]),t(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:s,7:42,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:43,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:44,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:45,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:46,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:47,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:48,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:49,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{4:17,5:s,7:50,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:y,46:v,54:b,72:_,74:E,77:x,89:C,90:T},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},t(w,[2,17]),t(w,[2,18]),t(w,[2,19]),t(w,[2,20]),{30:60,33:62,75:N,89:C,90:T},{30:63,33:62,75:N,89:C,90:T},{30:64,33:62,75:N,89:C,90:T},t(O,[2,29]),t(O,[2,30]),t(O,[2,31]),t(O,[2,32]),t(O,[2,33]),t(O,[2,34]),t(M,[2,81]),t(M,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},t($,[2,79]),t($,[2,80]),{27:[1,67],29:[1,68]},t($,[2,85]),t($,[2,86]),{62:69,65:F,66:A,67:I,68:D,69:L,70:R,71:P},{62:77,65:F,66:A,67:I,68:D,69:L,70:R,71:P},{30:78,33:62,75:N,89:C,90:T},{73:79,75:z,76:B,78:81,79:82,80:q,81:Y,82:Q,83:H,84:J,85:Z,86:pe,87:re,88:ce},t(ae,[2,60]),t(ae,[2,62]),{73:93,75:z,76:B,78:81,79:82,80:q,81:Y,82:Q,83:H,84:J,85:Z,86:pe,87:re,88:ce},{30:94,33:62,75:N,76:B,89:C,90:T},{5:[1,95]},{30:96,33:62,75:N,89:C,90:T},{5:[1,97]},{30:98,33:62,75:N,89:C,90:T},{63:[1,99]},t(se,[2,50]),t(se,[2,51]),t(se,[2,52]),t(se,[2,53]),t(se,[2,54]),t(se,[2,55]),t(se,[2,56]),{64:[1,100]},t(w,[2,59],{76:B}),t(w,[2,64],{76:xe}),{33:103,75:[1,102],89:C,90:T},t(Te,[2,65],{79:104,75:z,80:q,81:Y,82:Q,83:H,84:J,85:Z,86:pe,87:re,88:ce}),t(Ge,[2,67]),t(Ge,[2,69]),t(Ge,[2,70]),t(Ge,[2,71]),t(Ge,[2,72]),t(Ge,[2,73]),t(Ge,[2,74]),t(Ge,[2,75]),t(Ge,[2,76]),t(Ge,[2,77]),t(Ge,[2,78]),t(w,[2,57],{76:xe}),t(w,[2,58],{76:B}),{5:ze,28:105,31:Xe,34:Le,36:Re,38:qe,40:Ne},{27:[1,112],76:B},{5:ut,40:De,56:113,57:Je,59:st},{27:[1,118],76:B},{33:119,89:C,90:T},{33:120,89:C,90:T},{75:z,78:121,79:82,80:q,81:Y,82:Q,83:H,84:J,85:Z,86:pe,87:re,88:ce},t(ae,[2,61]),t(ae,[2,63]),t(Ge,[2,68]),t(w,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:ze,28:126,31:Xe,34:Le,36:Re,38:qe,40:Ne},t(w,[2,28]),{5:[1,127]},t(w,[2,42]),{32:[1,128]},{32:[1,129]},{5:ut,40:De,56:130,57:Je,59:st},t(w,[2,47]),{5:[1,131]},t(w,[2,48]),t(w,[2,49]),t(Te,[2,66],{79:104,75:z,80:q,81:Y,82:Q,83:H,84:J,85:Z,86:pe,87:re,88:ce}),{33:132,89:C,90:T},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},t(w,[2,27]),{5:ze,28:145,31:Xe,34:Le,36:Re,38:qe,40:Ne},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},t(w,[2,46]),{5:ut,40:De,56:152,57:Je,59:st},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},t(w,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},t(w,[2,43]),{5:ze,28:159,31:Xe,34:Le,36:Re,38:qe,40:Ne},{5:ze,28:160,31:Xe,34:Le,36:Re,38:qe,40:Ne},{5:ze,28:161,31:Xe,34:Le,36:Re,38:qe,40:Ne},{5:ze,28:162,31:Xe,34:Le,36:Re,38:qe,40:Ne},{5:ut,40:De,56:163,57:Je,59:st},{5:ut,40:De,56:164,57:Je,59:st},t(w,[2,23]),t(w,[2,24]),t(w,[2,25]),t(w,[2,26]),t(w,[2,44]),t(w,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:S(function(U,oe){if(oe.recoverable)this.trace(U);else{var de=new Error(U);throw de.hash=oe,de}},"parseError"),parse:S(function(U){var oe=this,de=[0],G=[],ie=[null],j=[],V=this.table,ue="",Fe=0,me=0,Ce=2,ye=1,Me=j.slice.call(arguments,1),Ie=Object.create(this.lexer),he={yy:{}};for(var le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(he.yy[le]=this.yy[le]);Ie.setInput(U,he.yy),he.yy.lexer=Ie,he.yy.parser=this,typeof Ie.yylloc>"u"&&(Ie.yylloc={});var Be=Ie.yylloc;j.push(Be);var ve=Ie.options&&Ie.options.ranges;typeof he.yy.parseError=="function"?this.parseError=he.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gt(Pe){de.length=de.length-2*Pe,ie.length=ie.length-Pe,j.length=j.length-Pe}S(gt,"popStack");function Et(){var Pe;return Pe=G.pop()||Ie.lex()||ye,typeof Pe!="number"&&(Pe instanceof Array&&(G=Pe,Pe=G.pop()),Pe=oe.symbols_[Pe]||Pe),Pe}S(Et,"lex");for(var et,dt,ft,mt,fe={},It,St,Tt,Nt;;){if(dt=de[de.length-1],this.defaultActions[dt]?ft=this.defaultActions[dt]:((et===null||typeof et>"u")&&(et=Et()),ft=V[dt]&&V[dt][et]),typeof ft>"u"||!ft.length||!ft[0]){var Hr="";Nt=[];for(It in V[dt])this.terminals_[It]&&It>Ce&&Nt.push("'"+this.terminals_[It]+"'");Ie.showPosition?Hr="Parse error on line "+(Fe+1)+`: `+Ie.showPosition()+` Expecting `+Nt.join(", ")+", got '"+(this.terminals_[et]||et)+"'":Hr="Parse error on line "+(Fe+1)+": Unexpected "+(et==ye?"end of input":"'"+(this.terminals_[et]||et)+"'"),this.parseError(Hr,{text:Ie.match,token:this.terminals_[et]||et,line:Ie.yylineno,loc:Be,expected:Nt})}if(ft[0]instanceof Array&&ft.length>1)throw new Error("Parse Error: multiple actions possible at state: "+dt+", token: "+et);switch(ft[0]){case 1:de.push(et),ie.push(Ie.yytext),j.push(Ie.yylloc),de.push(ft[1]),et=null,me=Ie.yyleng,ue=Ie.yytext,Fe=Ie.yylineno,Be=Ie.yylloc;break;case 2:if(St=this.productions_[ft[1]][1],fe.$=ie[ie.length-St],fe._$={first_line:j[j.length-(St||1)].first_line,last_line:j[j.length-1].last_line,first_column:j[j.length-(St||1)].first_column,last_column:j[j.length-1].last_column},ve&&(fe._$.range=[j[j.length-(St||1)].range[0],j[j.length-1].range[1]]),mt=this.performAction.apply(fe,[ue,me,Fe,he.yy,ft[1],ie,j].concat(Me)),typeof mt<"u")return mt;St&&(de=de.slice(0,-1*St*2),ie=ie.slice(0,-1*St),j=j.slice(0,-1*St)),de.push(this.productions_[ft[1]][0]),ie.push(fe.$),j.push(fe._$),Tt=V[de[de.length-2]][de[de.length-1]],de.push(Tt);break;case 3:return!0}}return!0},"parse")},ot=(function(){var Oe={EOF:1,parseError:S(function(oe,de){if(this.yy.parser)this.yy.parser.parseError(oe,de);else throw new Error(oe)},"parseError"),setInput:S(function(U,oe){return this.yy=oe||this.yy||{},this._input=U,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var U=this._input[0];this.yytext+=U,this.yyleng++,this.offset++,this.match+=U,this.matched+=U;var oe=U.match(/(?:\r\n?|\n).*/g);return oe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),U},"input"),unput:S(function(U){var oe=U.length,de=U.split(/(?:\r\n?|\n)/g);this._input=U+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-oe),this.offset-=oe;var G=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),de.length-1&&(this.yylineno-=de.length-1);var ie=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:de?(de.length===G.length?this.yylloc.first_column:0)+G[G.length-de.length].length-de[0].length:this.yylloc.first_column-oe},this.options.ranges&&(this.yylloc.range=[ie[0],ie[0]+this.yyleng-oe]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(U){this.unput(this.match.slice(U))},"less"),pastInput:S(function(){var U=this.matched.substr(0,this.matched.length-this.match.length);return(U.length>20?"...":"")+U.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var U=this.match;return U.length<20&&(U+=this._input.substr(0,20-U.length)),(U.substr(0,20)+(U.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var U=this.pastInput(),oe=new Array(U.length+1).join("-");return U+this.upcomingInput()+` `+oe+"^"},"showPosition"),test_match:S(function(U,oe){var de,G,ie;if(this.options.backtrack_lexer&&(ie={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ie.yylloc.range=this.yylloc.range.slice(0))),G=U[0].match(/(?:\r\n?|\n).*/g),G&&(this.yylineno+=G.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:G?G[G.length-1].length-G[G.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+U[0].length},this.yytext+=U[0],this.match+=U[0],this.matches=U,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(U[0].length),this.matched+=U[0],de=this.performAction.call(this,this.yy,this,oe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),de)return de;if(this._backtrack){for(var j in ie)this[j]=ie[j];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var U,oe,de,G;this._more||(this.yytext="",this.match="");for(var ie=this._currentRules(),j=0;joe[0].length)){if(oe=de,G=j,this.options.backtrack_lexer){if(U=this.test_match(de,ie[j]),U!==!1)return U;if(this._backtrack){oe=!1;continue}else return!1}else if(!this.options.flex)break}return oe?(U=this.test_match(oe,ie[G]),U!==!1?U:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var oe=this.next();return oe||this.lex()},"lex"),begin:S(function(oe){this.conditionStack.push(oe)},"begin"),popState:S(function(){var oe=this.conditionStack.length-1;return oe>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(oe){return oe=this.conditionStack.length-1-Math.abs(oe||0),oe>=0?this.conditionStack[oe]:"INITIAL"},"topState"),pushState:S(function(oe){this.begin(oe)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(oe,de,G,ie){switch(G){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return de.yytext=de.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return Oe})();ct.lexer=ot;function it(){this.yy={}}return S(it,"Parser"),it.prototype=ct,ct.Parser=it,new it})();j$.parser=j$;var B8t=j$,C_,F8t=(C_=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=ai,this.getAccTitle=yi,this.setAccDescription=vi,this.getAccDescription=_i,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.getConfig=S(()=>Ke().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,r){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:r,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=e)}setNewReqText(e){this.latestRequirement!==void 0&&(this.latestRequirement.text=e)}setNewReqRisk(e){this.latestRequirement!==void 0&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),ge.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){this.latestElement!==void 0&&(this.latestElement.type=e)}setNewElementDocRef(e){this.latestElement!==void 0&&(this.latestElement.docRef=e)}addRelationship(e,r,n){this.relations.push({type:e,src:r,dst:n})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,oi()}setCssStyle(e,r){for(const n of e){const i=this.requirements.get(n)??this.elements.get(n);if(!r||!i)return;for(const a of r)a.includes(",")?i.cssStyles.push(...a.split(",")):i.cssStyles.push(a)}}setClass(e,r){for(const n of e){const i=this.requirements.get(n)??this.elements.get(n);if(i)for(const a of r){i.classes.push(a);const s=this.classes.get(a)?.styles;s&&i.cssStyles.push(...s)}}}defineClass(e,r){for(const n of e){let i=this.classes.get(n);i===void 0&&(i={id:n,styles:[],textStyles:[]},this.classes.set(n,i)),r&&r.forEach(function(a){if(/color/.exec(a)){const s=a.replace("fill","bgFill");i.textStyles.push(s)}i.styles.push(a)}),this.requirements.forEach(a=>{a.classes.includes(n)&&a.cssStyles.push(...r.flatMap(s=>s.split(",")))}),this.elements.forEach(a=>{a.classes.includes(n)&&a.cssStyles.push(...r.flatMap(s=>s.split(",")))})}}getClasses(){return this.classes}getData(){const e=Ke(),r=[],n=[];for(const i of this.requirements.values()){const a=i;a.id=i.name,a.cssStyles=i.cssStyles,a.cssClasses=i.classes.join(" "),a.shape="requirementBox",a.look=e.look,a.colorIndex=r.length,r.push(a)}for(const i of this.elements.values()){const a=i;a.shape="requirementBox",a.look=e.look,a.id=i.name,a.cssStyles=i.cssStyles,a.cssClasses=i.classes.join(" "),a.colorIndex=r.length,r.push(a)}for(const i of this.relations){let a=0;const s=i.type===this.Relationships.CONTAINS,o={id:`${i.src}-${i.dst}-${a}`,start:this.requirements.get(i.src)?.name??this.elements.get(i.src)?.name,end:this.requirements.get(i.dst)?.name??this.elements.get(i.dst)?.name,label:`<<${i.type}>>`,classes:"relationshipLine",style:["fill:none",s?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:s?"normal":"dashed",arrowTypeStart:s?"requirement_contains":"",arrowTypeEnd:s?"":"requirement_arrow",look:e.look,labelType:"markdown"};n.push(o),a++}return{nodes:r,edges:n,other:{},config:e,direction:this.getDirection()}}},S(C_,"RequirementDB"),C_),$8t=S(t=>{const e=xr(),{themeVariables:r,look:n}=e,{bkgColorArray:i,borderColorArray:a}=r;if(!a?.length)return"";let s="";for(let o=0;o0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(oe){return oe=this.conditionStack.length-1-Math.abs(oe||0),oe>=0?this.conditionStack[oe]:"INITIAL"},"topState"),pushState:S(function(oe){this.begin(oe)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(oe,de,G,ie){switch(G){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return de.yytext=de.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return Oe})();ct.lexer=ot;function it(){this.yy={}}return S(it,"Parser"),it.prototype=ct,ct.Parser=it,new it})();j$.parser=j$;var F8t=j$,C_,$8t=(C_=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=ai,this.getAccTitle=yi,this.setAccDescription=vi,this.getAccDescription=_i,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.getConfig=S(()=>Ke().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,r){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:r,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=e)}setNewReqText(e){this.latestRequirement!==void 0&&(this.latestRequirement.text=e)}setNewReqRisk(e){this.latestRequirement!==void 0&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),ge.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){this.latestElement!==void 0&&(this.latestElement.type=e)}setNewElementDocRef(e){this.latestElement!==void 0&&(this.latestElement.docRef=e)}addRelationship(e,r,n){this.relations.push({type:e,src:r,dst:n})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,oi()}setCssStyle(e,r){for(const n of e){const i=this.requirements.get(n)??this.elements.get(n);if(!r||!i)return;for(const a of r)a.includes(",")?i.cssStyles.push(...a.split(",")):i.cssStyles.push(a)}}setClass(e,r){for(const n of e){const i=this.requirements.get(n)??this.elements.get(n);if(i)for(const a of r){i.classes.push(a);const s=this.classes.get(a)?.styles;s&&i.cssStyles.push(...s)}}}defineClass(e,r){for(const n of e){let i=this.classes.get(n);i===void 0&&(i={id:n,styles:[],textStyles:[]},this.classes.set(n,i)),r&&r.forEach(function(a){if(/color/.exec(a)){const s=a.replace("fill","bgFill");i.textStyles.push(s)}i.styles.push(a)}),this.requirements.forEach(a=>{a.classes.includes(n)&&a.cssStyles.push(...r.flatMap(s=>s.split(",")))}),this.elements.forEach(a=>{a.classes.includes(n)&&a.cssStyles.push(...r.flatMap(s=>s.split(",")))})}}getClasses(){return this.classes}getData(){const e=Ke(),r=[],n=[];for(const i of this.requirements.values()){const a=i;a.id=i.name,a.cssStyles=i.cssStyles,a.cssClasses=i.classes.join(" "),a.shape="requirementBox",a.look=e.look,a.colorIndex=r.length,r.push(a)}for(const i of this.elements.values()){const a=i;a.shape="requirementBox",a.look=e.look,a.id=i.name,a.cssStyles=i.cssStyles,a.cssClasses=i.classes.join(" "),a.colorIndex=r.length,r.push(a)}for(const i of this.relations){let a=0;const s=i.type===this.Relationships.CONTAINS,o={id:`${i.src}-${i.dst}-${a}`,start:this.requirements.get(i.src)?.name??this.elements.get(i.src)?.name,end:this.requirements.get(i.dst)?.name??this.elements.get(i.dst)?.name,label:`<<${i.type}>>`,classes:"relationshipLine",style:["fill:none",s?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:s?"normal":"dashed",arrowTypeStart:s?"requirement_contains":"",arrowTypeEnd:s?"":"requirement_arrow",look:e.look,labelType:"markdown"};n.push(o),a++}return{nodes:r,edges:n,other:{},config:e,direction:this.getDirection()}}},S(C_,"RequirementDB"),C_),z8t=S(t=>{const e=xr(),{themeVariables:r,look:n}=e,{bkgColorArray:i,borderColorArray:a}=r;if(!a?.length)return"";let s="";for(let o=0;o{const e=xr(),{look:r,themeVariables:n}=e,{requirementEdgeLabelBackground:i}=n;return` - ${$8t(t)} + `;return s},"genColor"),U8t=S(t=>{const e=xr(),{look:r,themeVariables:n}=e,{requirementEdgeLabelBackground:i}=n;return` + ${z8t(t)} marker { fill: ${t.relationColor}; stroke: ${t.relationColor}; @@ -5920,16 +5920,16 @@ Expecting `+Nt.join(", ")+", got '"+(this.terminals_[et]||et)+"'":Hr="Parse erro background-color: ${i??t.edgeLabelBackground}; } -`},"getStyles"),U8t=z8t,K7e={};uk(K7e,{draw:()=>G8t});var G8t=S(async function(t,e,r,n){ge.info("REF0:"),ge.info("Drawing requirement diagram (unified)",e);const{securityLevel:i,state:a,layout:s,look:o}=Ke(),l=n.db.getData(),u=o2(e,i);l.type=n.type,l.layoutAlgorithm=uT(s),l.nodeSpacing=a?.nodeSpacing??50,l.rankSpacing=a?.rankSpacing??50,l.markers=o==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],l.diagramId=e,await Yb(l,u);const d=8;Wr.insertTitle(u,"requirementDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),sg(u,d,"requirementDiagram",a?.useMaxWidth??!0)},"draw"),q8t={parser:B8t,get db(){return new F8t},renderer:K7e,styles:U8t};const Y8t=Object.freeze(Object.defineProperty({__proto__:null,diagram:q8t},Symbol.toStringTag,{value:"Module"}));var Q$=(function(){var t=S(function(me,Ce,ye,Me){for(ye=ye||{},Me=me.length;Me--;ye[me[Me]]=Ce);return ye},"o"),e=[1,2],r=[1,3],n=[1,4],i=[2,4],a=[1,9],s=[1,11],o=[1,12],l=[1,14],u=[1,15],d=[1,17],h=[1,18],f=[1,19],p=[1,25],g=[1,26],m=[1,27],y=[1,28],v=[1,29],b=[1,30],_=[1,31],E=[1,32],x=[1,33],C=[1,34],T=[1,35],w=[1,36],N=[1,37],O=[1,38],M=[1,39],$=[1,40],F=[1,42],A=[1,43],I=[1,44],D=[1,45],L=[1,46],R=[1,47],P=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],z=[1,74],B=[1,80],q=[1,81],Y=[1,82],Q=[1,83],H=[1,84],J=[1,85],Z=[1,86],pe=[1,87],re=[1,88],ce=[1,89],ae=[1,90],se=[1,91],xe=[1,92],Te=[1,93],Ge=[1,94],ze=[1,95],Xe=[1,96],Le=[1,97],Re=[1,98],qe=[1,99],Ne=[1,100],ut=[1,101],De=[1,102],Je=[1,103],st=[1,104],ct=[1,105],ot=[2,78],it=[4,5,17,51,53,54],Oe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],U=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],oe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],de=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],G=[5,52],ie=[70,71,72,73],j=[1,151],V={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:S(function(Ce,ye,Me,Ie,he,le,Be){var ve=le.length-1;switch(he){case 3:return Ie.apply(le[ve]),le[ve];case 4:case 10:this.$=[];break;case 5:case 11:le[ve-1].push(le[ve]),this.$=le[ve-1];break;case 6:case 7:case 12:case 13:this.$=le[ve];break;case 8:case 9:case 14:this.$=[];break;case 16:le[ve].type="createParticipant",this.$=le[ve];break;case 17:le[ve-1].unshift({type:"boxStart",boxData:Ie.parseBoxData(le[ve-2])}),le[ve-1].push({type:"boxEnd",boxText:le[ve-2]}),this.$=le[ve-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(le[ve-2]),sequenceIndexStep:Number(le[ve-1]),sequenceVisible:!0,signalType:Ie.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(le[ve-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Ie.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Ie.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Ie.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:Ie.LINETYPE.ACTIVE_START,actor:le[ve-1].actor};break;case 24:this.$={type:"activeEnd",signalType:Ie.LINETYPE.ACTIVE_END,actor:le[ve-1].actor};break;case 30:Ie.setDiagramTitle(le[ve].substring(6)),this.$=le[ve].substring(6);break;case 31:Ie.setDiagramTitle(le[ve].substring(7)),this.$=le[ve].substring(7);break;case 32:this.$=le[ve].trim(),Ie.setAccTitle(this.$);break;case 33:case 34:this.$=le[ve].trim(),Ie.setAccDescription(this.$);break;case 35:le[ve-1].unshift({type:"loopStart",loopText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.LOOP_START}),le[ve-1].push({type:"loopEnd",loopText:le[ve-2],signalType:Ie.LINETYPE.LOOP_END}),this.$=le[ve-1];break;case 36:le[ve-1].unshift({type:"rectStart",color:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.RECT_START}),le[ve-1].push({type:"rectEnd",color:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.RECT_END}),this.$=le[ve-1];break;case 37:le[ve-1].unshift({type:"optStart",optText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.OPT_START}),le[ve-1].push({type:"optEnd",optText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.OPT_END}),this.$=le[ve-1];break;case 38:le[ve-1].unshift({type:"altStart",altText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.ALT_START}),le[ve-1].push({type:"altEnd",signalType:Ie.LINETYPE.ALT_END}),this.$=le[ve-1];break;case 39:le[ve-1].unshift({type:"parStart",parText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.PAR_START}),le[ve-1].push({type:"parEnd",signalType:Ie.LINETYPE.PAR_END}),this.$=le[ve-1];break;case 40:le[ve-1].unshift({type:"parStart",parText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.PAR_OVER_START}),le[ve-1].push({type:"parEnd",signalType:Ie.LINETYPE.PAR_END}),this.$=le[ve-1];break;case 41:le[ve-1].unshift({type:"criticalStart",criticalText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.CRITICAL_START}),le[ve-1].push({type:"criticalEnd",signalType:Ie.LINETYPE.CRITICAL_END}),this.$=le[ve-1];break;case 42:le[ve-1].unshift({type:"breakStart",breakText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.BREAK_START}),le[ve-1].push({type:"breakEnd",optText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.BREAK_END}),this.$=le[ve-1];break;case 44:this.$=le[ve-3].concat([{type:"option",optionText:Ie.parseMessage(le[ve-1]),signalType:Ie.LINETYPE.CRITICAL_OPTION},le[ve]]);break;case 46:this.$=le[ve-3].concat([{type:"and",parText:Ie.parseMessage(le[ve-1]),signalType:Ie.LINETYPE.PAR_AND},le[ve]]);break;case 48:this.$=le[ve-3].concat([{type:"else",altText:Ie.parseMessage(le[ve-1]),signalType:Ie.LINETYPE.ALT_ELSE},le[ve]]);break;case 49:le[ve-3].draw="participant",le[ve-3].type="addParticipant",le[ve-3].description=Ie.parseMessage(le[ve-1]),this.$=le[ve-3];break;case 50:le[ve-1].draw="participant",le[ve-1].type="addParticipant",this.$=le[ve-1];break;case 51:le[ve-3].draw="actor",le[ve-3].type="addParticipant",le[ve-3].description=Ie.parseMessage(le[ve-1]),this.$=le[ve-3];break;case 52:case 57:le[ve-1].draw="actor",le[ve-1].type="addParticipant",this.$=le[ve-1];break;case 53:le[ve-1].type="destroyParticipant",this.$=le[ve-1];break;case 54:le[ve-3].draw="participant",le[ve-3].type="addParticipant",le[ve-3].description=Ie.parseMessage(le[ve-1]),this.$=le[ve-3];break;case 55:le[ve-1].draw="participant",le[ve-1].type="addParticipant",this.$=le[ve-1];break;case 56:le[ve-3].draw="actor",le[ve-3].type="addParticipant",le[ve-3].description=Ie.parseMessage(le[ve-1]),this.$=le[ve-3];break;case 58:this.$=[le[ve-1],{type:"addNote",placement:le[ve-2],actor:le[ve-1].actor,text:le[ve]}];break;case 59:le[ve-2]=[].concat(le[ve-1],le[ve-1]).slice(0,2),le[ve-2][0]=le[ve-2][0].actor,le[ve-2][1]=le[ve-2][1].actor,this.$=[le[ve-1],{type:"addNote",placement:Ie.PLACEMENT.OVER,actor:le[ve-2].slice(0,2),text:le[ve]}];break;case 60:this.$=[le[ve-1],{type:"addLinks",actor:le[ve-1].actor,text:le[ve]}];break;case 61:this.$=[le[ve-1],{type:"addALink",actor:le[ve-1].actor,text:le[ve]}];break;case 62:this.$=[le[ve-1],{type:"addProperties",actor:le[ve-1].actor,text:le[ve]}];break;case 63:this.$=[le[ve-1],{type:"addDetails",actor:le[ve-1].actor,text:le[ve]}];break;case 66:this.$=[le[ve-2],le[ve]];break;case 67:this.$=le[ve];break;case 68:this.$=Ie.PLACEMENT.LEFTOF;break;case 69:this.$=Ie.PLACEMENT.RIGHTOF;break;case 70:this.$=[le[ve-4],le[ve-1],{type:"addMessage",from:le[ve-4].actor,to:le[ve-1].actor,signalType:le[ve-3],msg:le[ve],activate:!0},{type:"activeStart",signalType:Ie.LINETYPE.ACTIVE_START,actor:le[ve-1].actor}];break;case 71:this.$=[le[ve-4],le[ve-1],{type:"addMessage",from:le[ve-4].actor,to:le[ve-1].actor,signalType:le[ve-3],msg:le[ve]},{type:"activeEnd",signalType:Ie.LINETYPE.ACTIVE_END,actor:le[ve-4].actor}];break;case 72:this.$=[le[ve-4],le[ve-1],{type:"addMessage",from:le[ve-4].actor,to:le[ve-1].actor,signalType:le[ve-3],msg:le[ve],activate:!0,centralConnection:Ie.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:Ie.LINETYPE.CENTRAL_CONNECTION,actor:le[ve-1].actor}];break;case 73:this.$=[le[ve-4],le[ve-1],{type:"addMessage",from:le[ve-4].actor,to:le[ve-1].actor,signalType:le[ve-2],msg:le[ve],activate:!1,centralConnection:Ie.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:Ie.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:le[ve-4].actor}];break;case 74:this.$=[le[ve-5],le[ve-1],{type:"addMessage",from:le[ve-5].actor,to:le[ve-1].actor,signalType:le[ve-3],msg:le[ve],activate:!0,centralConnection:Ie.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:Ie.LINETYPE.CENTRAL_CONNECTION,actor:le[ve-1].actor},{type:"centralConnectionReverse",signalType:Ie.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:le[ve-5].actor}];break;case 75:this.$=[le[ve-3],le[ve-1],{type:"addMessage",from:le[ve-3].actor,to:le[ve-1].actor,signalType:le[ve-2],msg:le[ve]}];break;case 76:this.$={type:"addParticipant",actor:le[ve-1],config:le[ve]};break;case 77:this.$=le[ve-1].trim();break;case 78:this.$={type:"addParticipant",actor:le[ve]};break;case 79:this.$=Ie.LINETYPE.SOLID_OPEN;break;case 80:this.$=Ie.LINETYPE.DOTTED_OPEN;break;case 81:this.$=Ie.LINETYPE.SOLID;break;case 82:this.$=Ie.LINETYPE.SOLID_TOP;break;case 83:this.$=Ie.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=Ie.LINETYPE.STICK_TOP;break;case 85:this.$=Ie.LINETYPE.STICK_BOTTOM;break;case 86:this.$=Ie.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=Ie.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=Ie.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=Ie.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=Ie.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=Ie.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=Ie.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=Ie.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=Ie.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=Ie.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=Ie.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=Ie.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=Ie.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=Ie.LINETYPE.DOTTED;break;case 100:this.$=Ie.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=Ie.LINETYPE.SOLID_CROSS;break;case 102:this.$=Ie.LINETYPE.DOTTED_CROSS;break;case 103:this.$=Ie.LINETYPE.SOLID_POINT;break;case 104:this.$=Ie.LINETYPE.DOTTED_POINT;break;case 105:this.$=Ie.parseMessage(le[ve].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:r,6:n},{1:[3]},{3:5,4:e,5:r,6:n},{3:6,4:e,5:r,6:n},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},t(P,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},t(P,[2,7]),t(P,[2,8]),t(P,[2,9]),t(P,[2,15]),{13:49,51:O,53:M,54:$},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:R},{23:56,73:R},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},t(P,[2,30]),t(P,[2,31]),{33:[1,62]},{35:[1,63]},t(P,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:z},{23:75,55:76,73:z},{23:77,73:R},{69:78,72:[1,79],78:B,79:q,80:Y,81:Q,82:H,83:J,84:Z,85:pe,86:re,87:ce,88:ae,89:se,90:xe,91:Te,92:Ge,93:ze,94:Xe,95:Le,96:Re,97:qe,98:Ne,99:ut,100:De,101:Je,102:st,103:ct},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:R},{23:111,73:R},{23:112,73:R},{23:113,73:R},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ot),t(P,[2,6]),t(P,[2,16]),t(it,[2,10],{11:114}),t(P,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},t(P,[2,22]),{5:[1,118]},{5:[1,119]},t(P,[2,25]),t(P,[2,26]),t(P,[2,27]),t(P,[2,28]),t(P,[2,29]),t(P,[2,32]),t(P,[2,33]),t(Oe,i,{7:120}),t(Oe,i,{7:121}),t(Oe,i,{7:122}),t(U,i,{41:123,7:124}),t(oe,i,{43:125,7:126}),t(oe,i,{7:126,43:127}),t(de,i,{46:128,7:129}),t(Oe,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(G,ot,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:R},{69:146,78:B,79:q,80:Y,81:Q,82:H,83:J,84:Z,85:pe,86:re,87:ce,88:ae,89:se,90:xe,91:Te,92:Ge,93:ze,94:Xe,95:Le,96:Re,97:qe,98:Ne,99:ut,100:De,101:Je,102:st,103:ct},t(ie,[2,79]),t(ie,[2,80]),t(ie,[2,81]),t(ie,[2,82]),t(ie,[2,83]),t(ie,[2,84]),t(ie,[2,85]),t(ie,[2,86]),t(ie,[2,87]),t(ie,[2,88]),t(ie,[2,89]),t(ie,[2,90]),t(ie,[2,91]),t(ie,[2,92]),t(ie,[2,93]),t(ie,[2,94]),t(ie,[2,95]),t(ie,[2,96]),t(ie,[2,97]),t(ie,[2,98]),t(ie,[2,99]),t(ie,[2,100]),t(ie,[2,101]),t(ie,[2,102]),t(ie,[2,103]),t(ie,[2,104]),{23:147,73:R},{23:149,60:148,73:R},{73:[2,68]},{73:[2,69]},{58:150,104:j},{58:152,104:j},{58:153,104:j},{58:154,104:j},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:O,53:M,54:$},{5:[1,160]},t(P,[2,20]),t(P,[2,21]),t(P,[2,23]),t(P,[2,24]),{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{17:[1,164]},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,50:[1,165],51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{17:[1,166]},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,49:[1,167],51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{17:[1,168]},{17:[1,169]},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,48:[1,170],51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{16:[1,172]},t(P,[2,50]),{16:[1,173]},t(P,[2,55]),t(G,[2,76]),{76:[1,174]},{16:[1,175]},t(P,[2,52]),{16:[1,176]},t(P,[2,57]),t(P,[2,53]),{23:177,73:R},{23:178,73:R},{23:179,73:R},{58:180,104:j},{23:181,72:[1,182],73:R},{58:183,104:j},{58:184,104:j},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(P,[2,17]),t(it,[2,11]),{13:186,51:O,53:M,54:$},t(it,[2,13]),t(it,[2,14]),t(P,[2,19]),t(P,[2,35]),t(P,[2,36]),t(P,[2,37]),t(P,[2,38]),{16:[1,187]},t(P,[2,39]),{16:[1,188]},t(P,[2,40]),t(P,[2,41]),{16:[1,189]},t(P,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:j},{58:196,104:j},{58:197,104:j},{5:[2,75]},{58:198,104:j},{23:199,73:R},{5:[2,58]},{5:[2,59]},{23:200,73:R},t(it,[2,12]),t(U,i,{7:124,41:201}),t(oe,i,{7:126,43:202}),t(de,i,{7:129,46:203}),t(P,[2,49]),t(P,[2,54]),t(G,[2,77]),t(P,[2,51]),t(P,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:j},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:S(function(Ce,ye){if(ye.recoverable)this.trace(Ce);else{var Me=new Error(Ce);throw Me.hash=ye,Me}},"parseError"),parse:S(function(Ce){var ye=this,Me=[0],Ie=[],he=[null],le=[],Be=this.table,ve="",gt=0,Et=0,et=2,dt=1,ft=le.slice.call(arguments,1),mt=Object.create(this.lexer),fe={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(fe.yy[It]=this.yy[It]);mt.setInput(Ce,fe.yy),fe.yy.lexer=mt,fe.yy.parser=this,typeof mt.yylloc>"u"&&(mt.yylloc={});var St=mt.yylloc;le.push(St);var Tt=mt.options&&mt.options.ranges;typeof fe.yy.parseError=="function"?this.parseError=fe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Nt(Zt){Me.length=Me.length-2*Zt,he.length=he.length-Zt,le.length=le.length-Zt}S(Nt,"popStack");function Hr(){var Zt;return Zt=Ie.pop()||mt.lex()||dt,typeof Zt!="number"&&(Zt instanceof Array&&(Ie=Zt,Zt=Ie.pop()),Zt=ye.symbols_[Zt]||Zt),Zt}S(Hr,"lex");for(var Pe,yt,bt,Ot,Qt={},br,Ct,Ye,pt;;){if(yt=Me[Me.length-1],this.defaultActions[yt]?bt=this.defaultActions[yt]:((Pe===null||typeof Pe>"u")&&(Pe=Hr()),bt=Be[yt]&&Be[yt][Pe]),typeof bt>"u"||!bt.length||!bt[0]){var Dt="";pt=[];for(br in Be[yt])this.terminals_[br]&&br>et&&pt.push("'"+this.terminals_[br]+"'");mt.showPosition?Dt="Parse error on line "+(gt+1)+`: +`},"getStyles"),G8t=U8t,K7e={};uk(K7e,{draw:()=>q8t});var q8t=S(async function(t,e,r,n){ge.info("REF0:"),ge.info("Drawing requirement diagram (unified)",e);const{securityLevel:i,state:a,layout:s,look:o}=Ke(),l=n.db.getData(),u=o2(e,i);l.type=n.type,l.layoutAlgorithm=uT(s),l.nodeSpacing=a?.nodeSpacing??50,l.rankSpacing=a?.rankSpacing??50,l.markers=o==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],l.diagramId=e,await Yb(l,u);const d=8;Wr.insertTitle(u,"requirementDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),sg(u,d,"requirementDiagram",a?.useMaxWidth??!0)},"draw"),Y8t={parser:F8t,get db(){return new $8t},renderer:K7e,styles:G8t};const H8t=Object.freeze(Object.defineProperty({__proto__:null,diagram:Y8t},Symbol.toStringTag,{value:"Module"}));var Q$=(function(){var t=S(function(me,Ce,ye,Me){for(ye=ye||{},Me=me.length;Me--;ye[me[Me]]=Ce);return ye},"o"),e=[1,2],r=[1,3],n=[1,4],i=[2,4],a=[1,9],s=[1,11],o=[1,12],l=[1,14],u=[1,15],d=[1,17],h=[1,18],f=[1,19],p=[1,25],g=[1,26],m=[1,27],y=[1,28],v=[1,29],b=[1,30],_=[1,31],E=[1,32],x=[1,33],C=[1,34],T=[1,35],w=[1,36],N=[1,37],O=[1,38],M=[1,39],$=[1,40],F=[1,42],A=[1,43],I=[1,44],D=[1,45],L=[1,46],R=[1,47],P=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],z=[1,74],B=[1,80],q=[1,81],Y=[1,82],Q=[1,83],H=[1,84],J=[1,85],Z=[1,86],pe=[1,87],re=[1,88],ce=[1,89],ae=[1,90],se=[1,91],xe=[1,92],Te=[1,93],Ge=[1,94],ze=[1,95],Xe=[1,96],Le=[1,97],Re=[1,98],qe=[1,99],Ne=[1,100],ut=[1,101],De=[1,102],Je=[1,103],st=[1,104],ct=[1,105],ot=[2,78],it=[4,5,17,51,53,54],Oe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],U=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],oe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],de=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],G=[5,52],ie=[70,71,72,73],j=[1,151],V={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:S(function(Ce,ye,Me,Ie,he,le,Be){var ve=le.length-1;switch(he){case 3:return Ie.apply(le[ve]),le[ve];case 4:case 10:this.$=[];break;case 5:case 11:le[ve-1].push(le[ve]),this.$=le[ve-1];break;case 6:case 7:case 12:case 13:this.$=le[ve];break;case 8:case 9:case 14:this.$=[];break;case 16:le[ve].type="createParticipant",this.$=le[ve];break;case 17:le[ve-1].unshift({type:"boxStart",boxData:Ie.parseBoxData(le[ve-2])}),le[ve-1].push({type:"boxEnd",boxText:le[ve-2]}),this.$=le[ve-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(le[ve-2]),sequenceIndexStep:Number(le[ve-1]),sequenceVisible:!0,signalType:Ie.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(le[ve-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Ie.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Ie.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Ie.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:Ie.LINETYPE.ACTIVE_START,actor:le[ve-1].actor};break;case 24:this.$={type:"activeEnd",signalType:Ie.LINETYPE.ACTIVE_END,actor:le[ve-1].actor};break;case 30:Ie.setDiagramTitle(le[ve].substring(6)),this.$=le[ve].substring(6);break;case 31:Ie.setDiagramTitle(le[ve].substring(7)),this.$=le[ve].substring(7);break;case 32:this.$=le[ve].trim(),Ie.setAccTitle(this.$);break;case 33:case 34:this.$=le[ve].trim(),Ie.setAccDescription(this.$);break;case 35:le[ve-1].unshift({type:"loopStart",loopText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.LOOP_START}),le[ve-1].push({type:"loopEnd",loopText:le[ve-2],signalType:Ie.LINETYPE.LOOP_END}),this.$=le[ve-1];break;case 36:le[ve-1].unshift({type:"rectStart",color:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.RECT_START}),le[ve-1].push({type:"rectEnd",color:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.RECT_END}),this.$=le[ve-1];break;case 37:le[ve-1].unshift({type:"optStart",optText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.OPT_START}),le[ve-1].push({type:"optEnd",optText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.OPT_END}),this.$=le[ve-1];break;case 38:le[ve-1].unshift({type:"altStart",altText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.ALT_START}),le[ve-1].push({type:"altEnd",signalType:Ie.LINETYPE.ALT_END}),this.$=le[ve-1];break;case 39:le[ve-1].unshift({type:"parStart",parText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.PAR_START}),le[ve-1].push({type:"parEnd",signalType:Ie.LINETYPE.PAR_END}),this.$=le[ve-1];break;case 40:le[ve-1].unshift({type:"parStart",parText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.PAR_OVER_START}),le[ve-1].push({type:"parEnd",signalType:Ie.LINETYPE.PAR_END}),this.$=le[ve-1];break;case 41:le[ve-1].unshift({type:"criticalStart",criticalText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.CRITICAL_START}),le[ve-1].push({type:"criticalEnd",signalType:Ie.LINETYPE.CRITICAL_END}),this.$=le[ve-1];break;case 42:le[ve-1].unshift({type:"breakStart",breakText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.BREAK_START}),le[ve-1].push({type:"breakEnd",optText:Ie.parseMessage(le[ve-2]),signalType:Ie.LINETYPE.BREAK_END}),this.$=le[ve-1];break;case 44:this.$=le[ve-3].concat([{type:"option",optionText:Ie.parseMessage(le[ve-1]),signalType:Ie.LINETYPE.CRITICAL_OPTION},le[ve]]);break;case 46:this.$=le[ve-3].concat([{type:"and",parText:Ie.parseMessage(le[ve-1]),signalType:Ie.LINETYPE.PAR_AND},le[ve]]);break;case 48:this.$=le[ve-3].concat([{type:"else",altText:Ie.parseMessage(le[ve-1]),signalType:Ie.LINETYPE.ALT_ELSE},le[ve]]);break;case 49:le[ve-3].draw="participant",le[ve-3].type="addParticipant",le[ve-3].description=Ie.parseMessage(le[ve-1]),this.$=le[ve-3];break;case 50:le[ve-1].draw="participant",le[ve-1].type="addParticipant",this.$=le[ve-1];break;case 51:le[ve-3].draw="actor",le[ve-3].type="addParticipant",le[ve-3].description=Ie.parseMessage(le[ve-1]),this.$=le[ve-3];break;case 52:case 57:le[ve-1].draw="actor",le[ve-1].type="addParticipant",this.$=le[ve-1];break;case 53:le[ve-1].type="destroyParticipant",this.$=le[ve-1];break;case 54:le[ve-3].draw="participant",le[ve-3].type="addParticipant",le[ve-3].description=Ie.parseMessage(le[ve-1]),this.$=le[ve-3];break;case 55:le[ve-1].draw="participant",le[ve-1].type="addParticipant",this.$=le[ve-1];break;case 56:le[ve-3].draw="actor",le[ve-3].type="addParticipant",le[ve-3].description=Ie.parseMessage(le[ve-1]),this.$=le[ve-3];break;case 58:this.$=[le[ve-1],{type:"addNote",placement:le[ve-2],actor:le[ve-1].actor,text:le[ve]}];break;case 59:le[ve-2]=[].concat(le[ve-1],le[ve-1]).slice(0,2),le[ve-2][0]=le[ve-2][0].actor,le[ve-2][1]=le[ve-2][1].actor,this.$=[le[ve-1],{type:"addNote",placement:Ie.PLACEMENT.OVER,actor:le[ve-2].slice(0,2),text:le[ve]}];break;case 60:this.$=[le[ve-1],{type:"addLinks",actor:le[ve-1].actor,text:le[ve]}];break;case 61:this.$=[le[ve-1],{type:"addALink",actor:le[ve-1].actor,text:le[ve]}];break;case 62:this.$=[le[ve-1],{type:"addProperties",actor:le[ve-1].actor,text:le[ve]}];break;case 63:this.$=[le[ve-1],{type:"addDetails",actor:le[ve-1].actor,text:le[ve]}];break;case 66:this.$=[le[ve-2],le[ve]];break;case 67:this.$=le[ve];break;case 68:this.$=Ie.PLACEMENT.LEFTOF;break;case 69:this.$=Ie.PLACEMENT.RIGHTOF;break;case 70:this.$=[le[ve-4],le[ve-1],{type:"addMessage",from:le[ve-4].actor,to:le[ve-1].actor,signalType:le[ve-3],msg:le[ve],activate:!0},{type:"activeStart",signalType:Ie.LINETYPE.ACTIVE_START,actor:le[ve-1].actor}];break;case 71:this.$=[le[ve-4],le[ve-1],{type:"addMessage",from:le[ve-4].actor,to:le[ve-1].actor,signalType:le[ve-3],msg:le[ve]},{type:"activeEnd",signalType:Ie.LINETYPE.ACTIVE_END,actor:le[ve-4].actor}];break;case 72:this.$=[le[ve-4],le[ve-1],{type:"addMessage",from:le[ve-4].actor,to:le[ve-1].actor,signalType:le[ve-3],msg:le[ve],activate:!0,centralConnection:Ie.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:Ie.LINETYPE.CENTRAL_CONNECTION,actor:le[ve-1].actor}];break;case 73:this.$=[le[ve-4],le[ve-1],{type:"addMessage",from:le[ve-4].actor,to:le[ve-1].actor,signalType:le[ve-2],msg:le[ve],activate:!1,centralConnection:Ie.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:Ie.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:le[ve-4].actor}];break;case 74:this.$=[le[ve-5],le[ve-1],{type:"addMessage",from:le[ve-5].actor,to:le[ve-1].actor,signalType:le[ve-3],msg:le[ve],activate:!0,centralConnection:Ie.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:Ie.LINETYPE.CENTRAL_CONNECTION,actor:le[ve-1].actor},{type:"centralConnectionReverse",signalType:Ie.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:le[ve-5].actor}];break;case 75:this.$=[le[ve-3],le[ve-1],{type:"addMessage",from:le[ve-3].actor,to:le[ve-1].actor,signalType:le[ve-2],msg:le[ve]}];break;case 76:this.$={type:"addParticipant",actor:le[ve-1],config:le[ve]};break;case 77:this.$=le[ve-1].trim();break;case 78:this.$={type:"addParticipant",actor:le[ve]};break;case 79:this.$=Ie.LINETYPE.SOLID_OPEN;break;case 80:this.$=Ie.LINETYPE.DOTTED_OPEN;break;case 81:this.$=Ie.LINETYPE.SOLID;break;case 82:this.$=Ie.LINETYPE.SOLID_TOP;break;case 83:this.$=Ie.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=Ie.LINETYPE.STICK_TOP;break;case 85:this.$=Ie.LINETYPE.STICK_BOTTOM;break;case 86:this.$=Ie.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=Ie.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=Ie.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=Ie.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=Ie.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=Ie.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=Ie.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=Ie.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=Ie.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=Ie.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=Ie.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=Ie.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=Ie.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=Ie.LINETYPE.DOTTED;break;case 100:this.$=Ie.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=Ie.LINETYPE.SOLID_CROSS;break;case 102:this.$=Ie.LINETYPE.DOTTED_CROSS;break;case 103:this.$=Ie.LINETYPE.SOLID_POINT;break;case 104:this.$=Ie.LINETYPE.DOTTED_POINT;break;case 105:this.$=Ie.parseMessage(le[ve].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:r,6:n},{1:[3]},{3:5,4:e,5:r,6:n},{3:6,4:e,5:r,6:n},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},t(P,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},t(P,[2,7]),t(P,[2,8]),t(P,[2,9]),t(P,[2,15]),{13:49,51:O,53:M,54:$},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:R},{23:56,73:R},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},t(P,[2,30]),t(P,[2,31]),{33:[1,62]},{35:[1,63]},t(P,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:z},{23:75,55:76,73:z},{23:77,73:R},{69:78,72:[1,79],78:B,79:q,80:Y,81:Q,82:H,83:J,84:Z,85:pe,86:re,87:ce,88:ae,89:se,90:xe,91:Te,92:Ge,93:ze,94:Xe,95:Le,96:Re,97:qe,98:Ne,99:ut,100:De,101:Je,102:st,103:ct},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:R},{23:111,73:R},{23:112,73:R},{23:113,73:R},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ot),t(P,[2,6]),t(P,[2,16]),t(it,[2,10],{11:114}),t(P,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},t(P,[2,22]),{5:[1,118]},{5:[1,119]},t(P,[2,25]),t(P,[2,26]),t(P,[2,27]),t(P,[2,28]),t(P,[2,29]),t(P,[2,32]),t(P,[2,33]),t(Oe,i,{7:120}),t(Oe,i,{7:121}),t(Oe,i,{7:122}),t(U,i,{41:123,7:124}),t(oe,i,{43:125,7:126}),t(oe,i,{7:126,43:127}),t(de,i,{46:128,7:129}),t(Oe,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(G,ot,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:R},{69:146,78:B,79:q,80:Y,81:Q,82:H,83:J,84:Z,85:pe,86:re,87:ce,88:ae,89:se,90:xe,91:Te,92:Ge,93:ze,94:Xe,95:Le,96:Re,97:qe,98:Ne,99:ut,100:De,101:Je,102:st,103:ct},t(ie,[2,79]),t(ie,[2,80]),t(ie,[2,81]),t(ie,[2,82]),t(ie,[2,83]),t(ie,[2,84]),t(ie,[2,85]),t(ie,[2,86]),t(ie,[2,87]),t(ie,[2,88]),t(ie,[2,89]),t(ie,[2,90]),t(ie,[2,91]),t(ie,[2,92]),t(ie,[2,93]),t(ie,[2,94]),t(ie,[2,95]),t(ie,[2,96]),t(ie,[2,97]),t(ie,[2,98]),t(ie,[2,99]),t(ie,[2,100]),t(ie,[2,101]),t(ie,[2,102]),t(ie,[2,103]),t(ie,[2,104]),{23:147,73:R},{23:149,60:148,73:R},{73:[2,68]},{73:[2,69]},{58:150,104:j},{58:152,104:j},{58:153,104:j},{58:154,104:j},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:O,53:M,54:$},{5:[1,160]},t(P,[2,20]),t(P,[2,21]),t(P,[2,23]),t(P,[2,24]),{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{17:[1,164]},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,50:[1,165],51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{17:[1,166]},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,49:[1,167],51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{17:[1,168]},{17:[1,169]},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,48:[1,170],51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:y,36:v,37:b,38:_,39:E,40:x,42:C,44:T,45:w,47:N,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:R},{16:[1,172]},t(P,[2,50]),{16:[1,173]},t(P,[2,55]),t(G,[2,76]),{76:[1,174]},{16:[1,175]},t(P,[2,52]),{16:[1,176]},t(P,[2,57]),t(P,[2,53]),{23:177,73:R},{23:178,73:R},{23:179,73:R},{58:180,104:j},{23:181,72:[1,182],73:R},{58:183,104:j},{58:184,104:j},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(P,[2,17]),t(it,[2,11]),{13:186,51:O,53:M,54:$},t(it,[2,13]),t(it,[2,14]),t(P,[2,19]),t(P,[2,35]),t(P,[2,36]),t(P,[2,37]),t(P,[2,38]),{16:[1,187]},t(P,[2,39]),{16:[1,188]},t(P,[2,40]),t(P,[2,41]),{16:[1,189]},t(P,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:j},{58:196,104:j},{58:197,104:j},{5:[2,75]},{58:198,104:j},{23:199,73:R},{5:[2,58]},{5:[2,59]},{23:200,73:R},t(it,[2,12]),t(U,i,{7:124,41:201}),t(oe,i,{7:126,43:202}),t(de,i,{7:129,46:203}),t(P,[2,49]),t(P,[2,54]),t(G,[2,77]),t(P,[2,51]),t(P,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:j},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:S(function(Ce,ye){if(ye.recoverable)this.trace(Ce);else{var Me=new Error(Ce);throw Me.hash=ye,Me}},"parseError"),parse:S(function(Ce){var ye=this,Me=[0],Ie=[],he=[null],le=[],Be=this.table,ve="",gt=0,Et=0,et=2,dt=1,ft=le.slice.call(arguments,1),mt=Object.create(this.lexer),fe={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(fe.yy[It]=this.yy[It]);mt.setInput(Ce,fe.yy),fe.yy.lexer=mt,fe.yy.parser=this,typeof mt.yylloc>"u"&&(mt.yylloc={});var St=mt.yylloc;le.push(St);var Tt=mt.options&&mt.options.ranges;typeof fe.yy.parseError=="function"?this.parseError=fe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Nt(Zt){Me.length=Me.length-2*Zt,he.length=he.length-Zt,le.length=le.length-Zt}S(Nt,"popStack");function Hr(){var Zt;return Zt=Ie.pop()||mt.lex()||dt,typeof Zt!="number"&&(Zt instanceof Array&&(Ie=Zt,Zt=Ie.pop()),Zt=ye.symbols_[Zt]||Zt),Zt}S(Hr,"lex");for(var Pe,yt,bt,Ot,Qt={},br,Ct,Ye,pt;;){if(yt=Me[Me.length-1],this.defaultActions[yt]?bt=this.defaultActions[yt]:((Pe===null||typeof Pe>"u")&&(Pe=Hr()),bt=Be[yt]&&Be[yt][Pe]),typeof bt>"u"||!bt.length||!bt[0]){var Dt="";pt=[];for(br in Be[yt])this.terminals_[br]&&br>et&&pt.push("'"+this.terminals_[br]+"'");mt.showPosition?Dt="Parse error on line "+(gt+1)+`: `+mt.showPosition()+` Expecting `+pt.join(", ")+", got '"+(this.terminals_[Pe]||Pe)+"'":Dt="Parse error on line "+(gt+1)+": Unexpected "+(Pe==dt?"end of input":"'"+(this.terminals_[Pe]||Pe)+"'"),this.parseError(Dt,{text:mt.match,token:this.terminals_[Pe]||Pe,line:mt.yylineno,loc:St,expected:pt})}if(bt[0]instanceof Array&&bt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+yt+", token: "+Pe);switch(bt[0]){case 1:Me.push(Pe),he.push(mt.yytext),le.push(mt.yylloc),Me.push(bt[1]),Pe=null,Et=mt.yyleng,ve=mt.yytext,gt=mt.yylineno,St=mt.yylloc;break;case 2:if(Ct=this.productions_[bt[1]][1],Qt.$=he[he.length-Ct],Qt._$={first_line:le[le.length-(Ct||1)].first_line,last_line:le[le.length-1].last_line,first_column:le[le.length-(Ct||1)].first_column,last_column:le[le.length-1].last_column},Tt&&(Qt._$.range=[le[le.length-(Ct||1)].range[0],le[le.length-1].range[1]]),Ot=this.performAction.apply(Qt,[ve,Et,gt,fe.yy,bt[1],he,le].concat(ft)),typeof Ot<"u")return Ot;Ct&&(Me=Me.slice(0,-1*Ct*2),he=he.slice(0,-1*Ct),le=le.slice(0,-1*Ct)),Me.push(this.productions_[bt[1]][0]),he.push(Qt.$),le.push(Qt._$),Ye=Be[Me[Me.length-2]][Me[Me.length-1]],Me.push(Ye);break;case 3:return!0}}return!0},"parse")},ue=(function(){var me={EOF:1,parseError:S(function(ye,Me){if(this.yy.parser)this.yy.parser.parseError(ye,Me);else throw new Error(ye)},"parseError"),setInput:S(function(Ce,ye){return this.yy=ye||this.yy||{},this._input=Ce,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var Ce=this._input[0];this.yytext+=Ce,this.yyleng++,this.offset++,this.match+=Ce,this.matched+=Ce;var ye=Ce.match(/(?:\r\n?|\n).*/g);return ye?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ce},"input"),unput:S(function(Ce){var ye=Ce.length,Me=Ce.split(/(?:\r\n?|\n)/g);this._input=Ce+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ye),this.offset-=ye;var Ie=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Me.length-1&&(this.yylineno-=Me.length-1);var he=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Me?(Me.length===Ie.length?this.yylloc.first_column:0)+Ie[Ie.length-Me.length].length-Me[0].length:this.yylloc.first_column-ye},this.options.ranges&&(this.yylloc.range=[he[0],he[0]+this.yyleng-ye]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(Ce){this.unput(this.match.slice(Ce))},"less"),pastInput:S(function(){var Ce=this.matched.substr(0,this.matched.length-this.match.length);return(Ce.length>20?"...":"")+Ce.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var Ce=this.match;return Ce.length<20&&(Ce+=this._input.substr(0,20-Ce.length)),(Ce.substr(0,20)+(Ce.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var Ce=this.pastInput(),ye=new Array(Ce.length+1).join("-");return Ce+this.upcomingInput()+` `+ye+"^"},"showPosition"),test_match:S(function(Ce,ye){var Me,Ie,he;if(this.options.backtrack_lexer&&(he={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(he.yylloc.range=this.yylloc.range.slice(0))),Ie=Ce[0].match(/(?:\r\n?|\n).*/g),Ie&&(this.yylineno+=Ie.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ie?Ie[Ie.length-1].length-Ie[Ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ce[0].length},this.yytext+=Ce[0],this.match+=Ce[0],this.matches=Ce,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ce[0].length),this.matched+=Ce[0],Me=this.performAction.call(this,this.yy,this,ye,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Me)return Me;if(this._backtrack){for(var le in he)this[le]=he[le];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ce,ye,Me,Ie;this._more||(this.yytext="",this.match="");for(var he=this._currentRules(),le=0;leye[0].length)){if(ye=Me,Ie=le,this.options.backtrack_lexer){if(Ce=this.test_match(Me,he[le]),Ce!==!1)return Ce;if(this._backtrack){ye=!1;continue}else return!1}else if(!this.options.flex)break}return ye?(Ce=this.test_match(ye,he[Ie]),Ce!==!1?Ce:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var ye=this.next();return ye||this.lex()},"lex"),begin:S(function(ye){this.conditionStack.push(ye)},"begin"),popState:S(function(){var ye=this.conditionStack.length-1;return ye>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(ye){return ye=this.conditionStack.length-1-Math.abs(ye||0),ye>=0?this.conditionStack[ye]:"INITIAL"},"topState"),pushState:S(function(ye){this.begin(ye)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(ye,Me,Ie,he){switch(Ie){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:return Me.yytext=Me.yytext.trim(),73;case 12:return Me.yytext=Me.yytext.trim(),this.begin("ALIAS"),73;case 13:return Me.yytext=Me.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return Me.yytext=Me.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return Me.yytext=Me.yytext.trim(),73;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}};return me})();V.lexer=ue;function Fe(){this.yy={}}return S(Fe,"Parser"),Fe.prototype=V,V.Parser=Fe,new Fe})();Q$.parser=Q$;var H8t=Q$,V8t={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},W8t={FILLED:0,OPEN:1},K8t={LEFTOF:0,RIGHTOF:1,OVER:2},I3={ACTOR:"actor",CONTROL:"control",DATABASE:"database",ENTITY:"entity"},w_,X8t=(w_=class{constructor(){this.state=new uY(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=ai,this.setAccDescription=vi,this.setDiagramTitle=pi,this.getAccTitle=yi,this.getAccDescription=_i,this.getDiagramTitle=li,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(Ke().wrap),this.LINETYPE=V8t,this.ARROWTYPE=W8t,this.PLACEMENT=K8t}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,r,n,i,a){let s=this.state.records.currentBox,o;if(a!==void 0){let u;a.includes(` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var ye=this.next();return ye||this.lex()},"lex"),begin:S(function(ye){this.conditionStack.push(ye)},"begin"),popState:S(function(){var ye=this.conditionStack.length-1;return ye>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(ye){return ye=this.conditionStack.length-1-Math.abs(ye||0),ye>=0?this.conditionStack[ye]:"INITIAL"},"topState"),pushState:S(function(ye){this.begin(ye)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(ye,Me,Ie,he){switch(Ie){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:return Me.yytext=Me.yytext.trim(),73;case 12:return Me.yytext=Me.yytext.trim(),this.begin("ALIAS"),73;case 13:return Me.yytext=Me.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return Me.yytext=Me.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return Me.yytext=Me.yytext.trim(),73;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}};return me})();V.lexer=ue;function Fe(){this.yy={}}return S(Fe,"Parser"),Fe.prototype=V,V.Parser=Fe,new Fe})();Q$.parser=Q$;var V8t=Q$,W8t={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},K8t={FILLED:0,OPEN:1},X8t={LEFTOF:0,RIGHTOF:1,OVER:2},I3={ACTOR:"actor",CONTROL:"control",DATABASE:"database",ENTITY:"entity"},w_,j8t=(w_=class{constructor(){this.state=new uY(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=ai,this.setAccDescription=vi,this.setDiagramTitle=pi,this.getAccTitle=yi,this.getAccDescription=_i,this.getDiagramTitle=li,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(Ke().wrap),this.LINETYPE=W8t,this.ARROWTYPE=K8t,this.PLACEMENT=X8t}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,r,n,i,a){let s=this.state.records.currentBox,o;if(a!==void 0){let u;a.includes(` `)?u=a+` `:u=`{ `+a+` -}`,o=wk(u,{schema:Ck})}i=o?.type??i,o?.alias&&(!n||n.text===r)&&(n={text:o.alias,wrap:n?.wrap,type:i});const l=this.state.records.actors.get(e);if(l){if(this.state.records.currentBox&&l.box&&this.state.records.currentBox!==l.box)throw new Error(`A same participant should only be defined in one Box: ${l.name} can't be in '${l.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(s=l.box?l.box:this.state.records.currentBox,l.box=s,l&&r===l.name&&n==null)return}if(n?.text==null&&(n={text:r,type:i}),(i==null||n.text==null)&&(n={text:r,type:i}),this.state.records.actors.set(e,{box:s,name:r,description:n.text,wrap:n.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:i??"participant"}),this.state.records.prevActor){const u=this.state.records.actors.get(this.state.records.prevActor);u&&(u.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let r,n=0;if(!e)return 0;for(r=0;r>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},l}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:r,message:n?.text??"",wrap:n?.wrap??this.autoWrap(),type:i,activate:a,centralConnection:s??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();const r=/^:?wrap:/.exec(e)!==null?!0:/^:?nowrap:/.exec(e)!==null?!1:void 0;return{cleanedText:(r===void 0?e:e.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:r}}autoWrap(){return this.state.records.wrapEnabled!==void 0?this.state.records.wrapEnabled:Ke().sequence?.wrap??!1}clear(){this.state.reset(),oi()}parseMessage(e){const r=e.trim(),{wrap:n,cleanedText:i}=this.extractWrap(r),a={text:i,wrap:n};return ge.debug(`parseMessage: ${JSON.stringify(a)}`),a}parseBoxData(e){const r=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e);let n=r?.[1]?r[1].trim():"transparent",i=r?.[2]?r[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",n)||(n="transparent",i=e.trim());else{const o=new Option().style;o.color=n,o.color!==n&&(n="transparent",i=e.trim())}const{wrap:a,cleanedText:s}=this.extractWrap(i);return{text:s?un(s,Ke()):void 0,color:n,wrap:a}}addNote(e,r,n){const i={actor:e,placement:r,message:n.text,wrap:n.wrap??this.autoWrap()},a=[].concat(e,e);this.state.records.notes.push(i),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:a[0],to:a[1],message:n.text,wrap:n.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:r})}addLinks(e,r){const n=this.getActor(e);try{let i=un(r.text,Ke());i=i.replace(/=/g,"="),i=i.replace(/&/g,"&");const a=JSON.parse(i);this.insertLinks(n,a)}catch(i){ge.error("error while parsing actor link text",i)}}addALink(e,r){const n=this.getActor(e);try{const i={};let a=un(r.text,Ke());const s=a.indexOf("@");a=a.replace(/=/g,"="),a=a.replace(/&/g,"&");const o=a.slice(0,s-1).trim(),l=a.slice(s+1).trim();i[o]=l,this.insertLinks(n,i)}catch(i){ge.error("error while parsing actor link text",i)}}insertLinks(e,r){if(e.links==null)e.links=r;else for(const n in r)e.links[n]=r[n]}addProperties(e,r){const n=this.getActor(e);try{const i=un(r.text,Ke()),a=JSON.parse(i);this.insertProperties(n,a)}catch(i){ge.error("error while parsing actor properties text",i)}}insertProperties(e,r){if(e.properties==null)e.properties=r;else for(const n in r)e.properties[n]=r[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,r){const n=this.getActor(e),i=document.getElementById(r.text);try{const a=i.innerHTML,s=JSON.parse(a);s.properties&&this.insertProperties(n,s.properties),s.links&&this.insertLinks(n,s.links)}catch(a){ge.error("error while parsing actor details text",a)}}getActorProperty(e,r){if(e?.properties!==void 0)return e.properties[r]}apply(e){if(Array.isArray(e))e.forEach(r=>{this.apply(r)});else switch(e.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case"createParticipant":if(this.state.records.actors.has(e.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"centralConnection":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"centralConnectionReverse":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"activeEnd":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"addNote":this.addNote(e.actor,e.placement,e.text);break;case"addLinks":this.addLinks(e.actor,e.text);break;case"addALink":this.addALink(e.actor,e.text);break;case"addProperties":this.addProperties(e.actor,e.text);break;case"addDetails":this.addDetails(e.actor,e.text);break;case"addMessage":if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case"boxStart":this.addBox(e.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"rectStart":this.addSignal(void 0,void 0,e.color,e.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"optStart":this.addSignal(void 0,void 0,e.optText,e.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"altStart":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"else":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"setAccTitle":ai(e.text);break;case"parStart":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"and":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case"option":this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"breakStart":this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break}}getConfig(){return Ke().sequence}},S(w_,"SequenceDB"),w_),j8t=S(t=>{const e=t.dropShadow??"none",{look:r}=Ke();return`.actor { +}`,o=wk(u,{schema:Ck})}i=o?.type??i,o?.alias&&(!n||n.text===r)&&(n={text:o.alias,wrap:n?.wrap,type:i});const l=this.state.records.actors.get(e);if(l){if(this.state.records.currentBox&&l.box&&this.state.records.currentBox!==l.box)throw new Error(`A same participant should only be defined in one Box: ${l.name} can't be in '${l.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(s=l.box?l.box:this.state.records.currentBox,l.box=s,l&&r===l.name&&n==null)return}if(n?.text==null&&(n={text:r,type:i}),(i==null||n.text==null)&&(n={text:r,type:i}),this.state.records.actors.set(e,{box:s,name:r,description:n.text,wrap:n.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:i??"participant"}),this.state.records.prevActor){const u=this.state.records.actors.get(this.state.records.prevActor);u&&(u.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let r,n=0;if(!e)return 0;for(r=0;r>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},l}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:r,message:n?.text??"",wrap:n?.wrap??this.autoWrap(),type:i,activate:a,centralConnection:s??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();const r=/^:?wrap:/.exec(e)!==null?!0:/^:?nowrap:/.exec(e)!==null?!1:void 0;return{cleanedText:(r===void 0?e:e.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:r}}autoWrap(){return this.state.records.wrapEnabled!==void 0?this.state.records.wrapEnabled:Ke().sequence?.wrap??!1}clear(){this.state.reset(),oi()}parseMessage(e){const r=e.trim(),{wrap:n,cleanedText:i}=this.extractWrap(r),a={text:i,wrap:n};return ge.debug(`parseMessage: ${JSON.stringify(a)}`),a}parseBoxData(e){const r=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e);let n=r?.[1]?r[1].trim():"transparent",i=r?.[2]?r[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",n)||(n="transparent",i=e.trim());else{const o=new Option().style;o.color=n,o.color!==n&&(n="transparent",i=e.trim())}const{wrap:a,cleanedText:s}=this.extractWrap(i);return{text:s?un(s,Ke()):void 0,color:n,wrap:a}}addNote(e,r,n){const i={actor:e,placement:r,message:n.text,wrap:n.wrap??this.autoWrap()},a=[].concat(e,e);this.state.records.notes.push(i),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:a[0],to:a[1],message:n.text,wrap:n.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:r})}addLinks(e,r){const n=this.getActor(e);try{let i=un(r.text,Ke());i=i.replace(/=/g,"="),i=i.replace(/&/g,"&");const a=JSON.parse(i);this.insertLinks(n,a)}catch(i){ge.error("error while parsing actor link text",i)}}addALink(e,r){const n=this.getActor(e);try{const i={};let a=un(r.text,Ke());const s=a.indexOf("@");a=a.replace(/=/g,"="),a=a.replace(/&/g,"&");const o=a.slice(0,s-1).trim(),l=a.slice(s+1).trim();i[o]=l,this.insertLinks(n,i)}catch(i){ge.error("error while parsing actor link text",i)}}insertLinks(e,r){if(e.links==null)e.links=r;else for(const n in r)e.links[n]=r[n]}addProperties(e,r){const n=this.getActor(e);try{const i=un(r.text,Ke()),a=JSON.parse(i);this.insertProperties(n,a)}catch(i){ge.error("error while parsing actor properties text",i)}}insertProperties(e,r){if(e.properties==null)e.properties=r;else for(const n in r)e.properties[n]=r[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,r){const n=this.getActor(e),i=document.getElementById(r.text);try{const a=i.innerHTML,s=JSON.parse(a);s.properties&&this.insertProperties(n,s.properties),s.links&&this.insertLinks(n,s.links)}catch(a){ge.error("error while parsing actor details text",a)}}getActorProperty(e,r){if(e?.properties!==void 0)return e.properties[r]}apply(e){if(Array.isArray(e))e.forEach(r=>{this.apply(r)});else switch(e.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case"createParticipant":if(this.state.records.actors.has(e.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"centralConnection":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"centralConnectionReverse":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"activeEnd":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"addNote":this.addNote(e.actor,e.placement,e.text);break;case"addLinks":this.addLinks(e.actor,e.text);break;case"addALink":this.addALink(e.actor,e.text);break;case"addProperties":this.addProperties(e.actor,e.text);break;case"addDetails":this.addDetails(e.actor,e.text);break;case"addMessage":if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case"boxStart":this.addBox(e.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"rectStart":this.addSignal(void 0,void 0,e.color,e.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"optStart":this.addSignal(void 0,void 0,e.optText,e.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"altStart":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"else":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"setAccTitle":ai(e.text);break;case"parStart":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"and":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case"option":this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"breakStart":this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break}}getConfig(){return Ke().sequence}},S(w_,"SequenceDB"),w_),Q8t=S(t=>{const e=t.dropShadow??"none",{look:r}=Ke();return`.actor { stroke: ${t.actorBorder}; fill: ${t.actorBkg}; stroke-width: ${t.strokeWidth??1}; @@ -6068,25 +6068,25 @@ Expecting `+pt.join(", ")+", got '"+(this.terminals_[Pe]||Pe)+"'":Dt="Parse erro filter: ${e}; stroke: ${t.nodeBorder}; } -`},"getStyles"),Q8t=j8t,lp=36,Vh="actor-top",Wh="actor-bottom",n8="actor-box",Up="actor-man",sd=new Set(["redux-color","redux-dark-color"]),$4=S(function(t,e){const r=U7(t,e);return xr().look==="neo"&&r.attr("data-look","neo"),r},"drawRect"),Z8t=S(function(t,e,r,n,i){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};const a=e.links,s=e.actorCnt,o=e.rectData;var l="none";i&&(l="block !important");const u=t.append("g");u.attr("id","actor"+s+"_popup"),u.attr("class","actorPopupMenu"),u.attr("display",l);var d="";o.class!==void 0&&(d=" "+o.class);let h=o.width>r?o.width:r;const f=u.append("rect");if(f.attr("class","actorPopupMenuPanel"+d),f.attr("x",o.x),f.attr("y",o.height),f.attr("fill",o.fill),f.attr("stroke",o.stroke),f.attr("width",h),f.attr("height",o.height),f.attr("rx",o.rx),f.attr("ry",o.ry),a!=null){var p=20;for(let y in a){var g=u.append("a"),m=Kp.sanitizeUrl(a[y]);g.attr("xlink:href",m),g.attr("target","_blank"),ERt(n)(y,g,o.x+10,o.height+p,h,20,{class:"actor"},n),p+=30}}return f.attr("height",p),{height:o.height+p,width:h}},"drawPopup"),i8=S(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),Dw=S(async function(t,e,r=null){let n=t.append("foreignObject");const i=await pk(e.text,xr()),s=n.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(n.attr("height",Math.round(s.height)).attr("width",Math.round(s.width)),e.class==="noteText"){const o=t.node().firstChild;o.setAttribute("height",s.height+2*e.textMargin);const l=o.getBBox();n.attr("x",Math.round(l.x+l.width/2-s.width/2)).attr("y",Math.round(l.y+l.height/2-s.height/2))}else if(r){let{startx:o,stopx:l,starty:u}=r;if(o>l){const d=o;o=l,l=d}n.attr("x",Math.round(o+Math.abs(o-l)/2-s.width/2)),e.class==="loopText"?n.attr("y",Math.round(u)):n.attr("y",Math.round(u-s.height))}return[n]},"drawKatex"),Ab=S(function(t,e){let r=0,n=0;const i=e.text.split(qt.lineBreakRegex),[a,s]=Y0(e.fontSize);let o=[],l=0,u=S(()=>e.y,"yfunc");if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":u=S(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":u=S(()=>Math.round(e.y+(r+n+e.textMargin)/2),"yfunc");break;case"bottom":case"end":u=S(()=>Math.round(e.y+(r+n+2*e.textMargin)-e.textMargin),"yfunc");break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[d,h]of i.entries()){e.textMargin!==void 0&&e.textMargin===0&&a!==void 0&&(l=d*a);const f=t.append("text");f.attr("x",e.x),f.attr("y",u()),e.anchor!==void 0&&f.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&f.style("font-family",e.fontFamily),s!==void 0&&f.style("font-size",s),e.fontWeight!==void 0&&f.style("font-weight",e.fontWeight),e.fill!==void 0&&f.attr("fill",e.fill),e.class!==void 0&&f.attr("class",e.class),e.dy!==void 0?f.attr("dy",e.dy):l!==0&&f.attr("dy",l);const p=h||Ufe;if(e.tspan){const g=f.append("tspan");g.attr("x",e.x),e.fill!==void 0&&g.attr("fill",e.fill),g.text(p)}else f.text(p);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(n+=(f._groups||f)[0][0].getBBox().height,r=n),o.push(f)}return o},"drawText"),X7e=S(function(t,e){function r(i,a,s,o,l){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+o-l)+" "+(i+s-l*1.2)+","+(a+o)+" "+i+","+(a+o)}S(r,"genPoints");const n=t.append("polygon");return n.attr("points",r(e.x,e.y,e.width,e.height,7)),n.attr("class","labelBox"),e.y=e.y+e.height/2,Ab(t,e),n},"drawLabel"),cn=-1,j7e=S((t,e,r,n)=>{t.select&&r.forEach(i=>{const a=e.get(i),s=t.select("#actor"+a.actorCnt);!n.mirrorActors&&a.stopy?s.attr("y2",a.stopy+a.height/2):n.mirrorActors&&s.attr("y2",a.stopy)})},"fixLifeLineHeights"),J8t=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();var g=p;n||(cn++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",i8(`actor${cn}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),g=p.append("g"),e.actorCnt=cn,e.links!=null&&g.attr("id","root-"+cn),l==="neo"&&g.attr("data-look","neo"));const m=Xo();var y="actor";e.properties?.class?y=e.properties.class:m.fill="#eaeaea",n?y+=` ${Wh}`:y+=` ${Vh}`,m.x=e.x,m.y=a,m.width=e.width,m.height=e.height,m.class=y,m.rx=3,m.ry=3,m.name=e.name,l==="neo"&&(m.rx=6,m.ry=6);const v=$4(g,m),b=i.get(e.name)??0;if(sd.has(u)&&(v.style("stroke",f[b%f.length]),v.style("fill",h[b%f.length])),l==="neo"&&v.attr("filter","url(#drop-shadow)"),e.rectData=m,e.properties?.icon){const E=e.properties.icon.trim();E.charAt(0)==="@"?nY(g,m.x+m.width-20,m.y+10,E.substr(1)):rY(g,m.x+m.width-20,m.y+10,E)}n||(g.attr("data-et","participant"),g.attr("data-type","participant"),g.attr("data-id",e.name)),od(r,Xi(e.description))(e.description,g,m.x,m.y,m.width,m.height,{class:`actor ${n8}`},r);let _=e.height;if(v.node){const E=v.node().getBBox();e.height=E.height,_=E.height}return _},"drawActorTypeParticipant"),eRt=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();var g=p;n||(cn++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",i8(`actor${cn}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),g=p.append("g"),e.actorCnt=cn,e.links!=null&&g.attr("id","root-"+cn),l==="neo"&&g.attr("data-look","neo"));const m=Xo();var y="actor";e.properties?.class?y=e.properties.class:m.fill="#eaeaea",n?y+=` ${Wh}`:y+=` ${Vh}`,m.x=e.x,m.y=a,m.width=e.width,m.height=e.height,m.class=y,m.name=e.name;const v=6,b={...m,x:m.x+-v,y:m.y+ +v,class:"actor"},_=$4(g,m),E=$4(g,b);e.rectData=m,l==="neo"&&g.attr("filter","url(#drop-shadow)");const x=i.get(e.name)??0;if(sd.has(u)&&(_.style("stroke",f[x%f.length]),_.style("fill",h[x%f.length]),E.style("stroke",f[x%f.length]),E.style("fill",h[x%f.length])),e.properties?.icon){const T=e.properties.icon.trim();T.charAt(0)==="@"?nY(g,m.x+m.width-20,m.y+10,T.substr(1)):rY(g,m.x+m.width-20,m.y+10,T)}od(r,Xi(e.description))(e.description,g,m.x-v,m.y+v,m.width,m.height,{class:`actor ${n8}`},r);let C=e.height;if(_.node){const T=_.node().getBBox();e.height=T.height,C=T.height}return n||(g.attr("data-et","participant"),g.attr("data-type","collections"),g.attr("data-id",e.name)),C},"drawActorTypeCollections"),tRt=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();let g=p;n||(cn++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",i8(`actor${cn}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),g=p.append("g"),e.actorCnt=cn,e.links!=null&&g.attr("id","root-"+cn),l==="neo"&&g.attr("data-look","neo"));const m=Xo();let y="actor";e.properties?.class?y=e.properties.class:m.fill="#eaeaea",n?y+=` ${Wh}`:y+=` ${Vh}`,g.attr("class",y),m.x=e.x,m.y=a,m.width=e.width,m.height=e.height,m.name=e.name;const v=m.height/2,b=v/(2.5+m.height/50),_=g.append("g"),E=g.append("g"),x=`M ${m.x},${m.y+v} +`},"getStyles"),Z8t=Q8t,lp=36,Vh="actor-top",Wh="actor-bottom",n8="actor-box",Up="actor-man",sd=new Set(["redux-color","redux-dark-color"]),$4=S(function(t,e){const r=U7(t,e);return xr().look==="neo"&&r.attr("data-look","neo"),r},"drawRect"),J8t=S(function(t,e,r,n,i){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};const a=e.links,s=e.actorCnt,o=e.rectData;var l="none";i&&(l="block !important");const u=t.append("g");u.attr("id","actor"+s+"_popup"),u.attr("class","actorPopupMenu"),u.attr("display",l);var d="";o.class!==void 0&&(d=" "+o.class);let h=o.width>r?o.width:r;const f=u.append("rect");if(f.attr("class","actorPopupMenuPanel"+d),f.attr("x",o.x),f.attr("y",o.height),f.attr("fill",o.fill),f.attr("stroke",o.stroke),f.attr("width",h),f.attr("height",o.height),f.attr("rx",o.rx),f.attr("ry",o.ry),a!=null){var p=20;for(let y in a){var g=u.append("a"),m=Kp.sanitizeUrl(a[y]);g.attr("xlink:href",m),g.attr("target","_blank"),SRt(n)(y,g,o.x+10,o.height+p,h,20,{class:"actor"},n),p+=30}}return f.attr("height",p),{height:o.height+p,width:h}},"drawPopup"),i8=S(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),Dw=S(async function(t,e,r=null){let n=t.append("foreignObject");const i=await pk(e.text,xr()),s=n.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(n.attr("height",Math.round(s.height)).attr("width",Math.round(s.width)),e.class==="noteText"){const o=t.node().firstChild;o.setAttribute("height",s.height+2*e.textMargin);const l=o.getBBox();n.attr("x",Math.round(l.x+l.width/2-s.width/2)).attr("y",Math.round(l.y+l.height/2-s.height/2))}else if(r){let{startx:o,stopx:l,starty:u}=r;if(o>l){const d=o;o=l,l=d}n.attr("x",Math.round(o+Math.abs(o-l)/2-s.width/2)),e.class==="loopText"?n.attr("y",Math.round(u)):n.attr("y",Math.round(u-s.height))}return[n]},"drawKatex"),Ab=S(function(t,e){let r=0,n=0;const i=e.text.split(qt.lineBreakRegex),[a,s]=Y0(e.fontSize);let o=[],l=0,u=S(()=>e.y,"yfunc");if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":u=S(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":u=S(()=>Math.round(e.y+(r+n+e.textMargin)/2),"yfunc");break;case"bottom":case"end":u=S(()=>Math.round(e.y+(r+n+2*e.textMargin)-e.textMargin),"yfunc");break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[d,h]of i.entries()){e.textMargin!==void 0&&e.textMargin===0&&a!==void 0&&(l=d*a);const f=t.append("text");f.attr("x",e.x),f.attr("y",u()),e.anchor!==void 0&&f.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&f.style("font-family",e.fontFamily),s!==void 0&&f.style("font-size",s),e.fontWeight!==void 0&&f.style("font-weight",e.fontWeight),e.fill!==void 0&&f.attr("fill",e.fill),e.class!==void 0&&f.attr("class",e.class),e.dy!==void 0?f.attr("dy",e.dy):l!==0&&f.attr("dy",l);const p=h||Ufe;if(e.tspan){const g=f.append("tspan");g.attr("x",e.x),e.fill!==void 0&&g.attr("fill",e.fill),g.text(p)}else f.text(p);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(n+=(f._groups||f)[0][0].getBBox().height,r=n),o.push(f)}return o},"drawText"),X7e=S(function(t,e){function r(i,a,s,o,l){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+o-l)+" "+(i+s-l*1.2)+","+(a+o)+" "+i+","+(a+o)}S(r,"genPoints");const n=t.append("polygon");return n.attr("points",r(e.x,e.y,e.width,e.height,7)),n.attr("class","labelBox"),e.y=e.y+e.height/2,Ab(t,e),n},"drawLabel"),cn=-1,j7e=S((t,e,r,n)=>{t.select&&r.forEach(i=>{const a=e.get(i),s=t.select("#actor"+a.actorCnt);!n.mirrorActors&&a.stopy?s.attr("y2",a.stopy+a.height/2):n.mirrorActors&&s.attr("y2",a.stopy)})},"fixLifeLineHeights"),eRt=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();var g=p;n||(cn++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",i8(`actor${cn}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),g=p.append("g"),e.actorCnt=cn,e.links!=null&&g.attr("id","root-"+cn),l==="neo"&&g.attr("data-look","neo"));const m=Xo();var y="actor";e.properties?.class?y=e.properties.class:m.fill="#eaeaea",n?y+=` ${Wh}`:y+=` ${Vh}`,m.x=e.x,m.y=a,m.width=e.width,m.height=e.height,m.class=y,m.rx=3,m.ry=3,m.name=e.name,l==="neo"&&(m.rx=6,m.ry=6);const v=$4(g,m),b=i.get(e.name)??0;if(sd.has(u)&&(v.style("stroke",f[b%f.length]),v.style("fill",h[b%f.length])),l==="neo"&&v.attr("filter","url(#drop-shadow)"),e.rectData=m,e.properties?.icon){const E=e.properties.icon.trim();E.charAt(0)==="@"?nY(g,m.x+m.width-20,m.y+10,E.substr(1)):rY(g,m.x+m.width-20,m.y+10,E)}n||(g.attr("data-et","participant"),g.attr("data-type","participant"),g.attr("data-id",e.name)),od(r,Xi(e.description))(e.description,g,m.x,m.y,m.width,m.height,{class:`actor ${n8}`},r);let _=e.height;if(v.node){const E=v.node().getBBox();e.height=E.height,_=E.height}return _},"drawActorTypeParticipant"),tRt=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();var g=p;n||(cn++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",i8(`actor${cn}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),g=p.append("g"),e.actorCnt=cn,e.links!=null&&g.attr("id","root-"+cn),l==="neo"&&g.attr("data-look","neo"));const m=Xo();var y="actor";e.properties?.class?y=e.properties.class:m.fill="#eaeaea",n?y+=` ${Wh}`:y+=` ${Vh}`,m.x=e.x,m.y=a,m.width=e.width,m.height=e.height,m.class=y,m.name=e.name;const v=6,b={...m,x:m.x+-v,y:m.y+ +v,class:"actor"},_=$4(g,m),E=$4(g,b);e.rectData=m,l==="neo"&&g.attr("filter","url(#drop-shadow)");const x=i.get(e.name)??0;if(sd.has(u)&&(_.style("stroke",f[x%f.length]),_.style("fill",h[x%f.length]),E.style("stroke",f[x%f.length]),E.style("fill",h[x%f.length])),e.properties?.icon){const T=e.properties.icon.trim();T.charAt(0)==="@"?nY(g,m.x+m.width-20,m.y+10,T.substr(1)):rY(g,m.x+m.width-20,m.y+10,T)}od(r,Xi(e.description))(e.description,g,m.x-v,m.y+v,m.width,m.height,{class:`actor ${n8}`},r);let C=e.height;if(_.node){const T=_.node().getBBox();e.height=T.height,C=T.height}return n||(g.attr("data-et","participant"),g.attr("data-type","collections"),g.attr("data-id",e.name)),C},"drawActorTypeCollections"),rRt=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();let g=p;n||(cn++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",i8(`actor${cn}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),g=p.append("g"),e.actorCnt=cn,e.links!=null&&g.attr("id","root-"+cn),l==="neo"&&g.attr("data-look","neo"));const m=Xo();let y="actor";e.properties?.class?y=e.properties.class:m.fill="#eaeaea",n?y+=` ${Wh}`:y+=` ${Vh}`,g.attr("class",y),m.x=e.x,m.y=a,m.width=e.width,m.height=e.height,m.name=e.name;const v=m.height/2,b=v/(2.5+m.height/50),_=g.append("g"),E=g.append("g"),x=`M ${m.x},${m.y+v} a ${b},${v} 0 0 0 0,${m.height} h ${m.width-2*b} a ${b},${v} 0 0 0 0,-${m.height} Z `;_.append("path").attr("d",x),E.append("path").attr("d",`M ${m.x},${m.y+v} - a ${b},${v} 0 0 0 0,${m.height}`),_.attr("transform",`translate(${b}, ${-(m.height/2)})`),E.attr("transform",`translate(${m.width-b}, ${-m.height/2})`),e.rectData=m,l==="neo"&&_.attr("filter","url(#drop-shadow)");const C=i.get(e.name)??0;if(sd.has(u)&&(_.style("stroke",f[C%f.length]),_.style("fill",h[C%f.length]),E.style("stroke",f[C%f.length]),E.style("fill",h[C%f.length])),e.properties?.icon){const N=e.properties.icon.trim(),O=m.x+m.width-20,M=m.y+10;N.charAt(0)==="@"?nY(g,O,M,N.substr(1)):rY(g,O,M,N)}od(r,Xi(e.description))(e.description,g,m.x,m.y,m.width,m.height,{class:`actor ${n8}`},r);let T=e.height;const w=_.select("path:last-child");if(w.node()){const N=w.node().getBBox();e.height=N.height,T=N.height}return n||(g.attr("data-et","participant"),g.attr("data-type","queue"),g.attr("data-id",e.name)),T},"drawActorTypeQueue"),rRt=S(function(t,e,r,n,i,a){const s=n?e.stopy:e.starty,o=e.x+e.width/2,l=s+75,{look:u,theme:d,themeVariables:h}=r,{bkgColorArray:f,borderColorArray:p,actorBorder:g,actorBkg:m}=h,y=t.append("g").lower();n||(cn++,y.append("line").attr("id","actor"+cn).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=cn);const v=t.append("g");let b=Up;n?b+=` ${Wh}`:b+=` ${Vh}`,v.attr("class",b),v.attr("name",e.name);const _=Xo();_.x=e.x,_.y=s,_.fill="#eaeaea",_.width=e.width,_.height=e.height,_.class="actor";const E=e.x+e.width/2,x=s+32,C=22;v.append("defs").append("marker").attr("id",i+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),v.append("circle").attr("cx",E).attr("cy",x).attr("r",C).attr("filter",`${u==="neo"?"url(#drop-shadow)":""}`),v.append("line").attr("marker-end","url(#"+i+"-filled-head-control)").attr("transform",`translate(${E}, ${x-C})`);const T=a.get(e.name)??0;sd.has(d)?(v.style("stroke",p[T%p.length]),v.style("fill",f[T%p.length])):(v.style("stroke",g),v.style("fill",m));const w=v.node().getBBox();return e.height=w.height+2*(r?.sequence?.labelBoxHeight??0),od(r,Xi(e.description))(e.description,v,_.x,_.y+C+(n?5:12),_.width,_.height,{class:`actor ${Up}`},r),n||(v.attr("data-et","participant"),v.attr("data-type","control"),v.attr("data-id",e.name)),e.height},"drawActorTypeControl"),nRt=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+75,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower(),g=t.append("g");let m="actor";n?m+=` ${Wh}`:m+=` ${Vh}`,g.attr("class",m),g.attr("name",e.name);const y=Xo();y.x=e.x,y.y=a,y.fill="#eaeaea",y.width=e.width,y.height=e.height,y.class="actor";const v=e.x+e.width/2,b=a+(n?10:25),_=22;g.append("circle").attr("cx",v).attr("cy",b).attr("r",_).attr("width",e.width).attr("height",e.height),g.append("line").attr("x1",v-_).attr("x2",v+_).attr("y1",b+_).attr("y2",b+_).attr("stroke-width",2),l==="neo"&&g.attr("filter","url(#drop-shadow)");const E=i.get(e.name)??0;sd.has(u)&&(g.style("stroke",f[E%f.length]),g.style("fill",h[E%f.length]));const x=g.node().getBBox();return e.height=x.height+(r?.sequence?.labelBoxHeight??0),n||(cn++,p.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=cn),od(r,Xi(e.description))(e.description,g,y.x,y.y+(n?15:30),y.width,y.height,{class:`actor ${Up}`},r),n?g.attr("transform",`translate(0, ${_})`):(g.attr("transform",`translate(0, ${_/2-5})`),g.attr("data-et","participant"),g.attr("data-type","entity"),g.attr("data-id",e.name)),e.height},"drawActorTypeEntity"),iRt=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+e.height+2*r.boxTextMargin,{theme:l,themeVariables:u,look:d}=r,{bkgColorArray:h,borderColorArray:f,actorBorder:p}=u,g=t.append("g").lower();let m=g;n||(cn++,Object.keys(e.links||{}).length&&!r.forceMenus&&m.attr("onclick",i8(`actor${cn}_popup`)).attr("cursor","pointer"),m.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),m=g.append("g"),e.actorCnt=cn,e.links!=null&&m.attr("id","root-"+cn),d==="neo"&&m.attr("data-look","neo"));const y=Xo();let v="actor";e.properties?.class?v=e.properties.class:y.fill="#eaeaea",n?v+=` ${Wh}`:v+=` ${Vh}`,y.x=e.x,y.y=a,y.width=e.width,y.height=e.height,y.class=v,y.name=e.name,y.x=e.x,y.y=a;const b=y.width/3,_=y.width/3,E=b/2,x=E/(2.5+b/50),C=m.append("g");C.attr("class",v);const T=` + a ${b},${v} 0 0 0 0,${m.height}`),_.attr("transform",`translate(${b}, ${-(m.height/2)})`),E.attr("transform",`translate(${m.width-b}, ${-m.height/2})`),e.rectData=m,l==="neo"&&_.attr("filter","url(#drop-shadow)");const C=i.get(e.name)??0;if(sd.has(u)&&(_.style("stroke",f[C%f.length]),_.style("fill",h[C%f.length]),E.style("stroke",f[C%f.length]),E.style("fill",h[C%f.length])),e.properties?.icon){const N=e.properties.icon.trim(),O=m.x+m.width-20,M=m.y+10;N.charAt(0)==="@"?nY(g,O,M,N.substr(1)):rY(g,O,M,N)}od(r,Xi(e.description))(e.description,g,m.x,m.y,m.width,m.height,{class:`actor ${n8}`},r);let T=e.height;const w=_.select("path:last-child");if(w.node()){const N=w.node().getBBox();e.height=N.height,T=N.height}return n||(g.attr("data-et","participant"),g.attr("data-type","queue"),g.attr("data-id",e.name)),T},"drawActorTypeQueue"),nRt=S(function(t,e,r,n,i,a){const s=n?e.stopy:e.starty,o=e.x+e.width/2,l=s+75,{look:u,theme:d,themeVariables:h}=r,{bkgColorArray:f,borderColorArray:p,actorBorder:g,actorBkg:m}=h,y=t.append("g").lower();n||(cn++,y.append("line").attr("id","actor"+cn).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=cn);const v=t.append("g");let b=Up;n?b+=` ${Wh}`:b+=` ${Vh}`,v.attr("class",b),v.attr("name",e.name);const _=Xo();_.x=e.x,_.y=s,_.fill="#eaeaea",_.width=e.width,_.height=e.height,_.class="actor";const E=e.x+e.width/2,x=s+32,C=22;v.append("defs").append("marker").attr("id",i+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),v.append("circle").attr("cx",E).attr("cy",x).attr("r",C).attr("filter",`${u==="neo"?"url(#drop-shadow)":""}`),v.append("line").attr("marker-end","url(#"+i+"-filled-head-control)").attr("transform",`translate(${E}, ${x-C})`);const T=a.get(e.name)??0;sd.has(d)?(v.style("stroke",p[T%p.length]),v.style("fill",f[T%p.length])):(v.style("stroke",g),v.style("fill",m));const w=v.node().getBBox();return e.height=w.height+2*(r?.sequence?.labelBoxHeight??0),od(r,Xi(e.description))(e.description,v,_.x,_.y+C+(n?5:12),_.width,_.height,{class:`actor ${Up}`},r),n||(v.attr("data-et","participant"),v.attr("data-type","control"),v.attr("data-id",e.name)),e.height},"drawActorTypeControl"),iRt=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+75,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower(),g=t.append("g");let m="actor";n?m+=` ${Wh}`:m+=` ${Vh}`,g.attr("class",m),g.attr("name",e.name);const y=Xo();y.x=e.x,y.y=a,y.fill="#eaeaea",y.width=e.width,y.height=e.height,y.class="actor";const v=e.x+e.width/2,b=a+(n?10:25),_=22;g.append("circle").attr("cx",v).attr("cy",b).attr("r",_).attr("width",e.width).attr("height",e.height),g.append("line").attr("x1",v-_).attr("x2",v+_).attr("y1",b+_).attr("y2",b+_).attr("stroke-width",2),l==="neo"&&g.attr("filter","url(#drop-shadow)");const E=i.get(e.name)??0;sd.has(u)&&(g.style("stroke",f[E%f.length]),g.style("fill",h[E%f.length]));const x=g.node().getBBox();return e.height=x.height+(r?.sequence?.labelBoxHeight??0),n||(cn++,p.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=cn),od(r,Xi(e.description))(e.description,g,y.x,y.y+(n?15:30),y.width,y.height,{class:`actor ${Up}`},r),n?g.attr("transform",`translate(0, ${_})`):(g.attr("transform",`translate(0, ${_/2-5})`),g.attr("data-et","participant"),g.attr("data-type","entity"),g.attr("data-id",e.name)),e.height},"drawActorTypeEntity"),aRt=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+e.height+2*r.boxTextMargin,{theme:l,themeVariables:u,look:d}=r,{bkgColorArray:h,borderColorArray:f,actorBorder:p}=u,g=t.append("g").lower();let m=g;n||(cn++,Object.keys(e.links||{}).length&&!r.forceMenus&&m.attr("onclick",i8(`actor${cn}_popup`)).attr("cursor","pointer"),m.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),m=g.append("g"),e.actorCnt=cn,e.links!=null&&m.attr("id","root-"+cn),d==="neo"&&m.attr("data-look","neo"));const y=Xo();let v="actor";e.properties?.class?v=e.properties.class:y.fill="#eaeaea",n?v+=` ${Wh}`:v+=` ${Vh}`,y.x=e.x,y.y=a,y.width=e.width,y.height=e.height,y.class=v,y.name=e.name,y.x=e.x,y.y=a;const b=y.width/3,_=y.width/3,E=b/2,x=E/(2.5+b/50),C=m.append("g");C.attr("class",v);const T=` M ${y.x},${y.y+x} a ${E},${x} 0 0 0 ${b},0 a ${E},${x} 0 0 0 -${b},0 l 0,${_-2*x} a ${E},${x} 0 0 0 ${b},0 l 0,-${_-2*x} -`;C.append("path").attr("d",T),d==="neo"&&C.attr("filter","url(#drop-shadow)");const w=i.get(e.name)??0;sd.has(l)?(C.style("stroke",f[w%f.length]),C.style("fill",h[w%f.length])):C.style("stroke",p),C.attr("transform",`translate(${b}, ${x})`),e.rectData=y,od(r,Xi(e.description))(e.description,m,y.x,y.y+35,y.width,y.height,{class:`actor ${n8}`},r);const N=C.select("path:last-child");if(N.node()){const O=N.node().getBBox();e.height=O.height+(r.sequence.labelBoxHeight??0)}return n||(m.attr("data-et","participant"),m.attr("data-type","database"),m.attr("data-id",e.name)),e.height},"drawActorTypeDatabase"),aRt=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+80,l=22,u=t.append("g").lower(),{look:d,theme:h,themeVariables:f}=r,{bkgColorArray:p,borderColorArray:g,actorBorder:m}=f;n||(cn++,u.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=cn);const y=t.append("g");let v=Up;n?v+=` ${Wh}`:v+=` ${Vh}`,y.attr("class",v),y.attr("name",e.name);const b=Xo();b.x=e.x,b.y=a,b.fill="#eaeaea",b.width=e.width,b.height=e.height,b.class="actor",y.append("line").attr("id","actor-man-torso"+cn).attr("x1",e.x+e.width/2-l*2.5).attr("y1",a+12).attr("x2",e.x+e.width/2-15).attr("y2",a+12),y.append("line").attr("id","actor-man-arms"+cn).attr("x1",e.x+e.width/2-l*2.5).attr("y1",a+2).attr("x2",e.x+e.width/2-l*2.5).attr("y2",a+22),y.append("circle").attr("cx",e.x+e.width/2).attr("cy",a+12).attr("r",l),d==="neo"&&y.attr("filter","url(#drop-shadow)");const _=i.get(e.name)??0;sd.has(h)?(y.style("stroke",g[_%g.length]),y.style("fill",p[_%g.length])):y.style("stroke",m);const E=y.node().getBBox();return e.height=E.height+(r.sequence.labelBoxHeight??0),od(r,Xi(e.description))(e.description,y,b.x,b.y+15,b.width,b.height,{class:`actor ${Up}`},r),y.attr("transform",`translate(0,${l/2+10})`),n||(y.attr("data-et","participant"),y.attr("data-type","boundary"),y.attr("data-id",e.name)),e.height},"drawActorTypeBoundary"),sRt=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+80,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f,actorBorder:p}=d,g=t.append("g").lower();n||(cn++,g.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=cn);const m=t.append("g");let y=Up;n?y+=` ${Wh}`:y+=` ${Vh}`,m.attr("class",y),m.attr("name",e.name),n||m.attr("data-et","participant").attr("data-type","actor").attr("data-id",e.name);const v=l==="neo"?.5:1,b=l==="neo"?a+(1-v)*30:a;m.append("line").attr("id","actor-man-torso"+cn).attr("x1",s).attr("y1",b+25*v).attr("x2",s).attr("y2",b+45*v),m.append("line").attr("id","actor-man-arms"+cn).attr("x1",s-lp/2*v).attr("y1",b+33*v).attr("x2",s+lp/2*v).attr("y2",b+33*v),m.append("line").attr("x1",s-lp/2*v).attr("y1",b+60*v).attr("x2",s).attr("y2",b+45*v),m.append("line").attr("x1",s).attr("y1",b+45*v).attr("x2",s+(lp/2-2)*v).attr("y2",b+60*v);const _=m.append("circle");_.attr("cx",e.x+e.width/2),_.attr("cy",b+10*v),_.attr("r",15*v),_.attr("width",e.width*v),_.attr("height",e.height*v);const E=m.node().getBBox();e.height=E.height;const x=Xo();x.x=e.x,x.y=b,x.fill="#eaeaea",x.width=e.width,x.height=e.height/v,x.class="actor",x.rx=3,x.ry=3;const C=i.get(e.name)??0;return sd.has(u)?(m.style("stroke",f[C%f.length]),m.style("fill",h[C%f.length])):m.style("stroke",p),od(r,Xi(e.description))(e.description,m,x.x,b+35*v-(l==="neo"?10:0),x.width,x.height,{class:`actor ${Up}`},r),e.height},"drawActorTypeActor"),oRt=S(async function(t,e,r,n,i,a,s){const o=s??new Map([...a.db.getActors().values()].map((l,u)=>[l.name,u]));switch(e.type){case"actor":return await sRt(t,e,r,n,o);case"participant":return await J8t(t,e,r,n,o);case"boundary":return await aRt(t,e,r,n,o);case"control":return await rRt(t,e,r,n,i,o);case"entity":return await nRt(t,e,r,n,o);case"database":return await iRt(t,e,r,n,o);case"collections":return await eRt(t,e,r,n,o);case"queue":return await tRt(t,e,r,n,o)}},"drawActor"),lRt=S(function(t,e,r){const i=t.append("g");Q7e(i,e),e.name&&od(r)(e.name,i,e.x,e.y+r.boxTextMargin+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},r),i.lower()},"drawBox"),cRt=S(function(t){return t.append("g")},"anchorElement"),uRt=S(function(t,e,r,n,i,a,s){const{theme:o,themeVariables:l}=n,{bkgColorArray:u,borderColorArray:d,mainBkg:h}=l,f=Xo(),p=e.anchored,g=e.actor;f.x=e.startx,f.y=e.starty,f.class="activation"+i%3,f.width=e.stopx-e.startx,f.height=r-e.starty;const m=$4(p,f),v=(s??new Map([...a.db.getActors().values()].map((b,_)=>[b.name,_]))).get(g)??0;sd.has(o)&&(m.style("stroke",d[v%d.length]),m.style("fill",u[v%d.length]??h))},"drawActivation"),dRt=S(async function(t,e,r,n,i){const{boxMargin:a,boxTextMargin:s,labelBoxHeight:o,labelBoxWidth:l,messageFontFamily:u,messageFontSize:d,messageFontWeight:h}=n,f=t.append("g").attr("data-et","control-structure").attr("data-id","i"+i.id),p=S(function(y,v,b,_){return f.append("line").attr("x1",y).attr("y1",v).attr("x2",b).attr("y2",_).attr("class","loopLine")},"drawLoopLine");p(e.startx,e.starty,e.stopx,e.starty),p(e.stopx,e.starty,e.stopx,e.stopy),p(e.startx,e.stopy,e.stopx,e.stopy),p(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(y){p(e.startx,y.y,e.stopx,y.y).style("stroke-dasharray","3, 3")});let g=iY();g.text=r,g.x=e.startx,g.y=e.starty,g.fontFamily=u,g.fontSize=d,g.fontWeight=h,g.anchor="middle",g.valign="middle",g.tspan=!1,g.width=Math.max(l??0,50),g.height=o+(n.look==="neo"?15:0)||20,g.textMargin=s,g.class="labelText",X7e(f,g),g=Z7e(),g.text=e.title,g.x=e.startx+l/2+(e.stopx-e.startx)/2,g.y=e.starty+a+s,g.anchor="middle",g.valign="middle",g.textMargin=s,g.class="loopText",g.fontFamily=u,g.fontSize=d,g.fontWeight=h,g.wrap=!0;let m=Xi(g.text)?await Dw(f,g,e):Ab(f,g);if(e.sectionTitles!==void 0){for(const[y,v]of Object.entries(e.sectionTitles))if(v.message){g.text=v.message,g.x=e.startx+(e.stopx-e.startx)/2,g.y=e.sections[y].y+a+s,g.class="sectionTitle",g.anchor="middle",g.valign="middle",g.tspan=!1,g.fontFamily=u,g.fontSize=d,g.fontWeight=h,g.wrap=e.wrap,Xi(g.text)?(e.starty=e.sections[y].y,await Dw(f,g,e)):Ab(f,g);let b=Math.round(m.map(_=>(_._groups||_)[0][0].getBBox().height).reduce((_,E)=>_+E));e.sections[y].height+=b-(a+s)}}return e.height=Math.round(e.stopy-e.starty),f},"drawLoop"),Q7e=S(function(t,e){v2e(t,e)},"drawBackgroundRect"),hRt=S(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),fRt=S(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),pRt=S(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),gRt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),mRt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),yRt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),vRt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),_Rt=S(function(t,e){const{theme:r}=e;t.append("defs").append("filter").attr("id","drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${r==="redux"||r==="redux-color"?"#000000":"#FFFFFF"}`)},"insertDropShadow"),Z7e=S(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),bRt=S(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),od=(function(){function t(a,s,o,l,u,d,h){const f=s.append("text").attr("x",o+u/2).attr("y",l+d/2+5).style("text-anchor","middle").text(a);i(f,h)}S(t,"byText");function e(a,s,o,l,u,d,h,f){const{actorFontSize:p,actorFontFamily:g,actorFontWeight:m}=f,[y,v]=Y0(p),b=a.split(qt.lineBreakRegex);for(let _=0;_t.height||0))+(this.loops.length===0?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.messages.length===0?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.notes.length===0?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},"getHeight"),clear:S(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:S(function(t){this.boxes.push(t)},"addBox"),addActor:S(function(t){this.actors.push(t)},"addActor"),addLoop:S(function(t){this.loops.push(t)},"addLoop"),addMessage:S(function(t){this.messages.push(t)},"addMessage"),addNote:S(function(t){this.notes.push(t)},"addNote"),lastActor:S(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:S(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:S(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:S(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:S(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,tAe(Ke())},"init"),updateVal:S(function(t,e,r,n){t[e]===void 0?t[e]=r:t[e]=n(r,t[e])},"updateVal"),updateBounds:S(function(t,e,r,n){const i=this;let a=0;function s(o){return S(function(u){a++;const d=i.sequenceItems.length-a+1;i.updateVal(u,"starty",e-d*at.boxMargin,Math.min),i.updateVal(u,"stopy",n+d*at.boxMargin,Math.max),i.updateVal(Lt.data,"startx",t-d*at.boxMargin,Math.min),i.updateVal(Lt.data,"stopx",r+d*at.boxMargin,Math.max),o!=="activation"&&(i.updateVal(u,"startx",t-d*at.boxMargin,Math.min),i.updateVal(u,"stopx",r+d*at.boxMargin,Math.max),i.updateVal(Lt.data,"starty",e-d*at.boxMargin,Math.min),i.updateVal(Lt.data,"stopy",n+d*at.boxMargin,Math.max))},"updateItemBounds")}S(s,"updateFn"),this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},"updateBounds"),insert:S(function(t,e,r,n){const i=qt.getMin(t,r),a=qt.getMax(t,r),s=qt.getMin(e,n),o=qt.getMax(e,n);this.updateVal(Lt.data,"startx",i,Math.min),this.updateVal(Lt.data,"starty",s,Math.min),this.updateVal(Lt.data,"stopx",a,Math.max),this.updateVal(Lt.data,"stopy",o,Math.max),this.updateBounds(i,s,a,o)},"insert"),newActivation:S(function(t,e,r){const n=r.get(t.from),i=a8(t.from).length||0,a=n.x+n.width/2+(i-1)*at.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+at.activationWidth,stopy:void 0,actor:t.from,anchored:Kn.anchorElement(e)})},"newActivation"),endActivation:S(function(t){const e=this.activations.map(function(r){return r.actor}).lastIndexOf(t.from);return this.activations.splice(e,1)[0]},"endActivation"),createLoop:S(function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},"createLoop"),newLoop:S(function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},"newLoop"),endLoop:S(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:S(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:S(function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:Lt.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},"addSectionToLoop"),saveVerticalPos:S(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:S(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:S(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=qt.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:S(function(){return this.verticalPos},"getVerticalPos"),getBounds:S(function(){return{bounds:this.data,models:this.models}},"getBounds")},wRt=S(async function(t,e,r){Lt.bumpVerticalPos(at.boxMargin),e.height=at.boxMargin,e.starty=Lt.getVerticalPos();const n=Xo();n.x=e.startx,n.y=e.starty,n.width=e.width||at.width,n.class="note";const i=t.append("g");i.attr("data-et","note"),i.attr("data-id","i"+r);const a=Kn.drawRect(i,n),s=iY();s.x=e.startx,s.y=e.starty,s.width=n.width,s.dy="1em",s.text=e.message,s.class="noteText",s.fontFamily=at.noteFontFamily,s.fontSize=at.noteFontSize,s.fontWeight=at.noteFontWeight,s.anchor=at.noteAlign,s.textMargin=at.noteMargin,s.valign="center";const o=Xi(s.text)?await Dw(i,s):Ab(i,s),l=Math.round(o.map(u=>(u._groups||u)[0][0].getBBox().height).reduce((u,d)=>u+d));a.attr("height",l+2*at.noteMargin),e.height+=l+2*at.noteMargin,Lt.bumpVerticalPos(l+2*at.noteMargin),e.stopy=e.starty+l+2*at.noteMargin,e.stopx=e.startx+n.width,Lt.insert(e.startx,e.starty,e.stopx,e.stopy),Lt.models.addNote(e)},"drawNote"),Poe=S(function(t,e,r,n,i,a,s){const o=n.db.getActors(),l=o.get(e.from),u=o.get(e.to),d=r.sequenceVisible;let h=l.x+l.width/2,f=u.x+u.width/2;const p=h<=f,g=aAe(e,n),m=t.append("g"),y=16.5,v=S((C,T)=>{const w=C?y:-y;return T?-w:w},"getCircleOffset"),b=S(C=>{m.append("circle").attr("cx",C).attr("cy",s).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:_,CENTRAL_CONNECTION_REVERSE:E,CENTRAL_CONNECTION_DUAL:x}=n.db.LINETYPE;if(d)switch(e.centralConnection){case _:g&&(f+=v(p,!0));break;case E:g||(h+=v(p,!1));break;case x:g?f+=v(p,!0):h+=v(p,!1);break}switch(e.centralConnection){case _:b(f);break;case E:b(h);break;case x:b(h),b(f);break}},"drawCentralConnection"),Gp=S(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont"),ym=S(t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),"noteFont"),Z$=S(t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}),"actorFont");async function J7e(t,e){Lt.bumpVerticalPos(10);const{startx:r,stopx:n,message:i}=e,a=qt.splitBreaks(i).length,s=Xi(i),o=s?await eT(i,Ke()):Wr.calculateTextDimensions(i,Gp(at));if(!s){const h=o.height/a;e.height+=h,Lt.bumpVerticalPos(h)}let l,u=o.height-10;const d=o.width;if(r===n){l=Lt.getVerticalPos()+u,at.rightAngles||(u+=at.boxMargin,l=Lt.getVerticalPos()+u),u+=30;const h=qt.getMax(d/2,at.width/2);Lt.insert(r-h,Lt.getVerticalPos()-10+u,n+h,Lt.getVerticalPos()+30+u)}else u+=at.boxMargin,l=Lt.getVerticalPos()+u,Lt.insert(r,l-10,n,l);return Lt.bumpVerticalPos(u),e.height+=u,e.stopy=e.starty+e.height,Lt.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),l}S(J7e,"boundMessage");var kRt=S(async function(t,e,r,n,i,a){const{startx:s,stopx:o,starty:l,message:u,type:d,sequenceIndex:h,sequenceVisible:f}=e,p=Wr.calculateTextDimensions(u,Gp(at)),g=iY();g.x=Math.min(s,o),g.y=l+10,g.width=Math.abs(o-s),g.class="messageText",g.dy="1em",g.text=u,g.fontFamily=at.messageFontFamily,g.fontSize=at.messageFontSize,g.fontWeight=at.messageFontWeight,g.anchor=at.messageAlign,g.valign="center",g.textMargin=at.wrapPadding,g.tspan=!1,Xi(g.text)?await Dw(t,g,{startx:s,stopx:o,starty:r}):Ab(t,g);const m=p.width;let y;if(s===o){const b=f||at.showSequenceNumbers,_=aAe(i,n),E=LRt(i,n),x=s+(b&&(_||E)?10:0);at.rightAngles?y=t.append("path").attr("d",`M ${x},${r} H ${s+qt.getMax(at.width/2,m/2)} V ${r+25} H ${s}`):y=t.append("path").attr("d","M "+x+","+r+" C "+(x+60)+","+(r-10)+" "+(s+60)+","+(r+30)+" "+s+","+(r+20)),VL(i,n)&&Poe(t,i,e,n,s,o,r)}else y=t.append("line"),y.attr("x1",s),y.attr("y1",r),y.attr("x2",o),y.attr("y2",r),VL(i,n)&&Poe(t,i,e,n,s,o,r);d===n.db.LINETYPE.DOTTED||d===n.db.LINETYPE.DOTTED_CROSS||d===n.db.LINETYPE.DOTTED_POINT||d===n.db.LINETYPE.DOTTED_OPEN||d===n.db.LINETYPE.BIDIRECTIONAL_DOTTED||d===n.db.LINETYPE.SOLID_TOP_DOTTED||d===n.db.LINETYPE.SOLID_BOTTOM_DOTTED||d===n.db.LINETYPE.STICK_TOP_DOTTED||d===n.db.LINETYPE.STICK_BOTTOM_DOTTED||d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(y.style("stroke-dasharray","3, 3"),y.attr("class","messageLine1")):y.attr("class","messageLine0"),y.attr("data-et","message"),y.attr("data-id","i"+e.id),y.attr("data-from",e.from),y.attr("data-to",e.to);let v="";if(at.arrowMarkerAbsolute&&(v=fk(!0)),y.attr("stroke-width",2),y.attr("stroke","none"),y.style("fill","none"),(d===n.db.LINETYPE.SOLID_TOP||d===n.db.LINETYPE.SOLID_TOP_DOTTED)&&y.attr("marker-end","url("+v+"#"+a+"-solidTopArrowHead)"),(d===n.db.LINETYPE.SOLID_BOTTOM||d===n.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&y.attr("marker-end","url("+v+"#"+a+"-solidBottomArrowHead)"),(d===n.db.LINETYPE.STICK_TOP||d===n.db.LINETYPE.STICK_TOP_DOTTED)&&y.attr("marker-end","url("+v+"#"+a+"-stickTopArrowHead)"),(d===n.db.LINETYPE.STICK_BOTTOM||d===n.db.LINETYPE.STICK_BOTTOM_DOTTED)&&y.attr("marker-end","url("+v+"#"+a+"-stickBottomArrowHead)"),(d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&y.attr("marker-start","url("+v+"#"+a+"-solidBottomArrowHead)"),(d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr("marker-start","url("+v+"#"+a+"-solidTopArrowHead)"),(d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&y.attr("marker-start","url("+v+"#"+a+"-stickBottomArrowHead)"),(d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr("marker-start","url("+v+"#"+a+"-stickTopArrowHead)"),(d===n.db.LINETYPE.SOLID||d===n.db.LINETYPE.DOTTED)&&y.attr("marker-end","url("+v+"#"+a+"-arrowhead)"),(d===n.db.LINETYPE.BIDIRECTIONAL_SOLID||d===n.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(y.attr("marker-start","url("+v+"#"+a+"-arrowhead)"),y.attr("marker-end","url("+v+"#"+a+"-arrowhead)")),(d===n.db.LINETYPE.SOLID_POINT||d===n.db.LINETYPE.DOTTED_POINT)&&y.attr("marker-end","url("+v+"#"+a+"-filled-head)"),(d===n.db.LINETYPE.SOLID_CROSS||d===n.db.LINETYPE.DOTTED_CROSS)&&y.attr("marker-end","url("+v+"#"+a+"-crosshead)"),f||at.showSequenceNumbers){const b=d===n.db.LINETYPE.BIDIRECTIONAL_SOLID||d===n.db.LINETYPE.BIDIRECTIONAL_DOTTED,_=d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,E=6,x=VL(i,n);let C=s,T=o;b?(ss?T=o-2*E:(T=o-E,C+=i?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),T+=x?15:0,y.attr("x2",T),y.attr("x1",C)):y.attr("x1",s+E);let w=0;const N=s===o,O=s<=o;N?w=e.fromBounds+1:_?w=O?e.toBounds-1:e.fromBounds+1:w=O?e.fromBounds+1:e.toBounds-1;let M="12px";const $=h.toString().length;$>5?M="7px":$>3&&(M="9px"),t.append("line").attr("x1",w).attr("y1",r).attr("x2",w).attr("y2",r).attr("stroke-width",0).attr("marker-start","url("+v+"#"+a+"-sequencenumber)"),t.append("text").attr("x",w).attr("y",r+4).attr("font-family","sans-serif").attr("font-size",M).attr("text-anchor","middle").attr("class","sequenceNumber").text(h)}},"drawMessage"),ARt=S(function(t,e,r,n,i,a,s){let o=0,l=0,u,d=0;for(const h of n){const f=e.get(h),p=f.box;u&&u!=p&&(s||Lt.models.addBox(u),l+=at.boxMargin+u.margin),p&&p!=u&&(s||(p.x=o+l,p.y=i),l+=p.margin),f.width=qt.getMax(f.width||at.width,at.width),f.height=qt.getMax(f.height||at.height,at.height),f.margin=f.margin||at.actorMargin,d=qt.getMax(d,f.height),r.get(f.name)&&(l+=f.width/2),f.x=o+l,f.starty=Lt.getVerticalPos(),Lt.insert(f.x,i,f.x+f.width,f.height),o+=f.width+l,f.box&&(f.box.width=o+p.margin-f.box.x),l=f.margin,u=f.box,Lt.models.addActor(f)}u&&!s&&Lt.models.addBox(u),Lt.bumpVerticalPos(d)},"addActorRenderingData"),J$=S(async function(t,e,r,n,i,a,s){if(n){let o=0;Lt.bumpVerticalPos(at.boxMargin*2);for(const l of r){const u=e.get(l);u.stopy||(u.stopy=Lt.getVerticalPos());const d=await Kn.drawActor(t,u,at,!0,i,a,s);o=qt.getMax(o,d)}Lt.bumpVerticalPos(o+at.boxMargin)}else for(const o of r){const l=e.get(o);await Kn.drawActor(t,l,at,!1,i,a,s)}},"drawActors"),eAe=S(function(t,e,r,n){let i=0,a=0;for(const s of r){const o=e.get(s),l=NRt(o),u=Kn.drawPopup(t,o,l,at,at.forceMenus,n);u.height>i&&(i=u.height),u.width+o.x>a&&(a=u.width+o.x)}return{maxHeight:i,maxWidth:a}},"drawActorsPopup"),tAe=S(function(t){Vi(at,t),t.fontFamily&&(at.actorFontFamily=at.noteFontFamily=at.messageFontFamily=t.fontFamily),t.fontSize&&(at.actorFontSize=at.noteFontSize=at.messageFontSize=t.fontSize),t.fontWeight&&(at.actorFontWeight=at.noteFontWeight=at.messageFontWeight=t.fontWeight)},"setConf"),a8=S(function(t){return Lt.activations.filter(function(e){return e.actor===t})},"actorActivations"),Boe=S(function(t,e){const r=e.get(t),n=a8(t),i=n.reduce(function(s,o){return qt.getMin(s,o.startx)},r.x+r.width/2-1),a=n.reduce(function(s,o){return qt.getMax(s,o.stopx)},r.x+r.width/2+1);return[i,a]},"activationBounds");function $l(t,e,r,n,i){Lt.bumpVerticalPos(r);let a=n;if(e.id&&e.message&&t[e.id]){const s=t[e.id].width,o=Gp(at);e.message=Wr.wrapLabel(`[${e.message}]`,s-2*at.wrapPadding,o),e.width=s,e.wrap=!0;const l=Wr.calculateTextDimensions(e.message,o),u=qt.getMax(l.height,at.labelBoxHeight);a=n+u,ge.debug(`${u} - ${e.message}`)}i(e),Lt.bumpVerticalPos(a)}S($l,"adjustLoopHeightForWrap");function rAe(t,e,r,n,i,a,s){function o(d,h){d.x{B.add(q.from),B.add(q.to)}),m=m.filter(q=>B.has(q))}const x=new Map(m.map((B,q)=>[h.get(B)?.name??B,q]));ARt(d,h,f,m,0,y,!1);const C=await PRt(y,h,E,n);Kn.insertArrowHead(d,e),Kn.insertArrowCrossHead(d,e),Kn.insertArrowFilledHead(d,e),Kn.insertSequenceNumber(d,e),Kn.insertSolidTopArrowHead(d,e),Kn.insertSolidBottomArrowHead(d,e),Kn.insertStickTopArrowHead(d,e),Kn.insertStickBottomArrowHead(d,e),s==="neo"&&Kn.insertDropShadow(d,at);function T(B,q){const Y=Lt.endActivation(B);Y.starty+18>q&&(Y.starty=q-6,q+=12),Kn.drawActivation(d,Y,q,at,a8(B.from).length,n,x),Lt.insert(Y.startx,q-10,Y.stopx,q)}S(T,"activeEnd");let w=1,N=1;const O=[],M=[];let $=0;for(const B of y){let q,Y,Q;switch(B.type){case n.db.LINETYPE.NOTE:Lt.resetVerticalPos(),Y=B.noteModel,await wRt(d,Y,B.id);break;case n.db.LINETYPE.ACTIVE_START:Lt.newActivation(B,d,h);break;case n.db.LINETYPE.CENTRAL_CONNECTION:Lt.newActivation(B,d,h);break;case n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:Lt.newActivation(B,d,h);break;case n.db.LINETYPE.ACTIVE_END:T(B,Lt.getVerticalPos());break;case n.db.LINETYPE.LOOP_START:$l(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,H=>Lt.newLoop(H));break;case n.db.LINETYPE.LOOP_END:q=Lt.endLoop(),await Kn.drawLoop(d,q,"loop",at,B),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos()),Lt.models.addLoop(q);break;case n.db.LINETYPE.RECT_START:$l(C,B,at.boxMargin,at.boxMargin,H=>Lt.newLoop(void 0,H.message));break;case n.db.LINETYPE.RECT_END:q=Lt.endLoop(),M.push(q),Lt.models.addLoop(q),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos());break;case n.db.LINETYPE.OPT_START:$l(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,H=>Lt.newLoop(H));break;case n.db.LINETYPE.OPT_END:q=Lt.endLoop(),await Kn.drawLoop(d,q,"opt",at,B),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos()),Lt.models.addLoop(q);break;case n.db.LINETYPE.ALT_START:$l(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,H=>Lt.newLoop(H));break;case n.db.LINETYPE.ALT_ELSE:$l(C,B,at.boxMargin+at.boxTextMargin,at.boxMargin,H=>Lt.addSectionToLoop(H));break;case n.db.LINETYPE.ALT_END:q=Lt.endLoop(),await Kn.drawLoop(d,q,"alt",at,B),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos()),Lt.models.addLoop(q);break;case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.PAR_OVER_START:$l(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,H=>Lt.newLoop(H)),Lt.saveVerticalPos();break;case n.db.LINETYPE.PAR_AND:$l(C,B,at.boxMargin+at.boxTextMargin,at.boxMargin,H=>Lt.addSectionToLoop(H));break;case n.db.LINETYPE.PAR_END:q=Lt.endLoop(),await Kn.drawLoop(d,q,"par",at,B),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos()),Lt.models.addLoop(q);break;case n.db.LINETYPE.AUTONUMBER:w=B.message.start||w,N=B.message.step||N,B.message.visible?n.db.enableSequenceNumbers():n.db.disableSequenceNumbers();break;case n.db.LINETYPE.CRITICAL_START:$l(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,H=>Lt.newLoop(H));break;case n.db.LINETYPE.CRITICAL_OPTION:$l(C,B,at.boxMargin+at.boxTextMargin,at.boxMargin,H=>Lt.addSectionToLoop(H));break;case n.db.LINETYPE.CRITICAL_END:q=Lt.endLoop(),await Kn.drawLoop(d,q,"critical",at,B),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos()),Lt.models.addLoop(q);break;case n.db.LINETYPE.BREAK_START:$l(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,H=>Lt.newLoop(H));break;case n.db.LINETYPE.BREAK_END:q=Lt.endLoop(),await Kn.drawLoop(d,q,"break",at,B),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos()),Lt.models.addLoop(q);break;default:try{Q=B.msgModel,Q.starty=Lt.getVerticalPos(),Q.sequenceIndex=w,Q.sequenceVisible=n.db.showSequenceNumbers(),Q.id=B.id,Q.from=B.from,Q.to=B.to;const H=await J7e(d,Q);rAe(B,Q,H,$,h,f,p),O.push({messageModel:Q,lineStartY:H,msg:B}),Lt.models.addMessage(Q)}catch(H){ge.error("error while drawing message",H)}}[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.SOLID_TOP,n.db.LINETYPE.SOLID_BOTTOM,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.SOLID_TOP_DOTTED,n.db.LINETYPE.SOLID_BOTTOM_DOTTED,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT,n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(B.type)&&(w=Math.round((w+N)*100)/100),$++}ge.debug("createdActors",f),ge.debug("destroyedActors",p),await J$(d,h,m,!1,e,n,x);for(const B of O)await kRt(d,B.messageModel,B.lineStartY,n,B.msg,e);at.mirrorActors&&await J$(d,h,m,!0,e,n,x),M.forEach(B=>Kn.drawBackgroundRect(d,B)),j7e(d,h,m,at);for(const B of Lt.models.boxes){B.height=Lt.getVerticalPos()-B.y,Lt.insert(B.x,B.y,B.x+B.width,B.height);const q=at.boxMargin*2;B.startx=B.x-q,B.starty=B.y-q*.25,B.stopx=B.startx+B.width+2*q,B.stopy=B.starty+B.height+q*.75,B.stroke="rgb(0,0,0, 0.5)",Kn.drawBox(d,B,at)}b&&Lt.bumpVerticalPos(at.boxMargin);const F=eAe(d,h,m,u),{bounds:A}=Lt.getBounds();A.startx===void 0&&(A.startx=0),A.starty===void 0&&(A.starty=0),A.stopx===void 0&&(A.stopx=0),A.stopy===void 0&&(A.stopy=0);let I=A.stopy-A.starty;I{const s=Gp(at);let o=a.actorKeys.reduce((h,f)=>h+=t.get(f).width+(t.get(f).margin||0),0);const l=at.boxMargin*8;o+=l,o-=2*at.boxTextMargin,a.wrap&&(a.name=Wr.wrapLabel(a.name,o-2*at.wrapPadding,s));const u=Wr.calculateTextDimensions(a.name,s);i=qt.getMax(u.height,i);const d=qt.getMax(o,u.width+2*at.wrapPadding);if(a.margin=at.boxTextMargin,oa.textMaxHeight=i),qt.getMax(n,at.height)}S(iAe,"calculateActorMargins");var IRt=S(async function(t,e,r){const n=e.get(t.from),i=e.get(t.to),a=n.x,s=i.x,o=t.wrap&&t.message;let l=Xi(t.message)?await eT(t.message,Ke()):Wr.calculateTextDimensions(o?Wr.wrapLabel(t.message,at.width,ym(at)):t.message,ym(at));const u={width:o?at.width:qt.getMax(at.width,l.width+2*at.noteMargin),height:0,startx:n.x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===r.db.PLACEMENT.RIGHTOF?(u.width=o?qt.getMax(at.width,l.width):qt.getMax(n.width/2+i.width/2,l.width+2*at.noteMargin),u.startx=a+(n.width+at.actorMargin)/2):t.placement===r.db.PLACEMENT.LEFTOF?(u.width=o?qt.getMax(at.width,l.width+2*at.noteMargin):qt.getMax(n.width/2+i.width/2,l.width+2*at.noteMargin),u.startx=a-u.width+(n.width-at.actorMargin)/2):t.to===t.from?(l=Wr.calculateTextDimensions(o?Wr.wrapLabel(t.message,qt.getMax(at.width,n.width),ym(at)):t.message,ym(at)),u.width=o?qt.getMax(at.width,n.width):qt.getMax(n.width,at.width,l.width+2*at.noteMargin),u.startx=a+(n.width-u.width)/2):(u.width=Math.abs(a+n.width/2-(s+i.width/2))+at.actorMargin,u.startx=a2,f=S(y=>l?-y:y,"adjustValue");t.from===t.to?d=u:(t.activate&&!h&&(d+=f(at.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)||(d+=f(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)&&(u-=f(3)));const p=[i,a,s,o],g=Math.abs(u-d);t.wrap&&t.message&&(t.message=Wr.wrapLabel(t.message,qt.getMax(g+2*at.wrapPadding,at.width),Gp(at)));const m=Wr.calculateTextDimensions(t.message,Gp(at));return{width:qt.getMax(t.wrap?0:m.width+2*at.wrapPadding,g+2*at.wrapPadding,at.width),height:0,startx:u,stopx:d,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,p),toBounds:Math.max.apply(null,p)}},"buildMessageModel"),PRt=S(async function(t,e,r,n){const i={},a=[];let s,o,l;for(const u of t){switch(u.type){case n.db.LINETYPE.LOOP_START:case n.db.LINETYPE.ALT_START:case n.db.LINETYPE.OPT_START:case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.PAR_OVER_START:case n.db.LINETYPE.CRITICAL_START:case n.db.LINETYPE.BREAK_START:a.push({id:u.id,msg:u.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case n.db.LINETYPE.ALT_ELSE:case n.db.LINETYPE.PAR_AND:case n.db.LINETYPE.CRITICAL_OPTION:u.message&&(s=a.pop(),i[s.id]=s,i[u.id]=s,a.push(s));break;case n.db.LINETYPE.LOOP_END:case n.db.LINETYPE.ALT_END:case n.db.LINETYPE.OPT_END:case n.db.LINETYPE.PAR_END:case n.db.LINETYPE.CRITICAL_END:case n.db.LINETYPE.BREAK_END:s=a.pop(),i[s.id]=s;break;case n.db.LINETYPE.ACTIVE_START:{const h=e.get(u.from?u.from:u.to.actor),f=a8(u.from?u.from:u.to.actor).length,p=h.x+h.width/2+(f-1)*at.activationWidth/2,g={startx:p,stopx:p+at.activationWidth,actor:u.from,enabled:!0};Lt.activations.push(g)}break;case n.db.LINETYPE.ACTIVE_END:{const h=Lt.activations.map(f=>f.actor).lastIndexOf(u.from);Lt.activations.splice(h,1).splice(0,1)}break}u.placement!==void 0?(o=await IRt(u,e,n),u.noteModel=o,a.forEach(h=>{s=h,s.from=qt.getMin(s.from,o.startx),s.to=qt.getMax(s.to,o.startx+o.width),s.width=qt.getMax(s.width,Math.abs(s.from-s.to))-at.labelBoxWidth})):(l=MRt(u,e,n),u.msgModel=l,l.startx&&l.stopx&&a.length>0&&a.forEach(h=>{if(s=h,l.startx===l.stopx){const f=e.get(u.from),p=e.get(u.to);s.from=qt.getMin(f.x-l.width/2,f.x-f.width/2,s.from),s.to=qt.getMax(p.x+l.width/2,p.x+f.width/2,s.to),s.width=qt.getMax(s.width,Math.abs(s.to-s.from))-at.labelBoxWidth}else s.from=qt.getMin(l.startx,s.from),s.to=qt.getMax(l.stopx,s.to),s.width=qt.getMax(s.width,l.width)-at.labelBoxWidth}))}return Lt.activations=[],ge.debug("Loop type widths:",i),i},"calculateLoopBounds"),BRt={bounds:Lt,drawActors:J$,drawActorsPopup:eAe,setConf:tAe,draw:RRt},FRt={parser:H8t,get db(){return new X8t},renderer:BRt,styles:Q8t,init:S(t=>{t.sequence||(t.sequence={}),t.wrap&&(t.sequence.wrap=t.wrap,$M({sequence:{wrap:t.wrap}}))},"init")};const $Rt=Object.freeze(Object.defineProperty({__proto__:null,diagram:FRt},Symbol.toStringTag,{value:"Module"}));var ez=(function(){var t=S(function(ot,it,Oe,U){for(Oe=Oe||{},U=ot.length;U--;Oe[ot[U]]=it);return Oe},"o"),e=[1,18],r=[1,19],n=[1,20],i=[1,41],a=[1,26],s=[1,42],o=[1,24],l=[1,25],u=[1,32],d=[1,33],h=[1,34],f=[1,45],p=[1,35],g=[1,36],m=[1,37],y=[1,38],v=[1,27],b=[1,28],_=[1,29],E=[1,30],x=[1,31],C=[1,44],T=[1,46],w=[1,43],N=[1,47],O=[1,9],M=[1,8,9],$=[1,58],F=[1,59],A=[1,60],I=[1,61],D=[1,62],L=[1,63],R=[1,64],P=[1,8,9,41],z=[1,77],B=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],q=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],Y=[13,60,86,100,102,103],Q=[13,60,73,74,86,100,102,103],H=[13,60,68,69,70,71,72,86,100,102,103],J=[1,103],Z=[1,121],pe=[1,117],re=[1,113],ce=[1,119],ae=[1,114],se=[1,115],xe=[1,116],Te=[1,118],Ge=[1,120],ze=[22,50,60,61,82,86,87,88,89,90],Xe=[1,128],Le=[12,39],Re=[1,8,9,39,41,44,46],qe=[1,8,9,22],Ne=[1,153],ut=[1,8,9,61],De=[1,8,9,22,50,60,61,82,86,87,88,89,90],Je={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:S(function(it,Oe,U,oe,de,G,ie){var j=G.length-1;switch(de){case 8:this.$=G[j-1];break;case 9:case 10:case 13:case 15:this.$=G[j];break;case 11:case 14:this.$=G[j-2]+"."+G[j];break;case 12:case 16:this.$=G[j-1]+G[j];break;case 17:case 18:this.$=G[j-1]+"~"+G[j]+"~";break;case 19:oe.addRelation(G[j]);break;case 20:G[j-1].title=oe.cleanupLabel(G[j]),oe.addRelation(G[j-1]);break;case 31:this.$=G[j].trim(),oe.setAccTitle(this.$);break;case 32:case 33:this.$=G[j].trim(),oe.setAccDescription(this.$);break;case 34:oe.addClassesToNamespace(G[j-3],G[j-1][0],G[j-1][1]),oe.popNamespace();break;case 35:oe.addClassesToNamespace(G[j-4],G[j-1][0],G[j-1][1]),oe.popNamespace();break;case 36:this.$=oe.addNamespace(G[j]);break;case 37:this.$=oe.addNamespace(G[j-1],G[j]);break;case 38:this.$=[[G[j]],[]];break;case 39:this.$=[[G[j-1]],[]];break;case 40:G[j][0].unshift(G[j-2]),this.$=G[j];break;case 41:this.$=[[],[G[j]]];break;case 42:this.$=[[],[G[j-1]]];break;case 43:G[j][1].unshift(G[j-2]),this.$=G[j];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=G[j];break;case 48:oe.setCssClass(G[j-2],G[j]);break;case 49:oe.addMembers(G[j-3],G[j-1]);break;case 51:oe.setCssClass(G[j-5],G[j-3]),oe.addMembers(G[j-5],G[j-1]);break;case 52:oe.addAnnotation(G[j-3],G[j-1]);break;case 53:oe.addAnnotation(G[j-6],G[j-4]),oe.addMembers(G[j-6],G[j-1]);break;case 54:oe.addAnnotation(G[j-5],G[j-3]);break;case 55:this.$=G[j],oe.addClass(G[j]);break;case 56:this.$=G[j-1],oe.addClass(G[j-1]),oe.setClassLabel(G[j-1],G[j]);break;case 60:oe.addAnnotation(G[j],G[j-2]);break;case 61:case 74:this.$=[G[j]];break;case 62:G[j].push(G[j-1]),this.$=G[j];break;case 63:break;case 64:oe.addMember(G[j-1],oe.cleanupLabel(G[j]));break;case 65:break;case 66:break;case 67:this.$={id1:G[j-2],id2:G[j],relation:G[j-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:G[j-3],id2:G[j],relation:G[j-1],relationTitle1:G[j-2],relationTitle2:"none"};break;case 69:this.$={id1:G[j-3],id2:G[j],relation:G[j-2],relationTitle1:"none",relationTitle2:G[j-1]};break;case 70:this.$={id1:G[j-4],id2:G[j],relation:G[j-2],relationTitle1:G[j-3],relationTitle2:G[j-1]};break;case 71:this.$=oe.addNote(G[j],G[j-1]);break;case 72:this.$=oe.addNote(G[j]);break;case 73:this.$=G[j-2],oe.defineClass(G[j-1],G[j]);break;case 75:this.$=G[j-2].concat([G[j]]);break;case 76:oe.setDirection("TB");break;case 77:oe.setDirection("BT");break;case 78:oe.setDirection("RL");break;case 79:oe.setDirection("LR");break;case 80:this.$={type1:G[j-2],type2:G[j],lineType:G[j-1]};break;case 81:this.$={type1:"none",type2:G[j],lineType:G[j-1]};break;case 82:this.$={type1:G[j-1],type2:"none",lineType:G[j]};break;case 83:this.$={type1:"none",type2:"none",lineType:G[j]};break;case 84:this.$=oe.relationType.AGGREGATION;break;case 85:this.$=oe.relationType.EXTENSION;break;case 86:this.$=oe.relationType.COMPOSITION;break;case 87:this.$=oe.relationType.DEPENDENCY;break;case 88:this.$=oe.relationType.LOLLIPOP;break;case 89:this.$=oe.lineType.LINE;break;case 90:this.$=oe.lineType.DOTTED_LINE;break;case 91:case 97:this.$=G[j-2],oe.setClickEvent(G[j-1],G[j]);break;case 92:case 98:this.$=G[j-3],oe.setClickEvent(G[j-2],G[j-1]),oe.setTooltip(G[j-2],G[j]);break;case 93:this.$=G[j-2],oe.setLink(G[j-1],G[j]);break;case 94:this.$=G[j-3],oe.setLink(G[j-2],G[j-1],G[j]);break;case 95:this.$=G[j-3],oe.setLink(G[j-2],G[j-1]),oe.setTooltip(G[j-2],G[j]);break;case 96:this.$=G[j-4],oe.setLink(G[j-3],G[j-2],G[j]),oe.setTooltip(G[j-3],G[j-1]);break;case 99:this.$=G[j-3],oe.setClickEvent(G[j-2],G[j-1],G[j]);break;case 100:this.$=G[j-4],oe.setClickEvent(G[j-3],G[j-2],G[j-1]),oe.setTooltip(G[j-3],G[j]);break;case 101:this.$=G[j-3],oe.setLink(G[j-2],G[j]);break;case 102:this.$=G[j-4],oe.setLink(G[j-3],G[j-1],G[j]);break;case 103:this.$=G[j-4],oe.setLink(G[j-3],G[j-1]),oe.setTooltip(G[j-3],G[j]);break;case 104:this.$=G[j-5],oe.setLink(G[j-4],G[j-2],G[j]),oe.setTooltip(G[j-4],G[j-1]);break;case 105:this.$=G[j-2],oe.setCssStyle(G[j-1],G[j]);break;case 106:oe.setCssClass(G[j-1],G[j]);break;case 107:this.$=[G[j]];break;case 108:G[j-2].push(G[j]),this.$=G[j-2];break;case 110:this.$=G[j-1]+G[j];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:r,37:n,38:22,42:i,43:23,46:a,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:y,75:v,76:b,78:_,82:E,83:x,86:C,100:T,102:w,103:N},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(O,[2,5],{8:[1,48]}),{8:[1,49]},t(M,[2,19],{22:[1,50]}),t(M,[2,21]),t(M,[2,22]),t(M,[2,23]),t(M,[2,24]),t(M,[2,25]),t(M,[2,26]),t(M,[2,27]),t(M,[2,28]),t(M,[2,29]),t(M,[2,30]),{34:[1,51]},{36:[1,52]},t(M,[2,33]),t(M,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:$,69:F,70:A,71:I,72:D,73:L,74:R}),{39:[1,65]},t(P,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(M,[2,65]),t(M,[2,66]),{16:69,60:f,86:C,100:T,102:w},{16:39,17:40,19:70,60:f,86:C,100:T,102:w,103:N},{16:39,17:40,19:71,60:f,86:C,100:T,102:w,103:N},{16:39,17:40,19:72,60:f,86:C,100:T,102:w,103:N},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:f,86:C,100:T,102:w,103:N},{13:z,55:76},{58:78,60:[1,79]},t(M,[2,76]),t(M,[2,77]),t(M,[2,78]),t(M,[2,79]),t(B,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:f,86:C,100:T,102:w,103:N}),t(B,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:f,86:C,100:T,102:w,103:N},{16:39,17:40,19:87,60:f,86:C,100:T,102:w,103:N},t(q,[2,133]),t(q,[2,134]),t(q,[2,135]),t(q,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(O,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:e,35:r,37:n,42:i,46:a,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:y,75:v,76:b,78:_,82:E,83:x,86:C,100:T,102:w,103:N}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:r,37:n,38:22,42:i,43:23,46:a,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:y,75:v,76:b,78:_,82:E,83:x,86:C,100:T,102:w,103:N},t(M,[2,20]),t(M,[2,31]),t(M,[2,32]),{13:[1,91],16:39,17:40,19:90,60:f,86:C,100:T,102:w,103:N},{53:92,66:56,67:57,68:$,69:F,70:A,71:I,72:D,73:L,74:R},t(M,[2,64]),{67:93,73:L,74:R},t(Y,[2,83],{66:94,68:$,69:F,70:A,71:I,72:D}),t(Q,[2,84]),t(Q,[2,85]),t(Q,[2,86]),t(Q,[2,87]),t(Q,[2,88]),t(H,[2,89]),t(H,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:i,43:23,48:s,54:u,56:d},{16:100,60:f,86:C,100:T,102:w},{41:[1,102],45:101,51:J},{16:104,60:f,86:C,100:T,102:w},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:Z,50:pe,59:110,60:re,82:ce,84:111,85:112,86:ae,87:se,88:xe,89:Te,90:Ge},{60:[1,122]},{13:z,55:123},t(P,[2,72]),t(P,[2,138]),{22:Z,50:pe,59:124,60:re,61:[1,125],82:ce,84:111,85:112,86:ae,87:se,88:xe,89:Te,90:Ge},t(ze,[2,74]),{16:39,17:40,19:126,60:f,86:C,100:T,102:w,103:N},t(B,[2,16]),t(B,[2,17]),t(B,[2,18]),{11:127,12:Xe,39:[2,36]},t(Le,[2,9],{16:85,17:86,15:130,18:[1,129],60:f,86:C,100:T,102:w,103:N}),t(Le,[2,10]),t(Re,[2,55],{11:131,12:Xe}),t(O,[2,7]),{9:[1,132]},t(qe,[2,67]),{16:39,17:40,19:133,60:f,86:C,100:T,102:w,103:N},{13:[1,135],16:39,17:40,19:134,60:f,86:C,100:T,102:w,103:N},t(Y,[2,82],{66:136,68:$,69:F,70:A,71:I,72:D}),t(Y,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:i,43:23,48:s,54:u,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(P,[2,48],{39:[1,142]}),{41:[1,143]},t(P,[2,50]),{41:[2,61],45:144,51:J},{47:[1,145]},{16:39,17:40,19:146,60:f,86:C,100:T,102:w,103:N},t(M,[2,91],{13:[1,147]}),t(M,[2,93],{13:[1,149],77:[1,148]}),t(M,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(M,[2,105],{61:Ne}),t(ut,[2,107],{85:154,22:Z,50:pe,60:re,82:ce,86:ae,87:se,88:xe,89:Te,90:Ge}),t(De,[2,109]),t(De,[2,111]),t(De,[2,112]),t(De,[2,113]),t(De,[2,114]),t(De,[2,115]),t(De,[2,116]),t(De,[2,117]),t(De,[2,118]),t(De,[2,119]),t(M,[2,106]),t(P,[2,71]),t(M,[2,73],{61:Ne}),{60:[1,155]},t(B,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:f,86:C,100:T,102:w,103:N},t(Le,[2,12]),t(Re,[2,56]),{1:[2,4]},t(qe,[2,69]),t(qe,[2,68]),{16:39,17:40,19:158,60:f,86:C,100:T,102:w,103:N},t(Y,[2,80]),t(P,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:i,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:i,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:i,43:23,48:s,54:u,56:d},{45:163,51:J},t(P,[2,49]),{41:[2,62]},t(P,[2,52],{39:[1,164]}),t(M,[2,60]),t(M,[2,92]),t(M,[2,94]),t(M,[2,95],{77:[1,165]}),t(M,[2,98]),t(M,[2,99],{13:[1,166]}),t(M,[2,101],{13:[1,168],77:[1,167]}),{22:Z,50:pe,60:re,82:ce,84:169,85:112,86:ae,87:se,88:xe,89:Te,90:Ge},t(De,[2,110]),t(ze,[2,75]),{14:[1,170]},t(Le,[2,11]),t(qe,[2,70]),t(P,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:J},t(M,[2,96]),t(M,[2,100]),t(M,[2,102]),t(M,[2,103],{77:[1,174]}),t(ut,[2,108],{85:154,22:Z,50:pe,60:re,82:ce,86:ae,87:se,88:xe,89:Te,90:Ge}),t(Re,[2,8]),t(P,[2,51]),{41:[1,175]},t(P,[2,54]),t(M,[2,104]),t(P,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:S(function(it,Oe){if(Oe.recoverable)this.trace(it);else{var U=new Error(it);throw U.hash=Oe,U}},"parseError"),parse:S(function(it){var Oe=this,U=[0],oe=[],de=[null],G=[],ie=this.table,j="",V=0,ue=0,Fe=2,me=1,Ce=G.slice.call(arguments,1),ye=Object.create(this.lexer),Me={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(Me.yy[Ie]=this.yy[Ie]);ye.setInput(it,Me.yy),Me.yy.lexer=ye,Me.yy.parser=this,typeof ye.yylloc>"u"&&(ye.yylloc={});var he=ye.yylloc;G.push(he);var le=ye.options&&ye.options.ranges;typeof Me.yy.parseError=="function"?this.parseError=Me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(Nt){U.length=U.length-2*Nt,de.length=de.length-Nt,G.length=G.length-Nt}S(Be,"popStack");function ve(){var Nt;return Nt=oe.pop()||ye.lex()||me,typeof Nt!="number"&&(Nt instanceof Array&&(oe=Nt,Nt=oe.pop()),Nt=Oe.symbols_[Nt]||Nt),Nt}S(ve,"lex");for(var gt,Et,et,dt,ft={},mt,fe,It,St;;){if(Et=U[U.length-1],this.defaultActions[Et]?et=this.defaultActions[Et]:((gt===null||typeof gt>"u")&&(gt=ve()),et=ie[Et]&&ie[Et][gt]),typeof et>"u"||!et.length||!et[0]){var Tt="";St=[];for(mt in ie[Et])this.terminals_[mt]&&mt>Fe&&St.push("'"+this.terminals_[mt]+"'");ye.showPosition?Tt="Parse error on line "+(V+1)+`: +`;C.append("path").attr("d",T),d==="neo"&&C.attr("filter","url(#drop-shadow)");const w=i.get(e.name)??0;sd.has(l)?(C.style("stroke",f[w%f.length]),C.style("fill",h[w%f.length])):C.style("stroke",p),C.attr("transform",`translate(${b}, ${x})`),e.rectData=y,od(r,Xi(e.description))(e.description,m,y.x,y.y+35,y.width,y.height,{class:`actor ${n8}`},r);const N=C.select("path:last-child");if(N.node()){const O=N.node().getBBox();e.height=O.height+(r.sequence.labelBoxHeight??0)}return n||(m.attr("data-et","participant"),m.attr("data-type","database"),m.attr("data-id",e.name)),e.height},"drawActorTypeDatabase"),sRt=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+80,l=22,u=t.append("g").lower(),{look:d,theme:h,themeVariables:f}=r,{bkgColorArray:p,borderColorArray:g,actorBorder:m}=f;n||(cn++,u.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=cn);const y=t.append("g");let v=Up;n?v+=` ${Wh}`:v+=` ${Vh}`,y.attr("class",v),y.attr("name",e.name);const b=Xo();b.x=e.x,b.y=a,b.fill="#eaeaea",b.width=e.width,b.height=e.height,b.class="actor",y.append("line").attr("id","actor-man-torso"+cn).attr("x1",e.x+e.width/2-l*2.5).attr("y1",a+12).attr("x2",e.x+e.width/2-15).attr("y2",a+12),y.append("line").attr("id","actor-man-arms"+cn).attr("x1",e.x+e.width/2-l*2.5).attr("y1",a+2).attr("x2",e.x+e.width/2-l*2.5).attr("y2",a+22),y.append("circle").attr("cx",e.x+e.width/2).attr("cy",a+12).attr("r",l),d==="neo"&&y.attr("filter","url(#drop-shadow)");const _=i.get(e.name)??0;sd.has(h)?(y.style("stroke",g[_%g.length]),y.style("fill",p[_%g.length])):y.style("stroke",m);const E=y.node().getBBox();return e.height=E.height+(r.sequence.labelBoxHeight??0),od(r,Xi(e.description))(e.description,y,b.x,b.y+15,b.width,b.height,{class:`actor ${Up}`},r),y.attr("transform",`translate(0,${l/2+10})`),n||(y.attr("data-et","participant"),y.attr("data-type","boundary"),y.attr("data-id",e.name)),e.height},"drawActorTypeBoundary"),oRt=S(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+80,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f,actorBorder:p}=d,g=t.append("g").lower();n||(cn++,g.append("line").attr("id","actor"+cn).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=cn);const m=t.append("g");let y=Up;n?y+=` ${Wh}`:y+=` ${Vh}`,m.attr("class",y),m.attr("name",e.name),n||m.attr("data-et","participant").attr("data-type","actor").attr("data-id",e.name);const v=l==="neo"?.5:1,b=l==="neo"?a+(1-v)*30:a;m.append("line").attr("id","actor-man-torso"+cn).attr("x1",s).attr("y1",b+25*v).attr("x2",s).attr("y2",b+45*v),m.append("line").attr("id","actor-man-arms"+cn).attr("x1",s-lp/2*v).attr("y1",b+33*v).attr("x2",s+lp/2*v).attr("y2",b+33*v),m.append("line").attr("x1",s-lp/2*v).attr("y1",b+60*v).attr("x2",s).attr("y2",b+45*v),m.append("line").attr("x1",s).attr("y1",b+45*v).attr("x2",s+(lp/2-2)*v).attr("y2",b+60*v);const _=m.append("circle");_.attr("cx",e.x+e.width/2),_.attr("cy",b+10*v),_.attr("r",15*v),_.attr("width",e.width*v),_.attr("height",e.height*v);const E=m.node().getBBox();e.height=E.height;const x=Xo();x.x=e.x,x.y=b,x.fill="#eaeaea",x.width=e.width,x.height=e.height/v,x.class="actor",x.rx=3,x.ry=3;const C=i.get(e.name)??0;return sd.has(u)?(m.style("stroke",f[C%f.length]),m.style("fill",h[C%f.length])):m.style("stroke",p),od(r,Xi(e.description))(e.description,m,x.x,b+35*v-(l==="neo"?10:0),x.width,x.height,{class:`actor ${Up}`},r),e.height},"drawActorTypeActor"),lRt=S(async function(t,e,r,n,i,a,s){const o=s??new Map([...a.db.getActors().values()].map((l,u)=>[l.name,u]));switch(e.type){case"actor":return await oRt(t,e,r,n,o);case"participant":return await eRt(t,e,r,n,o);case"boundary":return await sRt(t,e,r,n,o);case"control":return await nRt(t,e,r,n,i,o);case"entity":return await iRt(t,e,r,n,o);case"database":return await aRt(t,e,r,n,o);case"collections":return await tRt(t,e,r,n,o);case"queue":return await rRt(t,e,r,n,o)}},"drawActor"),cRt=S(function(t,e,r){const i=t.append("g");Q7e(i,e),e.name&&od(r)(e.name,i,e.x,e.y+r.boxTextMargin+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},r),i.lower()},"drawBox"),uRt=S(function(t){return t.append("g")},"anchorElement"),dRt=S(function(t,e,r,n,i,a,s){const{theme:o,themeVariables:l}=n,{bkgColorArray:u,borderColorArray:d,mainBkg:h}=l,f=Xo(),p=e.anchored,g=e.actor;f.x=e.startx,f.y=e.starty,f.class="activation"+i%3,f.width=e.stopx-e.startx,f.height=r-e.starty;const m=$4(p,f),v=(s??new Map([...a.db.getActors().values()].map((b,_)=>[b.name,_]))).get(g)??0;sd.has(o)&&(m.style("stroke",d[v%d.length]),m.style("fill",u[v%d.length]??h))},"drawActivation"),hRt=S(async function(t,e,r,n,i){const{boxMargin:a,boxTextMargin:s,labelBoxHeight:o,labelBoxWidth:l,messageFontFamily:u,messageFontSize:d,messageFontWeight:h}=n,f=t.append("g").attr("data-et","control-structure").attr("data-id","i"+i.id),p=S(function(y,v,b,_){return f.append("line").attr("x1",y).attr("y1",v).attr("x2",b).attr("y2",_).attr("class","loopLine")},"drawLoopLine");p(e.startx,e.starty,e.stopx,e.starty),p(e.stopx,e.starty,e.stopx,e.stopy),p(e.startx,e.stopy,e.stopx,e.stopy),p(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(y){p(e.startx,y.y,e.stopx,y.y).style("stroke-dasharray","3, 3")});let g=iY();g.text=r,g.x=e.startx,g.y=e.starty,g.fontFamily=u,g.fontSize=d,g.fontWeight=h,g.anchor="middle",g.valign="middle",g.tspan=!1,g.width=Math.max(l??0,50),g.height=o+(n.look==="neo"?15:0)||20,g.textMargin=s,g.class="labelText",X7e(f,g),g=Z7e(),g.text=e.title,g.x=e.startx+l/2+(e.stopx-e.startx)/2,g.y=e.starty+a+s,g.anchor="middle",g.valign="middle",g.textMargin=s,g.class="loopText",g.fontFamily=u,g.fontSize=d,g.fontWeight=h,g.wrap=!0;let m=Xi(g.text)?await Dw(f,g,e):Ab(f,g);if(e.sectionTitles!==void 0){for(const[y,v]of Object.entries(e.sectionTitles))if(v.message){g.text=v.message,g.x=e.startx+(e.stopx-e.startx)/2,g.y=e.sections[y].y+a+s,g.class="sectionTitle",g.anchor="middle",g.valign="middle",g.tspan=!1,g.fontFamily=u,g.fontSize=d,g.fontWeight=h,g.wrap=e.wrap,Xi(g.text)?(e.starty=e.sections[y].y,await Dw(f,g,e)):Ab(f,g);let b=Math.round(m.map(_=>(_._groups||_)[0][0].getBBox().height).reduce((_,E)=>_+E));e.sections[y].height+=b-(a+s)}}return e.height=Math.round(e.stopy-e.starty),f},"drawLoop"),Q7e=S(function(t,e){v2e(t,e)},"drawBackgroundRect"),fRt=S(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),pRt=S(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),gRt=S(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),mRt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),yRt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),vRt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),_Rt=S(function(t,e){t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),bRt=S(function(t,e){const{theme:r}=e;t.append("defs").append("filter").attr("id","drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${r==="redux"||r==="redux-color"?"#000000":"#FFFFFF"}`)},"insertDropShadow"),Z7e=S(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),ERt=S(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),od=(function(){function t(a,s,o,l,u,d,h){const f=s.append("text").attr("x",o+u/2).attr("y",l+d/2+5).style("text-anchor","middle").text(a);i(f,h)}S(t,"byText");function e(a,s,o,l,u,d,h,f){const{actorFontSize:p,actorFontFamily:g,actorFontWeight:m}=f,[y,v]=Y0(p),b=a.split(qt.lineBreakRegex);for(let _=0;_t.height||0))+(this.loops.length===0?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.messages.length===0?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.notes.length===0?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},"getHeight"),clear:S(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:S(function(t){this.boxes.push(t)},"addBox"),addActor:S(function(t){this.actors.push(t)},"addActor"),addLoop:S(function(t){this.loops.push(t)},"addLoop"),addMessage:S(function(t){this.messages.push(t)},"addMessage"),addNote:S(function(t){this.notes.push(t)},"addNote"),lastActor:S(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:S(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:S(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:S(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:S(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,tAe(Ke())},"init"),updateVal:S(function(t,e,r,n){t[e]===void 0?t[e]=r:t[e]=n(r,t[e])},"updateVal"),updateBounds:S(function(t,e,r,n){const i=this;let a=0;function s(o){return S(function(u){a++;const d=i.sequenceItems.length-a+1;i.updateVal(u,"starty",e-d*at.boxMargin,Math.min),i.updateVal(u,"stopy",n+d*at.boxMargin,Math.max),i.updateVal(Lt.data,"startx",t-d*at.boxMargin,Math.min),i.updateVal(Lt.data,"stopx",r+d*at.boxMargin,Math.max),o!=="activation"&&(i.updateVal(u,"startx",t-d*at.boxMargin,Math.min),i.updateVal(u,"stopx",r+d*at.boxMargin,Math.max),i.updateVal(Lt.data,"starty",e-d*at.boxMargin,Math.min),i.updateVal(Lt.data,"stopy",n+d*at.boxMargin,Math.max))},"updateItemBounds")}S(s,"updateFn"),this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},"updateBounds"),insert:S(function(t,e,r,n){const i=qt.getMin(t,r),a=qt.getMax(t,r),s=qt.getMin(e,n),o=qt.getMax(e,n);this.updateVal(Lt.data,"startx",i,Math.min),this.updateVal(Lt.data,"starty",s,Math.min),this.updateVal(Lt.data,"stopx",a,Math.max),this.updateVal(Lt.data,"stopy",o,Math.max),this.updateBounds(i,s,a,o)},"insert"),newActivation:S(function(t,e,r){const n=r.get(t.from),i=a8(t.from).length||0,a=n.x+n.width/2+(i-1)*at.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+at.activationWidth,stopy:void 0,actor:t.from,anchored:Kn.anchorElement(e)})},"newActivation"),endActivation:S(function(t){const e=this.activations.map(function(r){return r.actor}).lastIndexOf(t.from);return this.activations.splice(e,1)[0]},"endActivation"),createLoop:S(function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},"createLoop"),newLoop:S(function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},"newLoop"),endLoop:S(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:S(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:S(function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:Lt.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},"addSectionToLoop"),saveVerticalPos:S(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:S(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:S(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=qt.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:S(function(){return this.verticalPos},"getVerticalPos"),getBounds:S(function(){return{bounds:this.data,models:this.models}},"getBounds")},kRt=S(async function(t,e,r){Lt.bumpVerticalPos(at.boxMargin),e.height=at.boxMargin,e.starty=Lt.getVerticalPos();const n=Xo();n.x=e.startx,n.y=e.starty,n.width=e.width||at.width,n.class="note";const i=t.append("g");i.attr("data-et","note"),i.attr("data-id","i"+r);const a=Kn.drawRect(i,n),s=iY();s.x=e.startx,s.y=e.starty,s.width=n.width,s.dy="1em",s.text=e.message,s.class="noteText",s.fontFamily=at.noteFontFamily,s.fontSize=at.noteFontSize,s.fontWeight=at.noteFontWeight,s.anchor=at.noteAlign,s.textMargin=at.noteMargin,s.valign="center";const o=Xi(s.text)?await Dw(i,s):Ab(i,s),l=Math.round(o.map(u=>(u._groups||u)[0][0].getBBox().height).reduce((u,d)=>u+d));a.attr("height",l+2*at.noteMargin),e.height+=l+2*at.noteMargin,Lt.bumpVerticalPos(l+2*at.noteMargin),e.stopy=e.starty+l+2*at.noteMargin,e.stopx=e.startx+n.width,Lt.insert(e.startx,e.starty,e.stopx,e.stopy),Lt.models.addNote(e)},"drawNote"),Poe=S(function(t,e,r,n,i,a,s){const o=n.db.getActors(),l=o.get(e.from),u=o.get(e.to),d=r.sequenceVisible;let h=l.x+l.width/2,f=u.x+u.width/2;const p=h<=f,g=aAe(e,n),m=t.append("g"),y=16.5,v=S((C,T)=>{const w=C?y:-y;return T?-w:w},"getCircleOffset"),b=S(C=>{m.append("circle").attr("cx",C).attr("cy",s).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:_,CENTRAL_CONNECTION_REVERSE:E,CENTRAL_CONNECTION_DUAL:x}=n.db.LINETYPE;if(d)switch(e.centralConnection){case _:g&&(f+=v(p,!0));break;case E:g||(h+=v(p,!1));break;case x:g?f+=v(p,!0):h+=v(p,!1);break}switch(e.centralConnection){case _:b(f);break;case E:b(h);break;case x:b(h),b(f);break}},"drawCentralConnection"),Gp=S(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont"),ym=S(t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),"noteFont"),Z$=S(t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}),"actorFont");async function J7e(t,e){Lt.bumpVerticalPos(10);const{startx:r,stopx:n,message:i}=e,a=qt.splitBreaks(i).length,s=Xi(i),o=s?await eT(i,Ke()):Wr.calculateTextDimensions(i,Gp(at));if(!s){const h=o.height/a;e.height+=h,Lt.bumpVerticalPos(h)}let l,u=o.height-10;const d=o.width;if(r===n){l=Lt.getVerticalPos()+u,at.rightAngles||(u+=at.boxMargin,l=Lt.getVerticalPos()+u),u+=30;const h=qt.getMax(d/2,at.width/2);Lt.insert(r-h,Lt.getVerticalPos()-10+u,n+h,Lt.getVerticalPos()+30+u)}else u+=at.boxMargin,l=Lt.getVerticalPos()+u,Lt.insert(r,l-10,n,l);return Lt.bumpVerticalPos(u),e.height+=u,e.stopy=e.starty+e.height,Lt.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),l}S(J7e,"boundMessage");var ARt=S(async function(t,e,r,n,i,a){const{startx:s,stopx:o,starty:l,message:u,type:d,sequenceIndex:h,sequenceVisible:f}=e,p=Wr.calculateTextDimensions(u,Gp(at)),g=iY();g.x=Math.min(s,o),g.y=l+10,g.width=Math.abs(o-s),g.class="messageText",g.dy="1em",g.text=u,g.fontFamily=at.messageFontFamily,g.fontSize=at.messageFontSize,g.fontWeight=at.messageFontWeight,g.anchor=at.messageAlign,g.valign="center",g.textMargin=at.wrapPadding,g.tspan=!1,Xi(g.text)?await Dw(t,g,{startx:s,stopx:o,starty:r}):Ab(t,g);const m=p.width;let y;if(s===o){const b=f||at.showSequenceNumbers,_=aAe(i,n),E=MRt(i,n),x=s+(b&&(_||E)?10:0);at.rightAngles?y=t.append("path").attr("d",`M ${x},${r} H ${s+qt.getMax(at.width/2,m/2)} V ${r+25} H ${s}`):y=t.append("path").attr("d","M "+x+","+r+" C "+(x+60)+","+(r-10)+" "+(s+60)+","+(r+30)+" "+s+","+(r+20)),VL(i,n)&&Poe(t,i,e,n,s,o,r)}else y=t.append("line"),y.attr("x1",s),y.attr("y1",r),y.attr("x2",o),y.attr("y2",r),VL(i,n)&&Poe(t,i,e,n,s,o,r);d===n.db.LINETYPE.DOTTED||d===n.db.LINETYPE.DOTTED_CROSS||d===n.db.LINETYPE.DOTTED_POINT||d===n.db.LINETYPE.DOTTED_OPEN||d===n.db.LINETYPE.BIDIRECTIONAL_DOTTED||d===n.db.LINETYPE.SOLID_TOP_DOTTED||d===n.db.LINETYPE.SOLID_BOTTOM_DOTTED||d===n.db.LINETYPE.STICK_TOP_DOTTED||d===n.db.LINETYPE.STICK_BOTTOM_DOTTED||d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(y.style("stroke-dasharray","3, 3"),y.attr("class","messageLine1")):y.attr("class","messageLine0"),y.attr("data-et","message"),y.attr("data-id","i"+e.id),y.attr("data-from",e.from),y.attr("data-to",e.to);let v="";if(at.arrowMarkerAbsolute&&(v=fk(!0)),y.attr("stroke-width",2),y.attr("stroke","none"),y.style("fill","none"),(d===n.db.LINETYPE.SOLID_TOP||d===n.db.LINETYPE.SOLID_TOP_DOTTED)&&y.attr("marker-end","url("+v+"#"+a+"-solidTopArrowHead)"),(d===n.db.LINETYPE.SOLID_BOTTOM||d===n.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&y.attr("marker-end","url("+v+"#"+a+"-solidBottomArrowHead)"),(d===n.db.LINETYPE.STICK_TOP||d===n.db.LINETYPE.STICK_TOP_DOTTED)&&y.attr("marker-end","url("+v+"#"+a+"-stickTopArrowHead)"),(d===n.db.LINETYPE.STICK_BOTTOM||d===n.db.LINETYPE.STICK_BOTTOM_DOTTED)&&y.attr("marker-end","url("+v+"#"+a+"-stickBottomArrowHead)"),(d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&y.attr("marker-start","url("+v+"#"+a+"-solidBottomArrowHead)"),(d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr("marker-start","url("+v+"#"+a+"-solidTopArrowHead)"),(d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&y.attr("marker-start","url("+v+"#"+a+"-stickBottomArrowHead)"),(d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr("marker-start","url("+v+"#"+a+"-stickTopArrowHead)"),(d===n.db.LINETYPE.SOLID||d===n.db.LINETYPE.DOTTED)&&y.attr("marker-end","url("+v+"#"+a+"-arrowhead)"),(d===n.db.LINETYPE.BIDIRECTIONAL_SOLID||d===n.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(y.attr("marker-start","url("+v+"#"+a+"-arrowhead)"),y.attr("marker-end","url("+v+"#"+a+"-arrowhead)")),(d===n.db.LINETYPE.SOLID_POINT||d===n.db.LINETYPE.DOTTED_POINT)&&y.attr("marker-end","url("+v+"#"+a+"-filled-head)"),(d===n.db.LINETYPE.SOLID_CROSS||d===n.db.LINETYPE.DOTTED_CROSS)&&y.attr("marker-end","url("+v+"#"+a+"-crosshead)"),f||at.showSequenceNumbers){const b=d===n.db.LINETYPE.BIDIRECTIONAL_SOLID||d===n.db.LINETYPE.BIDIRECTIONAL_DOTTED,_=d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,E=6,x=VL(i,n);let C=s,T=o;b?(ss?T=o-2*E:(T=o-E,C+=i?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),T+=x?15:0,y.attr("x2",T),y.attr("x1",C)):y.attr("x1",s+E);let w=0;const N=s===o,O=s<=o;N?w=e.fromBounds+1:_?w=O?e.toBounds-1:e.fromBounds+1:w=O?e.fromBounds+1:e.toBounds-1;let M="12px";const $=h.toString().length;$>5?M="7px":$>3&&(M="9px"),t.append("line").attr("x1",w).attr("y1",r).attr("x2",w).attr("y2",r).attr("stroke-width",0).attr("marker-start","url("+v+"#"+a+"-sequencenumber)"),t.append("text").attr("x",w).attr("y",r+4).attr("font-family","sans-serif").attr("font-size",M).attr("text-anchor","middle").attr("class","sequenceNumber").text(h)}},"drawMessage"),RRt=S(function(t,e,r,n,i,a,s){let o=0,l=0,u,d=0;for(const h of n){const f=e.get(h),p=f.box;u&&u!=p&&(s||Lt.models.addBox(u),l+=at.boxMargin+u.margin),p&&p!=u&&(s||(p.x=o+l,p.y=i),l+=p.margin),f.width=qt.getMax(f.width||at.width,at.width),f.height=qt.getMax(f.height||at.height,at.height),f.margin=f.margin||at.actorMargin,d=qt.getMax(d,f.height),r.get(f.name)&&(l+=f.width/2),f.x=o+l,f.starty=Lt.getVerticalPos(),Lt.insert(f.x,i,f.x+f.width,f.height),o+=f.width+l,f.box&&(f.box.width=o+p.margin-f.box.x),l=f.margin,u=f.box,Lt.models.addActor(f)}u&&!s&&Lt.models.addBox(u),Lt.bumpVerticalPos(d)},"addActorRenderingData"),J$=S(async function(t,e,r,n,i,a,s){if(n){let o=0;Lt.bumpVerticalPos(at.boxMargin*2);for(const l of r){const u=e.get(l);u.stopy||(u.stopy=Lt.getVerticalPos());const d=await Kn.drawActor(t,u,at,!0,i,a,s);o=qt.getMax(o,d)}Lt.bumpVerticalPos(o+at.boxMargin)}else for(const o of r){const l=e.get(o);await Kn.drawActor(t,l,at,!1,i,a,s)}},"drawActors"),eAe=S(function(t,e,r,n){let i=0,a=0;for(const s of r){const o=e.get(s),l=IRt(o),u=Kn.drawPopup(t,o,l,at,at.forceMenus,n);u.height>i&&(i=u.height),u.width+o.x>a&&(a=u.width+o.x)}return{maxHeight:i,maxWidth:a}},"drawActorsPopup"),tAe=S(function(t){Vi(at,t),t.fontFamily&&(at.actorFontFamily=at.noteFontFamily=at.messageFontFamily=t.fontFamily),t.fontSize&&(at.actorFontSize=at.noteFontSize=at.messageFontSize=t.fontSize),t.fontWeight&&(at.actorFontWeight=at.noteFontWeight=at.messageFontWeight=t.fontWeight)},"setConf"),a8=S(function(t){return Lt.activations.filter(function(e){return e.actor===t})},"actorActivations"),Boe=S(function(t,e){const r=e.get(t),n=a8(t),i=n.reduce(function(s,o){return qt.getMin(s,o.startx)},r.x+r.width/2-1),a=n.reduce(function(s,o){return qt.getMax(s,o.stopx)},r.x+r.width/2+1);return[i,a]},"activationBounds");function $l(t,e,r,n,i){Lt.bumpVerticalPos(r);let a=n;if(e.id&&e.message&&t[e.id]){const s=t[e.id].width,o=Gp(at);e.message=Wr.wrapLabel(`[${e.message}]`,s-2*at.wrapPadding,o),e.width=s,e.wrap=!0;const l=Wr.calculateTextDimensions(e.message,o),u=qt.getMax(l.height,at.labelBoxHeight);a=n+u,ge.debug(`${u} - ${e.message}`)}i(e),Lt.bumpVerticalPos(a)}S($l,"adjustLoopHeightForWrap");function rAe(t,e,r,n,i,a,s){function o(d,h){d.x{B.add(q.from),B.add(q.to)}),m=m.filter(q=>B.has(q))}const x=new Map(m.map((B,q)=>[h.get(B)?.name??B,q]));RRt(d,h,f,m,0,y,!1);const C=await BRt(y,h,E,n);Kn.insertArrowHead(d,e),Kn.insertArrowCrossHead(d,e),Kn.insertArrowFilledHead(d,e),Kn.insertSequenceNumber(d,e),Kn.insertSolidTopArrowHead(d,e),Kn.insertSolidBottomArrowHead(d,e),Kn.insertStickTopArrowHead(d,e),Kn.insertStickBottomArrowHead(d,e),s==="neo"&&Kn.insertDropShadow(d,at);function T(B,q){const Y=Lt.endActivation(B);Y.starty+18>q&&(Y.starty=q-6,q+=12),Kn.drawActivation(d,Y,q,at,a8(B.from).length,n,x),Lt.insert(Y.startx,q-10,Y.stopx,q)}S(T,"activeEnd");let w=1,N=1;const O=[],M=[];let $=0;for(const B of y){let q,Y,Q;switch(B.type){case n.db.LINETYPE.NOTE:Lt.resetVerticalPos(),Y=B.noteModel,await kRt(d,Y,B.id);break;case n.db.LINETYPE.ACTIVE_START:Lt.newActivation(B,d,h);break;case n.db.LINETYPE.CENTRAL_CONNECTION:Lt.newActivation(B,d,h);break;case n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:Lt.newActivation(B,d,h);break;case n.db.LINETYPE.ACTIVE_END:T(B,Lt.getVerticalPos());break;case n.db.LINETYPE.LOOP_START:$l(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,H=>Lt.newLoop(H));break;case n.db.LINETYPE.LOOP_END:q=Lt.endLoop(),await Kn.drawLoop(d,q,"loop",at,B),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos()),Lt.models.addLoop(q);break;case n.db.LINETYPE.RECT_START:$l(C,B,at.boxMargin,at.boxMargin,H=>Lt.newLoop(void 0,H.message));break;case n.db.LINETYPE.RECT_END:q=Lt.endLoop(),M.push(q),Lt.models.addLoop(q),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos());break;case n.db.LINETYPE.OPT_START:$l(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,H=>Lt.newLoop(H));break;case n.db.LINETYPE.OPT_END:q=Lt.endLoop(),await Kn.drawLoop(d,q,"opt",at,B),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos()),Lt.models.addLoop(q);break;case n.db.LINETYPE.ALT_START:$l(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,H=>Lt.newLoop(H));break;case n.db.LINETYPE.ALT_ELSE:$l(C,B,at.boxMargin+at.boxTextMargin,at.boxMargin,H=>Lt.addSectionToLoop(H));break;case n.db.LINETYPE.ALT_END:q=Lt.endLoop(),await Kn.drawLoop(d,q,"alt",at,B),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos()),Lt.models.addLoop(q);break;case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.PAR_OVER_START:$l(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,H=>Lt.newLoop(H)),Lt.saveVerticalPos();break;case n.db.LINETYPE.PAR_AND:$l(C,B,at.boxMargin+at.boxTextMargin,at.boxMargin,H=>Lt.addSectionToLoop(H));break;case n.db.LINETYPE.PAR_END:q=Lt.endLoop(),await Kn.drawLoop(d,q,"par",at,B),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos()),Lt.models.addLoop(q);break;case n.db.LINETYPE.AUTONUMBER:w=B.message.start||w,N=B.message.step||N,B.message.visible?n.db.enableSequenceNumbers():n.db.disableSequenceNumbers();break;case n.db.LINETYPE.CRITICAL_START:$l(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,H=>Lt.newLoop(H));break;case n.db.LINETYPE.CRITICAL_OPTION:$l(C,B,at.boxMargin+at.boxTextMargin,at.boxMargin,H=>Lt.addSectionToLoop(H));break;case n.db.LINETYPE.CRITICAL_END:q=Lt.endLoop(),await Kn.drawLoop(d,q,"critical",at,B),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos()),Lt.models.addLoop(q);break;case n.db.LINETYPE.BREAK_START:$l(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,H=>Lt.newLoop(H));break;case n.db.LINETYPE.BREAK_END:q=Lt.endLoop(),await Kn.drawLoop(d,q,"break",at,B),Lt.bumpVerticalPos(q.stopy-Lt.getVerticalPos()),Lt.models.addLoop(q);break;default:try{Q=B.msgModel,Q.starty=Lt.getVerticalPos(),Q.sequenceIndex=w,Q.sequenceVisible=n.db.showSequenceNumbers(),Q.id=B.id,Q.from=B.from,Q.to=B.to;const H=await J7e(d,Q);rAe(B,Q,H,$,h,f,p),O.push({messageModel:Q,lineStartY:H,msg:B}),Lt.models.addMessage(Q)}catch(H){ge.error("error while drawing message",H)}}[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.SOLID_TOP,n.db.LINETYPE.SOLID_BOTTOM,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.SOLID_TOP_DOTTED,n.db.LINETYPE.SOLID_BOTTOM_DOTTED,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT,n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(B.type)&&(w=Math.round((w+N)*100)/100),$++}ge.debug("createdActors",f),ge.debug("destroyedActors",p),await J$(d,h,m,!1,e,n,x);for(const B of O)await ARt(d,B.messageModel,B.lineStartY,n,B.msg,e);at.mirrorActors&&await J$(d,h,m,!0,e,n,x),M.forEach(B=>Kn.drawBackgroundRect(d,B)),j7e(d,h,m,at);for(const B of Lt.models.boxes){B.height=Lt.getVerticalPos()-B.y,Lt.insert(B.x,B.y,B.x+B.width,B.height);const q=at.boxMargin*2;B.startx=B.x-q,B.starty=B.y-q*.25,B.stopx=B.startx+B.width+2*q,B.stopy=B.starty+B.height+q*.75,B.stroke="rgb(0,0,0, 0.5)",Kn.drawBox(d,B,at)}b&&Lt.bumpVerticalPos(at.boxMargin);const F=eAe(d,h,m,u),{bounds:A}=Lt.getBounds();A.startx===void 0&&(A.startx=0),A.starty===void 0&&(A.starty=0),A.stopx===void 0&&(A.stopx=0),A.stopy===void 0&&(A.stopy=0);let I=A.stopy-A.starty;I{const s=Gp(at);let o=a.actorKeys.reduce((h,f)=>h+=t.get(f).width+(t.get(f).margin||0),0);const l=at.boxMargin*8;o+=l,o-=2*at.boxTextMargin,a.wrap&&(a.name=Wr.wrapLabel(a.name,o-2*at.wrapPadding,s));const u=Wr.calculateTextDimensions(a.name,s);i=qt.getMax(u.height,i);const d=qt.getMax(o,u.width+2*at.wrapPadding);if(a.margin=at.boxTextMargin,oa.textMaxHeight=i),qt.getMax(n,at.height)}S(iAe,"calculateActorMargins");var ORt=S(async function(t,e,r){const n=e.get(t.from),i=e.get(t.to),a=n.x,s=i.x,o=t.wrap&&t.message;let l=Xi(t.message)?await eT(t.message,Ke()):Wr.calculateTextDimensions(o?Wr.wrapLabel(t.message,at.width,ym(at)):t.message,ym(at));const u={width:o?at.width:qt.getMax(at.width,l.width+2*at.noteMargin),height:0,startx:n.x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===r.db.PLACEMENT.RIGHTOF?(u.width=o?qt.getMax(at.width,l.width):qt.getMax(n.width/2+i.width/2,l.width+2*at.noteMargin),u.startx=a+(n.width+at.actorMargin)/2):t.placement===r.db.PLACEMENT.LEFTOF?(u.width=o?qt.getMax(at.width,l.width+2*at.noteMargin):qt.getMax(n.width/2+i.width/2,l.width+2*at.noteMargin),u.startx=a-u.width+(n.width-at.actorMargin)/2):t.to===t.from?(l=Wr.calculateTextDimensions(o?Wr.wrapLabel(t.message,qt.getMax(at.width,n.width),ym(at)):t.message,ym(at)),u.width=o?qt.getMax(at.width,n.width):qt.getMax(n.width,at.width,l.width+2*at.noteMargin),u.startx=a+(n.width-u.width)/2):(u.width=Math.abs(a+n.width/2-(s+i.width/2))+at.actorMargin,u.startx=a2,f=S(y=>l?-y:y,"adjustValue");t.from===t.to?d=u:(t.activate&&!h&&(d+=f(at.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)||(d+=f(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)&&(u-=f(3)));const p=[i,a,s,o],g=Math.abs(u-d);t.wrap&&t.message&&(t.message=Wr.wrapLabel(t.message,qt.getMax(g+2*at.wrapPadding,at.width),Gp(at)));const m=Wr.calculateTextDimensions(t.message,Gp(at));return{width:qt.getMax(t.wrap?0:m.width+2*at.wrapPadding,g+2*at.wrapPadding,at.width),height:0,startx:u,stopx:d,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,p),toBounds:Math.max.apply(null,p)}},"buildMessageModel"),BRt=S(async function(t,e,r,n){const i={},a=[];let s,o,l;for(const u of t){switch(u.type){case n.db.LINETYPE.LOOP_START:case n.db.LINETYPE.ALT_START:case n.db.LINETYPE.OPT_START:case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.PAR_OVER_START:case n.db.LINETYPE.CRITICAL_START:case n.db.LINETYPE.BREAK_START:a.push({id:u.id,msg:u.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case n.db.LINETYPE.ALT_ELSE:case n.db.LINETYPE.PAR_AND:case n.db.LINETYPE.CRITICAL_OPTION:u.message&&(s=a.pop(),i[s.id]=s,i[u.id]=s,a.push(s));break;case n.db.LINETYPE.LOOP_END:case n.db.LINETYPE.ALT_END:case n.db.LINETYPE.OPT_END:case n.db.LINETYPE.PAR_END:case n.db.LINETYPE.CRITICAL_END:case n.db.LINETYPE.BREAK_END:s=a.pop(),i[s.id]=s;break;case n.db.LINETYPE.ACTIVE_START:{const h=e.get(u.from?u.from:u.to.actor),f=a8(u.from?u.from:u.to.actor).length,p=h.x+h.width/2+(f-1)*at.activationWidth/2,g={startx:p,stopx:p+at.activationWidth,actor:u.from,enabled:!0};Lt.activations.push(g)}break;case n.db.LINETYPE.ACTIVE_END:{const h=Lt.activations.map(f=>f.actor).lastIndexOf(u.from);Lt.activations.splice(h,1).splice(0,1)}break}u.placement!==void 0?(o=await ORt(u,e,n),u.noteModel=o,a.forEach(h=>{s=h,s.from=qt.getMin(s.from,o.startx),s.to=qt.getMax(s.to,o.startx+o.width),s.width=qt.getMax(s.width,Math.abs(s.from-s.to))-at.labelBoxWidth})):(l=PRt(u,e,n),u.msgModel=l,l.startx&&l.stopx&&a.length>0&&a.forEach(h=>{if(s=h,l.startx===l.stopx){const f=e.get(u.from),p=e.get(u.to);s.from=qt.getMin(f.x-l.width/2,f.x-f.width/2,s.from),s.to=qt.getMax(p.x+l.width/2,p.x+f.width/2,s.to),s.width=qt.getMax(s.width,Math.abs(s.to-s.from))-at.labelBoxWidth}else s.from=qt.getMin(l.startx,s.from),s.to=qt.getMax(l.stopx,s.to),s.width=qt.getMax(s.width,l.width)-at.labelBoxWidth}))}return Lt.activations=[],ge.debug("Loop type widths:",i),i},"calculateLoopBounds"),FRt={bounds:Lt,drawActors:J$,drawActorsPopup:eAe,setConf:tAe,draw:NRt},$Rt={parser:V8t,get db(){return new j8t},renderer:FRt,styles:Z8t,init:S(t=>{t.sequence||(t.sequence={}),t.wrap&&(t.sequence.wrap=t.wrap,$M({sequence:{wrap:t.wrap}}))},"init")};const zRt=Object.freeze(Object.defineProperty({__proto__:null,diagram:$Rt},Symbol.toStringTag,{value:"Module"}));var ez=(function(){var t=S(function(ot,it,Oe,U){for(Oe=Oe||{},U=ot.length;U--;Oe[ot[U]]=it);return Oe},"o"),e=[1,18],r=[1,19],n=[1,20],i=[1,41],a=[1,26],s=[1,42],o=[1,24],l=[1,25],u=[1,32],d=[1,33],h=[1,34],f=[1,45],p=[1,35],g=[1,36],m=[1,37],y=[1,38],v=[1,27],b=[1,28],_=[1,29],E=[1,30],x=[1,31],C=[1,44],T=[1,46],w=[1,43],N=[1,47],O=[1,9],M=[1,8,9],$=[1,58],F=[1,59],A=[1,60],I=[1,61],D=[1,62],L=[1,63],R=[1,64],P=[1,8,9,41],z=[1,77],B=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],q=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],Y=[13,60,86,100,102,103],Q=[13,60,73,74,86,100,102,103],H=[13,60,68,69,70,71,72,86,100,102,103],J=[1,103],Z=[1,121],pe=[1,117],re=[1,113],ce=[1,119],ae=[1,114],se=[1,115],xe=[1,116],Te=[1,118],Ge=[1,120],ze=[22,50,60,61,82,86,87,88,89,90],Xe=[1,128],Le=[12,39],Re=[1,8,9,39,41,44,46],qe=[1,8,9,22],Ne=[1,153],ut=[1,8,9,61],De=[1,8,9,22,50,60,61,82,86,87,88,89,90],Je={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:S(function(it,Oe,U,oe,de,G,ie){var j=G.length-1;switch(de){case 8:this.$=G[j-1];break;case 9:case 10:case 13:case 15:this.$=G[j];break;case 11:case 14:this.$=G[j-2]+"."+G[j];break;case 12:case 16:this.$=G[j-1]+G[j];break;case 17:case 18:this.$=G[j-1]+"~"+G[j]+"~";break;case 19:oe.addRelation(G[j]);break;case 20:G[j-1].title=oe.cleanupLabel(G[j]),oe.addRelation(G[j-1]);break;case 31:this.$=G[j].trim(),oe.setAccTitle(this.$);break;case 32:case 33:this.$=G[j].trim(),oe.setAccDescription(this.$);break;case 34:oe.addClassesToNamespace(G[j-3],G[j-1][0],G[j-1][1]),oe.popNamespace();break;case 35:oe.addClassesToNamespace(G[j-4],G[j-1][0],G[j-1][1]),oe.popNamespace();break;case 36:this.$=oe.addNamespace(G[j]);break;case 37:this.$=oe.addNamespace(G[j-1],G[j]);break;case 38:this.$=[[G[j]],[]];break;case 39:this.$=[[G[j-1]],[]];break;case 40:G[j][0].unshift(G[j-2]),this.$=G[j];break;case 41:this.$=[[],[G[j]]];break;case 42:this.$=[[],[G[j-1]]];break;case 43:G[j][1].unshift(G[j-2]),this.$=G[j];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=G[j];break;case 48:oe.setCssClass(G[j-2],G[j]);break;case 49:oe.addMembers(G[j-3],G[j-1]);break;case 51:oe.setCssClass(G[j-5],G[j-3]),oe.addMembers(G[j-5],G[j-1]);break;case 52:oe.addAnnotation(G[j-3],G[j-1]);break;case 53:oe.addAnnotation(G[j-6],G[j-4]),oe.addMembers(G[j-6],G[j-1]);break;case 54:oe.addAnnotation(G[j-5],G[j-3]);break;case 55:this.$=G[j],oe.addClass(G[j]);break;case 56:this.$=G[j-1],oe.addClass(G[j-1]),oe.setClassLabel(G[j-1],G[j]);break;case 60:oe.addAnnotation(G[j],G[j-2]);break;case 61:case 74:this.$=[G[j]];break;case 62:G[j].push(G[j-1]),this.$=G[j];break;case 63:break;case 64:oe.addMember(G[j-1],oe.cleanupLabel(G[j]));break;case 65:break;case 66:break;case 67:this.$={id1:G[j-2],id2:G[j],relation:G[j-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:G[j-3],id2:G[j],relation:G[j-1],relationTitle1:G[j-2],relationTitle2:"none"};break;case 69:this.$={id1:G[j-3],id2:G[j],relation:G[j-2],relationTitle1:"none",relationTitle2:G[j-1]};break;case 70:this.$={id1:G[j-4],id2:G[j],relation:G[j-2],relationTitle1:G[j-3],relationTitle2:G[j-1]};break;case 71:this.$=oe.addNote(G[j],G[j-1]);break;case 72:this.$=oe.addNote(G[j]);break;case 73:this.$=G[j-2],oe.defineClass(G[j-1],G[j]);break;case 75:this.$=G[j-2].concat([G[j]]);break;case 76:oe.setDirection("TB");break;case 77:oe.setDirection("BT");break;case 78:oe.setDirection("RL");break;case 79:oe.setDirection("LR");break;case 80:this.$={type1:G[j-2],type2:G[j],lineType:G[j-1]};break;case 81:this.$={type1:"none",type2:G[j],lineType:G[j-1]};break;case 82:this.$={type1:G[j-1],type2:"none",lineType:G[j]};break;case 83:this.$={type1:"none",type2:"none",lineType:G[j]};break;case 84:this.$=oe.relationType.AGGREGATION;break;case 85:this.$=oe.relationType.EXTENSION;break;case 86:this.$=oe.relationType.COMPOSITION;break;case 87:this.$=oe.relationType.DEPENDENCY;break;case 88:this.$=oe.relationType.LOLLIPOP;break;case 89:this.$=oe.lineType.LINE;break;case 90:this.$=oe.lineType.DOTTED_LINE;break;case 91:case 97:this.$=G[j-2],oe.setClickEvent(G[j-1],G[j]);break;case 92:case 98:this.$=G[j-3],oe.setClickEvent(G[j-2],G[j-1]),oe.setTooltip(G[j-2],G[j]);break;case 93:this.$=G[j-2],oe.setLink(G[j-1],G[j]);break;case 94:this.$=G[j-3],oe.setLink(G[j-2],G[j-1],G[j]);break;case 95:this.$=G[j-3],oe.setLink(G[j-2],G[j-1]),oe.setTooltip(G[j-2],G[j]);break;case 96:this.$=G[j-4],oe.setLink(G[j-3],G[j-2],G[j]),oe.setTooltip(G[j-3],G[j-1]);break;case 99:this.$=G[j-3],oe.setClickEvent(G[j-2],G[j-1],G[j]);break;case 100:this.$=G[j-4],oe.setClickEvent(G[j-3],G[j-2],G[j-1]),oe.setTooltip(G[j-3],G[j]);break;case 101:this.$=G[j-3],oe.setLink(G[j-2],G[j]);break;case 102:this.$=G[j-4],oe.setLink(G[j-3],G[j-1],G[j]);break;case 103:this.$=G[j-4],oe.setLink(G[j-3],G[j-1]),oe.setTooltip(G[j-3],G[j]);break;case 104:this.$=G[j-5],oe.setLink(G[j-4],G[j-2],G[j]),oe.setTooltip(G[j-4],G[j-1]);break;case 105:this.$=G[j-2],oe.setCssStyle(G[j-1],G[j]);break;case 106:oe.setCssClass(G[j-1],G[j]);break;case 107:this.$=[G[j]];break;case 108:G[j-2].push(G[j]),this.$=G[j-2];break;case 110:this.$=G[j-1]+G[j];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:r,37:n,38:22,42:i,43:23,46:a,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:y,75:v,76:b,78:_,82:E,83:x,86:C,100:T,102:w,103:N},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(O,[2,5],{8:[1,48]}),{8:[1,49]},t(M,[2,19],{22:[1,50]}),t(M,[2,21]),t(M,[2,22]),t(M,[2,23]),t(M,[2,24]),t(M,[2,25]),t(M,[2,26]),t(M,[2,27]),t(M,[2,28]),t(M,[2,29]),t(M,[2,30]),{34:[1,51]},{36:[1,52]},t(M,[2,33]),t(M,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:$,69:F,70:A,71:I,72:D,73:L,74:R}),{39:[1,65]},t(P,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(M,[2,65]),t(M,[2,66]),{16:69,60:f,86:C,100:T,102:w},{16:39,17:40,19:70,60:f,86:C,100:T,102:w,103:N},{16:39,17:40,19:71,60:f,86:C,100:T,102:w,103:N},{16:39,17:40,19:72,60:f,86:C,100:T,102:w,103:N},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:f,86:C,100:T,102:w,103:N},{13:z,55:76},{58:78,60:[1,79]},t(M,[2,76]),t(M,[2,77]),t(M,[2,78]),t(M,[2,79]),t(B,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:f,86:C,100:T,102:w,103:N}),t(B,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:f,86:C,100:T,102:w,103:N},{16:39,17:40,19:87,60:f,86:C,100:T,102:w,103:N},t(q,[2,133]),t(q,[2,134]),t(q,[2,135]),t(q,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(O,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:e,35:r,37:n,42:i,46:a,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:y,75:v,76:b,78:_,82:E,83:x,86:C,100:T,102:w,103:N}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:r,37:n,38:22,42:i,43:23,46:a,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:y,75:v,76:b,78:_,82:E,83:x,86:C,100:T,102:w,103:N},t(M,[2,20]),t(M,[2,31]),t(M,[2,32]),{13:[1,91],16:39,17:40,19:90,60:f,86:C,100:T,102:w,103:N},{53:92,66:56,67:57,68:$,69:F,70:A,71:I,72:D,73:L,74:R},t(M,[2,64]),{67:93,73:L,74:R},t(Y,[2,83],{66:94,68:$,69:F,70:A,71:I,72:D}),t(Q,[2,84]),t(Q,[2,85]),t(Q,[2,86]),t(Q,[2,87]),t(Q,[2,88]),t(H,[2,89]),t(H,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:i,43:23,48:s,54:u,56:d},{16:100,60:f,86:C,100:T,102:w},{41:[1,102],45:101,51:J},{16:104,60:f,86:C,100:T,102:w},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:Z,50:pe,59:110,60:re,82:ce,84:111,85:112,86:ae,87:se,88:xe,89:Te,90:Ge},{60:[1,122]},{13:z,55:123},t(P,[2,72]),t(P,[2,138]),{22:Z,50:pe,59:124,60:re,61:[1,125],82:ce,84:111,85:112,86:ae,87:se,88:xe,89:Te,90:Ge},t(ze,[2,74]),{16:39,17:40,19:126,60:f,86:C,100:T,102:w,103:N},t(B,[2,16]),t(B,[2,17]),t(B,[2,18]),{11:127,12:Xe,39:[2,36]},t(Le,[2,9],{16:85,17:86,15:130,18:[1,129],60:f,86:C,100:T,102:w,103:N}),t(Le,[2,10]),t(Re,[2,55],{11:131,12:Xe}),t(O,[2,7]),{9:[1,132]},t(qe,[2,67]),{16:39,17:40,19:133,60:f,86:C,100:T,102:w,103:N},{13:[1,135],16:39,17:40,19:134,60:f,86:C,100:T,102:w,103:N},t(Y,[2,82],{66:136,68:$,69:F,70:A,71:I,72:D}),t(Y,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:i,43:23,48:s,54:u,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(P,[2,48],{39:[1,142]}),{41:[1,143]},t(P,[2,50]),{41:[2,61],45:144,51:J},{47:[1,145]},{16:39,17:40,19:146,60:f,86:C,100:T,102:w,103:N},t(M,[2,91],{13:[1,147]}),t(M,[2,93],{13:[1,149],77:[1,148]}),t(M,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(M,[2,105],{61:Ne}),t(ut,[2,107],{85:154,22:Z,50:pe,60:re,82:ce,86:ae,87:se,88:xe,89:Te,90:Ge}),t(De,[2,109]),t(De,[2,111]),t(De,[2,112]),t(De,[2,113]),t(De,[2,114]),t(De,[2,115]),t(De,[2,116]),t(De,[2,117]),t(De,[2,118]),t(De,[2,119]),t(M,[2,106]),t(P,[2,71]),t(M,[2,73],{61:Ne}),{60:[1,155]},t(B,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:f,86:C,100:T,102:w,103:N},t(Le,[2,12]),t(Re,[2,56]),{1:[2,4]},t(qe,[2,69]),t(qe,[2,68]),{16:39,17:40,19:158,60:f,86:C,100:T,102:w,103:N},t(Y,[2,80]),t(P,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:i,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:i,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:i,43:23,48:s,54:u,56:d},{45:163,51:J},t(P,[2,49]),{41:[2,62]},t(P,[2,52],{39:[1,164]}),t(M,[2,60]),t(M,[2,92]),t(M,[2,94]),t(M,[2,95],{77:[1,165]}),t(M,[2,98]),t(M,[2,99],{13:[1,166]}),t(M,[2,101],{13:[1,168],77:[1,167]}),{22:Z,50:pe,60:re,82:ce,84:169,85:112,86:ae,87:se,88:xe,89:Te,90:Ge},t(De,[2,110]),t(ze,[2,75]),{14:[1,170]},t(Le,[2,11]),t(qe,[2,70]),t(P,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:J},t(M,[2,96]),t(M,[2,100]),t(M,[2,102]),t(M,[2,103],{77:[1,174]}),t(ut,[2,108],{85:154,22:Z,50:pe,60:re,82:ce,86:ae,87:se,88:xe,89:Te,90:Ge}),t(Re,[2,8]),t(P,[2,51]),{41:[1,175]},t(P,[2,54]),t(M,[2,104]),t(P,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:S(function(it,Oe){if(Oe.recoverable)this.trace(it);else{var U=new Error(it);throw U.hash=Oe,U}},"parseError"),parse:S(function(it){var Oe=this,U=[0],oe=[],de=[null],G=[],ie=this.table,j="",V=0,ue=0,Fe=2,me=1,Ce=G.slice.call(arguments,1),ye=Object.create(this.lexer),Me={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(Me.yy[Ie]=this.yy[Ie]);ye.setInput(it,Me.yy),Me.yy.lexer=ye,Me.yy.parser=this,typeof ye.yylloc>"u"&&(ye.yylloc={});var he=ye.yylloc;G.push(he);var le=ye.options&&ye.options.ranges;typeof Me.yy.parseError=="function"?this.parseError=Me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(Nt){U.length=U.length-2*Nt,de.length=de.length-Nt,G.length=G.length-Nt}S(Be,"popStack");function ve(){var Nt;return Nt=oe.pop()||ye.lex()||me,typeof Nt!="number"&&(Nt instanceof Array&&(oe=Nt,Nt=oe.pop()),Nt=Oe.symbols_[Nt]||Nt),Nt}S(ve,"lex");for(var gt,Et,et,dt,ft={},mt,fe,It,St;;){if(Et=U[U.length-1],this.defaultActions[Et]?et=this.defaultActions[Et]:((gt===null||typeof gt>"u")&&(gt=ve()),et=ie[Et]&&ie[Et][gt]),typeof et>"u"||!et.length||!et[0]){var Tt="";St=[];for(mt in ie[Et])this.terminals_[mt]&&mt>Fe&&St.push("'"+this.terminals_[mt]+"'");ye.showPosition?Tt="Parse error on line "+(V+1)+`: `+ye.showPosition()+` Expecting `+St.join(", ")+", got '"+(this.terminals_[gt]||gt)+"'":Tt="Parse error on line "+(V+1)+": Unexpected "+(gt==me?"end of input":"'"+(this.terminals_[gt]||gt)+"'"),this.parseError(Tt,{text:ye.match,token:this.terminals_[gt]||gt,line:ye.yylineno,loc:he,expected:St})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+gt);switch(et[0]){case 1:U.push(gt),de.push(ye.yytext),G.push(ye.yylloc),U.push(et[1]),gt=null,ue=ye.yyleng,j=ye.yytext,V=ye.yylineno,he=ye.yylloc;break;case 2:if(fe=this.productions_[et[1]][1],ft.$=de[de.length-fe],ft._$={first_line:G[G.length-(fe||1)].first_line,last_line:G[G.length-1].last_line,first_column:G[G.length-(fe||1)].first_column,last_column:G[G.length-1].last_column},le&&(ft._$.range=[G[G.length-(fe||1)].range[0],G[G.length-1].range[1]]),dt=this.performAction.apply(ft,[j,ue,V,Me.yy,et[1],de,G].concat(Ce)),typeof dt<"u")return dt;fe&&(U=U.slice(0,-1*fe*2),de=de.slice(0,-1*fe),G=G.slice(0,-1*fe)),U.push(this.productions_[et[1]][0]),de.push(ft.$),G.push(ft._$),It=ie[U[U.length-2]][U[U.length-1]],U.push(It);break;case 3:return!0}}return!0},"parse")},st=(function(){var ot={EOF:1,parseError:S(function(Oe,U){if(this.yy.parser)this.yy.parser.parseError(Oe,U);else throw new Error(Oe)},"parseError"),setInput:S(function(it,Oe){return this.yy=Oe||this.yy||{},this._input=it,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var it=this._input[0];this.yytext+=it,this.yyleng++,this.offset++,this.match+=it,this.matched+=it;var Oe=it.match(/(?:\r\n?|\n).*/g);return Oe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),it},"input"),unput:S(function(it){var Oe=it.length,U=it.split(/(?:\r\n?|\n)/g);this._input=it+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Oe),this.offset-=Oe;var oe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),U.length-1&&(this.yylineno-=U.length-1);var de=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:U?(U.length===oe.length?this.yylloc.first_column:0)+oe[oe.length-U.length].length-U[0].length:this.yylloc.first_column-Oe},this.options.ranges&&(this.yylloc.range=[de[0],de[0]+this.yyleng-Oe]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(it){this.unput(this.match.slice(it))},"less"),pastInput:S(function(){var it=this.matched.substr(0,this.matched.length-this.match.length);return(it.length>20?"...":"")+it.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var it=this.match;return it.length<20&&(it+=this._input.substr(0,20-it.length)),(it.substr(0,20)+(it.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var it=this.pastInput(),Oe=new Array(it.length+1).join("-");return it+this.upcomingInput()+` `+Oe+"^"},"showPosition"),test_match:S(function(it,Oe){var U,oe,de;if(this.options.backtrack_lexer&&(de={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(de.yylloc.range=this.yylloc.range.slice(0))),oe=it[0].match(/(?:\r\n?|\n).*/g),oe&&(this.yylineno+=oe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:oe?oe[oe.length-1].length-oe[oe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+it[0].length},this.yytext+=it[0],this.match+=it[0],this.matches=it,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(it[0].length),this.matched+=it[0],U=this.performAction.call(this,this.yy,this,Oe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),U)return U;if(this._backtrack){for(var G in de)this[G]=de[G];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var it,Oe,U,oe;this._more||(this.yytext="",this.match="");for(var de=this._currentRules(),G=0;GOe[0].length)){if(Oe=U,oe=G,this.options.backtrack_lexer){if(it=this.test_match(U,de[G]),it!==!1)return it;if(this._backtrack){Oe=!1;continue}else return!1}else if(!this.options.flex)break}return Oe?(it=this.test_match(Oe,de[oe]),it!==!1?it:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var Oe=this.next();return Oe||this.lex()},"lex"),begin:S(function(Oe){this.conditionStack.push(Oe)},"begin"),popState:S(function(){var Oe=this.conditionStack.length-1;return Oe>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(Oe){return Oe=this.conditionStack.length-1-Math.abs(Oe||0),Oe>=0?this.conditionStack[Oe]:"INITIAL"},"topState"),pushState:S(function(Oe){this.begin(Oe)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:S(function(Oe,U,oe,de){switch(oe){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;case 40:return this.popState(),8;case 41:break;case 42:return this.popState(),this.popState(),41;case 43:return this.begin("class-body"),39;case 44:return this.popState(),41;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return ot})();Je.lexer=st;function ct(){this.yy={}}return S(ct,"Parser"),ct.prototype=Je,Je.Parser=ct,new ct})();ez.parser=ez;var sAe=ez,Foe=["#","+","~","-",""],k_,$oe=(k_=class{constructor(e,r){this.memberType=r,this.visibility="",this.classifier="",this.text="";const n=un(e,Ke());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+Td(this.id);this.memberType==="method"&&(e+=`(${Td(this.parameters.trim())})`,this.returnType&&(e+=" : "+Td(this.returnType))),e=e.trim();const r=this.parseClassifier();return{displayText:e,cssStyle:r}}parseMember(e){let r="";if(this.memberType==="method"){const a=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(a){const s=a[1]?a[1].trim():"";if(Foe.includes(s)&&(this.visibility=s),this.id=a[2],this.parameters=a[3]?a[3].trim():"",r=a[4]?a[4].trim():"",this.returnType=a[5]?a[5].trim():"",r===""){const o=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(o)&&(r=o,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const i=e.length,a=e.substring(0,1),s=e.substring(i-1);Foe.includes(a)&&(this.visibility=a),/[$*]/.exec(s)&&(r=s),this.id=e.substring(this.visibility===""?0:1,r===""?i:i-1)}this.classifier=r,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const n=`${this.visibility?"\\"+this.visibility:""}${Td(this.id)}${this.memberType==="method"?`(${Td(this.parameters)})${this.returnType?" : "+Td(this.returnType):""}`:""}`;this.text=n.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},S(k_,"ClassMember"),k_),O3="classId-",zoe=0,gf=S(t=>qt.sanitizeText(t,Ke()),"sanitizeText"),Qd,oAe=(Qd=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=S(e=>{const r=_2e();At(e).select("svg").selectAll("g").filter(function(){return At(this).attr("title")!==null}).on("mouseover",a=>{const s=At(a.currentTarget),o=s.attr("title");if(!o)return;const l=a.currentTarget.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.html(nh.sanitize(o)).style("left",`${window.scrollX+l.left+l.width/2}px`).style("top",`${window.scrollY+l.bottom+4}px`),s.classed("hover",!0)}).on("mouseout",a=>{r.transition().duration(500).style("opacity",0),At(a.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=ai,this.getAccTitle=yi,this.setAccDescription=vi,this.getAccDescription=_i,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.getConfig=S(()=>Ke().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(e){const r=qt.sanitizeText(e,Ke());let n="",i=r;if(r.indexOf("~")>0){const a=r.split("~");i=gf(a[0]),n=gf(a[1])}return{className:i,type:n}}setClassLabel(e,r){const n=qt.sanitizeText(e,Ke());r&&(r=gf(r));const{className:i}=this.splitClassNameAndType(n);this.classes.get(i).label=r,this.classes.get(i).text=`${r}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(e){const r=qt.sanitizeText(e,Ke()),{className:n,type:i}=this.splitClassNameAndType(r);if(this.classes.has(n))return;const a=qt.sanitizeText(n,Ke());this.classes.set(a,{id:a,type:i,label:a,text:`${a}${i?`<${i}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:O3+a+"-"+zoe}),zoe++}addInterface(e,r){const n={id:`interface${this.interfaces.length}`,label:e,classId:r};this.interfaces.push(n)}setDiagramId(e){this.diagramId=e}lookUpDomId(e){const r=qt.sanitizeText(e,Ke());if(this.classes.has(r)){const n=this.classes.get(r).domId;return this.diagramId?`${this.diagramId}-${n}`:n}throw new Error("Class not found: "+r)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",oi()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(e){const r=typeof e=="number"?`note${e}`:e;return this.notes.get(r)}getNotes(){return this.notes}addRelation(e){ge.debug("Adding relation: "+JSON.stringify(e));const r=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];e.relation.type1===this.relationType.LOLLIPOP&&!r.includes(e.relation.type2)?(this.addClass(e.id2),this.addInterface(e.id1,e.id2),e.id1=`interface${this.interfaces.length-1}`):e.relation.type2===this.relationType.LOLLIPOP&&!r.includes(e.relation.type1)?(this.addClass(e.id1),this.addInterface(e.id2,e.id1),e.id2=`interface${this.interfaces.length-1}`):(this.addClass(e.id1),this.addClass(e.id2)),e.id1=this.splitClassNameAndType(e.id1).className,e.id2=this.splitClassNameAndType(e.id2).className,e.relationTitle1=qt.sanitizeText(e.relationTitle1.trim(),Ke()),e.relationTitle2=qt.sanitizeText(e.relationTitle2.trim(),Ke()),this.relations.push(e)}addAnnotation(e,r){const n=this.splitClassNameAndType(e).className;this.classes.get(n).annotations.push(r)}addMember(e,r){this.addClass(e);const n=this.splitClassNameAndType(e).className,i=this.classes.get(n);if(typeof r=="string"){const a=r.trim();a.startsWith("<<")&&a.endsWith(">>")?i.annotations.push(gf(a.substring(2,a.length-2))):a.indexOf(")")>0?i.methods.push(new $oe(a,"method")):a&&i.members.push(new $oe(a,"attribute"))}}addMembers(e,r){Array.isArray(r)&&(r.reverse(),r.forEach(n=>this.addMember(e,n)))}addNote(e,r){const n=this.notes.size,i={id:`note${n}`,class:r,text:e,index:n};return this.notes.set(i.id,i),i.id}cleanupLabel(e){return e.startsWith(":")&&(e=e.substring(1)),gf(e.trim())}setCssClass(e,r){e.split(",").forEach(n=>{let i=n;/\d/.exec(n[0])&&(i=O3+i);const a=this.classes.get(i);a&&(a.cssClasses+=" "+r)})}defineClass(e,r){for(const n of e){let i=this.styleClasses.get(n);i===void 0&&(i={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,i)),r&&r.forEach(a=>{if(/color/.exec(a)){const s=a.replace("fill","bgFill");i.textStyles.push(s)}i.styles.push(a)}),this.classes.forEach(a=>{a.cssClasses.includes(n)&&a.styles.push(...r.flatMap(s=>s.split(",")))})}}setTooltip(e,r){e.split(",").forEach(n=>{r!==void 0&&(this.classes.get(n).tooltip=gf(r))})}getTooltip(e,r){return r&&this.namespaces.has(r)?this.namespaces.get(r).classes.get(e).tooltip:this.classes.get(e).tooltip}setLink(e,r,n){const i=Ke();e.split(",").forEach(a=>{let s=a;/\d/.exec(a[0])&&(s=O3+s);const o=this.classes.get(s);o&&(o.link=Wr.formatUrl(r,i),i.securityLevel==="sandbox"?o.linkTarget="_top":typeof n=="string"?o.linkTarget=gf(n):o.linkTarget="_blank")}),this.setCssClass(e,"clickable")}setClickEvent(e,r,n){e.split(",").forEach(i=>{this.setClickFunc(i,r,n),this.classes.get(i).haveCallback=!0}),this.setCssClass(e,"clickable")}setClickFunc(e,r,n){const i=qt.sanitizeText(e,Ke());if(Ke().securityLevel!=="loose"||r===void 0)return;const s=i;if(this.classes.has(s)){let o=[];if(typeof n=="string"){o=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l{const l=this.lookUpDomId(s),u=document.querySelector(`[id="${l}"]`);u!==null&&u.addEventListener("click",()=>{Wr.runFunc(r,...o)},!1)})}}bindFunctions(e){this.functions.forEach(r=>{r(e)})}escapeHtml(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(e){this.direction=e}static resolveQualifiedId(e,r){const n=r.at(-1);return n?`${n}.${e}`:e}static getAncestorIds(e){const r=e.split("."),n=new Array(r.length);n[0]=r[0];for(let i=1;i0?a[s-1]:void 0,u=s===a.length-1,d=u&&r?r:i[s];this.namespaces.has(o)?u&&(this.namespaces.get(o).explicit=!0):this.namespaces.set(o,this.createNamespaceNode(o,d,l,u)),l&&this.linkParentChild(l,o)}return n}popNamespace(){this.namespaceStack.pop()}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,r,n){if(this.namespaces.has(e)){for(const i of r){const{className:a}=this.splitClassNameAndType(i),s=this.getClass(a);s.parent=e,this.namespaces.get(e).classes.set(a,s)}for(const i of n){const a=this.getNote(i);a.parent=e,this.namespaces.get(e).notes.set(i,a)}}}setCssStyle(e,r){const n=this.classes.get(e);if(!(!r||!n))for(const i of r)i.includes(",")?n.styles.push(...i.split(",")):n.styles.push(i)}getArrowMarker(e){let r;switch(e){case 0:r="aggregation";break;case 1:r="extension";break;case 2:r="composition";break;case 3:r="dependency";break;case 4:r="lollipop";break;default:r="none"}return r}resolveExplicitAncestor(e){let r=e;for(;r;){const n=this.namespaces.get(r);if(!n)return;if(n.explicit)return r;r=n.parent}}getData(){const e=[],r=[],n=Ke(),i=n.class?.hierarchicalNamespaces??!0;for(const s of this.namespaces.values()){if(!i&&!s.explicit)continue;const o={id:s.id,label:i?s.label:s.id,isGroup:!0,padding:n.class.padding??16,shape:"rect",cssStyles:[],look:n.look,parentId:i?s.parent:void 0};e.push(o)}for(const s of this.classes.values()){const o=i?s.parent:this.resolveExplicitAncestor(s.parent),l={...s,type:void 0,isGroup:!1,parentId:o,look:n.look};e.push(l)}for(const s of this.notes.values()){const o=i?s.parent:this.resolveExplicitAncestor(s.parent),l={id:s.id,label:s.text,isGroup:!1,shape:"note",padding:n.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${n.themeVariables.noteBkgColor}`,`stroke: ${n.themeVariables.noteBorderColor}`],look:n.look,parentId:o,labelType:"markdown"};e.push(l);const u=this.classes.get(s.class)?.id;if(u){const d={id:`edgeNote${s.index}`,start:s.id,end:u,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:n.look};r.push(d)}}for(const s of this.interfaces){const o={id:s.id,label:s.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:n.look};e.push(o)}let a=0;for(const s of this.relations){a++;const o={id:Vm(s.id1,s.id2,{prefix:"id",counter:a}),start:s.id1,end:s.id2,type:"normal",label:s.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(s.relation.type1),arrowTypeEnd:this.getArrowMarker(s.relation.type2),startLabelRight:s.relationTitle1==="none"?"":s.relationTitle1,endLabelLeft:s.relationTitle2==="none"?"":s.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:s.style||"",pattern:s.relation.lineType==1?"dashed":"solid",look:n.look,labelType:"markdown"};r.push(o)}return{nodes:e,edges:r,other:{},config:n,direction:this.getDirection()}}},S(Qd,"ClassDB"),Qd),zRt=S(t=>`g.classGroup text { +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var Oe=this.next();return Oe||this.lex()},"lex"),begin:S(function(Oe){this.conditionStack.push(Oe)},"begin"),popState:S(function(){var Oe=this.conditionStack.length-1;return Oe>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(Oe){return Oe=this.conditionStack.length-1-Math.abs(Oe||0),Oe>=0?this.conditionStack[Oe]:"INITIAL"},"topState"),pushState:S(function(Oe){this.begin(Oe)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:S(function(Oe,U,oe,de){switch(oe){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;case 40:return this.popState(),8;case 41:break;case 42:return this.popState(),this.popState(),41;case 43:return this.begin("class-body"),39;case 44:return this.popState(),41;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return ot})();Je.lexer=st;function ct(){this.yy={}}return S(ct,"Parser"),ct.prototype=Je,Je.Parser=ct,new ct})();ez.parser=ez;var sAe=ez,Foe=["#","+","~","-",""],k_,$oe=(k_=class{constructor(e,r){this.memberType=r,this.visibility="",this.classifier="",this.text="";const n=un(e,Ke());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+Td(this.id);this.memberType==="method"&&(e+=`(${Td(this.parameters.trim())})`,this.returnType&&(e+=" : "+Td(this.returnType))),e=e.trim();const r=this.parseClassifier();return{displayText:e,cssStyle:r}}parseMember(e){let r="";if(this.memberType==="method"){const a=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(a){const s=a[1]?a[1].trim():"";if(Foe.includes(s)&&(this.visibility=s),this.id=a[2],this.parameters=a[3]?a[3].trim():"",r=a[4]?a[4].trim():"",this.returnType=a[5]?a[5].trim():"",r===""){const o=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(o)&&(r=o,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const i=e.length,a=e.substring(0,1),s=e.substring(i-1);Foe.includes(a)&&(this.visibility=a),/[$*]/.exec(s)&&(r=s),this.id=e.substring(this.visibility===""?0:1,r===""?i:i-1)}this.classifier=r,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const n=`${this.visibility?"\\"+this.visibility:""}${Td(this.id)}${this.memberType==="method"?`(${Td(this.parameters)})${this.returnType?" : "+Td(this.returnType):""}`:""}`;this.text=n.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},S(k_,"ClassMember"),k_),O3="classId-",zoe=0,gf=S(t=>qt.sanitizeText(t,Ke()),"sanitizeText"),Qd,oAe=(Qd=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=S(e=>{const r=_2e();At(e).select("svg").selectAll("g").filter(function(){return At(this).attr("title")!==null}).on("mouseover",a=>{const s=At(a.currentTarget),o=s.attr("title");if(!o)return;const l=a.currentTarget.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.html(nh.sanitize(o)).style("left",`${window.scrollX+l.left+l.width/2}px`).style("top",`${window.scrollY+l.bottom+4}px`),s.classed("hover",!0)}).on("mouseout",a=>{r.transition().duration(500).style("opacity",0),At(a.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=ai,this.getAccTitle=yi,this.setAccDescription=vi,this.getAccDescription=_i,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.getConfig=S(()=>Ke().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(e){const r=qt.sanitizeText(e,Ke());let n="",i=r;if(r.indexOf("~")>0){const a=r.split("~");i=gf(a[0]),n=gf(a[1])}return{className:i,type:n}}setClassLabel(e,r){const n=qt.sanitizeText(e,Ke());r&&(r=gf(r));const{className:i}=this.splitClassNameAndType(n);this.classes.get(i).label=r,this.classes.get(i).text=`${r}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(e){const r=qt.sanitizeText(e,Ke()),{className:n,type:i}=this.splitClassNameAndType(r);if(this.classes.has(n))return;const a=qt.sanitizeText(n,Ke());this.classes.set(a,{id:a,type:i,label:a,text:`${a}${i?`<${i}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:O3+a+"-"+zoe}),zoe++}addInterface(e,r){const n={id:`interface${this.interfaces.length}`,label:e,classId:r};this.interfaces.push(n)}setDiagramId(e){this.diagramId=e}lookUpDomId(e){const r=qt.sanitizeText(e,Ke());if(this.classes.has(r)){const n=this.classes.get(r).domId;return this.diagramId?`${this.diagramId}-${n}`:n}throw new Error("Class not found: "+r)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",oi()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(e){const r=typeof e=="number"?`note${e}`:e;return this.notes.get(r)}getNotes(){return this.notes}addRelation(e){ge.debug("Adding relation: "+JSON.stringify(e));const r=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];e.relation.type1===this.relationType.LOLLIPOP&&!r.includes(e.relation.type2)?(this.addClass(e.id2),this.addInterface(e.id1,e.id2),e.id1=`interface${this.interfaces.length-1}`):e.relation.type2===this.relationType.LOLLIPOP&&!r.includes(e.relation.type1)?(this.addClass(e.id1),this.addInterface(e.id2,e.id1),e.id2=`interface${this.interfaces.length-1}`):(this.addClass(e.id1),this.addClass(e.id2)),e.id1=this.splitClassNameAndType(e.id1).className,e.id2=this.splitClassNameAndType(e.id2).className,e.relationTitle1=qt.sanitizeText(e.relationTitle1.trim(),Ke()),e.relationTitle2=qt.sanitizeText(e.relationTitle2.trim(),Ke()),this.relations.push(e)}addAnnotation(e,r){const n=this.splitClassNameAndType(e).className;this.classes.get(n).annotations.push(r)}addMember(e,r){this.addClass(e);const n=this.splitClassNameAndType(e).className,i=this.classes.get(n);if(typeof r=="string"){const a=r.trim();a.startsWith("<<")&&a.endsWith(">>")?i.annotations.push(gf(a.substring(2,a.length-2))):a.indexOf(")")>0?i.methods.push(new $oe(a,"method")):a&&i.members.push(new $oe(a,"attribute"))}}addMembers(e,r){Array.isArray(r)&&(r.reverse(),r.forEach(n=>this.addMember(e,n)))}addNote(e,r){const n=this.notes.size,i={id:`note${n}`,class:r,text:e,index:n};return this.notes.set(i.id,i),i.id}cleanupLabel(e){return e.startsWith(":")&&(e=e.substring(1)),gf(e.trim())}setCssClass(e,r){e.split(",").forEach(n=>{let i=n;/\d/.exec(n[0])&&(i=O3+i);const a=this.classes.get(i);a&&(a.cssClasses+=" "+r)})}defineClass(e,r){for(const n of e){let i=this.styleClasses.get(n);i===void 0&&(i={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,i)),r&&r.forEach(a=>{if(/color/.exec(a)){const s=a.replace("fill","bgFill");i.textStyles.push(s)}i.styles.push(a)}),this.classes.forEach(a=>{a.cssClasses.includes(n)&&a.styles.push(...r.flatMap(s=>s.split(",")))})}}setTooltip(e,r){e.split(",").forEach(n=>{r!==void 0&&(this.classes.get(n).tooltip=gf(r))})}getTooltip(e,r){return r&&this.namespaces.has(r)?this.namespaces.get(r).classes.get(e).tooltip:this.classes.get(e).tooltip}setLink(e,r,n){const i=Ke();e.split(",").forEach(a=>{let s=a;/\d/.exec(a[0])&&(s=O3+s);const o=this.classes.get(s);o&&(o.link=Wr.formatUrl(r,i),i.securityLevel==="sandbox"?o.linkTarget="_top":typeof n=="string"?o.linkTarget=gf(n):o.linkTarget="_blank")}),this.setCssClass(e,"clickable")}setClickEvent(e,r,n){e.split(",").forEach(i=>{this.setClickFunc(i,r,n),this.classes.get(i).haveCallback=!0}),this.setCssClass(e,"clickable")}setClickFunc(e,r,n){const i=qt.sanitizeText(e,Ke());if(Ke().securityLevel!=="loose"||r===void 0)return;const s=i;if(this.classes.has(s)){let o=[];if(typeof n=="string"){o=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l{const l=this.lookUpDomId(s),u=document.querySelector(`[id="${l}"]`);u!==null&&u.addEventListener("click",()=>{Wr.runFunc(r,...o)},!1)})}}bindFunctions(e){this.functions.forEach(r=>{r(e)})}escapeHtml(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(e){this.direction=e}static resolveQualifiedId(e,r){const n=r.at(-1);return n?`${n}.${e}`:e}static getAncestorIds(e){const r=e.split("."),n=new Array(r.length);n[0]=r[0];for(let i=1;i0?a[s-1]:void 0,u=s===a.length-1,d=u&&r?r:i[s];this.namespaces.has(o)?u&&(this.namespaces.get(o).explicit=!0):this.namespaces.set(o,this.createNamespaceNode(o,d,l,u)),l&&this.linkParentChild(l,o)}return n}popNamespace(){this.namespaceStack.pop()}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,r,n){if(this.namespaces.has(e)){for(const i of r){const{className:a}=this.splitClassNameAndType(i),s=this.getClass(a);s.parent=e,this.namespaces.get(e).classes.set(a,s)}for(const i of n){const a=this.getNote(i);a.parent=e,this.namespaces.get(e).notes.set(i,a)}}}setCssStyle(e,r){const n=this.classes.get(e);if(!(!r||!n))for(const i of r)i.includes(",")?n.styles.push(...i.split(",")):n.styles.push(i)}getArrowMarker(e){let r;switch(e){case 0:r="aggregation";break;case 1:r="extension";break;case 2:r="composition";break;case 3:r="dependency";break;case 4:r="lollipop";break;default:r="none"}return r}resolveExplicitAncestor(e){let r=e;for(;r;){const n=this.namespaces.get(r);if(!n)return;if(n.explicit)return r;r=n.parent}}getData(){const e=[],r=[],n=Ke(),i=n.class?.hierarchicalNamespaces??!0;for(const s of this.namespaces.values()){if(!i&&!s.explicit)continue;const o={id:s.id,label:i?s.label:s.id,isGroup:!0,padding:n.class.padding??16,shape:"rect",cssStyles:[],look:n.look,parentId:i?s.parent:void 0};e.push(o)}for(const s of this.classes.values()){const o=i?s.parent:this.resolveExplicitAncestor(s.parent),l={...s,type:void 0,isGroup:!1,parentId:o,look:n.look};e.push(l)}for(const s of this.notes.values()){const o=i?s.parent:this.resolveExplicitAncestor(s.parent),l={id:s.id,label:s.text,isGroup:!1,shape:"note",padding:n.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${n.themeVariables.noteBkgColor}`,`stroke: ${n.themeVariables.noteBorderColor}`],look:n.look,parentId:o,labelType:"markdown"};e.push(l);const u=this.classes.get(s.class)?.id;if(u){const d={id:`edgeNote${s.index}`,start:s.id,end:u,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:n.look};r.push(d)}}for(const s of this.interfaces){const o={id:s.id,label:s.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:n.look};e.push(o)}let a=0;for(const s of this.relations){a++;const o={id:Vm(s.id1,s.id2,{prefix:"id",counter:a}),start:s.id1,end:s.id2,type:"normal",label:s.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(s.relation.type1),arrowTypeEnd:this.getArrowMarker(s.relation.type2),startLabelRight:s.relationTitle1==="none"?"":s.relationTitle1,endLabelLeft:s.relationTitle2==="none"?"":s.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:s.style||"",pattern:s.relation.lineType==1?"dashed":"solid",look:n.look,labelType:"markdown"};r.push(o)}return{nodes:e,edges:r,other:{},config:n,direction:this.getDirection()}}},S(Qd,"ClassDB"),Qd),URt=S(t=>`g.classGroup text { fill: ${t.nodeBorder||t.classText}; stroke: none; font-family: ${t.fontFamily}; @@ -6286,12 +6286,12 @@ g.classGroup line { text-align: center; } ${OT()} -`,"getStyles"),lAe=zRt,URt=S((t,e="TB")=>{if(!t.doc)return e;let r=e;for(const n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir"),GRt=S(function(t,e){return e.db.getClasses()},"getClasses"),qRt=S(async function(t,e,r,n){ge.info("REF0:"),ge.info("Drawing class diagram (v3)",e);const{securityLevel:i,state:a,layout:s}=Ke();n.db.setDiagramId(e);const o=n.db.getData(),l=o2(e,i);o.type=n.type,o.layoutAlgorithm=uT(s),o.nodeSpacing=a?.nodeSpacing||50,o.rankSpacing=a?.rankSpacing||50,o.markers=["aggregation","extension","composition","dependency","lollipop"],o.diagramId=e,await Yb(o,l);const u=8;Wr.insertTitle(l,"classDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),sg(l,u,"classDiagram",a?.useMaxWidth??!0)},"draw"),cAe={getClasses:GRt,draw:qRt,getDir:URt},YRt={parser:sAe,get db(){return new oAe},renderer:cAe,styles:lAe,init:S(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const HRt=Object.freeze(Object.defineProperty({__proto__:null,diagram:YRt},Symbol.toStringTag,{value:"Module"}));var VRt={parser:sAe,get db(){return new oAe},renderer:cAe,styles:lAe,init:S(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const WRt=Object.freeze(Object.defineProperty({__proto__:null,diagram:VRt},Symbol.toStringTag,{value:"Module"}));var tz=(function(){var t=S(function(P,z,B,q){for(B=B||{},q=P.length;q--;B[P[q]]=z);return B},"o"),e=[1,2],r=[1,3],n=[1,4],i=[2,4],a=[1,9],s=[1,11],o=[1,16],l=[1,17],u=[1,18],d=[1,19],h=[1,33],f=[1,20],p=[1,21],g=[1,22],m=[1,23],y=[1,24],v=[1,26],b=[1,27],_=[1,28],E=[1,29],x=[1,30],C=[1,31],T=[1,32],w=[1,35],N=[1,36],O=[1,37],M=[1,38],$=[1,34],F=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],A=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],I=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],D={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:S(function(z,B,q,Y,Q,H,J){var Z=H.length-1;switch(Q){case 3:return Y.setRootDoc(H[Z]),H[Z];case 4:this.$=[];break;case 5:H[Z]!="nl"&&(H[Z-1].push(H[Z]),this.$=H[Z-1]);break;case 6:case 7:this.$=H[Z];break;case 8:this.$="nl";break;case 12:this.$=H[Z];break;case 13:const ae=H[Z-1];ae.description=Y.trimColon(H[Z]),this.$=ae;break;case 14:this.$={stmt:"relation",state1:H[Z-2],state2:H[Z]};break;case 15:const se=Y.trimColon(H[Z]);this.$={stmt:"relation",state1:H[Z-3],state2:H[Z-1],description:se};break;case 19:this.$={stmt:"state",id:H[Z-3],type:"default",description:"",doc:H[Z-1]};break;case 20:var pe=H[Z],re=H[Z-2].trim();if(H[Z].match(":")){var ce=H[Z].split(":");pe=ce[0],re=[re,ce[1]]}this.$={stmt:"state",id:pe,type:"default",description:re};break;case 21:this.$={stmt:"state",id:H[Z-3],type:"default",description:H[Z-5],doc:H[Z-1]};break;case 22:this.$={stmt:"state",id:H[Z],type:"fork"};break;case 23:this.$={stmt:"state",id:H[Z],type:"join"};break;case 24:this.$={stmt:"state",id:H[Z],type:"choice"};break;case 25:this.$={stmt:"state",id:Y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:H[Z-1].trim(),note:{position:H[Z-2].trim(),text:H[Z].trim()}};break;case 29:this.$=H[Z].trim(),Y.setAccTitle(this.$);break;case 30:case 31:this.$=H[Z].trim(),Y.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:H[Z-3],url:H[Z-2],tooltip:H[Z-1]};break;case 33:this.$={stmt:"click",id:H[Z-3],url:H[Z-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:H[Z-1].trim(),classes:H[Z].trim()};break;case 36:this.$={stmt:"style",id:H[Z-1].trim(),styleClass:H[Z].trim()};break;case 37:this.$={stmt:"applyClass",id:H[Z-1].trim(),styleClass:H[Z].trim()};break;case 38:Y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:Y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:Y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:Y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:H[Z].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:H[Z-2].trim(),classes:[H[Z].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:H[Z-2].trim(),classes:[H[Z].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:r,6:n},{1:[3]},{3:5,4:e,5:r,6:n},{3:6,4:e,5:r,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:u,22:d,24:h,25:f,26:p,27:g,28:m,29:y,32:25,33:v,35:b,37:_,38:E,41:x,45:C,48:T,51:w,52:N,53:O,54:M,57:$},t(F,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:o,17:l,19:u,22:d,24:h,25:f,26:p,27:g,28:m,29:y,32:25,33:v,35:b,37:_,38:E,41:x,45:C,48:T,51:w,52:N,53:O,54:M,57:$},t(F,[2,7]),t(F,[2,8]),t(F,[2,9]),t(F,[2,10]),t(F,[2,11]),t(F,[2,12],{14:[1,40],15:[1,41]}),t(F,[2,16]),{18:[1,42]},t(F,[2,18],{20:[1,43]}),{23:[1,44]},t(F,[2,22]),t(F,[2,23]),t(F,[2,24]),t(F,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(F,[2,28]),{34:[1,49]},{36:[1,50]},t(F,[2,31]),{13:51,24:h,57:$},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(A,[2,44],{58:[1,56]}),t(A,[2,45],{58:[1,57]}),t(F,[2,38]),t(F,[2,39]),t(F,[2,40]),t(F,[2,41]),t(F,[2,6]),t(F,[2,13]),{13:58,24:h,57:$},t(F,[2,17]),t(I,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(F,[2,29]),t(F,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(F,[2,14],{14:[1,71]}),{4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:u,21:[1,72],22:d,24:h,25:f,26:p,27:g,28:m,29:y,32:25,33:v,35:b,37:_,38:E,41:x,45:C,48:T,51:w,52:N,53:O,54:M,57:$},t(F,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(F,[2,34]),t(F,[2,35]),t(F,[2,36]),t(F,[2,37]),t(A,[2,46]),t(A,[2,47]),t(F,[2,15]),t(F,[2,19]),t(I,i,{7:78}),t(F,[2,26]),t(F,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:u,21:[1,81],22:d,24:h,25:f,26:p,27:g,28:m,29:y,32:25,33:v,35:b,37:_,38:E,41:x,45:C,48:T,51:w,52:N,53:O,54:M,57:$},t(F,[2,32]),t(F,[2,33]),t(F,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:S(function(z,B){if(B.recoverable)this.trace(z);else{var q=new Error(z);throw q.hash=B,q}},"parseError"),parse:S(function(z){var B=this,q=[0],Y=[],Q=[null],H=[],J=this.table,Z="",pe=0,re=0,ce=2,ae=1,se=H.slice.call(arguments,1),xe=Object.create(this.lexer),Te={yy:{}};for(var Ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ge)&&(Te.yy[Ge]=this.yy[Ge]);xe.setInput(z,Te.yy),Te.yy.lexer=xe,Te.yy.parser=this,typeof xe.yylloc>"u"&&(xe.yylloc={});var ze=xe.yylloc;H.push(ze);var Xe=xe.options&&xe.options.ranges;typeof Te.yy.parseError=="function"?this.parseError=Te.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(U){q.length=q.length-2*U,Q.length=Q.length-U,H.length=H.length-U}S(Le,"popStack");function Re(){var U;return U=Y.pop()||xe.lex()||ae,typeof U!="number"&&(U instanceof Array&&(Y=U,U=Y.pop()),U=B.symbols_[U]||U),U}S(Re,"lex");for(var qe,Ne,ut,De,Je={},st,ct,ot,it;;){if(Ne=q[q.length-1],this.defaultActions[Ne]?ut=this.defaultActions[Ne]:((qe===null||typeof qe>"u")&&(qe=Re()),ut=J[Ne]&&J[Ne][qe]),typeof ut>"u"||!ut.length||!ut[0]){var Oe="";it=[];for(st in J[Ne])this.terminals_[st]&&st>ce&&it.push("'"+this.terminals_[st]+"'");xe.showPosition?Oe="Parse error on line "+(pe+1)+`: +`,"getStyles"),lAe=URt,GRt=S((t,e="TB")=>{if(!t.doc)return e;let r=e;for(const n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir"),qRt=S(function(t,e){return e.db.getClasses()},"getClasses"),YRt=S(async function(t,e,r,n){ge.info("REF0:"),ge.info("Drawing class diagram (v3)",e);const{securityLevel:i,state:a,layout:s}=Ke();n.db.setDiagramId(e);const o=n.db.getData(),l=o2(e,i);o.type=n.type,o.layoutAlgorithm=uT(s),o.nodeSpacing=a?.nodeSpacing||50,o.rankSpacing=a?.rankSpacing||50,o.markers=["aggregation","extension","composition","dependency","lollipop"],o.diagramId=e,await Yb(o,l);const u=8;Wr.insertTitle(l,"classDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),sg(l,u,"classDiagram",a?.useMaxWidth??!0)},"draw"),cAe={getClasses:qRt,draw:YRt,getDir:GRt},HRt={parser:sAe,get db(){return new oAe},renderer:cAe,styles:lAe,init:S(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const VRt=Object.freeze(Object.defineProperty({__proto__:null,diagram:HRt},Symbol.toStringTag,{value:"Module"}));var WRt={parser:sAe,get db(){return new oAe},renderer:cAe,styles:lAe,init:S(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const KRt=Object.freeze(Object.defineProperty({__proto__:null,diagram:WRt},Symbol.toStringTag,{value:"Module"}));var tz=(function(){var t=S(function(P,z,B,q){for(B=B||{},q=P.length;q--;B[P[q]]=z);return B},"o"),e=[1,2],r=[1,3],n=[1,4],i=[2,4],a=[1,9],s=[1,11],o=[1,16],l=[1,17],u=[1,18],d=[1,19],h=[1,33],f=[1,20],p=[1,21],g=[1,22],m=[1,23],y=[1,24],v=[1,26],b=[1,27],_=[1,28],E=[1,29],x=[1,30],C=[1,31],T=[1,32],w=[1,35],N=[1,36],O=[1,37],M=[1,38],$=[1,34],F=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],A=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],I=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],D={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:S(function(z,B,q,Y,Q,H,J){var Z=H.length-1;switch(Q){case 3:return Y.setRootDoc(H[Z]),H[Z];case 4:this.$=[];break;case 5:H[Z]!="nl"&&(H[Z-1].push(H[Z]),this.$=H[Z-1]);break;case 6:case 7:this.$=H[Z];break;case 8:this.$="nl";break;case 12:this.$=H[Z];break;case 13:const ae=H[Z-1];ae.description=Y.trimColon(H[Z]),this.$=ae;break;case 14:this.$={stmt:"relation",state1:H[Z-2],state2:H[Z]};break;case 15:const se=Y.trimColon(H[Z]);this.$={stmt:"relation",state1:H[Z-3],state2:H[Z-1],description:se};break;case 19:this.$={stmt:"state",id:H[Z-3],type:"default",description:"",doc:H[Z-1]};break;case 20:var pe=H[Z],re=H[Z-2].trim();if(H[Z].match(":")){var ce=H[Z].split(":");pe=ce[0],re=[re,ce[1]]}this.$={stmt:"state",id:pe,type:"default",description:re};break;case 21:this.$={stmt:"state",id:H[Z-3],type:"default",description:H[Z-5],doc:H[Z-1]};break;case 22:this.$={stmt:"state",id:H[Z],type:"fork"};break;case 23:this.$={stmt:"state",id:H[Z],type:"join"};break;case 24:this.$={stmt:"state",id:H[Z],type:"choice"};break;case 25:this.$={stmt:"state",id:Y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:H[Z-1].trim(),note:{position:H[Z-2].trim(),text:H[Z].trim()}};break;case 29:this.$=H[Z].trim(),Y.setAccTitle(this.$);break;case 30:case 31:this.$=H[Z].trim(),Y.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:H[Z-3],url:H[Z-2],tooltip:H[Z-1]};break;case 33:this.$={stmt:"click",id:H[Z-3],url:H[Z-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:H[Z-1].trim(),classes:H[Z].trim()};break;case 36:this.$={stmt:"style",id:H[Z-1].trim(),styleClass:H[Z].trim()};break;case 37:this.$={stmt:"applyClass",id:H[Z-1].trim(),styleClass:H[Z].trim()};break;case 38:Y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:Y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:Y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:Y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:H[Z].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:H[Z-2].trim(),classes:[H[Z].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:H[Z-2].trim(),classes:[H[Z].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:r,6:n},{1:[3]},{3:5,4:e,5:r,6:n},{3:6,4:e,5:r,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:u,22:d,24:h,25:f,26:p,27:g,28:m,29:y,32:25,33:v,35:b,37:_,38:E,41:x,45:C,48:T,51:w,52:N,53:O,54:M,57:$},t(F,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:o,17:l,19:u,22:d,24:h,25:f,26:p,27:g,28:m,29:y,32:25,33:v,35:b,37:_,38:E,41:x,45:C,48:T,51:w,52:N,53:O,54:M,57:$},t(F,[2,7]),t(F,[2,8]),t(F,[2,9]),t(F,[2,10]),t(F,[2,11]),t(F,[2,12],{14:[1,40],15:[1,41]}),t(F,[2,16]),{18:[1,42]},t(F,[2,18],{20:[1,43]}),{23:[1,44]},t(F,[2,22]),t(F,[2,23]),t(F,[2,24]),t(F,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(F,[2,28]),{34:[1,49]},{36:[1,50]},t(F,[2,31]),{13:51,24:h,57:$},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(A,[2,44],{58:[1,56]}),t(A,[2,45],{58:[1,57]}),t(F,[2,38]),t(F,[2,39]),t(F,[2,40]),t(F,[2,41]),t(F,[2,6]),t(F,[2,13]),{13:58,24:h,57:$},t(F,[2,17]),t(I,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(F,[2,29]),t(F,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(F,[2,14],{14:[1,71]}),{4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:u,21:[1,72],22:d,24:h,25:f,26:p,27:g,28:m,29:y,32:25,33:v,35:b,37:_,38:E,41:x,45:C,48:T,51:w,52:N,53:O,54:M,57:$},t(F,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(F,[2,34]),t(F,[2,35]),t(F,[2,36]),t(F,[2,37]),t(A,[2,46]),t(A,[2,47]),t(F,[2,15]),t(F,[2,19]),t(I,i,{7:78}),t(F,[2,26]),t(F,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:u,21:[1,81],22:d,24:h,25:f,26:p,27:g,28:m,29:y,32:25,33:v,35:b,37:_,38:E,41:x,45:C,48:T,51:w,52:N,53:O,54:M,57:$},t(F,[2,32]),t(F,[2,33]),t(F,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:S(function(z,B){if(B.recoverable)this.trace(z);else{var q=new Error(z);throw q.hash=B,q}},"parseError"),parse:S(function(z){var B=this,q=[0],Y=[],Q=[null],H=[],J=this.table,Z="",pe=0,re=0,ce=2,ae=1,se=H.slice.call(arguments,1),xe=Object.create(this.lexer),Te={yy:{}};for(var Ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ge)&&(Te.yy[Ge]=this.yy[Ge]);xe.setInput(z,Te.yy),Te.yy.lexer=xe,Te.yy.parser=this,typeof xe.yylloc>"u"&&(xe.yylloc={});var ze=xe.yylloc;H.push(ze);var Xe=xe.options&&xe.options.ranges;typeof Te.yy.parseError=="function"?this.parseError=Te.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(U){q.length=q.length-2*U,Q.length=Q.length-U,H.length=H.length-U}S(Le,"popStack");function Re(){var U;return U=Y.pop()||xe.lex()||ae,typeof U!="number"&&(U instanceof Array&&(Y=U,U=Y.pop()),U=B.symbols_[U]||U),U}S(Re,"lex");for(var qe,Ne,ut,De,Je={},st,ct,ot,it;;){if(Ne=q[q.length-1],this.defaultActions[Ne]?ut=this.defaultActions[Ne]:((qe===null||typeof qe>"u")&&(qe=Re()),ut=J[Ne]&&J[Ne][qe]),typeof ut>"u"||!ut.length||!ut[0]){var Oe="";it=[];for(st in J[Ne])this.terminals_[st]&&st>ce&&it.push("'"+this.terminals_[st]+"'");xe.showPosition?Oe="Parse error on line "+(pe+1)+`: `+xe.showPosition()+` Expecting `+it.join(", ")+", got '"+(this.terminals_[qe]||qe)+"'":Oe="Parse error on line "+(pe+1)+": Unexpected "+(qe==ae?"end of input":"'"+(this.terminals_[qe]||qe)+"'"),this.parseError(Oe,{text:xe.match,token:this.terminals_[qe]||qe,line:xe.yylineno,loc:ze,expected:it})}if(ut[0]instanceof Array&&ut.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ne+", token: "+qe);switch(ut[0]){case 1:q.push(qe),Q.push(xe.yytext),H.push(xe.yylloc),q.push(ut[1]),qe=null,re=xe.yyleng,Z=xe.yytext,pe=xe.yylineno,ze=xe.yylloc;break;case 2:if(ct=this.productions_[ut[1]][1],Je.$=Q[Q.length-ct],Je._$={first_line:H[H.length-(ct||1)].first_line,last_line:H[H.length-1].last_line,first_column:H[H.length-(ct||1)].first_column,last_column:H[H.length-1].last_column},Xe&&(Je._$.range=[H[H.length-(ct||1)].range[0],H[H.length-1].range[1]]),De=this.performAction.apply(Je,[Z,re,pe,Te.yy,ut[1],Q,H].concat(se)),typeof De<"u")return De;ct&&(q=q.slice(0,-1*ct*2),Q=Q.slice(0,-1*ct),H=H.slice(0,-1*ct)),q.push(this.productions_[ut[1]][0]),Q.push(Je.$),H.push(Je._$),ot=J[q[q.length-2]][q[q.length-1]],q.push(ot);break;case 3:return!0}}return!0},"parse")},L=(function(){var P={EOF:1,parseError:S(function(B,q){if(this.yy.parser)this.yy.parser.parseError(B,q);else throw new Error(B)},"parseError"),setInput:S(function(z,B){return this.yy=B||this.yy||{},this._input=z,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var z=this._input[0];this.yytext+=z,this.yyleng++,this.offset++,this.match+=z,this.matched+=z;var B=z.match(/(?:\r\n?|\n).*/g);return B?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),z},"input"),unput:S(function(z){var B=z.length,q=z.split(/(?:\r\n?|\n)/g);this._input=z+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-B),this.offset-=B;var Y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),q.length-1&&(this.yylineno-=q.length-1);var Q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:q?(q.length===Y.length?this.yylloc.first_column:0)+Y[Y.length-q.length].length-q[0].length:this.yylloc.first_column-B},this.options.ranges&&(this.yylloc.range=[Q[0],Q[0]+this.yyleng-B]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(z){this.unput(this.match.slice(z))},"less"),pastInput:S(function(){var z=this.matched.substr(0,this.matched.length-this.match.length);return(z.length>20?"...":"")+z.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var z=this.match;return z.length<20&&(z+=this._input.substr(0,20-z.length)),(z.substr(0,20)+(z.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var z=this.pastInput(),B=new Array(z.length+1).join("-");return z+this.upcomingInput()+` `+B+"^"},"showPosition"),test_match:S(function(z,B){var q,Y,Q;if(this.options.backtrack_lexer&&(Q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Q.yylloc.range=this.yylloc.range.slice(0))),Y=z[0].match(/(?:\r\n?|\n).*/g),Y&&(this.yylineno+=Y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Y?Y[Y.length-1].length-Y[Y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+z[0].length},this.yytext+=z[0],this.match+=z[0],this.matches=z,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(z[0].length),this.matched+=z[0],q=this.performAction.call(this,this.yy,this,B,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),q)return q;if(this._backtrack){for(var H in Q)this[H]=Q[H];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var z,B,q,Y;this._more||(this.yytext="",this.match="");for(var Q=this._currentRules(),H=0;HB[0].length)){if(B=q,Y=H,this.options.backtrack_lexer){if(z=this.test_match(q,Q[H]),z!==!1)return z;if(this._backtrack){B=!1;continue}else return!1}else if(!this.options.flex)break}return B?(z=this.test_match(B,Q[Y]),z!==!1?z:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var B=this.next();return B||this.lex()},"lex"),begin:S(function(B){this.conditionStack.push(B)},"begin"),popState:S(function(){var B=this.conditionStack.length-1;return B>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(B){return B=this.conditionStack.length-1-Math.abs(B||0),B>=0?this.conditionStack[B]:"INITIAL"},"topState"),pushState:S(function(B){this.begin(B)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(B,q,Y,Q){function H(){const J=q.yytext.indexOf("%%");if(J===0)return!1;if(J>0){const Z=q.yytext.slice(0,J),pe=q.yytext.slice(J);pe&&B.lexer.unput(pe),q.yytext=Z}return!0}switch(S(H,"processId"),Y){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 33:return this.pushState("SCALE"),17;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),q.yytext=q.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),q.yytext=q.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),q.yytext=q.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),q.yytext=q.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),q.yytext=q.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),q.yytext=q.yytext.slice(0,-10).trim(),27;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:return H()?(this.popState(),"ID"):void 0;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:return 19;case 53:this.popState();break;case 54:return this.popState(),this.pushState("struct"),20;case 55:return this.popState(),21;case 56:break;case 57:return this.begin("NOTE"),29;case 58:return this.popState(),this.pushState("NOTE_ID"),59;case 59:return this.popState(),this.pushState("NOTE_ID"),60;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 62:break;case 63:return"NOTE_TEXT";case 64:return H()?(this.popState(),"ID"):void 0;case 65:return H()?(this.popState(),this.pushState("NOTE_TEXT"),24):void 0;case 66:return this.popState(),q.yytext=q.yytext.substr(2).trim(),31;case 67:return this.popState(),q.yytext=q.yytext.slice(0,-8).trim(),31;case 68:return 6;case 69:return 6;case 70:return 16;case 71:return 57;case 72:return H()?24:void 0;case 73:return q.yytext=q.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 58;case 77:return 5;case 78:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,55,56,57,71,72,73,74,75,76],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,54,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}};return P})();D.lexer=L;function R(){this.yy={}}return S(R,"Parser"),R.prototype=D,D.Parser=R,new R})();tz.parser=tz;var uAe=tz,KRt="TB",dAe="TB",Uoe="dir",vm="state",jg="root",rz="relation",XRt="classDef",jRt="style",QRt="applyClass",ES="default",hAe="divider",fAe="fill:none",pAe="fill: #333",gAe="c",mAe="markdown",yAe="normal",WL="rect",KL="rectWithTitle",ZRt="stateStart",JRt="stateEnd",Goe="divider",qoe="roundedWithTitle",eNt="note",tNt="noteGroup",ix="statediagram",rNt="state",nNt=`${ix}-${rNt}`,vAe="transition",iNt="note",aNt="note-edge",sNt=`${vAe} ${aNt}`,oNt=`${ix}-${iNt}`,lNt="cluster",cNt=`${ix}-${lNt}`,uNt="cluster-alt",dNt=`${ix}-${uNt}`,_Ae="parent",bAe="note",hNt="state",_W="----",fNt=`${_W}${bAe}`,Yoe=`${_W}${_Ae}`,EAe=S((t,e=dAe)=>{if(!t.doc)return e;let r=e;for(const n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir"),pNt=S(function(t,e){return e.db.getClasses()},"getClasses"),gNt=S(async function(t,e,r,n){ge.info("REF0:"),ge.info("Drawing state diagram (v2)",e);const{securityLevel:i,state:a,layout:s}=Ke();n.db.extract(n.db.getRootDocV2());const o=n.db.getData(),l=o2(e,i);o.type=n.type,o.layoutAlgorithm=s,o.nodeSpacing=a?.nodeSpacing||50,o.rankSpacing=a?.rankSpacing||50,Ke().look==="neo"?o.markers=["barbNeo"]:o.markers=["barb"],o.diagramId=e,await Yb(o,l);const d=8;try{(typeof n.db.getLinks=="function"?n.db.getLinks():new Map).forEach((f,p)=>{const g=typeof p=="string"?p:typeof p?.id=="string"?p.id:"";if(!g){ge.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(p));return}const m=l.node()?.querySelectorAll("g");let y;if(m?.forEach(E=>{E.textContent?.trim()===g&&(y=E)}),!y){ge.warn("⚠️ Could not find node matching text:",g);return}const v=y.parentNode;if(!v){ge.warn("⚠️ Node has no parent, cannot wrap:",g);return}const b=document.createElementNS("http://www.w3.org/2000/svg","a"),_=f.url.replace(/^"+|"+$/g,"");if(b.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",_),b.setAttribute("target","_blank"),f.tooltip){const E=f.tooltip.replace(/^"+|"+$/g,"");b.setAttribute("title",E)}v.replaceChild(b,y),b.appendChild(y),ge.info("🔗 Wrapped node in
tag for:",g,f.url)})}catch(h){ge.error("❌ Error injecting clickable links:",h)}Wr.insertTitle(l,"statediagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),sg(l,d,ix,a?.useMaxWidth??!0)},"draw"),mNt={getClasses:pNt,draw:gNt,getDir:EAe},J5=new Map,Od=0;function eC(t="",e=0,r="",n=_W){const i=r!==null&&r.length>0?`${n}${r}`:"";return`${hNt}-${t}${i}-${e}`}S(eC,"stateDomId");var yNt=S((t,e,r,n,i,a,s,o)=>{ge.trace("items",e),e.forEach(l=>{switch(l.stmt){case vm:ME(t,l,r,n,i,a,s,o);break;case ES:ME(t,l,r,n,i,a,s,o);break;case rz:{ME(t,l.state1,r,n,i,a,s,o),ME(t,l.state2,r,n,i,a,s,o);const u=s==="neo",d={id:"edge"+Od,start:l.state1.id,end:l.state2.id,arrowhead:"normal",arrowTypeEnd:u?"arrow_barb_neo":"arrow_barb",style:fAe,labelStyle:"",label:qt.sanitizeText(l.description??"",Ke()),arrowheadStyle:pAe,labelpos:gAe,labelType:mAe,thickness:yAe,classes:vAe,look:s};i.push(d),Od++}break}})},"setupDoc"),Hoe=S((t,e=dAe)=>{let r=e;if(t.doc)for(const n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir");function LE(t,e,r){if(!e.id||e.id===""||e.id==="")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(i=>{const a=r.get(i);a&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...a.styles])}));const n=t.find(i=>i.id===e.id);n?Object.assign(n,e):t.push(e)}S(LE,"insertOrUpdateNode");function SAe(t){return t?.classes?.join(" ")??""}S(SAe,"getClassesFromDbInfo");function TAe(t){return t?.styles??[]}S(TAe,"getStylesFromDbInfo");var ME=S((t,e,r,n,i,a,s,o)=>{const l=e.id,u=r.get(l),d=SAe(u),h=TAe(u),f=Ke();if(ge.info("dataFetcher parsedItem",e,u,h),l!=="root"){let p=WL;e.start===!0?p=ZRt:e.start===!1&&(p=JRt),e.type!==ES&&(p=e.type),J5.get(l)||J5.set(l,{id:l,shape:p,description:qt.sanitizeText(l,f),cssClasses:`${d} ${nNt}`,cssStyles:h});const g=J5.get(l);e.description&&(Array.isArray(g.description)?(g.shape=KL,g.description.push(e.description)):g.description?.length&&g.description.length>0?(g.shape=KL,g.description===l?g.description=[e.description]:g.description=[g.description,e.description]):(g.shape=WL,g.description=e.description),g.description=qt.sanitizeTextOrArray(g.description,f)),g.description?.length===1&&g.shape===KL&&(g.type==="group"?g.shape=qoe:g.shape=WL),!g.type&&e.doc&&(ge.info("Setting cluster for XCX",l,Hoe(e)),g.type="group",g.isGroup=!0,g.dir=Hoe(e),g.shape=e.type===hAe?Goe:qoe,g.cssClasses=`${g.cssClasses} ${cNt} ${a?dNt:""}`);const m={labelStyle:"",shape:g.shape,label:g.description,cssClasses:g.cssClasses,cssCompiledStyles:[],cssStyles:g.cssStyles,id:l,dir:g.dir,domId:eC(l,Od),type:g.type,isGroup:g.type==="group",padding:8,rx:10,ry:10,look:s,labelType:"markdown"};if(m.shape===Goe&&(m.label=""),t&&t.id!=="root"&&(ge.trace("Setting node ",l," to be child of its parent ",t.id),m.parentId=t.id),m.centerLabel=!0,e.note){const y={labelStyle:"",shape:eNt,label:e.note.text,labelType:"markdown",cssClasses:oNt,cssStyles:[],cssCompiledStyles:[],id:l+fNt+"-"+Od,domId:eC(l,Od,bAe),type:g.type,isGroup:g.type==="group",padding:f.flowchart?.padding,look:s,position:e.note.position},v=l+Yoe,b={labelStyle:"",shape:tNt,label:e.note.text,cssClasses:g.cssClasses,cssStyles:[],id:l+Yoe,domId:eC(l,Od,_Ae),type:"group",isGroup:!0,padding:16,look:s,position:e.note.position};Od++,b.id=v,y.parentId=v,LE(n,b,o),LE(n,y,o),LE(n,m,o);let _=l,E=y.id;e.note.position==="left of"&&(_=y.id,E=l),i.push({id:_+"-"+E,start:_,end:E,arrowhead:"none",arrowTypeEnd:"",style:fAe,labelStyle:"",classes:sNt,arrowheadStyle:pAe,labelpos:gAe,labelType:mAe,thickness:yAe,look:s})}else LE(n,m,o)}e.doc&&(ge.trace("Adding nodes children "),yNt(e,e.doc,r,n,i,!a,s,o))},"dataFetcher"),vNt=S(()=>{J5.clear(),Od=0},"reset"),Cs={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},Voe=S(()=>new Map,"newClassesList"),Woe=S(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),D3=S(t=>JSON.parse(JSON.stringify(t)),"clone"),vp,Qf=(vp=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Voe(),this.documents={root:Woe()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=yi,this.setAccTitle=ai,this.getAccDescription=_i,this.setAccDescription=vi,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(e){this.clear(!0);for(const i of Array.isArray(e)?e:e.doc)switch(i.stmt){case vm:this.addState(i.id.trim(),i.type,i.doc,i.description,i.note);break;case rz:this.addRelation(i.state1,i.state2,i.description);break;case XRt:this.addStyleClass(i.id.trim(),i.classes);break;case jRt:this.handleStyleDef(i);break;case QRt:this.setCssClass(i.id.trim(),i.styleClass);break;case"click":this.addLink(i.id,i.url,i.tooltip);break}const r=this.getStates(),n=Ke();vNt(),ME(void 0,this.getRootDocV2(),r,this.nodes,this.edges,!0,n.look,this.classes);for(const i of this.nodes)if(Array.isArray(i.label)){if(i.description=i.label.slice(1),i.isGroup&&i.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${i.id}]`);i.label=i.label[0]}}handleStyleDef(e){const r=e.id.trim().split(","),n=e.styleClass.split(",");for(const i of r){let a=this.getState(i);if(!a){const s=i.trim();this.addState(s),a=this.getState(s)}a&&(a.styles=n.map(s=>s.replace(/;/g,"")?.trim()))}}setRootDoc(e){ge.info("Setting root doc",e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,r,n){if(r.stmt===rz){this.docTranslator(e,r.state1,!0),this.docTranslator(e,r.state2,!1);return}if(r.stmt===vm&&(r.id===Cs.START_NODE?(r.id=e.id+(n?"_start":"_end"),r.start=n):r.id=r.id.trim()),r.stmt!==jg&&r.stmt!==vm||!r.doc)return;const i=[];let a=[];for(const s of r.doc)if(s.type===hAe){const o=D3(s);o.doc=D3(a),i.push(o),a=[]}else a.push(s);if(i.length>0&&a.length>0){const s={stmt:vm,id:Wfe(),type:"divider",doc:D3(a)};i.push(D3(s)),r.doc=i}r.doc.forEach(s=>this.docTranslator(r,s,!0))}getRootDocV2(){return this.docTranslator({id:jg,stmt:jg},{id:jg,stmt:jg,doc:this.rootDoc},!0),{id:jg,doc:this.rootDoc}}addState(e,r=ES,n=void 0,i=void 0,a=void 0,s=void 0,o=void 0,l=void 0){const u=e?.trim();if(!this.currentDocument.states.has(u))ge.info("Adding state ",u,i),this.currentDocument.states.set(u,{stmt:vm,id:u,descriptions:[],type:r,doc:n,note:a,classes:[],styles:[],textStyles:[]});else{const d=this.currentDocument.states.get(u);if(!d)throw new Error(`State not found: ${u}`);d.doc||(d.doc=n),d.type||(d.type=r)}if(i&&(ge.info("Setting state description",u,i),(Array.isArray(i)?i:[i]).forEach(h=>this.addDescription(u,h.trim()))),a){const d=this.currentDocument.states.get(u);if(!d)throw new Error(`State not found: ${u}`);d.note=a,d.note.text=qt.sanitizeText(d.note.text,Ke())}s&&(ge.info("Setting state classes",u,s),(Array.isArray(s)?s:[s]).forEach(h=>this.setCssClass(u,h.trim()))),o&&(ge.info("Setting state styles",u,o),(Array.isArray(o)?o:[o]).forEach(h=>this.setStyle(u,h.trim()))),l&&(ge.info("Setting state styles",u,o),(Array.isArray(l)?l:[l]).forEach(h=>this.setTextStyle(u,h.trim())))}clear(e){this.nodes=[],this.edges=[],this.documents={root:Woe()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Voe(),e||(this.links=new Map,oi())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){ge.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,r,n){this.links.set(e,{url:r,tooltip:n}),ge.warn("Adding link",e,r,n)}getLinks(){return this.links}startIdIfNeeded(e=""){return e===Cs.START_NODE?(this.startEndCount++,`${Cs.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e="",r=ES){return e===Cs.START_NODE?Cs.START_TYPE:r}endIdIfNeeded(e=""){return e===Cs.END_NODE?(this.startEndCount++,`${Cs.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e="",r=ES){return e===Cs.END_NODE?Cs.END_TYPE:r}addRelationObjs(e,r,n=""){const i=this.startIdIfNeeded(e.id.trim()),a=this.startTypeIfNeeded(e.id.trim(),e.type),s=this.startIdIfNeeded(r.id.trim()),o=this.startTypeIfNeeded(r.id.trim(),r.type);this.addState(i,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(s,o,r.doc,r.description,r.note,r.classes,r.styles,r.textStyles),this.currentDocument.relations.push({id1:i,id2:s,relationTitle:qt.sanitizeText(n,Ke())})}addRelation(e,r,n){if(typeof e=="object"&&typeof r=="object")this.addRelationObjs(e,r,n);else if(typeof e=="string"&&typeof r=="string"){const i=this.startIdIfNeeded(e.trim()),a=this.startTypeIfNeeded(e),s=this.endIdIfNeeded(r.trim()),o=this.endTypeIfNeeded(r);this.addState(i,a),this.addState(s,o),this.currentDocument.relations.push({id1:i,id2:s,relationTitle:n?qt.sanitizeText(n,Ke()):void 0})}}addDescription(e,r){const n=this.currentDocument.states.get(e),i=r.startsWith(":")?r.replace(":","").trim():r;n?.descriptions?.push(qt.sanitizeText(i,Ke()))}cleanupLabel(e){return e.startsWith(":")?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,r=""){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});const n=this.classes.get(e);r&&n&&r.split(Cs.STYLECLASS_SEP).forEach(i=>{const a=i.replace(/([^;]*);/,"$1").trim();if(RegExp(Cs.COLOR_KEYWORD).exec(i)){const o=a.replace(Cs.FILL_KEYWORD,Cs.BG_FILL).replace(Cs.COLOR_KEYWORD,Cs.FILL_KEYWORD);n.textStyles.push(o)}n.styles.push(a)})}getClasses(){return this.classes}setCssClass(e,r){e.split(",").forEach(n=>{let i=this.getState(n);if(!i){const a=n.trim();this.addState(a),i=this.getState(a)}i?.classes?.push(r)})}setStyle(e,r){this.getState(e)?.styles?.push(r)}setTextStyle(e,r){this.getState(e)?.textStyles?.push(r)}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===Uoe)}getDirection(){return this.getDirectionStatement()?.value??KRt}setDirection(e){const r=this.getDirectionStatement();r?r.value=e:this.rootDoc.unshift({stmt:Uoe,value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){const e=Ke();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:EAe(this.getRootDocV2())}}getConfig(){return Ke().state}},S(vp,"StateDB"),vp.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},vp),_Nt=S(t=>` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var B=this.next();return B||this.lex()},"lex"),begin:S(function(B){this.conditionStack.push(B)},"begin"),popState:S(function(){var B=this.conditionStack.length-1;return B>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(B){return B=this.conditionStack.length-1-Math.abs(B||0),B>=0?this.conditionStack[B]:"INITIAL"},"topState"),pushState:S(function(B){this.begin(B)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(B,q,Y,Q){function H(){const J=q.yytext.indexOf("%%");if(J===0)return!1;if(J>0){const Z=q.yytext.slice(0,J),pe=q.yytext.slice(J);pe&&B.lexer.unput(pe),q.yytext=Z}return!0}switch(S(H,"processId"),Y){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 33:return this.pushState("SCALE"),17;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),q.yytext=q.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),q.yytext=q.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),q.yytext=q.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),q.yytext=q.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),q.yytext=q.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),q.yytext=q.yytext.slice(0,-10).trim(),27;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:return H()?(this.popState(),"ID"):void 0;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:return 19;case 53:this.popState();break;case 54:return this.popState(),this.pushState("struct"),20;case 55:return this.popState(),21;case 56:break;case 57:return this.begin("NOTE"),29;case 58:return this.popState(),this.pushState("NOTE_ID"),59;case 59:return this.popState(),this.pushState("NOTE_ID"),60;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 62:break;case 63:return"NOTE_TEXT";case 64:return H()?(this.popState(),"ID"):void 0;case 65:return H()?(this.popState(),this.pushState("NOTE_TEXT"),24):void 0;case 66:return this.popState(),q.yytext=q.yytext.substr(2).trim(),31;case 67:return this.popState(),q.yytext=q.yytext.slice(0,-8).trim(),31;case 68:return 6;case 69:return 6;case 70:return 16;case 71:return 57;case 72:return H()?24:void 0;case 73:return q.yytext=q.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 58;case 77:return 5;case 78:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,55,56,57,71,72,73,74,75,76],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,54,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}};return P})();D.lexer=L;function R(){this.yy={}}return S(R,"Parser"),R.prototype=D,D.Parser=R,new R})();tz.parser=tz;var uAe=tz,XRt="TB",dAe="TB",Uoe="dir",vm="state",jg="root",rz="relation",jRt="classDef",QRt="style",ZRt="applyClass",ES="default",hAe="divider",fAe="fill:none",pAe="fill: #333",gAe="c",mAe="markdown",yAe="normal",WL="rect",KL="rectWithTitle",JRt="stateStart",eNt="stateEnd",Goe="divider",qoe="roundedWithTitle",tNt="note",rNt="noteGroup",ix="statediagram",nNt="state",iNt=`${ix}-${nNt}`,vAe="transition",aNt="note",sNt="note-edge",oNt=`${vAe} ${sNt}`,lNt=`${ix}-${aNt}`,cNt="cluster",uNt=`${ix}-${cNt}`,dNt="cluster-alt",hNt=`${ix}-${dNt}`,_Ae="parent",bAe="note",fNt="state",_W="----",pNt=`${_W}${bAe}`,Yoe=`${_W}${_Ae}`,EAe=S((t,e=dAe)=>{if(!t.doc)return e;let r=e;for(const n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir"),gNt=S(function(t,e){return e.db.getClasses()},"getClasses"),mNt=S(async function(t,e,r,n){ge.info("REF0:"),ge.info("Drawing state diagram (v2)",e);const{securityLevel:i,state:a,layout:s}=Ke();n.db.extract(n.db.getRootDocV2());const o=n.db.getData(),l=o2(e,i);o.type=n.type,o.layoutAlgorithm=s,o.nodeSpacing=a?.nodeSpacing||50,o.rankSpacing=a?.rankSpacing||50,Ke().look==="neo"?o.markers=["barbNeo"]:o.markers=["barb"],o.diagramId=e,await Yb(o,l);const d=8;try{(typeof n.db.getLinks=="function"?n.db.getLinks():new Map).forEach((f,p)=>{const g=typeof p=="string"?p:typeof p?.id=="string"?p.id:"";if(!g){ge.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(p));return}const m=l.node()?.querySelectorAll("g");let y;if(m?.forEach(E=>{E.textContent?.trim()===g&&(y=E)}),!y){ge.warn("⚠️ Could not find node matching text:",g);return}const v=y.parentNode;if(!v){ge.warn("⚠️ Node has no parent, cannot wrap:",g);return}const b=document.createElementNS("http://www.w3.org/2000/svg","a"),_=f.url.replace(/^"+|"+$/g,"");if(b.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",_),b.setAttribute("target","_blank"),f.tooltip){const E=f.tooltip.replace(/^"+|"+$/g,"");b.setAttribute("title",E)}v.replaceChild(b,y),b.appendChild(y),ge.info("🔗 Wrapped node in tag for:",g,f.url)})}catch(h){ge.error("❌ Error injecting clickable links:",h)}Wr.insertTitle(l,"statediagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),sg(l,d,ix,a?.useMaxWidth??!0)},"draw"),yNt={getClasses:gNt,draw:mNt,getDir:EAe},J5=new Map,Od=0;function eC(t="",e=0,r="",n=_W){const i=r!==null&&r.length>0?`${n}${r}`:"";return`${fNt}-${t}${i}-${e}`}S(eC,"stateDomId");var vNt=S((t,e,r,n,i,a,s,o)=>{ge.trace("items",e),e.forEach(l=>{switch(l.stmt){case vm:ME(t,l,r,n,i,a,s,o);break;case ES:ME(t,l,r,n,i,a,s,o);break;case rz:{ME(t,l.state1,r,n,i,a,s,o),ME(t,l.state2,r,n,i,a,s,o);const u=s==="neo",d={id:"edge"+Od,start:l.state1.id,end:l.state2.id,arrowhead:"normal",arrowTypeEnd:u?"arrow_barb_neo":"arrow_barb",style:fAe,labelStyle:"",label:qt.sanitizeText(l.description??"",Ke()),arrowheadStyle:pAe,labelpos:gAe,labelType:mAe,thickness:yAe,classes:vAe,look:s};i.push(d),Od++}break}})},"setupDoc"),Hoe=S((t,e=dAe)=>{let r=e;if(t.doc)for(const n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir");function LE(t,e,r){if(!e.id||e.id===""||e.id==="")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(i=>{const a=r.get(i);a&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...a.styles])}));const n=t.find(i=>i.id===e.id);n?Object.assign(n,e):t.push(e)}S(LE,"insertOrUpdateNode");function SAe(t){return t?.classes?.join(" ")??""}S(SAe,"getClassesFromDbInfo");function TAe(t){return t?.styles??[]}S(TAe,"getStylesFromDbInfo");var ME=S((t,e,r,n,i,a,s,o)=>{const l=e.id,u=r.get(l),d=SAe(u),h=TAe(u),f=Ke();if(ge.info("dataFetcher parsedItem",e,u,h),l!=="root"){let p=WL;e.start===!0?p=JRt:e.start===!1&&(p=eNt),e.type!==ES&&(p=e.type),J5.get(l)||J5.set(l,{id:l,shape:p,description:qt.sanitizeText(l,f),cssClasses:`${d} ${iNt}`,cssStyles:h});const g=J5.get(l);e.description&&(Array.isArray(g.description)?(g.shape=KL,g.description.push(e.description)):g.description?.length&&g.description.length>0?(g.shape=KL,g.description===l?g.description=[e.description]:g.description=[g.description,e.description]):(g.shape=WL,g.description=e.description),g.description=qt.sanitizeTextOrArray(g.description,f)),g.description?.length===1&&g.shape===KL&&(g.type==="group"?g.shape=qoe:g.shape=WL),!g.type&&e.doc&&(ge.info("Setting cluster for XCX",l,Hoe(e)),g.type="group",g.isGroup=!0,g.dir=Hoe(e),g.shape=e.type===hAe?Goe:qoe,g.cssClasses=`${g.cssClasses} ${uNt} ${a?hNt:""}`);const m={labelStyle:"",shape:g.shape,label:g.description,cssClasses:g.cssClasses,cssCompiledStyles:[],cssStyles:g.cssStyles,id:l,dir:g.dir,domId:eC(l,Od),type:g.type,isGroup:g.type==="group",padding:8,rx:10,ry:10,look:s,labelType:"markdown"};if(m.shape===Goe&&(m.label=""),t&&t.id!=="root"&&(ge.trace("Setting node ",l," to be child of its parent ",t.id),m.parentId=t.id),m.centerLabel=!0,e.note){const y={labelStyle:"",shape:tNt,label:e.note.text,labelType:"markdown",cssClasses:lNt,cssStyles:[],cssCompiledStyles:[],id:l+pNt+"-"+Od,domId:eC(l,Od,bAe),type:g.type,isGroup:g.type==="group",padding:f.flowchart?.padding,look:s,position:e.note.position},v=l+Yoe,b={labelStyle:"",shape:rNt,label:e.note.text,cssClasses:g.cssClasses,cssStyles:[],id:l+Yoe,domId:eC(l,Od,_Ae),type:"group",isGroup:!0,padding:16,look:s,position:e.note.position};Od++,b.id=v,y.parentId=v,LE(n,b,o),LE(n,y,o),LE(n,m,o);let _=l,E=y.id;e.note.position==="left of"&&(_=y.id,E=l),i.push({id:_+"-"+E,start:_,end:E,arrowhead:"none",arrowTypeEnd:"",style:fAe,labelStyle:"",classes:oNt,arrowheadStyle:pAe,labelpos:gAe,labelType:mAe,thickness:yAe,look:s})}else LE(n,m,o)}e.doc&&(ge.trace("Adding nodes children "),vNt(e,e.doc,r,n,i,!a,s,o))},"dataFetcher"),_Nt=S(()=>{J5.clear(),Od=0},"reset"),Cs={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},Voe=S(()=>new Map,"newClassesList"),Woe=S(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),D3=S(t=>JSON.parse(JSON.stringify(t)),"clone"),vp,Qf=(vp=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Voe(),this.documents={root:Woe()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=yi,this.setAccTitle=ai,this.getAccDescription=_i,this.setAccDescription=vi,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(e){this.clear(!0);for(const i of Array.isArray(e)?e:e.doc)switch(i.stmt){case vm:this.addState(i.id.trim(),i.type,i.doc,i.description,i.note);break;case rz:this.addRelation(i.state1,i.state2,i.description);break;case jRt:this.addStyleClass(i.id.trim(),i.classes);break;case QRt:this.handleStyleDef(i);break;case ZRt:this.setCssClass(i.id.trim(),i.styleClass);break;case"click":this.addLink(i.id,i.url,i.tooltip);break}const r=this.getStates(),n=Ke();_Nt(),ME(void 0,this.getRootDocV2(),r,this.nodes,this.edges,!0,n.look,this.classes);for(const i of this.nodes)if(Array.isArray(i.label)){if(i.description=i.label.slice(1),i.isGroup&&i.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${i.id}]`);i.label=i.label[0]}}handleStyleDef(e){const r=e.id.trim().split(","),n=e.styleClass.split(",");for(const i of r){let a=this.getState(i);if(!a){const s=i.trim();this.addState(s),a=this.getState(s)}a&&(a.styles=n.map(s=>s.replace(/;/g,"")?.trim()))}}setRootDoc(e){ge.info("Setting root doc",e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,r,n){if(r.stmt===rz){this.docTranslator(e,r.state1,!0),this.docTranslator(e,r.state2,!1);return}if(r.stmt===vm&&(r.id===Cs.START_NODE?(r.id=e.id+(n?"_start":"_end"),r.start=n):r.id=r.id.trim()),r.stmt!==jg&&r.stmt!==vm||!r.doc)return;const i=[];let a=[];for(const s of r.doc)if(s.type===hAe){const o=D3(s);o.doc=D3(a),i.push(o),a=[]}else a.push(s);if(i.length>0&&a.length>0){const s={stmt:vm,id:Wfe(),type:"divider",doc:D3(a)};i.push(D3(s)),r.doc=i}r.doc.forEach(s=>this.docTranslator(r,s,!0))}getRootDocV2(){return this.docTranslator({id:jg,stmt:jg},{id:jg,stmt:jg,doc:this.rootDoc},!0),{id:jg,doc:this.rootDoc}}addState(e,r=ES,n=void 0,i=void 0,a=void 0,s=void 0,o=void 0,l=void 0){const u=e?.trim();if(!this.currentDocument.states.has(u))ge.info("Adding state ",u,i),this.currentDocument.states.set(u,{stmt:vm,id:u,descriptions:[],type:r,doc:n,note:a,classes:[],styles:[],textStyles:[]});else{const d=this.currentDocument.states.get(u);if(!d)throw new Error(`State not found: ${u}`);d.doc||(d.doc=n),d.type||(d.type=r)}if(i&&(ge.info("Setting state description",u,i),(Array.isArray(i)?i:[i]).forEach(h=>this.addDescription(u,h.trim()))),a){const d=this.currentDocument.states.get(u);if(!d)throw new Error(`State not found: ${u}`);d.note=a,d.note.text=qt.sanitizeText(d.note.text,Ke())}s&&(ge.info("Setting state classes",u,s),(Array.isArray(s)?s:[s]).forEach(h=>this.setCssClass(u,h.trim()))),o&&(ge.info("Setting state styles",u,o),(Array.isArray(o)?o:[o]).forEach(h=>this.setStyle(u,h.trim()))),l&&(ge.info("Setting state styles",u,o),(Array.isArray(l)?l:[l]).forEach(h=>this.setTextStyle(u,h.trim())))}clear(e){this.nodes=[],this.edges=[],this.documents={root:Woe()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Voe(),e||(this.links=new Map,oi())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){ge.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,r,n){this.links.set(e,{url:r,tooltip:n}),ge.warn("Adding link",e,r,n)}getLinks(){return this.links}startIdIfNeeded(e=""){return e===Cs.START_NODE?(this.startEndCount++,`${Cs.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e="",r=ES){return e===Cs.START_NODE?Cs.START_TYPE:r}endIdIfNeeded(e=""){return e===Cs.END_NODE?(this.startEndCount++,`${Cs.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e="",r=ES){return e===Cs.END_NODE?Cs.END_TYPE:r}addRelationObjs(e,r,n=""){const i=this.startIdIfNeeded(e.id.trim()),a=this.startTypeIfNeeded(e.id.trim(),e.type),s=this.startIdIfNeeded(r.id.trim()),o=this.startTypeIfNeeded(r.id.trim(),r.type);this.addState(i,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(s,o,r.doc,r.description,r.note,r.classes,r.styles,r.textStyles),this.currentDocument.relations.push({id1:i,id2:s,relationTitle:qt.sanitizeText(n,Ke())})}addRelation(e,r,n){if(typeof e=="object"&&typeof r=="object")this.addRelationObjs(e,r,n);else if(typeof e=="string"&&typeof r=="string"){const i=this.startIdIfNeeded(e.trim()),a=this.startTypeIfNeeded(e),s=this.endIdIfNeeded(r.trim()),o=this.endTypeIfNeeded(r);this.addState(i,a),this.addState(s,o),this.currentDocument.relations.push({id1:i,id2:s,relationTitle:n?qt.sanitizeText(n,Ke()):void 0})}}addDescription(e,r){const n=this.currentDocument.states.get(e),i=r.startsWith(":")?r.replace(":","").trim():r;n?.descriptions?.push(qt.sanitizeText(i,Ke()))}cleanupLabel(e){return e.startsWith(":")?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,r=""){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});const n=this.classes.get(e);r&&n&&r.split(Cs.STYLECLASS_SEP).forEach(i=>{const a=i.replace(/([^;]*);/,"$1").trim();if(RegExp(Cs.COLOR_KEYWORD).exec(i)){const o=a.replace(Cs.FILL_KEYWORD,Cs.BG_FILL).replace(Cs.COLOR_KEYWORD,Cs.FILL_KEYWORD);n.textStyles.push(o)}n.styles.push(a)})}getClasses(){return this.classes}setCssClass(e,r){e.split(",").forEach(n=>{let i=this.getState(n);if(!i){const a=n.trim();this.addState(a),i=this.getState(a)}i?.classes?.push(r)})}setStyle(e,r){this.getState(e)?.styles?.push(r)}setTextStyle(e,r){this.getState(e)?.textStyles?.push(r)}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===Uoe)}getDirection(){return this.getDirectionStatement()?.value??XRt}setDirection(e){const r=this.getDirectionStatement();r?r.value=e:this.rootDoc.unshift({stmt:Uoe,value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){const e=Ke();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:EAe(this.getRootDocV2())}}getConfig(){return Ke().state}},S(vp,"StateDB"),vp.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},vp),bNt=S(t=>` defs [id$="-barbEnd"] { fill: ${t.transitionColor}; stroke: ${t.transitionColor}; @@ -6516,12 +6516,12 @@ g.stateGroup line { ry: ${t.radius}px; filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"} } -`,"getStyles"),xAe=_Nt,bNt=S(t=>t.append("circle").attr("class","start-state").attr("r",Ke().state.sizeUnit).attr("cx",Ke().state.padding+Ke().state.sizeUnit).attr("cy",Ke().state.padding+Ke().state.sizeUnit),"drawStartState"),ENt=S(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Ke().state.textHeight).attr("class","divider").attr("x2",Ke().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),SNt=S((t,e)=>{const r=t.append("text").attr("x",2*Ke().state.padding).attr("y",Ke().state.textHeight+2*Ke().state.padding).attr("font-size",Ke().state.fontSize).attr("class","state-title").text(e.id),n=r.node().getBBox();return t.insert("rect",":first-child").attr("x",Ke().state.padding).attr("y",Ke().state.padding).attr("width",n.width+2*Ke().state.padding).attr("height",n.height+2*Ke().state.padding).attr("rx",Ke().state.radius),r},"drawSimpleState"),TNt=S((t,e)=>{const r=S(function(f,p,g){const m=f.append("tspan").attr("x",2*Ke().state.padding).text(p);g||m.attr("dy",Ke().state.textHeight)},"addTspan"),i=t.append("text").attr("x",2*Ke().state.padding).attr("y",Ke().state.textHeight+1.3*Ke().state.padding).attr("font-size",Ke().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),a=i.height,s=t.append("text").attr("x",Ke().state.padding).attr("y",a+Ke().state.padding*.4+Ke().state.dividerMargin+Ke().state.textHeight).attr("class","state-description");let o=!0,l=!0;e.descriptions.forEach(function(f){o||(r(s,f,l),l=!1),o=!1});const u=t.append("line").attr("x1",Ke().state.padding).attr("y1",Ke().state.padding+a+Ke().state.dividerMargin/2).attr("y2",Ke().state.padding+a+Ke().state.dividerMargin/2).attr("class","descr-divider"),d=s.node().getBBox(),h=Math.max(d.width,i.width);return u.attr("x2",h+3*Ke().state.padding),t.insert("rect",":first-child").attr("x",Ke().state.padding).attr("y",Ke().state.padding).attr("width",h+2*Ke().state.padding).attr("height",d.height+a+2*Ke().state.padding).attr("rx",Ke().state.radius),t},"drawDescrState"),xNt=S((t,e,r)=>{const n=Ke().state.padding,i=2*Ke().state.padding,a=t.node().getBBox(),s=a.width,o=a.x,l=t.append("text").attr("x",0).attr("y",Ke().state.titleShift).attr("font-size",Ke().state.fontSize).attr("class","state-title").text(e.id),d=l.node().getBBox().width+i;let h=Math.max(d,s);h===s&&(h=h+i);let f;const p=t.node().getBBox();e.doc,f=o-n,d>s&&(f=(s-h)/2+n),Math.abs(o-p.x)s&&(f=o-(d-s)/2);const g=1-Ke().state.textHeight;return t.insert("rect",":first-child").attr("x",f).attr("y",g).attr("class",r?"alt-composit":"composit").attr("width",h).attr("height",p.height+Ke().state.textHeight+Ke().state.titleShift+1).attr("rx","0"),l.attr("x",f+n),d<=s&&l.attr("x",o+(h-i)/2-d/2+n),t.insert("rect",":first-child").attr("x",f).attr("y",Ke().state.titleShift-Ke().state.textHeight-Ke().state.padding).attr("width",h).attr("height",Ke().state.textHeight*3).attr("rx",Ke().state.radius),t.insert("rect",":first-child").attr("x",f).attr("y",Ke().state.titleShift-Ke().state.textHeight-Ke().state.padding).attr("width",h).attr("height",p.height+3+2*Ke().state.textHeight).attr("rx",Ke().state.radius),t},"addTitleAndBox"),CNt=S(t=>(t.append("circle").attr("class","end-state-outer").attr("r",Ke().state.sizeUnit+Ke().state.miniPadding).attr("cx",Ke().state.padding+Ke().state.sizeUnit+Ke().state.miniPadding).attr("cy",Ke().state.padding+Ke().state.sizeUnit+Ke().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",Ke().state.sizeUnit).attr("cx",Ke().state.padding+Ke().state.sizeUnit+2).attr("cy",Ke().state.padding+Ke().state.sizeUnit+2)),"drawEndState"),wNt=S((t,e)=>{let r=Ke().state.forkWidth,n=Ke().state.forkHeight;if(e.parentId){let i=r;r=n,n=i}return t.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",n).attr("x",Ke().state.padding).attr("y",Ke().state.padding)},"drawForkJoinState"),kNt=S((t,e,r,n)=>{let i=0;const a=n.append("text");a.style("text-anchor","start"),a.attr("class","noteText");let s=t.replace(/\r\n/g,"
");s=s.replace(/\n/g,"
");const o=s.split(qt.lineBreakRegex);let l=1.25*Ke().state.noteMargin;for(const u of o){const d=u.trim();if(d.length>0){const h=a.append("tspan");if(h.text(d),l===0){const f=h.node().getBBox();l+=f.height}i+=l,h.attr("x",e+Ke().state.noteMargin),h.attr("y",r+i+1.25*Ke().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}},"_drawLongText"),ANt=S((t,e)=>{e.attr("class","state-note");const r=e.append("rect").attr("x",0).attr("y",Ke().state.padding),n=e.append("g"),{textWidth:i,textHeight:a}=kNt(t,0,0,n);return r.attr("height",a+2*Ke().state.noteMargin),r.attr("width",i+Ke().state.noteMargin*2),r},"drawNote"),Koe=S(function(t,e){const r=e.id,n={id:r,label:e.id,width:0,height:0},i=t.append("g").attr("id",r).attr("class","stateGroup");e.type==="start"&&bNt(i),e.type==="end"&&CNt(i),(e.type==="fork"||e.type==="join")&&wNt(i,e),e.type==="note"&&ANt(e.note.text,i),e.type==="divider"&&ENt(i),e.type==="default"&&e.descriptions.length===0&&SNt(i,e),e.type==="default"&&e.descriptions.length>0&&TNt(i,e);const a=i.node().getBBox();return n.width=a.width+2*Ke().state.padding,n.height=a.height+2*Ke().state.padding,n},"drawState"),Xoe=0,RNt=S(function(t,e,r){const n=S(function(l){switch(l){case Qf.relationType.AGGREGATION:return"aggregation";case Qf.relationType.EXTENSION:return"extension";case Qf.relationType.COMPOSITION:return"composition";case Qf.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(l=>!Number.isNaN(l.y));const i=e.points,a=zS().x(function(l){return l.x}).y(function(l){return l.y}).curve(US),s=t.append("path").attr("d",a(i)).attr("id","edge"+Xoe).attr("class","transition");let o="";if(Ke().state.arrowMarkerAbsolute&&(o=fk(!0)),s.attr("marker-end","url("+o+"#"+n(Qf.relationType.DEPENDENCY)+"End)"),r.title!==void 0){const l=t.append("g").attr("class","stateLabel"),{x:u,y:d}=Wr.calcLabelPosition(e.points),h=qt.getRows(r.title);let f=0;const p=[];let g=0,m=0;for(let b=0;b<=h.length;b++){const _=l.append("text").attr("text-anchor","middle").text(h[b]).attr("x",u).attr("y",d+f),E=_.node().getBBox();g=Math.max(g,E.width),m=Math.min(m,E.x),ge.info(E.x,u,d+f),f===0&&(f=_.node().getBBox().height,ge.info("Title height",f,d)),p.push(_)}let y=f*h.length;if(h.length>1){const b=(h.length-1)*f*.5;p.forEach((_,E)=>_.attr("y",d+E*f-b)),y=f*h.length}const v=l.node().getBBox();l.insert("rect",":first-child").attr("class","box").attr("x",u-g/2-Ke().state.padding/2).attr("y",d-y/2-Ke().state.padding/2-3.5).attr("width",g+Ke().state.padding).attr("height",y+Ke().state.padding),ge.info(v)}Xoe++},"drawEdge"),No,XL={},NNt=S(function(){},"setConf"),INt=S(function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),ONt=S(function(t,e,r,n){No=Ke().state;const i=Ke().securityLevel;let a;i==="sandbox"&&(a=At("#i"+e));const s=At(i==="sandbox"?a.nodes()[0].contentDocument.body:"body"),o=i==="sandbox"?a.nodes()[0].contentDocument:document;ge.debug("Rendering diagram "+t);const l=s.select(`[id='${e}']`);INt(l);const u=n.db.getRootDoc(),d=l.append("g").attr("id",e+"-root");CAe(u,d,void 0,!1,s,o,n);const h=No.padding,f=l.node().getBBox(),p=f.width+h*2,g=f.height+h*2,m=p*1.75;ua(l,g,m,No.useMaxWidth),l.attr("viewBox",`${f.x-No.padding} ${f.y-No.padding} `+p+" "+g)},"draw"),DNt=S(t=>t?t.length*No.fontSizeFactor:1,"getLabelWidth"),CAe=S((t,e,r,n,i,a,s)=>{const o=new xo({compound:!0,multigraph:!0});let l,u=!0;for(l=0;l{const E=_.parentElement;let x=0,C=0;E&&(E.parentElement&&(x=E.parentElement.getBBox().width),C=parseInt(E.getAttribute("data-x-shift"),10),Number.isNaN(C)&&(C=0)),_.setAttribute("x1",0-C+8),_.setAttribute("x2",x-C-8)})):ge.debug("No Node "+v+": "+JSON.stringify(o.node(v)))});let m=g.getBBox();o.edges().forEach(function(v){v!==void 0&&o.edge(v)!==void 0&&(ge.debug("Edge "+v.v+" -> "+v.w+": "+JSON.stringify(o.edge(v))),RNt(e,o.edge(v),o.edge(v).relation))}),m=g.getBBox();const y={id:r||"root",label:r||"root",width:0,height:0};return y.width=m.width+2*No.padding,y.height=m.height+2*No.padding,ge.debug("Doc rendered",y,o),y},"renderDoc"),LNt={setConf:NNt,draw:ONt},MNt={parser:uAe,get db(){return new Qf(1)},renderer:LNt,styles:xAe,init:S(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const PNt=Object.freeze(Object.defineProperty({__proto__:null,diagram:MNt},Symbol.toStringTag,{value:"Module"}));var BNt={parser:uAe,get db(){return new Qf(2)},renderer:mNt,styles:xAe,init:S(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const FNt=Object.freeze(Object.defineProperty({__proto__:null,diagram:BNt},Symbol.toStringTag,{value:"Module"}));var nz=(function(){var t=S(function(h,f,p,g){for(p=p||{},g=h.length;g--;p[h[g]]=f);return p},"o"),e=[6,8,10,11,12,14,16,17,18],r=[1,9],n=[1,10],i=[1,11],a=[1,12],s=[1,13],o=[1,14],l={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:S(function(f,p,g,m,y,v,b){var _=v.length-1;switch(y){case 1:return v[_-1];case 2:this.$=[];break;case 3:v[_-1].push(v[_]),this.$=v[_-1];break;case 4:case 5:this.$=v[_];break;case 6:case 7:this.$=[];break;case 8:m.setDiagramTitle(v[_].substr(6)),this.$=v[_].substr(6);break;case 9:this.$=v[_].trim(),m.setAccTitle(this.$);break;case 10:case 11:this.$=v[_].trim(),m.setAccDescription(this.$);break;case 12:m.addSection(v[_].substr(8)),this.$=v[_].substr(8);break;case 13:m.addTask(v[_-1],v[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:n,14:i,16:a,17:s,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:r,12:n,14:i,16:a,17:s,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:S(function(f,p){if(p.recoverable)this.trace(f);else{var g=new Error(f);throw g.hash=p,g}},"parseError"),parse:S(function(f){var p=this,g=[0],m=[],y=[null],v=[],b=this.table,_="",E=0,x=0,C=2,T=1,w=v.slice.call(arguments,1),N=Object.create(this.lexer),O={yy:{}};for(var M in this.yy)Object.prototype.hasOwnProperty.call(this.yy,M)&&(O.yy[M]=this.yy[M]);N.setInput(f,O.yy),O.yy.lexer=N,O.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var $=N.yylloc;v.push($);var F=N.options&&N.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function A(J){g.length=g.length-2*J,y.length=y.length-J,v.length=v.length-J}S(A,"popStack");function I(){var J;return J=m.pop()||N.lex()||T,typeof J!="number"&&(J instanceof Array&&(m=J,J=m.pop()),J=p.symbols_[J]||J),J}S(I,"lex");for(var D,L,R,P,z={},B,q,Y,Q;;){if(L=g[g.length-1],this.defaultActions[L]?R=this.defaultActions[L]:((D===null||typeof D>"u")&&(D=I()),R=b[L]&&b[L][D]),typeof R>"u"||!R.length||!R[0]){var H="";Q=[];for(B in b[L])this.terminals_[B]&&B>C&&Q.push("'"+this.terminals_[B]+"'");N.showPosition?H="Parse error on line "+(E+1)+`: +`,"getStyles"),xAe=bNt,ENt=S(t=>t.append("circle").attr("class","start-state").attr("r",Ke().state.sizeUnit).attr("cx",Ke().state.padding+Ke().state.sizeUnit).attr("cy",Ke().state.padding+Ke().state.sizeUnit),"drawStartState"),SNt=S(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Ke().state.textHeight).attr("class","divider").attr("x2",Ke().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),TNt=S((t,e)=>{const r=t.append("text").attr("x",2*Ke().state.padding).attr("y",Ke().state.textHeight+2*Ke().state.padding).attr("font-size",Ke().state.fontSize).attr("class","state-title").text(e.id),n=r.node().getBBox();return t.insert("rect",":first-child").attr("x",Ke().state.padding).attr("y",Ke().state.padding).attr("width",n.width+2*Ke().state.padding).attr("height",n.height+2*Ke().state.padding).attr("rx",Ke().state.radius),r},"drawSimpleState"),xNt=S((t,e)=>{const r=S(function(f,p,g){const m=f.append("tspan").attr("x",2*Ke().state.padding).text(p);g||m.attr("dy",Ke().state.textHeight)},"addTspan"),i=t.append("text").attr("x",2*Ke().state.padding).attr("y",Ke().state.textHeight+1.3*Ke().state.padding).attr("font-size",Ke().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),a=i.height,s=t.append("text").attr("x",Ke().state.padding).attr("y",a+Ke().state.padding*.4+Ke().state.dividerMargin+Ke().state.textHeight).attr("class","state-description");let o=!0,l=!0;e.descriptions.forEach(function(f){o||(r(s,f,l),l=!1),o=!1});const u=t.append("line").attr("x1",Ke().state.padding).attr("y1",Ke().state.padding+a+Ke().state.dividerMargin/2).attr("y2",Ke().state.padding+a+Ke().state.dividerMargin/2).attr("class","descr-divider"),d=s.node().getBBox(),h=Math.max(d.width,i.width);return u.attr("x2",h+3*Ke().state.padding),t.insert("rect",":first-child").attr("x",Ke().state.padding).attr("y",Ke().state.padding).attr("width",h+2*Ke().state.padding).attr("height",d.height+a+2*Ke().state.padding).attr("rx",Ke().state.radius),t},"drawDescrState"),CNt=S((t,e,r)=>{const n=Ke().state.padding,i=2*Ke().state.padding,a=t.node().getBBox(),s=a.width,o=a.x,l=t.append("text").attr("x",0).attr("y",Ke().state.titleShift).attr("font-size",Ke().state.fontSize).attr("class","state-title").text(e.id),d=l.node().getBBox().width+i;let h=Math.max(d,s);h===s&&(h=h+i);let f;const p=t.node().getBBox();e.doc,f=o-n,d>s&&(f=(s-h)/2+n),Math.abs(o-p.x)s&&(f=o-(d-s)/2);const g=1-Ke().state.textHeight;return t.insert("rect",":first-child").attr("x",f).attr("y",g).attr("class",r?"alt-composit":"composit").attr("width",h).attr("height",p.height+Ke().state.textHeight+Ke().state.titleShift+1).attr("rx","0"),l.attr("x",f+n),d<=s&&l.attr("x",o+(h-i)/2-d/2+n),t.insert("rect",":first-child").attr("x",f).attr("y",Ke().state.titleShift-Ke().state.textHeight-Ke().state.padding).attr("width",h).attr("height",Ke().state.textHeight*3).attr("rx",Ke().state.radius),t.insert("rect",":first-child").attr("x",f).attr("y",Ke().state.titleShift-Ke().state.textHeight-Ke().state.padding).attr("width",h).attr("height",p.height+3+2*Ke().state.textHeight).attr("rx",Ke().state.radius),t},"addTitleAndBox"),wNt=S(t=>(t.append("circle").attr("class","end-state-outer").attr("r",Ke().state.sizeUnit+Ke().state.miniPadding).attr("cx",Ke().state.padding+Ke().state.sizeUnit+Ke().state.miniPadding).attr("cy",Ke().state.padding+Ke().state.sizeUnit+Ke().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",Ke().state.sizeUnit).attr("cx",Ke().state.padding+Ke().state.sizeUnit+2).attr("cy",Ke().state.padding+Ke().state.sizeUnit+2)),"drawEndState"),kNt=S((t,e)=>{let r=Ke().state.forkWidth,n=Ke().state.forkHeight;if(e.parentId){let i=r;r=n,n=i}return t.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",n).attr("x",Ke().state.padding).attr("y",Ke().state.padding)},"drawForkJoinState"),ANt=S((t,e,r,n)=>{let i=0;const a=n.append("text");a.style("text-anchor","start"),a.attr("class","noteText");let s=t.replace(/\r\n/g,"
");s=s.replace(/\n/g,"
");const o=s.split(qt.lineBreakRegex);let l=1.25*Ke().state.noteMargin;for(const u of o){const d=u.trim();if(d.length>0){const h=a.append("tspan");if(h.text(d),l===0){const f=h.node().getBBox();l+=f.height}i+=l,h.attr("x",e+Ke().state.noteMargin),h.attr("y",r+i+1.25*Ke().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}},"_drawLongText"),RNt=S((t,e)=>{e.attr("class","state-note");const r=e.append("rect").attr("x",0).attr("y",Ke().state.padding),n=e.append("g"),{textWidth:i,textHeight:a}=ANt(t,0,0,n);return r.attr("height",a+2*Ke().state.noteMargin),r.attr("width",i+Ke().state.noteMargin*2),r},"drawNote"),Koe=S(function(t,e){const r=e.id,n={id:r,label:e.id,width:0,height:0},i=t.append("g").attr("id",r).attr("class","stateGroup");e.type==="start"&&ENt(i),e.type==="end"&&wNt(i),(e.type==="fork"||e.type==="join")&&kNt(i,e),e.type==="note"&&RNt(e.note.text,i),e.type==="divider"&&SNt(i),e.type==="default"&&e.descriptions.length===0&&TNt(i,e),e.type==="default"&&e.descriptions.length>0&&xNt(i,e);const a=i.node().getBBox();return n.width=a.width+2*Ke().state.padding,n.height=a.height+2*Ke().state.padding,n},"drawState"),Xoe=0,NNt=S(function(t,e,r){const n=S(function(l){switch(l){case Qf.relationType.AGGREGATION:return"aggregation";case Qf.relationType.EXTENSION:return"extension";case Qf.relationType.COMPOSITION:return"composition";case Qf.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(l=>!Number.isNaN(l.y));const i=e.points,a=zS().x(function(l){return l.x}).y(function(l){return l.y}).curve(US),s=t.append("path").attr("d",a(i)).attr("id","edge"+Xoe).attr("class","transition");let o="";if(Ke().state.arrowMarkerAbsolute&&(o=fk(!0)),s.attr("marker-end","url("+o+"#"+n(Qf.relationType.DEPENDENCY)+"End)"),r.title!==void 0){const l=t.append("g").attr("class","stateLabel"),{x:u,y:d}=Wr.calcLabelPosition(e.points),h=qt.getRows(r.title);let f=0;const p=[];let g=0,m=0;for(let b=0;b<=h.length;b++){const _=l.append("text").attr("text-anchor","middle").text(h[b]).attr("x",u).attr("y",d+f),E=_.node().getBBox();g=Math.max(g,E.width),m=Math.min(m,E.x),ge.info(E.x,u,d+f),f===0&&(f=_.node().getBBox().height,ge.info("Title height",f,d)),p.push(_)}let y=f*h.length;if(h.length>1){const b=(h.length-1)*f*.5;p.forEach((_,E)=>_.attr("y",d+E*f-b)),y=f*h.length}const v=l.node().getBBox();l.insert("rect",":first-child").attr("class","box").attr("x",u-g/2-Ke().state.padding/2).attr("y",d-y/2-Ke().state.padding/2-3.5).attr("width",g+Ke().state.padding).attr("height",y+Ke().state.padding),ge.info(v)}Xoe++},"drawEdge"),No,XL={},INt=S(function(){},"setConf"),ONt=S(function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),DNt=S(function(t,e,r,n){No=Ke().state;const i=Ke().securityLevel;let a;i==="sandbox"&&(a=At("#i"+e));const s=At(i==="sandbox"?a.nodes()[0].contentDocument.body:"body"),o=i==="sandbox"?a.nodes()[0].contentDocument:document;ge.debug("Rendering diagram "+t);const l=s.select(`[id='${e}']`);ONt(l);const u=n.db.getRootDoc(),d=l.append("g").attr("id",e+"-root");CAe(u,d,void 0,!1,s,o,n);const h=No.padding,f=l.node().getBBox(),p=f.width+h*2,g=f.height+h*2,m=p*1.75;ua(l,g,m,No.useMaxWidth),l.attr("viewBox",`${f.x-No.padding} ${f.y-No.padding} `+p+" "+g)},"draw"),LNt=S(t=>t?t.length*No.fontSizeFactor:1,"getLabelWidth"),CAe=S((t,e,r,n,i,a,s)=>{const o=new xo({compound:!0,multigraph:!0});let l,u=!0;for(l=0;l{const E=_.parentElement;let x=0,C=0;E&&(E.parentElement&&(x=E.parentElement.getBBox().width),C=parseInt(E.getAttribute("data-x-shift"),10),Number.isNaN(C)&&(C=0)),_.setAttribute("x1",0-C+8),_.setAttribute("x2",x-C-8)})):ge.debug("No Node "+v+": "+JSON.stringify(o.node(v)))});let m=g.getBBox();o.edges().forEach(function(v){v!==void 0&&o.edge(v)!==void 0&&(ge.debug("Edge "+v.v+" -> "+v.w+": "+JSON.stringify(o.edge(v))),NNt(e,o.edge(v),o.edge(v).relation))}),m=g.getBBox();const y={id:r||"root",label:r||"root",width:0,height:0};return y.width=m.width+2*No.padding,y.height=m.height+2*No.padding,ge.debug("Doc rendered",y,o),y},"renderDoc"),MNt={setConf:INt,draw:DNt},PNt={parser:uAe,get db(){return new Qf(1)},renderer:MNt,styles:xAe,init:S(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const BNt=Object.freeze(Object.defineProperty({__proto__:null,diagram:PNt},Symbol.toStringTag,{value:"Module"}));var FNt={parser:uAe,get db(){return new Qf(2)},renderer:yNt,styles:xAe,init:S(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const $Nt=Object.freeze(Object.defineProperty({__proto__:null,diagram:FNt},Symbol.toStringTag,{value:"Module"}));var nz=(function(){var t=S(function(h,f,p,g){for(p=p||{},g=h.length;g--;p[h[g]]=f);return p},"o"),e=[6,8,10,11,12,14,16,17,18],r=[1,9],n=[1,10],i=[1,11],a=[1,12],s=[1,13],o=[1,14],l={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:S(function(f,p,g,m,y,v,b){var _=v.length-1;switch(y){case 1:return v[_-1];case 2:this.$=[];break;case 3:v[_-1].push(v[_]),this.$=v[_-1];break;case 4:case 5:this.$=v[_];break;case 6:case 7:this.$=[];break;case 8:m.setDiagramTitle(v[_].substr(6)),this.$=v[_].substr(6);break;case 9:this.$=v[_].trim(),m.setAccTitle(this.$);break;case 10:case 11:this.$=v[_].trim(),m.setAccDescription(this.$);break;case 12:m.addSection(v[_].substr(8)),this.$=v[_].substr(8);break;case 13:m.addTask(v[_-1],v[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:n,14:i,16:a,17:s,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:r,12:n,14:i,16:a,17:s,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:S(function(f,p){if(p.recoverable)this.trace(f);else{var g=new Error(f);throw g.hash=p,g}},"parseError"),parse:S(function(f){var p=this,g=[0],m=[],y=[null],v=[],b=this.table,_="",E=0,x=0,C=2,T=1,w=v.slice.call(arguments,1),N=Object.create(this.lexer),O={yy:{}};for(var M in this.yy)Object.prototype.hasOwnProperty.call(this.yy,M)&&(O.yy[M]=this.yy[M]);N.setInput(f,O.yy),O.yy.lexer=N,O.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var $=N.yylloc;v.push($);var F=N.options&&N.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function A(J){g.length=g.length-2*J,y.length=y.length-J,v.length=v.length-J}S(A,"popStack");function I(){var J;return J=m.pop()||N.lex()||T,typeof J!="number"&&(J instanceof Array&&(m=J,J=m.pop()),J=p.symbols_[J]||J),J}S(I,"lex");for(var D,L,R,P,z={},B,q,Y,Q;;){if(L=g[g.length-1],this.defaultActions[L]?R=this.defaultActions[L]:((D===null||typeof D>"u")&&(D=I()),R=b[L]&&b[L][D]),typeof R>"u"||!R.length||!R[0]){var H="";Q=[];for(B in b[L])this.terminals_[B]&&B>C&&Q.push("'"+this.terminals_[B]+"'");N.showPosition?H="Parse error on line "+(E+1)+`: `+N.showPosition()+` Expecting `+Q.join(", ")+", got '"+(this.terminals_[D]||D)+"'":H="Parse error on line "+(E+1)+": Unexpected "+(D==T?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(H,{text:N.match,token:this.terminals_[D]||D,line:N.yylineno,loc:$,expected:Q})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+D);switch(R[0]){case 1:g.push(D),y.push(N.yytext),v.push(N.yylloc),g.push(R[1]),D=null,x=N.yyleng,_=N.yytext,E=N.yylineno,$=N.yylloc;break;case 2:if(q=this.productions_[R[1]][1],z.$=y[y.length-q],z._$={first_line:v[v.length-(q||1)].first_line,last_line:v[v.length-1].last_line,first_column:v[v.length-(q||1)].first_column,last_column:v[v.length-1].last_column},F&&(z._$.range=[v[v.length-(q||1)].range[0],v[v.length-1].range[1]]),P=this.performAction.apply(z,[_,x,E,O.yy,R[1],y,v].concat(w)),typeof P<"u")return P;q&&(g=g.slice(0,-1*q*2),y=y.slice(0,-1*q),v=v.slice(0,-1*q)),g.push(this.productions_[R[1]][0]),y.push(z.$),v.push(z._$),Y=b[g[g.length-2]][g[g.length-1]],g.push(Y);break;case 3:return!0}}return!0},"parse")},u=(function(){var h={EOF:1,parseError:S(function(p,g){if(this.yy.parser)this.yy.parser.parseError(p,g);else throw new Error(p)},"parseError"),setInput:S(function(f,p){return this.yy=p||this.yy||{},this._input=f,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var p=f.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),f},"input"),unput:S(function(f){var p=f.length,g=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===m.length?this.yylloc.first_column:0)+m[m.length-g.length].length-g[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(f){this.unput(this.match.slice(f))},"less"),pastInput:S(function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var f=this.match;return f.length<20&&(f+=this._input.substr(0,20-f.length)),(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var f=this.pastInput(),p=new Array(f.length+1).join("-");return f+this.upcomingInput()+` `+p+"^"},"showPosition"),test_match:S(function(f,p){var g,m,y;if(this.options.backtrack_lexer&&(y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(y.yylloc.range=this.yylloc.range.slice(0))),m=f[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+f[0].length},this.yytext+=f[0],this.match+=f[0],this.matches=f,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(f[0].length),this.matched+=f[0],g=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var v in y)this[v]=y[v];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var f,p,g,m;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),v=0;vp[0].length)){if(p=g,m=v,this.options.backtrack_lexer){if(f=this.test_match(g,y[v]),f!==!1)return f;if(this._backtrack){p=!1;continue}else return!1}else if(!this.options.flex)break}return p?(f=this.test_match(p,y[m]),f!==!1?f:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var p=this.next();return p||this.lex()},"lex"),begin:S(function(p){this.conditionStack.push(p)},"begin"),popState:S(function(){var p=this.conditionStack.length-1;return p>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},"topState"),pushState:S(function(p){this.begin(p)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(p,g,m,y){switch(m){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return h})();l.lexer=u;function d(){this.yy={}}return S(d,"Parser"),d.prototype=l,l.Parser=d,new d})();nz.parser=nz;var $Nt=nz,Rb="",bW=[],z4=[],U4=[],zNt=S(function(){bW.length=0,z4.length=0,Rb="",U4.length=0,oi()},"clear"),UNt=S(function(t){Rb=t,bW.push(t)},"addSection"),GNt=S(function(){return bW},"getSections"),qNt=S(function(){let t=joe();const e=100;let r=0;for(;!t&&r{r.people&&t.push(...r.people)}),[...new Set(t)].sort()},"updateActors"),HNt=S(function(t,e){const r=e.substr(1).split(":");let n=0,i=[];r.length===1?(n=Number(r[0]),i=[]):(n=Number(r[0]),i=r[1].split(","));const a=i.map(o=>o.trim()),s={section:Rb,type:Rb,people:a,task:t,score:n};U4.push(s)},"addTask"),VNt=S(function(t){const e={section:Rb,type:Rb,description:t,task:t,classes:[]};z4.push(e)},"addTaskOrg"),joe=S(function(){const t=S(function(r){return U4[r].processed},"compileTask");let e=!0;for(const[r,n]of U4.entries())t(r),e=e&&n.processed;return e},"compileTasks"),WNt=S(function(){return YNt()},"getActors"),Qoe={getConfig:S(()=>Ke().journey,"getConfig"),clear:zNt,setDiagramTitle:pi,getDiagramTitle:li,setAccTitle:ai,getAccTitle:yi,setAccDescription:vi,getAccDescription:_i,addSection:UNt,getSections:GNt,getTasks:qNt,addTask:HNt,addTaskOrg:VNt,getActors:WNt},KNt=S(t=>`.label { +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var p=this.next();return p||this.lex()},"lex"),begin:S(function(p){this.conditionStack.push(p)},"begin"),popState:S(function(){var p=this.conditionStack.length-1;return p>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},"topState"),pushState:S(function(p){this.begin(p)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(p,g,m,y){switch(m){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return h})();l.lexer=u;function d(){this.yy={}}return S(d,"Parser"),d.prototype=l,l.Parser=d,new d})();nz.parser=nz;var zNt=nz,Rb="",bW=[],z4=[],U4=[],UNt=S(function(){bW.length=0,z4.length=0,Rb="",U4.length=0,oi()},"clear"),GNt=S(function(t){Rb=t,bW.push(t)},"addSection"),qNt=S(function(){return bW},"getSections"),YNt=S(function(){let t=joe();const e=100;let r=0;for(;!t&&r{r.people&&t.push(...r.people)}),[...new Set(t)].sort()},"updateActors"),VNt=S(function(t,e){const r=e.substr(1).split(":");let n=0,i=[];r.length===1?(n=Number(r[0]),i=[]):(n=Number(r[0]),i=r[1].split(","));const a=i.map(o=>o.trim()),s={section:Rb,type:Rb,people:a,task:t,score:n};U4.push(s)},"addTask"),WNt=S(function(t){const e={section:Rb,type:Rb,description:t,task:t,classes:[]};z4.push(e)},"addTaskOrg"),joe=S(function(){const t=S(function(r){return U4[r].processed},"compileTask");let e=!0;for(const[r,n]of U4.entries())t(r),e=e&&n.processed;return e},"compileTasks"),KNt=S(function(){return HNt()},"getActors"),Qoe={getConfig:S(()=>Ke().journey,"getConfig"),clear:UNt,setDiagramTitle:pi,getDiagramTitle:li,setAccTitle:ai,getAccTitle:yi,setAccDescription:vi,getAccDescription:_i,addSection:GNt,getSections:qNt,getTasks:YNt,addTask:VNt,addTaskOrg:WNt,getActors:KNt},XNt=S(t=>`.label { font-family: ${t.fontFamily}; color: ${t.textColor}; } @@ -6654,12 +6654,12 @@ Expecting `+Q.join(", ")+", got '"+(this.terminals_[D]||D)+"'":H="Parse error on ${t.actor5?`fill: ${t.actor5}`:""}; } ${OT()} -`,"getStyles"),XNt=KNt,EW=S(function(t,e){return U7(t,e)},"drawRect"),jNt=S(function(t,e){const n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function a(l){const u=Q_().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",u).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}S(a,"smile");function s(l){const u=Q_().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",u).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}S(s,"sad");function o(l){l.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return S(o,"ambivalent"),e.score>3?a(i):e.score<3?s(i):o(i),n},"drawFace"),wAe=S(function(t,e){const r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},"drawCircle"),kAe=S(function(t,e){return Wyt(t,e)},"drawText"),QNt=S(function(t,e){function r(i,a,s,o,l){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+o-l)+" "+(i+s-l*1.2)+","+(a+o)+" "+i+","+(a+o)}S(r,"genPoints");const n=t.append("polygon");n.attr("points",r(e.x,e.y,50,20,7)),n.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,kAe(t,e)},"drawLabel"),ZNt=S(function(t,e,r){const n=t.append("g"),i=Xo();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,EW(n,i),AAe(r)(e.text,n,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),iz=-1,JNt=S(function(t,e,r,n){const i=e.x+r.width/2,a=t.append("g");iz++,a.append("line").attr("id",n+"-task"+iz).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),jNt(a,{cx:i,cy:300+(5-e.score)*30,score:e.score});const o=Xo();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=r.width,o.height=r.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,EW(a,o);let l=e.x+14;e.people.forEach(u=>{const d=e.actors[u].color,h={cx:l,cy:e.y,r:7,fill:d,stroke:"#000",title:u,pos:e.actors[u].position};wAe(a,h),l+=10}),AAe(r)(e.task,a,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),eIt=S(function(t,e){v2e(t,e)},"drawBackgroundRect"),AAe=(function(){function t(i,a,s,o,l,u,d,h){const f=a.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("font-color",h).style("text-anchor","middle").text(i);n(f,d)}S(t,"byText");function e(i,a,s,o,l,u,d,h,f){const{taskFontSize:p,taskFontFamily:g}=h,m=i.split(//gi);for(let y=0;y{const a=d0[i].color,s={cx:20,cy:n,r:7,fill:a,stroke:"#000",pos:d0[i].position};G4.drawCircle(t,s);let o=t.append("text").attr("visibility","hidden").text(i);const l=o.node().getBoundingClientRect().width;o.remove();let u=[];if(l<=r)u=[i];else{const d=i.split(" ");let h="";o=t.append("text").attr("visibility","hidden"),d.forEach(f=>{const p=h?`${h} ${f}`:f;if(o.text(p),o.node().getBoundingClientRect().width>r){if(h&&u.push(h),h=f,o.text(f),o.node().getBoundingClientRect().width>r){let m="";for(const y of f)m+=y,o.text(m+"-"),o.node().getBoundingClientRect().width>r&&(u.push(m.slice(0,-1)+"-"),m=y);h=m}}else h=p}),h&&u.push(h),o.remove()}u.forEach((d,h)=>{const f={x:40,y:n+7+h*20,fill:"#666",text:d,textMargin:e.boxTextMargin??5},g=G4.drawText(t,f).node().getBoundingClientRect().width;g>tC&&g>e.leftMargin-g&&(tC=g)}),n+=Math.max(20,u.length*20)})}S(RAe,"drawActorLegend");var Gl=Ke().journey,Nd=0,nIt=S(function(t,e,r,n){const i=Ke(),a=i.journey.titleColor,s=i.journey.titleFontSize,o=i.journey.titleFontFamily,l=i.securityLevel;let u;l==="sandbox"&&(u=At("#i"+e));const d=At(l==="sandbox"?u.nodes()[0].contentDocument.body:"body");cl.init();const h=d.select("#"+e);G4.initGraphics(h,e);const f=n.db.getTasks(),p=n.db.getDiagramTitle(),g=n.db.getActors();for(const E in d0)delete d0[E];let m=0;g.forEach(E=>{d0[E]={color:Gl.actorColours[m%Gl.actorColours.length],position:m},m++}),RAe(h),Nd=Gl.leftMargin+tC,cl.insert(0,0,Nd,Object.keys(d0).length*50),iIt(h,f,0,e);const y=cl.getBounds();p&&h.append("text").text(p).attr("x",Nd).attr("font-size",s).attr("font-weight","bold").attr("y",25).attr("fill",a).attr("font-family",o);const v=y.stopy-y.starty+2*Gl.diagramMarginY,b=Nd+y.stopx+2*Gl.diagramMarginX;ua(h,v,b,Gl.useMaxWidth),h.append("line").attr("x1",Nd).attr("y1",Gl.height*4).attr("x2",b-Nd-4).attr("y2",Gl.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");const _=p?70:0;h.attr("viewBox",`${y.startx} -25 ${b} ${v+_}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",v+_+25)},"draw"),cl={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:S(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:S(function(t,e,r,n){t[e]===void 0?t[e]=r:t[e]=n(r,t[e])},"updateVal"),updateBounds:S(function(t,e,r,n){const i=Ke().journey,a=this;let s=0;function o(l){return S(function(d){s++;const h=a.sequenceItems.length-s+1;a.updateVal(d,"starty",e-h*i.boxMargin,Math.min),a.updateVal(d,"stopy",n+h*i.boxMargin,Math.max),a.updateVal(cl.data,"startx",t-h*i.boxMargin,Math.min),a.updateVal(cl.data,"stopx",r+h*i.boxMargin,Math.max),l!=="activation"&&(a.updateVal(d,"startx",t-h*i.boxMargin,Math.min),a.updateVal(d,"stopx",r+h*i.boxMargin,Math.max),a.updateVal(cl.data,"starty",e-h*i.boxMargin,Math.min),a.updateVal(cl.data,"stopy",n+h*i.boxMargin,Math.max))},"updateItemBounds")}S(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:S(function(t,e,r,n){const i=Math.min(t,r),a=Math.max(t,r),s=Math.min(e,n),o=Math.max(e,n);this.updateVal(cl.data,"startx",i,Math.min),this.updateVal(cl.data,"starty",s,Math.min),this.updateVal(cl.data,"stopx",a,Math.max),this.updateVal(cl.data,"stopy",o,Math.max),this.updateBounds(i,s,a,o)},"insert"),bumpVerticalPos:S(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:S(function(){return this.verticalPos},"getVerticalPos"),getBounds:S(function(){return this.data},"getBounds")},jL=Gl.sectionFills,Zoe=Gl.sectionColours,iIt=S(function(t,e,r,n){const i=Ke().journey;let a="";const s=i.height*2+i.diagramMarginY,o=r+s;let l=0,u="#CCC",d="black",h=0;for(const[f,p]of e.entries()){if(a!==p.section){u=jL[l%jL.length],h=l%jL.length,d=Zoe[l%Zoe.length];let m=0;const y=p.section;for(let b=f;b(d0[y]&&(m[y]=d0[y]),m),{});p.x=f*i.taskMargin+f*i.width+Nd,p.y=o,p.width=i.diagramMarginX,p.height=i.diagramMarginY,p.colour=d,p.fill=u,p.num=h,p.actors=g,G4.drawTask(t,p,i,n),cl.insert(p.x,p.y,p.x+p.width+i.taskMargin,450)}},"drawTasks"),Joe={setConf:rIt,draw:nIt},aIt={parser:$Nt,db:Qoe,renderer:Joe,styles:XNt,init:S(t=>{Joe.setConf(t.journey),Qoe.clear()},"init")};const sIt=Object.freeze(Object.defineProperty({__proto__:null,diagram:aIt},Symbol.toStringTag,{value:"Module"}));var az=(function(){var t=S(function(f,p,g,m){for(g=g||{},m=f.length;m--;g[f[m]]=p);return g},"o"),e=[6,11,13,14,15,17,19,20,23,24],r=[1,12],n=[1,13],i=[1,14],a=[1,15],s=[1,16],o=[1,19],l=[1,20],u={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:S(function(p,g,m,y,v,b,_){var E=b.length-1;switch(v){case 1:return b[E-1];case 3:y.setDirection("LR");break;case 4:y.setDirection("TD");break;case 5:this.$=[];break;case 6:b[E-1].push(b[E]),this.$=b[E-1];break;case 7:case 8:this.$=b[E];break;case 9:case 10:this.$=[];break;case 11:y.getCommonDb().setDiagramTitle(b[E].substr(6)),this.$=b[E].substr(6);break;case 12:this.$=b[E].trim(),y.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=b[E].trim(),y.getCommonDb().setAccDescription(this.$);break;case 15:y.addSection(b[E].substr(8)),this.$=b[E].substr(8);break;case 18:y.addTask(b[E],0,""),this.$=b[E];break;case 19:y.addEvent(b[E].substr(2)),this.$=b[E];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(e,[2,5],{5:6}),t(e,[2,2]),t(e,[2,3]),t(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:n,17:i,19:a,20:s,21:17,22:18,23:o,24:l},t(e,[2,10],{1:[2,1]}),t(e,[2,6]),{12:21,14:r,15:n,17:i,19:a,20:s,21:17,22:18,23:o,24:l},t(e,[2,8]),t(e,[2,9]),t(e,[2,11]),{16:[1,22]},{18:[1,23]},t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,7]),t(e,[2,12]),t(e,[2,13])],defaultActions:{},parseError:S(function(p,g){if(g.recoverable)this.trace(p);else{var m=new Error(p);throw m.hash=g,m}},"parseError"),parse:S(function(p){var g=this,m=[0],y=[],v=[null],b=[],_=this.table,E="",x=0,C=0,T=2,w=1,N=b.slice.call(arguments,1),O=Object.create(this.lexer),M={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(M.yy[$]=this.yy[$]);O.setInput(p,M.yy),M.yy.lexer=O,M.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var F=O.yylloc;b.push(F);var A=O.options&&O.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(Z){m.length=m.length-2*Z,v.length=v.length-Z,b.length=b.length-Z}S(I,"popStack");function D(){var Z;return Z=y.pop()||O.lex()||w,typeof Z!="number"&&(Z instanceof Array&&(y=Z,Z=y.pop()),Z=g.symbols_[Z]||Z),Z}S(D,"lex");for(var L,R,P,z,B={},q,Y,Q,H;;){if(R=m[m.length-1],this.defaultActions[R]?P=this.defaultActions[R]:((L===null||typeof L>"u")&&(L=D()),P=_[R]&&_[R][L]),typeof P>"u"||!P.length||!P[0]){var J="";H=[];for(q in _[R])this.terminals_[q]&&q>T&&H.push("'"+this.terminals_[q]+"'");O.showPosition?J="Parse error on line "+(x+1)+`: +`,"getStyles"),jNt=XNt,EW=S(function(t,e){return U7(t,e)},"drawRect"),QNt=S(function(t,e){const n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function a(l){const u=Q_().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",u).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}S(a,"smile");function s(l){const u=Q_().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",u).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}S(s,"sad");function o(l){l.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return S(o,"ambivalent"),e.score>3?a(i):e.score<3?s(i):o(i),n},"drawFace"),wAe=S(function(t,e){const r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},"drawCircle"),kAe=S(function(t,e){return Kyt(t,e)},"drawText"),ZNt=S(function(t,e){function r(i,a,s,o,l){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+o-l)+" "+(i+s-l*1.2)+","+(a+o)+" "+i+","+(a+o)}S(r,"genPoints");const n=t.append("polygon");n.attr("points",r(e.x,e.y,50,20,7)),n.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,kAe(t,e)},"drawLabel"),JNt=S(function(t,e,r){const n=t.append("g"),i=Xo();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,EW(n,i),AAe(r)(e.text,n,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),iz=-1,eIt=S(function(t,e,r,n){const i=e.x+r.width/2,a=t.append("g");iz++,a.append("line").attr("id",n+"-task"+iz).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),QNt(a,{cx:i,cy:300+(5-e.score)*30,score:e.score});const o=Xo();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=r.width,o.height=r.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,EW(a,o);let l=e.x+14;e.people.forEach(u=>{const d=e.actors[u].color,h={cx:l,cy:e.y,r:7,fill:d,stroke:"#000",title:u,pos:e.actors[u].position};wAe(a,h),l+=10}),AAe(r)(e.task,a,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),tIt=S(function(t,e){v2e(t,e)},"drawBackgroundRect"),AAe=(function(){function t(i,a,s,o,l,u,d,h){const f=a.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("font-color",h).style("text-anchor","middle").text(i);n(f,d)}S(t,"byText");function e(i,a,s,o,l,u,d,h,f){const{taskFontSize:p,taskFontFamily:g}=h,m=i.split(//gi);for(let y=0;y{const a=d0[i].color,s={cx:20,cy:n,r:7,fill:a,stroke:"#000",pos:d0[i].position};G4.drawCircle(t,s);let o=t.append("text").attr("visibility","hidden").text(i);const l=o.node().getBoundingClientRect().width;o.remove();let u=[];if(l<=r)u=[i];else{const d=i.split(" ");let h="";o=t.append("text").attr("visibility","hidden"),d.forEach(f=>{const p=h?`${h} ${f}`:f;if(o.text(p),o.node().getBoundingClientRect().width>r){if(h&&u.push(h),h=f,o.text(f),o.node().getBoundingClientRect().width>r){let m="";for(const y of f)m+=y,o.text(m+"-"),o.node().getBoundingClientRect().width>r&&(u.push(m.slice(0,-1)+"-"),m=y);h=m}}else h=p}),h&&u.push(h),o.remove()}u.forEach((d,h)=>{const f={x:40,y:n+7+h*20,fill:"#666",text:d,textMargin:e.boxTextMargin??5},g=G4.drawText(t,f).node().getBoundingClientRect().width;g>tC&&g>e.leftMargin-g&&(tC=g)}),n+=Math.max(20,u.length*20)})}S(RAe,"drawActorLegend");var Gl=Ke().journey,Nd=0,iIt=S(function(t,e,r,n){const i=Ke(),a=i.journey.titleColor,s=i.journey.titleFontSize,o=i.journey.titleFontFamily,l=i.securityLevel;let u;l==="sandbox"&&(u=At("#i"+e));const d=At(l==="sandbox"?u.nodes()[0].contentDocument.body:"body");cl.init();const h=d.select("#"+e);G4.initGraphics(h,e);const f=n.db.getTasks(),p=n.db.getDiagramTitle(),g=n.db.getActors();for(const E in d0)delete d0[E];let m=0;g.forEach(E=>{d0[E]={color:Gl.actorColours[m%Gl.actorColours.length],position:m},m++}),RAe(h),Nd=Gl.leftMargin+tC,cl.insert(0,0,Nd,Object.keys(d0).length*50),aIt(h,f,0,e);const y=cl.getBounds();p&&h.append("text").text(p).attr("x",Nd).attr("font-size",s).attr("font-weight","bold").attr("y",25).attr("fill",a).attr("font-family",o);const v=y.stopy-y.starty+2*Gl.diagramMarginY,b=Nd+y.stopx+2*Gl.diagramMarginX;ua(h,v,b,Gl.useMaxWidth),h.append("line").attr("x1",Nd).attr("y1",Gl.height*4).attr("x2",b-Nd-4).attr("y2",Gl.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");const _=p?70:0;h.attr("viewBox",`${y.startx} -25 ${b} ${v+_}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",v+_+25)},"draw"),cl={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:S(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:S(function(t,e,r,n){t[e]===void 0?t[e]=r:t[e]=n(r,t[e])},"updateVal"),updateBounds:S(function(t,e,r,n){const i=Ke().journey,a=this;let s=0;function o(l){return S(function(d){s++;const h=a.sequenceItems.length-s+1;a.updateVal(d,"starty",e-h*i.boxMargin,Math.min),a.updateVal(d,"stopy",n+h*i.boxMargin,Math.max),a.updateVal(cl.data,"startx",t-h*i.boxMargin,Math.min),a.updateVal(cl.data,"stopx",r+h*i.boxMargin,Math.max),l!=="activation"&&(a.updateVal(d,"startx",t-h*i.boxMargin,Math.min),a.updateVal(d,"stopx",r+h*i.boxMargin,Math.max),a.updateVal(cl.data,"starty",e-h*i.boxMargin,Math.min),a.updateVal(cl.data,"stopy",n+h*i.boxMargin,Math.max))},"updateItemBounds")}S(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:S(function(t,e,r,n){const i=Math.min(t,r),a=Math.max(t,r),s=Math.min(e,n),o=Math.max(e,n);this.updateVal(cl.data,"startx",i,Math.min),this.updateVal(cl.data,"starty",s,Math.min),this.updateVal(cl.data,"stopx",a,Math.max),this.updateVal(cl.data,"stopy",o,Math.max),this.updateBounds(i,s,a,o)},"insert"),bumpVerticalPos:S(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:S(function(){return this.verticalPos},"getVerticalPos"),getBounds:S(function(){return this.data},"getBounds")},jL=Gl.sectionFills,Zoe=Gl.sectionColours,aIt=S(function(t,e,r,n){const i=Ke().journey;let a="";const s=i.height*2+i.diagramMarginY,o=r+s;let l=0,u="#CCC",d="black",h=0;for(const[f,p]of e.entries()){if(a!==p.section){u=jL[l%jL.length],h=l%jL.length,d=Zoe[l%Zoe.length];let m=0;const y=p.section;for(let b=f;b(d0[y]&&(m[y]=d0[y]),m),{});p.x=f*i.taskMargin+f*i.width+Nd,p.y=o,p.width=i.diagramMarginX,p.height=i.diagramMarginY,p.colour=d,p.fill=u,p.num=h,p.actors=g,G4.drawTask(t,p,i,n),cl.insert(p.x,p.y,p.x+p.width+i.taskMargin,450)}},"drawTasks"),Joe={setConf:nIt,draw:iIt},sIt={parser:zNt,db:Qoe,renderer:Joe,styles:jNt,init:S(t=>{Joe.setConf(t.journey),Qoe.clear()},"init")};const oIt=Object.freeze(Object.defineProperty({__proto__:null,diagram:sIt},Symbol.toStringTag,{value:"Module"}));var az=(function(){var t=S(function(f,p,g,m){for(g=g||{},m=f.length;m--;g[f[m]]=p);return g},"o"),e=[6,11,13,14,15,17,19,20,23,24],r=[1,12],n=[1,13],i=[1,14],a=[1,15],s=[1,16],o=[1,19],l=[1,20],u={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:S(function(p,g,m,y,v,b,_){var E=b.length-1;switch(v){case 1:return b[E-1];case 3:y.setDirection("LR");break;case 4:y.setDirection("TD");break;case 5:this.$=[];break;case 6:b[E-1].push(b[E]),this.$=b[E-1];break;case 7:case 8:this.$=b[E];break;case 9:case 10:this.$=[];break;case 11:y.getCommonDb().setDiagramTitle(b[E].substr(6)),this.$=b[E].substr(6);break;case 12:this.$=b[E].trim(),y.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=b[E].trim(),y.getCommonDb().setAccDescription(this.$);break;case 15:y.addSection(b[E].substr(8)),this.$=b[E].substr(8);break;case 18:y.addTask(b[E],0,""),this.$=b[E];break;case 19:y.addEvent(b[E].substr(2)),this.$=b[E];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(e,[2,5],{5:6}),t(e,[2,2]),t(e,[2,3]),t(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:n,17:i,19:a,20:s,21:17,22:18,23:o,24:l},t(e,[2,10],{1:[2,1]}),t(e,[2,6]),{12:21,14:r,15:n,17:i,19:a,20:s,21:17,22:18,23:o,24:l},t(e,[2,8]),t(e,[2,9]),t(e,[2,11]),{16:[1,22]},{18:[1,23]},t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,7]),t(e,[2,12]),t(e,[2,13])],defaultActions:{},parseError:S(function(p,g){if(g.recoverable)this.trace(p);else{var m=new Error(p);throw m.hash=g,m}},"parseError"),parse:S(function(p){var g=this,m=[0],y=[],v=[null],b=[],_=this.table,E="",x=0,C=0,T=2,w=1,N=b.slice.call(arguments,1),O=Object.create(this.lexer),M={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(M.yy[$]=this.yy[$]);O.setInput(p,M.yy),M.yy.lexer=O,M.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var F=O.yylloc;b.push(F);var A=O.options&&O.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(Z){m.length=m.length-2*Z,v.length=v.length-Z,b.length=b.length-Z}S(I,"popStack");function D(){var Z;return Z=y.pop()||O.lex()||w,typeof Z!="number"&&(Z instanceof Array&&(y=Z,Z=y.pop()),Z=g.symbols_[Z]||Z),Z}S(D,"lex");for(var L,R,P,z,B={},q,Y,Q,H;;){if(R=m[m.length-1],this.defaultActions[R]?P=this.defaultActions[R]:((L===null||typeof L>"u")&&(L=D()),P=_[R]&&_[R][L]),typeof P>"u"||!P.length||!P[0]){var J="";H=[];for(q in _[R])this.terminals_[q]&&q>T&&H.push("'"+this.terminals_[q]+"'");O.showPosition?J="Parse error on line "+(x+1)+`: `+O.showPosition()+` Expecting `+H.join(", ")+", got '"+(this.terminals_[L]||L)+"'":J="Parse error on line "+(x+1)+": Unexpected "+(L==w?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(J,{text:O.match,token:this.terminals_[L]||L,line:O.yylineno,loc:F,expected:H})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+L);switch(P[0]){case 1:m.push(L),v.push(O.yytext),b.push(O.yylloc),m.push(P[1]),L=null,C=O.yyleng,E=O.yytext,x=O.yylineno,F=O.yylloc;break;case 2:if(Y=this.productions_[P[1]][1],B.$=v[v.length-Y],B._$={first_line:b[b.length-(Y||1)].first_line,last_line:b[b.length-1].last_line,first_column:b[b.length-(Y||1)].first_column,last_column:b[b.length-1].last_column},A&&(B._$.range=[b[b.length-(Y||1)].range[0],b[b.length-1].range[1]]),z=this.performAction.apply(B,[E,C,x,M.yy,P[1],v,b].concat(N)),typeof z<"u")return z;Y&&(m=m.slice(0,-1*Y*2),v=v.slice(0,-1*Y),b=b.slice(0,-1*Y)),m.push(this.productions_[P[1]][0]),v.push(B.$),b.push(B._$),Q=_[m[m.length-2]][m[m.length-1]],m.push(Q);break;case 3:return!0}}return!0},"parse")},d=(function(){var f={EOF:1,parseError:S(function(g,m){if(this.yy.parser)this.yy.parser.parseError(g,m);else throw new Error(g)},"parseError"),setInput:S(function(p,g){return this.yy=g||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var g=p.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),p},"input"),unput:S(function(p){var g=p.length,m=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===y.length?this.yylloc.first_column:0)+y[y.length-m.length].length-m[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(p){this.unput(this.match.slice(p))},"less"),pastInput:S(function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var p=this.match;return p.length<20&&(p+=this._input.substr(0,20-p.length)),(p.substr(0,20)+(p.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var p=this.pastInput(),g=new Array(p.length+1).join("-");return p+this.upcomingInput()+` `+g+"^"},"showPosition"),test_match:S(function(p,g){var m,y,v;if(this.options.backtrack_lexer&&(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(v.yylloc.range=this.yylloc.range.slice(0))),y=p[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],m=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var b in v)this[b]=v[b];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var p,g,m,y;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),b=0;bg[0].length)){if(g=m,y=b,this.options.backtrack_lexer){if(p=this.test_match(m,v[b]),p!==!1)return p;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(p=this.test_match(g,v[y]),p!==!1?p:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var g=this.next();return g||this.lex()},"lex"),begin:S(function(g){this.conditionStack.push(g)},"begin"),popState:S(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:S(function(g){this.begin(g)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(g,m,y,v){switch(y){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return f})();u.lexer=d;function h(){this.yy={}}return S(h,"Parser"),h.prototype=u,u.Parser=h,new h})();az.parser=az;var oIt=az,NAe={};uk(NAe,{addEvent:()=>zAe,addSection:()=>PAe,addTask:()=>$Ae,addTaskOrg:()=>UAe,clear:()=>DAe,default:()=>lIt,getCommonDb:()=>OAe,getDirection:()=>MAe,getSections:()=>BAe,getTasks:()=>FAe,setDirection:()=>LAe});var Nb="",IAe=0,SW="LR",TW=[],Lw=[],Ib=[],OAe=S(()=>gU,"getCommonDb"),DAe=S(function(){TW.length=0,Lw.length=0,Nb="",Ib.length=0,SW="LR",oi()},"clear"),LAe=S(function(t){SW=t},"setDirection"),MAe=S(function(){return SW},"getDirection"),PAe=S(function(t){Nb=t,TW.push(t)},"addSection"),BAe=S(function(){return TW},"getSections"),FAe=S(function(){let t=ele();const e=100;let r=0;for(;!t&&rr.id===IAe-1).events.push(t)},"addEvent"),UAe=S(function(t){const e={section:Nb,type:Nb,description:t,task:t,classes:[]};Lw.push(e)},"addTaskOrg"),ele=S(function(){const t=S(function(r){return Ib[r].processed},"compileTask");let e=!0;for(const[r,n]of Ib.entries())t(r),e=e&&n.processed;return e},"compileTasks"),lIt={clear:DAe,getCommonDb:OAe,getDirection:MAe,setDirection:LAe,addSection:PAe,getSections:BAe,getTasks:FAe,addTask:$Ae,addTaskOrg:UAe,addEvent:zAe},GAe=0,s8=S(function(t,e){const r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.class!==void 0&&r.attr("class",e.class),r},"drawRect"),cIt=S(function(t,e){const n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function a(l){const u=Q_().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",u).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}S(a,"smile");function s(l){const u=Q_().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",u).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}S(s,"sad");function o(l){l.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return S(o,"ambivalent"),e.score>3?a(i):e.score<3?s(i):o(i),n},"drawFace"),uIt=S(function(t,e){const r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},"drawCircle"),qAe=S(function(t,e){const r=e.text.replace(//gi," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),e.class!==void 0&&n.attr("class",e.class);const i=n.append("tspan");return i.attr("x",e.x+e.textMargin*2),i.text(r),n},"drawText"),dIt=S(function(t,e){function r(i,a,s,o,l){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+o-l)+" "+(i+s-l*1.2)+","+(a+o)+" "+i+","+(a+o)}S(r,"genPoints");const n=t.append("polygon");n.attr("points",r(e.x,e.y,50,20,7)),n.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,qAe(t,e)},"drawLabel"),hIt=S(function(t,e,r){const n=t.append("g"),i=xW();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width,i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,s8(n,i),YAe(r)(e.text,n,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),sz=-1,fIt=S(function(t,e,r,n){const i=e.x+r.width/2,a=t.append("g");sz++,a.append("line").attr("id",n+"-task"+sz).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),cIt(a,{cx:i,cy:300+(5-e.score)*30,score:e.score});const o=xW();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=r.width,o.height=r.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,s8(a,o),YAe(r)(e.task,a,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),pIt=S(function(t,e){s8(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),gIt=S(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),xW=S(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),YAe=(function(){function t(i,a,s,o,l,u,d,h){const f=a.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("font-color",h).style("text-anchor","middle").text(i);n(f,d)}S(t,"byText");function e(i,a,s,o,l,u,d,h,f){const{taskFontSize:p,taskFontFamily:g}=h,m=i.split(//gi);for(let y=0;y)/).reverse(),i,a=[],s=1.1,o=r.attr("y"),l=parseFloat(r.attr("dy")),u=r.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",l+"em");for(let d=0;de||i==="
")&&(a.pop(),u.text(a.join(" ").trim()),i==="
"?a=[""]:a=[i],u=r.append("tspan").attr("x",0).attr("y",o).attr("dy",s+"em").text(i))})}S(CW,"wrap");var yIt=S(function(t,e,r,n,i,a=!1){const{theme:s,look:o}=n,l=s?.includes("redux"),u=n?.themeVariables?.THEME_COLOR_LIMIT??12,d=r%u-1,h=t.append("g");e.section=d,h.attr("class",(e.class?e.class+" ":"")+"timeline-node "+("section-"+d));const f=h.append("g"),p=h.append("g"),m=p.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(CW,e.width).node().getBBox(),y=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;if(e.height=m.height+y*1.1*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,p.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),l&&p.attr("transform",`translate(${e.width/2}, ${a?e.padding/2+3:e.padding})`),_It(f,e,d,i,n),o==="neo"&&(h.attr("data-look","neo"),l)){const v=s.includes("dark"),b=t.node()?.ownerSVGElement??t.node(),_=At(b),E=_.attr("id")??"",x=E?`${E}-drop-shadow`:"drop-shadow";if(_.select(`#${x}`).empty()){const C=_.select("defs");(C.empty()?_.append("defs"):C).append("filter").attr("id",x).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",v?"0.2":"0.06").attr("flood-color",v?"#FFFFFF":"#000000")}}return e},"drawNode"),vIt=S(function(t,e,r){const n=t.append("g"),a=n.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(CW,e.width).node().getBBox(),s=r.fontSize?.replace?r.fontSize.replace("px",""):r.fontSize;return n.remove(),a.height+s*1.1*.5+e.padding},"getVirtualNodeHeight"),_It=S(function(t,e,r,n,i){const{theme:a}=i,s=a?.includes("redux")?0:5,o=5,l=s>0?`M0 ${e.height-o} v${-e.height+2*o} q0,-${s},${s},-${s} h${e.width-2*o} q${s},0,${s},${s} v${e.height-o} H0 Z`:`M0 ${e.height-o} v${-(e.height-o)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",n+"-node-"+GAe++).attr("class","node-bkg node-"+e.type).attr("d",l),a?.includes("redux")||t.append("line").attr("class","node-line-"+r).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),mo={drawRect:s8,drawCircle:uIt,drawSection:hIt,drawText:qAe,drawLabel:dIt,drawTask:fIt,drawBackgroundRect:pIt,getTextObj:gIt,getNoteRect:xW,initGraphics:mIt,drawNode:yIt,getVirtualNodeHeight:vIt},bIt=S(function(t,e,r,n){const i=Ke(),{look:a,theme:s,themeVariables:o}=i,{useGradient:l,gradientStart:u,gradientStop:d}=o,h=i.timeline?.leftMargin??50;ge.debug("timeline",n.db);const f=i.securityLevel;let p;f==="sandbox"&&(p=At("#i"+e));const m=At(f==="sandbox"?p.nodes()[0].contentDocument.body:"body").select("#"+e);m.append("g");const y=n.db.getTasks(),v=n.db.getCommonDb().getDiagramTitle();ge.debug("task",y),mo.initGraphics(m,e);const b=n.db.getSections();ge.debug("sections",b);let _=0,E=0,x=0,C=0,T=50+h,w=50;C=50;let N=0,O=!0;b.forEach(function(I){const D={number:N,descr:I,section:N,width:150,padding:20,maxHeight:_},L=mo.getVirtualNodeHeight(m,D,i);ge.debug("sectionHeight before draw",L),_=Math.max(_,L+20)});let M=0,$=0;ge.debug("tasks.length",y.length);for(const[I,D]of y.entries()){const L={number:I,descr:D,section:D.section,width:150,padding:20,maxHeight:E},R=mo.getVirtualNodeHeight(m,L,i);ge.debug("taskHeight before draw",R),E=Math.max(E,R+20),M=Math.max(M,D.events.length);let P=0;for(const z of D.events){const B={descr:z,section:D.section,number:D.section,width:150,padding:20,maxHeight:50};P+=mo.getVirtualNodeHeight(m,B,i)}D.events.length>0&&(P+=(D.events.length-1)*10),$=Math.max($,P)}ge.debug("maxSectionHeight before draw",_),ge.debug("maxTaskHeight before draw",E),b&&b.length>0?b.forEach(I=>{const D=y.filter(z=>z.section===I),L={number:N,descr:I,section:N,width:200*Math.max(D.length,1)-50,padding:20,maxHeight:_};ge.debug("sectionNode",L);const R=m.append("g"),P=mo.drawNode(R,L,N,i,e);ge.debug("sectionNode output",P),R.attr("transform",`translate(${T}, ${C})`),w+=_+50,D.length>0&&tle(m,D,N,T,w,E,i,M,$,_,!1,e),T+=200*Math.max(D.length,1),w=C,N++}):(O=!1,tle(m,y,N,T,w,E,i,M,$,_,!0,e));const F=m.node().getBBox();if(ge.debug("bounds",F),v&&m.append("text").text(v).attr("x",a==="neo"?F.x*2+h:F.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),x=O?_+E+150:E+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",h).attr("y1",x).attr("x2",F.width+3*h).attr("y2",x).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),a==="neo"&&l&&s!=="neutral"){const I=m.select("defs"),L=(I.empty()?m.append("defs"):I).append("linearGradient").attr("id",m.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");L.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),L.append("stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}zb(void 0,m,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),tle=S(function(t,e,r,n,i,a,s,o,l,u,d,h){for(const f of e){const p={descr:f.task,section:r,number:r,width:150,padding:20,maxHeight:a};ge.debug("taskNode",p);const g=t.append("g").attr("class","taskWrapper"),y=mo.drawNode(g,p,r,s,h).height;if(ge.debug("taskHeight after draw",y),g.attr("transform",`translate(${n}, ${i})`),a=Math.max(a,y),f.events){const v=t.append("g").attr("class","lineWrapper");let b=a;i+=100,b=b+EIt(t,f.events,r,n,i,s,h),i-=100,v.append("line").attr("x1",n+190/2).attr("y1",i+a).attr("x2",n+190/2).attr("y2",i+a+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${h}-arrowhead)`).attr("stroke-dasharray","5,5")}n=n+200,d&&!s.timeline?.disableMulticolor&&r++}i=i-10},"drawTasks"),EIt=S(function(t,e,r,n,i,a,s){let o=0;const l=i;i=i+100;for(const u of e){const d={descr:u,section:r,number:r,width:150,padding:20,maxHeight:50};ge.debug("eventNode",d);const h=t.append("g").attr("class","eventWrapper"),p=mo.drawNode(h,d,r,a,s,!0).height;o=o+p,h.attr("transform",`translate(${n}, ${i})`),i=i+10+p}return i=l,o},"drawEvents"),SIt={setConf:S(()=>{},"setConf"),draw:bIt},o8=200,r0=5,TIt=o8+r0*2,wW=o8+100,xIt=wW+r0*2,HAe=10,CIt=0,rle=20,VAe=20,nle=30,WAe=50,wIt=S(function(t,e,r,n){const i=Ke(),a=i.timeline?.leftMargin??50;ge.debug("timeline",n.db);const s=To(e);s.append("g");const o=n.db.getTasks(),l=n.db.getCommonDb().getDiagramTitle();ge.debug("task",o),mo.initGraphics(s);const u=n.db.getSections();ge.debug("sections",u);let d=0,h=0;const f=50+a;let p=50;const g=p,m=f,y=TIt+VAe,v=xIt+WAe,b=m+y;let _=0;const E=u&&u.length>0,x=E?b:f+y,C=Math.max(50,y+v-r0*2);u.forEach(function(I){const D={number:_,descr:I,section:_,width:C,padding:r0,maxHeight:d},L=mo.getVirtualNodeHeight(s,D,i);ge.debug("sectionHeight before draw",L),d=Math.max(d,L)});let T=0;ge.debug("tasks.length",o.length);for(const[I,D]of o.entries()){const L={number:I,descr:D,section:D.section,width:o8,padding:r0,maxHeight:h},R=mo.getVirtualNodeHeight(s,L,i);ge.debug("taskHeight before draw",R),h=Math.max(h,R);let P=0;for(const z of D.events){const B={descr:z,section:D.section,number:D.section,width:wW,padding:r0,maxHeight:50};P+=mo.getVirtualNodeHeight(s,B,i)}D.events.length>0&&(P+=(D.events.length-1)*HAe),T=Math.max(T,P)+CIt}ge.debug("maxSectionHeight before draw",d),ge.debug("maxTaskHeight before draw",h);const N=Math.max(h,T)+nle;E?u.forEach(I=>{const D=o.filter(Q=>Q.section===I),L={number:_,descr:I,section:_,width:C,padding:r0,maxHeight:d};ge.debug("sectionNode",L);const R=s.append("g"),P=mo.drawNode(R,L,_,i);ge.debug("sectionNode output",P);const z=x-y;R.attr("transform",`translate(${z}, ${p})`);const B=p+P.height+rle;D.length>0&&ile(s,D,_,x,B,h,i,N,!1);const q=D.length,Y=P.height+rle+N*Math.max(q,1)-(q>0?nle*2:0);p+=Y,_++}):ile(s,o,_,x,p,h,i,N,!0);let O=s.node()?.getBBox();if(!O)throw new Error("bbox not found");if(ge.debug("bounds",O),l){if(s.append("text").text(l).attr("x",O.width/2-a).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),O=s.node()?.getBBox(),!O)throw new Error("bbox not found");ge.debug("bounds after title",O)}const[M]=Y0(i.fontSize),$=(M??16)*2,F=(M??16)*.5+20,A=s.append("g").attr("class","lineWrapper");A.append("line").attr("x1",x).attr("y1",g-$).attr("x2",x).attr("y2",O.y+O.height+F).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),A.lower(),zb(void 0,s,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),ile=S(function(t,e,r,n,i,a,s,o,l){for(const u of e){const d={descr:u.task,section:r,number:r,width:o8,padding:r0,maxHeight:a};ge.debug("taskNode",d);const h=t.append("g").attr("class","taskWrapper"),f=mo.drawNode(h,d,r,s),p=f.height;ge.debug("taskHeight after draw",p);const g=n-VAe-f.width;if(h.attr("transform",`translate(${g}, ${i})`),a=Math.max(a,p),u.events&&u.events.length>0){const m=i,y=n+WAe;kIt(t,u.events,r,n,y,m,s)}i=i+o,l&&!s.timeline?.disableMulticolor&&r++}},"drawTasks"),kIt=S(function(t,e,r,n,i,a,s){let o=a;for(const l of e){const u={descr:l,section:r,number:r,width:wW,padding:r0,maxHeight:0};ge.debug("eventNode",u);const d=t.append("g").attr("class","eventWrapper"),f=mo.drawNode(d,u,r,s).height;d.attr("transform",`translate(${i}, ${o})`);const p=t.append("g").attr("class","lineWrapper"),g=o+f/2;p.append("line").attr("x1",n).attr("y1",g).attr("x2",i).attr("y2",g).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),o=o+f+HAe}return o-a},"drawEvents"),AIt={setConf:S(()=>{},"setConf"),draw:wIt},RIt=S(t=>{const{theme:e}=xr(),r=e?.includes("dark"),n=e?.includes("color"),i=t.svgId?.replace(/^#/,"")??"",a=i?`url(#${i}-drop-shadow)`:t.dropShadow??"none";let s="";for(let o=0;o0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:S(function(g){this.begin(g)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(g,m,y,v){switch(y){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return f})();u.lexer=d;function h(){this.yy={}}return S(h,"Parser"),h.prototype=u,u.Parser=h,new h})();az.parser=az;var lIt=az,NAe={};uk(NAe,{addEvent:()=>zAe,addSection:()=>PAe,addTask:()=>$Ae,addTaskOrg:()=>UAe,clear:()=>DAe,default:()=>cIt,getCommonDb:()=>OAe,getDirection:()=>MAe,getSections:()=>BAe,getTasks:()=>FAe,setDirection:()=>LAe});var Nb="",IAe=0,SW="LR",TW=[],Lw=[],Ib=[],OAe=S(()=>gU,"getCommonDb"),DAe=S(function(){TW.length=0,Lw.length=0,Nb="",Ib.length=0,SW="LR",oi()},"clear"),LAe=S(function(t){SW=t},"setDirection"),MAe=S(function(){return SW},"getDirection"),PAe=S(function(t){Nb=t,TW.push(t)},"addSection"),BAe=S(function(){return TW},"getSections"),FAe=S(function(){let t=ele();const e=100;let r=0;for(;!t&&rr.id===IAe-1).events.push(t)},"addEvent"),UAe=S(function(t){const e={section:Nb,type:Nb,description:t,task:t,classes:[]};Lw.push(e)},"addTaskOrg"),ele=S(function(){const t=S(function(r){return Ib[r].processed},"compileTask");let e=!0;for(const[r,n]of Ib.entries())t(r),e=e&&n.processed;return e},"compileTasks"),cIt={clear:DAe,getCommonDb:OAe,getDirection:MAe,setDirection:LAe,addSection:PAe,getSections:BAe,getTasks:FAe,addTask:$Ae,addTaskOrg:UAe,addEvent:zAe},GAe=0,s8=S(function(t,e){const r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.class!==void 0&&r.attr("class",e.class),r},"drawRect"),uIt=S(function(t,e){const n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function a(l){const u=Q_().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",u).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}S(a,"smile");function s(l){const u=Q_().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",u).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}S(s,"sad");function o(l){l.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return S(o,"ambivalent"),e.score>3?a(i):e.score<3?s(i):o(i),n},"drawFace"),dIt=S(function(t,e){const r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},"drawCircle"),qAe=S(function(t,e){const r=e.text.replace(//gi," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),e.class!==void 0&&n.attr("class",e.class);const i=n.append("tspan");return i.attr("x",e.x+e.textMargin*2),i.text(r),n},"drawText"),hIt=S(function(t,e){function r(i,a,s,o,l){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+o-l)+" "+(i+s-l*1.2)+","+(a+o)+" "+i+","+(a+o)}S(r,"genPoints");const n=t.append("polygon");n.attr("points",r(e.x,e.y,50,20,7)),n.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,qAe(t,e)},"drawLabel"),fIt=S(function(t,e,r){const n=t.append("g"),i=xW();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width,i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,s8(n,i),YAe(r)(e.text,n,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),sz=-1,pIt=S(function(t,e,r,n){const i=e.x+r.width/2,a=t.append("g");sz++,a.append("line").attr("id",n+"-task"+sz).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),uIt(a,{cx:i,cy:300+(5-e.score)*30,score:e.score});const o=xW();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=r.width,o.height=r.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,s8(a,o),YAe(r)(e.task,a,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),gIt=S(function(t,e){s8(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),mIt=S(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),xW=S(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),YAe=(function(){function t(i,a,s,o,l,u,d,h){const f=a.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("font-color",h).style("text-anchor","middle").text(i);n(f,d)}S(t,"byText");function e(i,a,s,o,l,u,d,h,f){const{taskFontSize:p,taskFontFamily:g}=h,m=i.split(//gi);for(let y=0;y)/).reverse(),i,a=[],s=1.1,o=r.attr("y"),l=parseFloat(r.attr("dy")),u=r.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",l+"em");for(let d=0;de||i==="
")&&(a.pop(),u.text(a.join(" ").trim()),i==="
"?a=[""]:a=[i],u=r.append("tspan").attr("x",0).attr("y",o).attr("dy",s+"em").text(i))})}S(CW,"wrap");var vIt=S(function(t,e,r,n,i,a=!1){const{theme:s,look:o}=n,l=s?.includes("redux"),u=n?.themeVariables?.THEME_COLOR_LIMIT??12,d=r%u-1,h=t.append("g");e.section=d,h.attr("class",(e.class?e.class+" ":"")+"timeline-node "+("section-"+d));const f=h.append("g"),p=h.append("g"),m=p.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(CW,e.width).node().getBBox(),y=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;if(e.height=m.height+y*1.1*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,p.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),l&&p.attr("transform",`translate(${e.width/2}, ${a?e.padding/2+3:e.padding})`),bIt(f,e,d,i,n),o==="neo"&&(h.attr("data-look","neo"),l)){const v=s.includes("dark"),b=t.node()?.ownerSVGElement??t.node(),_=At(b),E=_.attr("id")??"",x=E?`${E}-drop-shadow`:"drop-shadow";if(_.select(`#${x}`).empty()){const C=_.select("defs");(C.empty()?_.append("defs"):C).append("filter").attr("id",x).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",v?"0.2":"0.06").attr("flood-color",v?"#FFFFFF":"#000000")}}return e},"drawNode"),_It=S(function(t,e,r){const n=t.append("g"),a=n.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(CW,e.width).node().getBBox(),s=r.fontSize?.replace?r.fontSize.replace("px",""):r.fontSize;return n.remove(),a.height+s*1.1*.5+e.padding},"getVirtualNodeHeight"),bIt=S(function(t,e,r,n,i){const{theme:a}=i,s=a?.includes("redux")?0:5,o=5,l=s>0?`M0 ${e.height-o} v${-e.height+2*o} q0,-${s},${s},-${s} h${e.width-2*o} q${s},0,${s},${s} v${e.height-o} H0 Z`:`M0 ${e.height-o} v${-(e.height-o)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",n+"-node-"+GAe++).attr("class","node-bkg node-"+e.type).attr("d",l),a?.includes("redux")||t.append("line").attr("class","node-line-"+r).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),mo={drawRect:s8,drawCircle:dIt,drawSection:fIt,drawText:qAe,drawLabel:hIt,drawTask:pIt,drawBackgroundRect:gIt,getTextObj:mIt,getNoteRect:xW,initGraphics:yIt,drawNode:vIt,getVirtualNodeHeight:_It},EIt=S(function(t,e,r,n){const i=Ke(),{look:a,theme:s,themeVariables:o}=i,{useGradient:l,gradientStart:u,gradientStop:d}=o,h=i.timeline?.leftMargin??50;ge.debug("timeline",n.db);const f=i.securityLevel;let p;f==="sandbox"&&(p=At("#i"+e));const m=At(f==="sandbox"?p.nodes()[0].contentDocument.body:"body").select("#"+e);m.append("g");const y=n.db.getTasks(),v=n.db.getCommonDb().getDiagramTitle();ge.debug("task",y),mo.initGraphics(m,e);const b=n.db.getSections();ge.debug("sections",b);let _=0,E=0,x=0,C=0,T=50+h,w=50;C=50;let N=0,O=!0;b.forEach(function(I){const D={number:N,descr:I,section:N,width:150,padding:20,maxHeight:_},L=mo.getVirtualNodeHeight(m,D,i);ge.debug("sectionHeight before draw",L),_=Math.max(_,L+20)});let M=0,$=0;ge.debug("tasks.length",y.length);for(const[I,D]of y.entries()){const L={number:I,descr:D,section:D.section,width:150,padding:20,maxHeight:E},R=mo.getVirtualNodeHeight(m,L,i);ge.debug("taskHeight before draw",R),E=Math.max(E,R+20),M=Math.max(M,D.events.length);let P=0;for(const z of D.events){const B={descr:z,section:D.section,number:D.section,width:150,padding:20,maxHeight:50};P+=mo.getVirtualNodeHeight(m,B,i)}D.events.length>0&&(P+=(D.events.length-1)*10),$=Math.max($,P)}ge.debug("maxSectionHeight before draw",_),ge.debug("maxTaskHeight before draw",E),b&&b.length>0?b.forEach(I=>{const D=y.filter(z=>z.section===I),L={number:N,descr:I,section:N,width:200*Math.max(D.length,1)-50,padding:20,maxHeight:_};ge.debug("sectionNode",L);const R=m.append("g"),P=mo.drawNode(R,L,N,i,e);ge.debug("sectionNode output",P),R.attr("transform",`translate(${T}, ${C})`),w+=_+50,D.length>0&&tle(m,D,N,T,w,E,i,M,$,_,!1,e),T+=200*Math.max(D.length,1),w=C,N++}):(O=!1,tle(m,y,N,T,w,E,i,M,$,_,!0,e));const F=m.node().getBBox();if(ge.debug("bounds",F),v&&m.append("text").text(v).attr("x",a==="neo"?F.x*2+h:F.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),x=O?_+E+150:E+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",h).attr("y1",x).attr("x2",F.width+3*h).attr("y2",x).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),a==="neo"&&l&&s!=="neutral"){const I=m.select("defs"),L=(I.empty()?m.append("defs"):I).append("linearGradient").attr("id",m.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");L.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),L.append("stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}zb(void 0,m,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),tle=S(function(t,e,r,n,i,a,s,o,l,u,d,h){for(const f of e){const p={descr:f.task,section:r,number:r,width:150,padding:20,maxHeight:a};ge.debug("taskNode",p);const g=t.append("g").attr("class","taskWrapper"),y=mo.drawNode(g,p,r,s,h).height;if(ge.debug("taskHeight after draw",y),g.attr("transform",`translate(${n}, ${i})`),a=Math.max(a,y),f.events){const v=t.append("g").attr("class","lineWrapper");let b=a;i+=100,b=b+SIt(t,f.events,r,n,i,s,h),i-=100,v.append("line").attr("x1",n+190/2).attr("y1",i+a).attr("x2",n+190/2).attr("y2",i+a+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${h}-arrowhead)`).attr("stroke-dasharray","5,5")}n=n+200,d&&!s.timeline?.disableMulticolor&&r++}i=i-10},"drawTasks"),SIt=S(function(t,e,r,n,i,a,s){let o=0;const l=i;i=i+100;for(const u of e){const d={descr:u,section:r,number:r,width:150,padding:20,maxHeight:50};ge.debug("eventNode",d);const h=t.append("g").attr("class","eventWrapper"),p=mo.drawNode(h,d,r,a,s,!0).height;o=o+p,h.attr("transform",`translate(${n}, ${i})`),i=i+10+p}return i=l,o},"drawEvents"),TIt={setConf:S(()=>{},"setConf"),draw:EIt},o8=200,r0=5,xIt=o8+r0*2,wW=o8+100,CIt=wW+r0*2,HAe=10,wIt=0,rle=20,VAe=20,nle=30,WAe=50,kIt=S(function(t,e,r,n){const i=Ke(),a=i.timeline?.leftMargin??50;ge.debug("timeline",n.db);const s=To(e);s.append("g");const o=n.db.getTasks(),l=n.db.getCommonDb().getDiagramTitle();ge.debug("task",o),mo.initGraphics(s);const u=n.db.getSections();ge.debug("sections",u);let d=0,h=0;const f=50+a;let p=50;const g=p,m=f,y=xIt+VAe,v=CIt+WAe,b=m+y;let _=0;const E=u&&u.length>0,x=E?b:f+y,C=Math.max(50,y+v-r0*2);u.forEach(function(I){const D={number:_,descr:I,section:_,width:C,padding:r0,maxHeight:d},L=mo.getVirtualNodeHeight(s,D,i);ge.debug("sectionHeight before draw",L),d=Math.max(d,L)});let T=0;ge.debug("tasks.length",o.length);for(const[I,D]of o.entries()){const L={number:I,descr:D,section:D.section,width:o8,padding:r0,maxHeight:h},R=mo.getVirtualNodeHeight(s,L,i);ge.debug("taskHeight before draw",R),h=Math.max(h,R);let P=0;for(const z of D.events){const B={descr:z,section:D.section,number:D.section,width:wW,padding:r0,maxHeight:50};P+=mo.getVirtualNodeHeight(s,B,i)}D.events.length>0&&(P+=(D.events.length-1)*HAe),T=Math.max(T,P)+wIt}ge.debug("maxSectionHeight before draw",d),ge.debug("maxTaskHeight before draw",h);const N=Math.max(h,T)+nle;E?u.forEach(I=>{const D=o.filter(Q=>Q.section===I),L={number:_,descr:I,section:_,width:C,padding:r0,maxHeight:d};ge.debug("sectionNode",L);const R=s.append("g"),P=mo.drawNode(R,L,_,i);ge.debug("sectionNode output",P);const z=x-y;R.attr("transform",`translate(${z}, ${p})`);const B=p+P.height+rle;D.length>0&&ile(s,D,_,x,B,h,i,N,!1);const q=D.length,Y=P.height+rle+N*Math.max(q,1)-(q>0?nle*2:0);p+=Y,_++}):ile(s,o,_,x,p,h,i,N,!0);let O=s.node()?.getBBox();if(!O)throw new Error("bbox not found");if(ge.debug("bounds",O),l){if(s.append("text").text(l).attr("x",O.width/2-a).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),O=s.node()?.getBBox(),!O)throw new Error("bbox not found");ge.debug("bounds after title",O)}const[M]=Y0(i.fontSize),$=(M??16)*2,F=(M??16)*.5+20,A=s.append("g").attr("class","lineWrapper");A.append("line").attr("x1",x).attr("y1",g-$).attr("x2",x).attr("y2",O.y+O.height+F).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),A.lower(),zb(void 0,s,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),ile=S(function(t,e,r,n,i,a,s,o,l){for(const u of e){const d={descr:u.task,section:r,number:r,width:o8,padding:r0,maxHeight:a};ge.debug("taskNode",d);const h=t.append("g").attr("class","taskWrapper"),f=mo.drawNode(h,d,r,s),p=f.height;ge.debug("taskHeight after draw",p);const g=n-VAe-f.width;if(h.attr("transform",`translate(${g}, ${i})`),a=Math.max(a,p),u.events&&u.events.length>0){const m=i,y=n+WAe;AIt(t,u.events,r,n,y,m,s)}i=i+o,l&&!s.timeline?.disableMulticolor&&r++}},"drawTasks"),AIt=S(function(t,e,r,n,i,a,s){let o=a;for(const l of e){const u={descr:l,section:r,number:r,width:wW,padding:r0,maxHeight:0};ge.debug("eventNode",u);const d=t.append("g").attr("class","eventWrapper"),f=mo.drawNode(d,u,r,s).height;d.attr("transform",`translate(${i}, ${o})`);const p=t.append("g").attr("class","lineWrapper"),g=o+f/2;p.append("line").attr("x1",n).attr("y1",g).attr("x2",i).attr("y2",g).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),o=o+f+HAe}return o-a},"drawEvents"),RIt={setConf:S(()=>{},"setConf"),draw:kIt},NIt=S(t=>{const{theme:e}=xr(),r=e?.includes("dark"),n=e?.includes("color"),i=t.svgId?.replace(/^#/,"")??"",a=i?`url(#${i}-drop-shadow)`:t.dropShadow??"none";let s="";for(let o=0;o{let e="";for(let r=0;r{let e="";for(let r=0;r{const{theme:e}=xr(),r=e?.includes("redux"),n=e==="neutral",i=t.svgId?.replace(/^#/,"")??"";let a="";if(t.useGradient&&i&&t.THEME_COLOR_LIMIT&&!n)for(let s=0;s{const{theme:e}=xr(),r=e?.includes("redux"),n=e==="neutral",i=t.svgId?.replace(/^#/,"")??"";let a="";if(t.useGradient&&i&&t.THEME_COLOR_LIMIT&&!n)for(let s=0;s{},"setConf"),draw:S((t,e,r,n)=>(n?.db?.getDirection?.()??"LR")==="TD"?AIt.draw(t,e,r,n):SIt.draw(t,e,r,n),"draw")},LIt={db:NAe,renderer:DIt,parser:oIt,styles:OIt};const MIt=Object.freeze(Object.defineProperty({__proto__:null,diagram:LIt},Symbol.toStringTag,{value:"Module"})),Va=[];for(let t=0;t<256;++t)Va.push((t+256).toString(16).slice(1));function PIt(t,e=0){return(Va[t[e+0]]+Va[t[e+1]]+Va[t[e+2]]+Va[t[e+3]]+"-"+Va[t[e+4]]+Va[t[e+5]]+"-"+Va[t[e+6]]+Va[t[e+7]]+"-"+Va[t[e+8]]+Va[t[e+9]]+"-"+Va[t[e+10]]+Va[t[e+11]]+Va[t[e+12]]+Va[t[e+13]]+Va[t[e+14]]+Va[t[e+15]]).toLowerCase()}const BIt=new Uint8Array(16);function FIt(){return crypto.getRandomValues(BIt)}function $It(t,e,r){return crypto.randomUUID?crypto.randomUUID():zIt(t)}function zIt(t,e,r){t=t||{};const n=t.random??t.rng?.()??FIt();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,PIt(n)}var oz=(function(){var t=S(function(E,x,C,T){for(C=C||{},T=E.length;T--;C[E[T]]=x);return C},"o"),e=[1,4],r=[1,13],n=[1,12],i=[1,15],a=[1,16],s=[1,20],o=[1,19],l=[6,7,8],u=[1,26],d=[1,24],h=[1,25],f=[6,7,11],p=[1,6,13,15,16,19,22],g=[1,33],m=[1,34],y=[1,6,7,11,13,15,16,19,22],v={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:S(function(x,C,T,w,N,O,M){var $=O.length-1;switch(N){case 6:case 7:return w;case 8:w.getLogger().trace("Stop NL ");break;case 9:w.getLogger().trace("Stop EOF ");break;case 11:w.getLogger().trace("Stop NL2 ");break;case 12:w.getLogger().trace("Stop EOF2 ");break;case 15:w.getLogger().info("Node: ",O[$].id),w.addNode(O[$-1].length,O[$].id,O[$].descr,O[$].type);break;case 16:w.getLogger().trace("Icon: ",O[$]),w.decorateNode({icon:O[$]});break;case 17:case 21:w.decorateNode({class:O[$]});break;case 18:w.getLogger().trace("SPACELIST");break;case 19:w.getLogger().trace("Node: ",O[$].id),w.addNode(0,O[$].id,O[$].descr,O[$].type);break;case 20:w.decorateNode({icon:O[$]});break;case 25:w.getLogger().trace("node found ..",O[$-2]),this.$={id:O[$-1],descr:O[$-1],type:w.getType(O[$-2],O[$])};break;case 26:this.$={id:O[$],descr:O[$],type:w.nodeType.DEFAULT};break;case 27:w.getLogger().trace("node found ..",O[$-3]),this.$={id:O[$-3],descr:O[$-1],type:w.getType(O[$-2],O[$])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:o},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:o},{6:r,9:22,12:11,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:o},{6:u,7:d,10:23,11:h},t(f,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:o}),t(f,[2,18]),t(f,[2,19]),t(f,[2,20]),t(f,[2,21]),t(f,[2,23]),t(f,[2,24]),t(f,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:h},{1:[2,7],6:r,12:21,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:o},t(p,[2,14],{7:g,11:m}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(f,[2,15]),t(f,[2,16]),t(f,[2,17]),{20:[1,35]},{21:[1,36]},t(p,[2,13],{7:g,11:m}),t(y,[2,11]),t(y,[2,12]),{21:[1,37]},t(f,[2,25]),t(f,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:S(function(x,C){if(C.recoverable)this.trace(x);else{var T=new Error(x);throw T.hash=C,T}},"parseError"),parse:S(function(x){var C=this,T=[0],w=[],N=[null],O=[],M=this.table,$="",F=0,A=0,I=2,D=1,L=O.slice.call(arguments,1),R=Object.create(this.lexer),P={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(P.yy[z]=this.yy[z]);R.setInput(x,P.yy),P.yy.lexer=R,P.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var B=R.yylloc;O.push(B);var q=R.options&&R.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(Ge){T.length=T.length-2*Ge,N.length=N.length-Ge,O.length=O.length-Ge}S(Y,"popStack");function Q(){var Ge;return Ge=w.pop()||R.lex()||D,typeof Ge!="number"&&(Ge instanceof Array&&(w=Ge,Ge=w.pop()),Ge=C.symbols_[Ge]||Ge),Ge}S(Q,"lex");for(var H,J,Z,pe,re={},ce,ae,se,xe;;){if(J=T[T.length-1],this.defaultActions[J]?Z=this.defaultActions[J]:((H===null||typeof H>"u")&&(H=Q()),Z=M[J]&&M[J][H]),typeof Z>"u"||!Z.length||!Z[0]){var Te="";xe=[];for(ce in M[J])this.terminals_[ce]&&ce>I&&xe.push("'"+this.terminals_[ce]+"'");R.showPosition?Te="Parse error on line "+(F+1)+`: +`},"getStyles"),DIt=OIt,LIt={setConf:S(()=>{},"setConf"),draw:S((t,e,r,n)=>(n?.db?.getDirection?.()??"LR")==="TD"?RIt.draw(t,e,r,n):TIt.draw(t,e,r,n),"draw")},MIt={db:NAe,renderer:LIt,parser:lIt,styles:DIt};const PIt=Object.freeze(Object.defineProperty({__proto__:null,diagram:MIt},Symbol.toStringTag,{value:"Module"})),Va=[];for(let t=0;t<256;++t)Va.push((t+256).toString(16).slice(1));function BIt(t,e=0){return(Va[t[e+0]]+Va[t[e+1]]+Va[t[e+2]]+Va[t[e+3]]+"-"+Va[t[e+4]]+Va[t[e+5]]+"-"+Va[t[e+6]]+Va[t[e+7]]+"-"+Va[t[e+8]]+Va[t[e+9]]+"-"+Va[t[e+10]]+Va[t[e+11]]+Va[t[e+12]]+Va[t[e+13]]+Va[t[e+14]]+Va[t[e+15]]).toLowerCase()}const FIt=new Uint8Array(16);function $It(){return crypto.getRandomValues(FIt)}function zIt(t,e,r){return crypto.randomUUID?crypto.randomUUID():UIt(t)}function UIt(t,e,r){t=t||{};const n=t.random??t.rng?.()??$It();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,BIt(n)}var oz=(function(){var t=S(function(E,x,C,T){for(C=C||{},T=E.length;T--;C[E[T]]=x);return C},"o"),e=[1,4],r=[1,13],n=[1,12],i=[1,15],a=[1,16],s=[1,20],o=[1,19],l=[6,7,8],u=[1,26],d=[1,24],h=[1,25],f=[6,7,11],p=[1,6,13,15,16,19,22],g=[1,33],m=[1,34],y=[1,6,7,11,13,15,16,19,22],v={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:S(function(x,C,T,w,N,O,M){var $=O.length-1;switch(N){case 6:case 7:return w;case 8:w.getLogger().trace("Stop NL ");break;case 9:w.getLogger().trace("Stop EOF ");break;case 11:w.getLogger().trace("Stop NL2 ");break;case 12:w.getLogger().trace("Stop EOF2 ");break;case 15:w.getLogger().info("Node: ",O[$].id),w.addNode(O[$-1].length,O[$].id,O[$].descr,O[$].type);break;case 16:w.getLogger().trace("Icon: ",O[$]),w.decorateNode({icon:O[$]});break;case 17:case 21:w.decorateNode({class:O[$]});break;case 18:w.getLogger().trace("SPACELIST");break;case 19:w.getLogger().trace("Node: ",O[$].id),w.addNode(0,O[$].id,O[$].descr,O[$].type);break;case 20:w.decorateNode({icon:O[$]});break;case 25:w.getLogger().trace("node found ..",O[$-2]),this.$={id:O[$-1],descr:O[$-1],type:w.getType(O[$-2],O[$])};break;case 26:this.$={id:O[$],descr:O[$],type:w.nodeType.DEFAULT};break;case 27:w.getLogger().trace("node found ..",O[$-3]),this.$={id:O[$-3],descr:O[$-1],type:w.getType(O[$-2],O[$])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:o},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:o},{6:r,9:22,12:11,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:o},{6:u,7:d,10:23,11:h},t(f,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:o}),t(f,[2,18]),t(f,[2,19]),t(f,[2,20]),t(f,[2,21]),t(f,[2,23]),t(f,[2,24]),t(f,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:h},{1:[2,7],6:r,12:21,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:o},t(p,[2,14],{7:g,11:m}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(f,[2,15]),t(f,[2,16]),t(f,[2,17]),{20:[1,35]},{21:[1,36]},t(p,[2,13],{7:g,11:m}),t(y,[2,11]),t(y,[2,12]),{21:[1,37]},t(f,[2,25]),t(f,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:S(function(x,C){if(C.recoverable)this.trace(x);else{var T=new Error(x);throw T.hash=C,T}},"parseError"),parse:S(function(x){var C=this,T=[0],w=[],N=[null],O=[],M=this.table,$="",F=0,A=0,I=2,D=1,L=O.slice.call(arguments,1),R=Object.create(this.lexer),P={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(P.yy[z]=this.yy[z]);R.setInput(x,P.yy),P.yy.lexer=R,P.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var B=R.yylloc;O.push(B);var q=R.options&&R.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(Ge){T.length=T.length-2*Ge,N.length=N.length-Ge,O.length=O.length-Ge}S(Y,"popStack");function Q(){var Ge;return Ge=w.pop()||R.lex()||D,typeof Ge!="number"&&(Ge instanceof Array&&(w=Ge,Ge=w.pop()),Ge=C.symbols_[Ge]||Ge),Ge}S(Q,"lex");for(var H,J,Z,pe,re={},ce,ae,se,xe;;){if(J=T[T.length-1],this.defaultActions[J]?Z=this.defaultActions[J]:((H===null||typeof H>"u")&&(H=Q()),Z=M[J]&&M[J][H]),typeof Z>"u"||!Z.length||!Z[0]){var Te="";xe=[];for(ce in M[J])this.terminals_[ce]&&ce>I&&xe.push("'"+this.terminals_[ce]+"'");R.showPosition?Te="Parse error on line "+(F+1)+`: `+R.showPosition()+` Expecting `+xe.join(", ")+", got '"+(this.terminals_[H]||H)+"'":Te="Parse error on line "+(F+1)+": Unexpected "+(H==D?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(Te,{text:R.match,token:this.terminals_[H]||H,line:R.yylineno,loc:B,expected:xe})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+H);switch(Z[0]){case 1:T.push(H),N.push(R.yytext),O.push(R.yylloc),T.push(Z[1]),H=null,A=R.yyleng,$=R.yytext,F=R.yylineno,B=R.yylloc;break;case 2:if(ae=this.productions_[Z[1]][1],re.$=N[N.length-ae],re._$={first_line:O[O.length-(ae||1)].first_line,last_line:O[O.length-1].last_line,first_column:O[O.length-(ae||1)].first_column,last_column:O[O.length-1].last_column},q&&(re._$.range=[O[O.length-(ae||1)].range[0],O[O.length-1].range[1]]),pe=this.performAction.apply(re,[$,A,F,P.yy,Z[1],N,O].concat(L)),typeof pe<"u")return pe;ae&&(T=T.slice(0,-1*ae*2),N=N.slice(0,-1*ae),O=O.slice(0,-1*ae)),T.push(this.productions_[Z[1]][0]),N.push(re.$),O.push(re._$),se=M[T[T.length-2]][T[T.length-1]],T.push(se);break;case 3:return!0}}return!0},"parse")},b=(function(){var E={EOF:1,parseError:S(function(C,T){if(this.yy.parser)this.yy.parser.parseError(C,T);else throw new Error(C)},"parseError"),setInput:S(function(x,C){return this.yy=C||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var C=x.match(/(?:\r\n?|\n).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:S(function(x){var C=x.length,T=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;var w=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),T.length-1&&(this.yylineno-=T.length-1);var N=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:T?(T.length===w.length?this.yylloc.first_column:0)+w[w.length-T.length].length-T[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[N[0],N[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(x){this.unput(this.match.slice(x))},"less"),pastInput:S(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var x=this.pastInput(),C=new Array(x.length+1).join("-");return x+this.upcomingInput()+` `+C+"^"},"showPosition"),test_match:S(function(x,C){var T,w,N;if(this.options.backtrack_lexer&&(N={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(N.yylloc.range=this.yylloc.range.slice(0))),w=x[0].match(/(?:\r\n?|\n).*/g),w&&(this.yylineno+=w.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:w?w[w.length-1].length-w[w.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+x[0].length},this.yytext+=x[0],this.match+=x[0],this.matches=x,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(x[0].length),this.matched+=x[0],T=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),T)return T;if(this._backtrack){for(var O in N)this[O]=N[O];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var x,C,T,w;this._more||(this.yytext="",this.match="");for(var N=this._currentRules(),O=0;OC[0].length)){if(C=T,w=O,this.options.backtrack_lexer){if(x=this.test_match(T,N[O]),x!==!1)return x;if(this._backtrack){C=!1;continue}else return!1}else if(!this.options.flex)break}return C?(x=this.test_match(C,N[w]),x!==!1?x:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var C=this.next();return C||this.lex()},"lex"),begin:S(function(C){this.conditionStack.push(C)},"begin"),popState:S(function(){var C=this.conditionStack.length-1;return C>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},"topState"),pushState:S(function(C){this.begin(C)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(C,T,w,N){switch(w){case 0:return C.getLogger().trace("Found comment",T.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:C.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return C.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:C.getLogger().trace("end icon"),this.popState();break;case 10:return C.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return C.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return C.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return C.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:C.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return C.getLogger().trace("description:",T.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),C.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),C.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),C.getLogger().trace("node end ...",T.yytext),"NODE_DEND";case 30:return this.popState(),C.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),C.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),C.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),C.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),C.getLogger().trace("node end (("),"NODE_DEND";case 35:return C.getLogger().trace("Long description:",T.yytext),20;case 36:return C.getLogger().trace("Long description:",T.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return E})();v.lexer=b;function _(){this.yy={}}return S(_,"Parser"),_.prototype=v,v.Parser=_,new _})();oz.parser=oz;var UIt=oz,GIt=12,qu={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},A_,qIt=(A_=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=qu,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let r=this.nodes.length-1;r>=0;r--)if(this.nodes[r].level0?this.nodes[0]:null}addNode(e,r,n,i){ge.info("addNode",e,r,n,i);let a=!1;this.nodes.length===0?(this.baseLevel=e,e=0,a=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,a=!1);const s=Ke();let o=s.mindmap?.padding??on.mindmap.padding;switch(i){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:o*=2;break}const l={id:this.count++,nodeId:un(r,s),level:e,descr:un(n,s),type:i,children:[],width:s.mindmap?.maxNodeWidth??on.mindmap.maxNodeWidth,padding:o,isRoot:a},u=this.getParent(e);if(u)u.children.push(l),this.nodes.push(l);else if(a)this.nodes.push(l);else throw new Error(`There can be only one root. No parent could be found for ("${l.descr}")`)}getType(e,r){switch(ge.debug("In get type",e,r),e){case"[":return this.nodeType.RECT;case"(":return r===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,r){this.elements[e]=r}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const r=Ke(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=un(e.icon,r)),e.class&&(n.class=un(e.class,r))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,r){if(e.level===0?e.section=void 0:e.section=r,e.children)for(const[n,i]of e.children.entries()){const a=e.level===0?n%(GIt-1):r;this.assignSections(i,a)}}flattenNodes(e,r){const n=Ke(),i=["mindmap-node"];e.isRoot===!0?i.push("section-root","section--1"):e.section!==void 0&&i.push(`section-${e.section}`),e.class&&i.push(e.class);const a=i.join(" "),s=S(l=>{const d=(n.theme?.toLowerCase()??"").includes("redux");switch(l){case qu.CIRCLE:return"mindmapCircle";case qu.RECT:return"rect";case qu.ROUNDED_RECT:return"rounded";case qu.CLOUD:return"cloud";case qu.BANG:return"bang";case qu.HEXAGON:return"hexagon";case qu.DEFAULT:return d?"rounded":"defaultMindmapNode";case qu.NO_BORDER:default:return"rect"}},"getShapeFromType"),o={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:s(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:a,cssStyles:[],look:n.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(r.push(o),e.children)for(const l of e.children)this.flattenNodes(l,r)}generateEdges(e,r){if(!e.children)return;const n=Ke();for(const i of e.children){let a="edge";i.section!==void 0&&(a+=` section-edge-${i.section}`);const s=e.level+1;a+=` edge-depth-${s}`;const o={id:`edge_${e.id}_${i.id}`,start:e.id.toString(),end:i.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:n.look,classes:a,depth:e.level,section:i.section};r.push(o),this.generateEdges(i,r)}}getData(){const e=this.getMindmap(),r=Ke(),i=CBe().layout!==void 0,a=r;if(i||(a.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:a};ge.debug("getData: mindmapRoot",e,r),this.assignSections(e);const s=[],o=[];this.flattenNodes(e,s),this.generateEdges(e,o),ge.debug(`getData: processed ${s.length} nodes and ${o.length} edges`);const l=new Map;for(const u of s)l.set(u.id,{shape:u.shape,width:u.width,height:u.height,padding:u.padding});return{nodes:s,edges:o,config:a,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(l),type:"mindmap",diagramId:"mindmap-"+$It()}}getLogger(){return ge}},S(A_,"MindmapDB"),A_),YIt=S(async(t,e,r,n)=>{ge.debug(`Rendering mindmap diagram -`+t);const i=n.db,a=i.getData(),s=o2(e,a.config.securityLevel);if(a.type=n.type,a.layoutAlgorithm=uT(a.config.layout,{fallback:"cose-bilkent"}),a.diagramId=e,!i.getMindmap())return;a.nodes.forEach(f=>{f.shape==="rounded"?(f.radius=15,f.taper=15,f.stroke="none",f.width=0,f.padding=15):f.shape==="circle"?f.padding=10:f.shape==="rect"?(f.width=0,f.padding=10):f.shape==="hexagon"&&(f.width=0,f.height=0)}),await Yb(a,s);const{themeVariables:l}=xr(),{useGradient:u,gradientStart:d,gradientStop:h}=l;if(u&&d&&h){const f=s.attr("id"),p=s.append("defs").append("linearGradient").attr("id",`${f}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");p.append("stop").attr("offset","0%").attr("stop-color",d).attr("stop-opacity",1),p.append("stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}sg(s,a.config.mindmap?.padding??on.mindmap.padding,"mindmapDiagram",a.config.mindmap?.useMaxWidth??on.mindmap.useMaxWidth)},"draw"),HIt={draw:YIt},VIt=S(t=>{const{theme:e,look:r}=t;let n="";for(let i=0;i0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},"topState"),pushState:S(function(C){this.begin(C)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(C,T,w,N){switch(w){case 0:return C.getLogger().trace("Found comment",T.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:C.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return C.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:C.getLogger().trace("end icon"),this.popState();break;case 10:return C.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return C.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return C.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return C.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:C.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return C.getLogger().trace("description:",T.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),C.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),C.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),C.getLogger().trace("node end ...",T.yytext),"NODE_DEND";case 30:return this.popState(),C.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),C.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),C.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),C.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),C.getLogger().trace("node end (("),"NODE_DEND";case 35:return C.getLogger().trace("Long description:",T.yytext),20;case 36:return C.getLogger().trace("Long description:",T.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return E})();v.lexer=b;function _(){this.yy={}}return S(_,"Parser"),_.prototype=v,v.Parser=_,new _})();oz.parser=oz;var GIt=oz,qIt=12,qu={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},A_,YIt=(A_=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=qu,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let r=this.nodes.length-1;r>=0;r--)if(this.nodes[r].level0?this.nodes[0]:null}addNode(e,r,n,i){ge.info("addNode",e,r,n,i);let a=!1;this.nodes.length===0?(this.baseLevel=e,e=0,a=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,a=!1);const s=Ke();let o=s.mindmap?.padding??on.mindmap.padding;switch(i){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:o*=2;break}const l={id:this.count++,nodeId:un(r,s),level:e,descr:un(n,s),type:i,children:[],width:s.mindmap?.maxNodeWidth??on.mindmap.maxNodeWidth,padding:o,isRoot:a},u=this.getParent(e);if(u)u.children.push(l),this.nodes.push(l);else if(a)this.nodes.push(l);else throw new Error(`There can be only one root. No parent could be found for ("${l.descr}")`)}getType(e,r){switch(ge.debug("In get type",e,r),e){case"[":return this.nodeType.RECT;case"(":return r===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,r){this.elements[e]=r}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const r=Ke(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=un(e.icon,r)),e.class&&(n.class=un(e.class,r))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,r){if(e.level===0?e.section=void 0:e.section=r,e.children)for(const[n,i]of e.children.entries()){const a=e.level===0?n%(qIt-1):r;this.assignSections(i,a)}}flattenNodes(e,r){const n=Ke(),i=["mindmap-node"];e.isRoot===!0?i.push("section-root","section--1"):e.section!==void 0&&i.push(`section-${e.section}`),e.class&&i.push(e.class);const a=i.join(" "),s=S(l=>{const d=(n.theme?.toLowerCase()??"").includes("redux");switch(l){case qu.CIRCLE:return"mindmapCircle";case qu.RECT:return"rect";case qu.ROUNDED_RECT:return"rounded";case qu.CLOUD:return"cloud";case qu.BANG:return"bang";case qu.HEXAGON:return"hexagon";case qu.DEFAULT:return d?"rounded":"defaultMindmapNode";case qu.NO_BORDER:default:return"rect"}},"getShapeFromType"),o={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:s(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:a,cssStyles:[],look:n.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(r.push(o),e.children)for(const l of e.children)this.flattenNodes(l,r)}generateEdges(e,r){if(!e.children)return;const n=Ke();for(const i of e.children){let a="edge";i.section!==void 0&&(a+=` section-edge-${i.section}`);const s=e.level+1;a+=` edge-depth-${s}`;const o={id:`edge_${e.id}_${i.id}`,start:e.id.toString(),end:i.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:n.look,classes:a,depth:e.level,section:i.section};r.push(o),this.generateEdges(i,r)}}getData(){const e=this.getMindmap(),r=Ke(),i=wBe().layout!==void 0,a=r;if(i||(a.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:a};ge.debug("getData: mindmapRoot",e,r),this.assignSections(e);const s=[],o=[];this.flattenNodes(e,s),this.generateEdges(e,o),ge.debug(`getData: processed ${s.length} nodes and ${o.length} edges`);const l=new Map;for(const u of s)l.set(u.id,{shape:u.shape,width:u.width,height:u.height,padding:u.padding});return{nodes:s,edges:o,config:a,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(l),type:"mindmap",diagramId:"mindmap-"+zIt()}}getLogger(){return ge}},S(A_,"MindmapDB"),A_),HIt=S(async(t,e,r,n)=>{ge.debug(`Rendering mindmap diagram +`+t);const i=n.db,a=i.getData(),s=o2(e,a.config.securityLevel);if(a.type=n.type,a.layoutAlgorithm=uT(a.config.layout,{fallback:"cose-bilkent"}),a.diagramId=e,!i.getMindmap())return;a.nodes.forEach(f=>{f.shape==="rounded"?(f.radius=15,f.taper=15,f.stroke="none",f.width=0,f.padding=15):f.shape==="circle"?f.padding=10:f.shape==="rect"?(f.width=0,f.padding=10):f.shape==="hexagon"&&(f.width=0,f.height=0)}),await Yb(a,s);const{themeVariables:l}=xr(),{useGradient:u,gradientStart:d,gradientStop:h}=l;if(u&&d&&h){const f=s.attr("id"),p=s.append("defs").append("linearGradient").attr("id",`${f}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");p.append("stop").attr("offset","0%").attr("stop-color",d).attr("stop-opacity",1),p.append("stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}sg(s,a.config.mindmap?.padding??on.mindmap.padding,"mindmapDiagram",a.config.mindmap?.useMaxWidth??on.mindmap.useMaxWidth)},"draw"),VIt={draw:HIt},WIt=S(t=>{const{theme:e,look:r}=t;let n="";for(let i=0;i{let n="";for(let i=0;i{let n="";for(let i=0;i{const{theme:e}=t,r=t.svgId,n=t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none";return` + }`;return n},"genGradient"),XIt=S(t=>{const{theme:e}=t,r=t.svgId,n=t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none";return` .edge { stroke-width: 3; } - ${VIt(t)} + ${WIt(t)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${t.git0}; } @@ -6867,18 +6867,18 @@ Expecting `+xe.join(", ")+", got '"+(this.terminals_[H]||H)+"'":Te="Parse error [data-look="neo"].mindmap-node.section-root .text-inner-tspan { fill: ${e?.includes("redux")?t.nodeBorder:t["cScaleLabel"+(e==="neutral"?1:0)]}; } - ${t.useGradient&&r&&t.mainBkg?WIt(t.THEME_COLOR_LIMIT,r,t.mainBkg):""} -`},"getStyles"),XIt=KIt,jIt={get db(){return new qIt},renderer:HIt,parser:UIt,styles:XIt};const QIt=Object.freeze(Object.defineProperty({__proto__:null,diagram:jIt},Symbol.toStringTag,{value:"Module"}));var lz=(function(){var t=S(function(T,w,N,O){for(N=N||{},O=T.length;O--;N[T[O]]=w);return N},"o"),e=[1,4],r=[1,13],n=[1,12],i=[1,15],a=[1,16],s=[1,20],o=[1,19],l=[6,7,8],u=[1,26],d=[1,24],h=[1,25],f=[6,7,11],p=[1,31],g=[6,7,11,24],m=[1,6,13,16,17,20,23],y=[1,35],v=[1,36],b=[1,6,7,11,13,16,17,20,23],_=[1,38],E={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:S(function(w,N,O,M,$,F,A){var I=F.length-1;switch($){case 6:case 7:return M;case 8:M.getLogger().trace("Stop NL ");break;case 9:M.getLogger().trace("Stop EOF ");break;case 11:M.getLogger().trace("Stop NL2 ");break;case 12:M.getLogger().trace("Stop EOF2 ");break;case 15:M.getLogger().info("Node: ",F[I-1].id),M.addNode(F[I-2].length,F[I-1].id,F[I-1].descr,F[I-1].type,F[I]);break;case 16:M.getLogger().info("Node: ",F[I].id),M.addNode(F[I-1].length,F[I].id,F[I].descr,F[I].type);break;case 17:M.getLogger().trace("Icon: ",F[I]),M.decorateNode({icon:F[I]});break;case 18:case 23:M.decorateNode({class:F[I]});break;case 19:M.getLogger().trace("SPACELIST");break;case 20:M.getLogger().trace("Node: ",F[I-1].id),M.addNode(0,F[I-1].id,F[I-1].descr,F[I-1].type,F[I]);break;case 21:M.getLogger().trace("Node: ",F[I].id),M.addNode(0,F[I].id,F[I].descr,F[I].type);break;case 22:M.decorateNode({icon:F[I]});break;case 27:M.getLogger().trace("node found ..",F[I-2]),this.$={id:F[I-1],descr:F[I-1],type:M.getType(F[I-2],F[I])};break;case 28:this.$={id:F[I],descr:F[I],type:0};break;case 29:M.getLogger().trace("node found ..",F[I-3]),this.$={id:F[I-3],descr:F[I-1],type:M.getType(F[I-2],F[I])};break;case 30:this.$=F[I-1]+F[I];break;case 31:this.$=F[I];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:o},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:o},{6:r,9:22,12:11,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:o},{6:u,7:d,10:23,11:h},t(f,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:o}),t(f,[2,19]),t(f,[2,21],{15:30,24:p}),t(f,[2,22]),t(f,[2,23]),t(g,[2,25]),t(g,[2,26]),t(g,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:h},{1:[2,7],6:r,12:21,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:o},t(m,[2,14],{7:y,11:v}),t(b,[2,8]),t(b,[2,9]),t(b,[2,10]),t(f,[2,16],{15:37,24:p}),t(f,[2,17]),t(f,[2,18]),t(f,[2,20],{24:_}),t(g,[2,31]),{21:[1,39]},{22:[1,40]},t(m,[2,13],{7:y,11:v}),t(b,[2,11]),t(b,[2,12]),t(f,[2,15],{24:_}),t(g,[2,30]),{22:[1,41]},t(g,[2,27]),t(g,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:S(function(w,N){if(N.recoverable)this.trace(w);else{var O=new Error(w);throw O.hash=N,O}},"parseError"),parse:S(function(w){var N=this,O=[0],M=[],$=[null],F=[],A=this.table,I="",D=0,L=0,R=2,P=1,z=F.slice.call(arguments,1),B=Object.create(this.lexer),q={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(q.yy[Y]=this.yy[Y]);B.setInput(w,q.yy),q.yy.lexer=B,q.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var Q=B.yylloc;F.push(Q);var H=B.options&&B.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function J(Le){O.length=O.length-2*Le,$.length=$.length-Le,F.length=F.length-Le}S(J,"popStack");function Z(){var Le;return Le=M.pop()||B.lex()||P,typeof Le!="number"&&(Le instanceof Array&&(M=Le,Le=M.pop()),Le=N.symbols_[Le]||Le),Le}S(Z,"lex");for(var pe,re,ce,ae,se={},xe,Te,Ge,ze;;){if(re=O[O.length-1],this.defaultActions[re]?ce=this.defaultActions[re]:((pe===null||typeof pe>"u")&&(pe=Z()),ce=A[re]&&A[re][pe]),typeof ce>"u"||!ce.length||!ce[0]){var Xe="";ze=[];for(xe in A[re])this.terminals_[xe]&&xe>R&&ze.push("'"+this.terminals_[xe]+"'");B.showPosition?Xe="Parse error on line "+(D+1)+`: + ${t.useGradient&&r&&t.mainBkg?KIt(t.THEME_COLOR_LIMIT,r,t.mainBkg):""} +`},"getStyles"),jIt=XIt,QIt={get db(){return new YIt},renderer:VIt,parser:GIt,styles:jIt};const ZIt=Object.freeze(Object.defineProperty({__proto__:null,diagram:QIt},Symbol.toStringTag,{value:"Module"}));var lz=(function(){var t=S(function(T,w,N,O){for(N=N||{},O=T.length;O--;N[T[O]]=w);return N},"o"),e=[1,4],r=[1,13],n=[1,12],i=[1,15],a=[1,16],s=[1,20],o=[1,19],l=[6,7,8],u=[1,26],d=[1,24],h=[1,25],f=[6,7,11],p=[1,31],g=[6,7,11,24],m=[1,6,13,16,17,20,23],y=[1,35],v=[1,36],b=[1,6,7,11,13,16,17,20,23],_=[1,38],E={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:S(function(w,N,O,M,$,F,A){var I=F.length-1;switch($){case 6:case 7:return M;case 8:M.getLogger().trace("Stop NL ");break;case 9:M.getLogger().trace("Stop EOF ");break;case 11:M.getLogger().trace("Stop NL2 ");break;case 12:M.getLogger().trace("Stop EOF2 ");break;case 15:M.getLogger().info("Node: ",F[I-1].id),M.addNode(F[I-2].length,F[I-1].id,F[I-1].descr,F[I-1].type,F[I]);break;case 16:M.getLogger().info("Node: ",F[I].id),M.addNode(F[I-1].length,F[I].id,F[I].descr,F[I].type);break;case 17:M.getLogger().trace("Icon: ",F[I]),M.decorateNode({icon:F[I]});break;case 18:case 23:M.decorateNode({class:F[I]});break;case 19:M.getLogger().trace("SPACELIST");break;case 20:M.getLogger().trace("Node: ",F[I-1].id),M.addNode(0,F[I-1].id,F[I-1].descr,F[I-1].type,F[I]);break;case 21:M.getLogger().trace("Node: ",F[I].id),M.addNode(0,F[I].id,F[I].descr,F[I].type);break;case 22:M.decorateNode({icon:F[I]});break;case 27:M.getLogger().trace("node found ..",F[I-2]),this.$={id:F[I-1],descr:F[I-1],type:M.getType(F[I-2],F[I])};break;case 28:this.$={id:F[I],descr:F[I],type:0};break;case 29:M.getLogger().trace("node found ..",F[I-3]),this.$={id:F[I-3],descr:F[I-1],type:M.getType(F[I-2],F[I])};break;case 30:this.$=F[I-1]+F[I];break;case 31:this.$=F[I];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:o},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:o},{6:r,9:22,12:11,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:o},{6:u,7:d,10:23,11:h},t(f,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:o}),t(f,[2,19]),t(f,[2,21],{15:30,24:p}),t(f,[2,22]),t(f,[2,23]),t(g,[2,25]),t(g,[2,26]),t(g,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:h},{1:[2,7],6:r,12:21,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:o},t(m,[2,14],{7:y,11:v}),t(b,[2,8]),t(b,[2,9]),t(b,[2,10]),t(f,[2,16],{15:37,24:p}),t(f,[2,17]),t(f,[2,18]),t(f,[2,20],{24:_}),t(g,[2,31]),{21:[1,39]},{22:[1,40]},t(m,[2,13],{7:y,11:v}),t(b,[2,11]),t(b,[2,12]),t(f,[2,15],{24:_}),t(g,[2,30]),{22:[1,41]},t(g,[2,27]),t(g,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:S(function(w,N){if(N.recoverable)this.trace(w);else{var O=new Error(w);throw O.hash=N,O}},"parseError"),parse:S(function(w){var N=this,O=[0],M=[],$=[null],F=[],A=this.table,I="",D=0,L=0,R=2,P=1,z=F.slice.call(arguments,1),B=Object.create(this.lexer),q={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(q.yy[Y]=this.yy[Y]);B.setInput(w,q.yy),q.yy.lexer=B,q.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var Q=B.yylloc;F.push(Q);var H=B.options&&B.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function J(Le){O.length=O.length-2*Le,$.length=$.length-Le,F.length=F.length-Le}S(J,"popStack");function Z(){var Le;return Le=M.pop()||B.lex()||P,typeof Le!="number"&&(Le instanceof Array&&(M=Le,Le=M.pop()),Le=N.symbols_[Le]||Le),Le}S(Z,"lex");for(var pe,re,ce,ae,se={},xe,Te,Ge,ze;;){if(re=O[O.length-1],this.defaultActions[re]?ce=this.defaultActions[re]:((pe===null||typeof pe>"u")&&(pe=Z()),ce=A[re]&&A[re][pe]),typeof ce>"u"||!ce.length||!ce[0]){var Xe="";ze=[];for(xe in A[re])this.terminals_[xe]&&xe>R&&ze.push("'"+this.terminals_[xe]+"'");B.showPosition?Xe="Parse error on line "+(D+1)+`: `+B.showPosition()+` Expecting `+ze.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":Xe="Parse error on line "+(D+1)+": Unexpected "+(pe==P?"end of input":"'"+(this.terminals_[pe]||pe)+"'"),this.parseError(Xe,{text:B.match,token:this.terminals_[pe]||pe,line:B.yylineno,loc:Q,expected:ze})}if(ce[0]instanceof Array&&ce.length>1)throw new Error("Parse Error: multiple actions possible at state: "+re+", token: "+pe);switch(ce[0]){case 1:O.push(pe),$.push(B.yytext),F.push(B.yylloc),O.push(ce[1]),pe=null,L=B.yyleng,I=B.yytext,D=B.yylineno,Q=B.yylloc;break;case 2:if(Te=this.productions_[ce[1]][1],se.$=$[$.length-Te],se._$={first_line:F[F.length-(Te||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(Te||1)].first_column,last_column:F[F.length-1].last_column},H&&(se._$.range=[F[F.length-(Te||1)].range[0],F[F.length-1].range[1]]),ae=this.performAction.apply(se,[I,L,D,q.yy,ce[1],$,F].concat(z)),typeof ae<"u")return ae;Te&&(O=O.slice(0,-1*Te*2),$=$.slice(0,-1*Te),F=F.slice(0,-1*Te)),O.push(this.productions_[ce[1]][0]),$.push(se.$),F.push(se._$),Ge=A[O[O.length-2]][O[O.length-1]],O.push(Ge);break;case 3:return!0}}return!0},"parse")},x=(function(){var T={EOF:1,parseError:S(function(N,O){if(this.yy.parser)this.yy.parser.parseError(N,O);else throw new Error(N)},"parseError"),setInput:S(function(w,N){return this.yy=N||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var N=w.match(/(?:\r\n?|\n).*/g);return N?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},"input"),unput:S(function(w){var N=w.length,O=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-N),this.offset-=N;var M=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),O.length-1&&(this.yylineno-=O.length-1);var $=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:O?(O.length===M.length?this.yylloc.first_column:0)+M[M.length-O.length].length-O[0].length:this.yylloc.first_column-N},this.options.ranges&&(this.yylloc.range=[$[0],$[0]+this.yyleng-N]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(w){this.unput(this.match.slice(w))},"less"),pastInput:S(function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var w=this.pastInput(),N=new Array(w.length+1).join("-");return w+this.upcomingInput()+` `+N+"^"},"showPosition"),test_match:S(function(w,N){var O,M,$;if(this.options.backtrack_lexer&&($={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&($.yylloc.range=this.yylloc.range.slice(0))),M=w[0].match(/(?:\r\n?|\n).*/g),M&&(this.yylineno+=M.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:M?M[M.length-1].length-M[M.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(w[0].length),this.matched+=w[0],O=this.performAction.call(this,this.yy,this,N,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(var F in $)this[F]=$[F];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,N,O,M;this._more||(this.yytext="",this.match="");for(var $=this._currentRules(),F=0;F<$.length;F++)if(O=this._input.match(this.rules[$[F]]),O&&(!N||O[0].length>N[0].length)){if(N=O,M=F,this.options.backtrack_lexer){if(w=this.test_match(O,$[F]),w!==!1)return w;if(this._backtrack){N=!1;continue}else return!1}else if(!this.options.flex)break}return N?(w=this.test_match(N,$[M]),w!==!1?w:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var N=this.next();return N||this.lex()},"lex"),begin:S(function(N){this.conditionStack.push(N)},"begin"),popState:S(function(){var N=this.conditionStack.length-1;return N>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(N){return N=this.conditionStack.length-1-Math.abs(N||0),N>=0?this.conditionStack[N]:"INITIAL"},"topState"),pushState:S(function(N){this.begin(N)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(N,O,M,$){switch(M){case 0:return this.pushState("shapeData"),O.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const F=/\n\s*/g;return O.yytext=O.yytext.replace(F,"
"),24;case 4:return 24;case 5:this.popState();break;case 6:return N.getLogger().trace("Found comment",O.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:N.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return N.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:N.getLogger().trace("end icon"),this.popState();break;case 16:return N.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return N.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return N.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return N.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:N.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return N.getLogger().trace("description:",O.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),N.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),N.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),N.getLogger().trace("node end ...",O.yytext),"NODE_DEND";case 36:return this.popState(),N.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),N.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),N.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),N.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),N.getLogger().trace("node end (("),"NODE_DEND";case 41:return N.getLogger().trace("Long description:",O.yytext),21;case 42:return N.getLogger().trace("Long description:",O.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return T})();E.lexer=x;function C(){this.yy={}}return S(C,"Parser"),C.prototype=E,E.Parser=C,new C})();lz.parser=lz;var ZIt=lz,hl=[],kW=[],cz=0,AW={},JIt=S(()=>{hl=[],kW=[],cz=0,AW={}},"clear"),eOt=S(t=>{if(hl.length===0)return null;const e=hl[0].level;let r=null;for(let n=hl.length-1;n>=0;n--)if(hl[n].level===e&&!r&&(r=hl[n]),hl[n].levelo.parentId===i.id);for(const o of s){const l={id:o.id,parentId:i.id,label:un(o.label??"",n),labelType:"markdown",isGroup:!1,ticket:o?.ticket,priority:o?.priority,assigned:o?.assigned,icon:o?.icon,shape:"kanbanItem",level:o.level,rx:5,ry:5,cssStyles:["text-align: left"]};e.push(l)}}return{nodes:e,edges:t,other:{},config:Ke()}},"getData"),rOt=S((t,e,r,n,i)=>{const a=Ke();let s=a.mindmap?.padding??on.mindmap.padding;switch(n){case ba.ROUNDED_RECT:case ba.RECT:case ba.HEXAGON:s*=2}const o={id:un(e,a)||"kbn"+cz++,level:t,label:un(r,a),width:a.mindmap?.maxNodeWidth??on.mindmap.maxNodeWidth,padding:s,isGroup:!1};if(i!==void 0){let u;i.includes(` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var N=this.next();return N||this.lex()},"lex"),begin:S(function(N){this.conditionStack.push(N)},"begin"),popState:S(function(){var N=this.conditionStack.length-1;return N>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(N){return N=this.conditionStack.length-1-Math.abs(N||0),N>=0?this.conditionStack[N]:"INITIAL"},"topState"),pushState:S(function(N){this.begin(N)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(N,O,M,$){switch(M){case 0:return this.pushState("shapeData"),O.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const F=/\n\s*/g;return O.yytext=O.yytext.replace(F,"
"),24;case 4:return 24;case 5:this.popState();break;case 6:return N.getLogger().trace("Found comment",O.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:N.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return N.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:N.getLogger().trace("end icon"),this.popState();break;case 16:return N.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return N.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return N.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return N.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:N.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return N.getLogger().trace("description:",O.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),N.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),N.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),N.getLogger().trace("node end ...",O.yytext),"NODE_DEND";case 36:return this.popState(),N.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),N.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),N.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),N.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),N.getLogger().trace("node end (("),"NODE_DEND";case 41:return N.getLogger().trace("Long description:",O.yytext),21;case 42:return N.getLogger().trace("Long description:",O.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return T})();E.lexer=x;function C(){this.yy={}}return S(C,"Parser"),C.prototype=E,E.Parser=C,new C})();lz.parser=lz;var JIt=lz,hl=[],kW=[],cz=0,AW={},eOt=S(()=>{hl=[],kW=[],cz=0,AW={}},"clear"),tOt=S(t=>{if(hl.length===0)return null;const e=hl[0].level;let r=null;for(let n=hl.length-1;n>=0;n--)if(hl[n].level===e&&!r&&(r=hl[n]),hl[n].levelo.parentId===i.id);for(const o of s){const l={id:o.id,parentId:i.id,label:un(o.label??"",n),labelType:"markdown",isGroup:!1,ticket:o?.ticket,priority:o?.priority,assigned:o?.assigned,icon:o?.icon,shape:"kanbanItem",level:o.level,rx:5,ry:5,cssStyles:["text-align: left"]};e.push(l)}}return{nodes:e,edges:t,other:{},config:Ke()}},"getData"),nOt=S((t,e,r,n,i)=>{const a=Ke();let s=a.mindmap?.padding??on.mindmap.padding;switch(n){case ba.ROUNDED_RECT:case ba.RECT:case ba.HEXAGON:s*=2}const o={id:un(e,a)||"kbn"+cz++,level:t,label:un(r,a),width:a.mindmap?.maxNodeWidth??on.mindmap.maxNodeWidth,padding:s,isGroup:!1};if(i!==void 0){let u;i.includes(` `)?u=i+` `:u=`{ `+i+` -}`;const d=wk(u,{schema:Ck});if(d.shape&&(d.shape!==d.shape.toLowerCase()||d.shape.includes("_")))throw new Error(`No such shape: ${d.shape}. Shape names should be lowercase.`);d?.shape&&d.shape==="kanbanItem"&&(o.shape=d?.shape),d?.label&&(o.label=d?.label),d?.icon&&(o.icon=d?.icon.toString()),d?.assigned&&(o.assigned=d?.assigned.toString()),d?.ticket&&(o.ticket=d?.ticket.toString()),d?.priority&&(o.priority=d?.priority)}const l=eOt(t);l?o.parentId=l.id||"kbn"+cz++:kW.push(o),hl.push(o)},"addNode"),ba={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},nOt=S((t,e)=>{switch(ge.debug("In get type",t,e),t){case"[":return ba.RECT;case"(":return e===")"?ba.ROUNDED_RECT:ba.CLOUD;case"((":return ba.CIRCLE;case")":return ba.CLOUD;case"))":return ba.BANG;case"{{":return ba.HEXAGON;default:return ba.DEFAULT}},"getType"),iOt=S((t,e)=>{AW[t]=e},"setElementForId"),aOt=S(t=>{if(!t)return;const e=Ke(),r=hl[hl.length-1];t.icon&&(r.icon=un(t.icon,e)),t.class&&(r.cssClasses=un(t.class,e))},"decorateNode"),sOt=S(t=>{switch(t){case ba.DEFAULT:return"no-border";case ba.RECT:return"rect";case ba.ROUNDED_RECT:return"rounded-rect";case ba.CIRCLE:return"circle";case ba.CLOUD:return"cloud";case ba.BANG:return"bang";case ba.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),oOt=S(()=>ge,"getLogger"),lOt=S(t=>AW[t],"getElementById"),cOt={clear:JIt,addNode:rOt,getSections:KAe,getData:tOt,nodeType:ba,getType:nOt,setElementForId:iOt,decorateNode:aOt,type2Str:sOt,getLogger:oOt,getElementById:lOt},uOt=cOt,dOt=S(async(t,e,r,n)=>{ge.debug(`Rendering kanban diagram -`+t);const a=n.db.getData(),s=Ke();s.htmlLabels=!1;const o=To(e);for(const y of a.nodes)y.domId=`${e}-${y.id}`;const l=o.append("g");l.attr("class","sections");const u=o.append("g");u.attr("class","items");const d=a.nodes.filter(y=>y.isGroup);let h=0;const f=10,p=[];let g=25;for(const y of d){const v=s?.kanban?.sectionWidth||200;h=h+1,y.x=v*h+(h-1)*f/2,y.width=v,y.y=0,y.height=v*3,y.rx=5,y.ry=5,y.cssClasses=y.cssClasses+" section-"+h;const b=await bG(l,y);g=Math.max(g,b?.labelBBox?.height),p.push(b)}let m=0;for(const y of d){const v=p[m];m=m+1;const b=s?.kanban?.sectionWidth||200,_=-b*3/2+g;let E=_;const x=a.nodes.filter(w=>w.parentId===y.id);for(const w of x){if(w.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");w.x=y.x,w.width=b-1.5*f;const O=(await Fk(u,w,{config:s})).node().getBBox();w.y=E+O.height/2,await IP(w),E=w.y+O.height/2+f/2}const C=v.cluster.select("rect"),T=Math.max(E-_+3*f,50)+(g-25);C.attr("height",T)}zb(void 0,o,s.mindmap?.padding??on.kanban.padding,s.mindmap?.useMaxWidth??on.kanban.useMaxWidth)},"draw"),hOt={draw:dOt},fOt=S(t=>{let e="";for(let n=0;nt.darkMode?_t(n,i):vt(n,i),"adjuster");for(let n=0;n{switch(ge.debug("In get type",t,e),t){case"[":return ba.RECT;case"(":return e===")"?ba.ROUNDED_RECT:ba.CLOUD;case"((":return ba.CIRCLE;case")":return ba.CLOUD;case"))":return ba.BANG;case"{{":return ba.HEXAGON;default:return ba.DEFAULT}},"getType"),aOt=S((t,e)=>{AW[t]=e},"setElementForId"),sOt=S(t=>{if(!t)return;const e=Ke(),r=hl[hl.length-1];t.icon&&(r.icon=un(t.icon,e)),t.class&&(r.cssClasses=un(t.class,e))},"decorateNode"),oOt=S(t=>{switch(t){case ba.DEFAULT:return"no-border";case ba.RECT:return"rect";case ba.ROUNDED_RECT:return"rounded-rect";case ba.CIRCLE:return"circle";case ba.CLOUD:return"cloud";case ba.BANG:return"bang";case ba.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),lOt=S(()=>ge,"getLogger"),cOt=S(t=>AW[t],"getElementById"),uOt={clear:eOt,addNode:nOt,getSections:KAe,getData:rOt,nodeType:ba,getType:iOt,setElementForId:aOt,decorateNode:sOt,type2Str:oOt,getLogger:lOt,getElementById:cOt},dOt=uOt,hOt=S(async(t,e,r,n)=>{ge.debug(`Rendering kanban diagram +`+t);const a=n.db.getData(),s=Ke();s.htmlLabels=!1;const o=To(e);for(const y of a.nodes)y.domId=`${e}-${y.id}`;const l=o.append("g");l.attr("class","sections");const u=o.append("g");u.attr("class","items");const d=a.nodes.filter(y=>y.isGroup);let h=0;const f=10,p=[];let g=25;for(const y of d){const v=s?.kanban?.sectionWidth||200;h=h+1,y.x=v*h+(h-1)*f/2,y.width=v,y.y=0,y.height=v*3,y.rx=5,y.ry=5,y.cssClasses=y.cssClasses+" section-"+h;const b=await bG(l,y);g=Math.max(g,b?.labelBBox?.height),p.push(b)}let m=0;for(const y of d){const v=p[m];m=m+1;const b=s?.kanban?.sectionWidth||200,_=-b*3/2+g;let E=_;const x=a.nodes.filter(w=>w.parentId===y.id);for(const w of x){if(w.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");w.x=y.x,w.width=b-1.5*f;const O=(await Fk(u,w,{config:s})).node().getBBox();w.y=E+O.height/2,await IP(w),E=w.y+O.height/2+f/2}const C=v.cluster.select("rect"),T=Math.max(E-_+3*f,50)+(g-25);C.attr("height",T)}zb(void 0,o,s.mindmap?.padding??on.kanban.padding,s.mindmap?.useMaxWidth??on.kanban.useMaxWidth)},"draw"),fOt={draw:hOt},pOt=S(t=>{let e="";for(let n=0;nt.darkMode?_t(n,i):vt(n,i),"adjuster");for(let n=0;n` + `}return e},"genSections"),gOt=S(t=>` .edge { stroke-width: 3; } - ${fOt(t)} + ${pOt(t)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${t.git0}; } @@ -6956,14 +6956,14 @@ Expecting `+ze.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":Xe="Parse erro text-align: center; } ${OT()} -`,"getStyles"),gOt=pOt,mOt={db:uOt,renderer:hOt,parser:ZIt,styles:gOt};const yOt=Object.freeze(Object.defineProperty({__proto__:null,diagram:mOt},Symbol.toStringTag,{value:"Module"}));function ale(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r=i)&&(r=i)}return r}function XAe(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function QL(t,e){let r=0;if(e===void 0)for(let n of t)(n=+n)&&(r+=n);else{let n=-1;for(let i of t)(i=+e(i,++n,t))&&(r+=i)}return r}function vOt(t){return t.target.depth}function _Ot(t){return t.depth}function bOt(t,e){return e-1-t.height}function jAe(t,e){return t.sourceLinks.length?t.depth:e-1}function EOt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?XAe(t.sourceLinks,vOt)-1:0}function L3(t){return function(){return t}}function sle(t,e){return Mw(t.source,e.source)||t.index-e.index}function ole(t,e){return Mw(t.target,e.target)||t.index-e.index}function Mw(t,e){return t.y0-e.y0}function ZL(t){return t.value}function SOt(t){return t.index}function TOt(t){return t.nodes}function xOt(t){return t.links}function lle(t,e){const r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function cle({nodes:t}){for(const e of t){let r=e.y0,n=r;for(const i of e.sourceLinks)i.y0=r+i.width/2,r+=i.width;for(const i of e.targetLinks)i.y1=n+i.width/2,n+=i.width}}function COt(){let t=0,e=0,r=1,n=1,i=24,a=8,s,o=SOt,l=jAe,u,d,h=TOt,f=xOt,p=6;function g(){const I={nodes:h.apply(null,arguments),links:f.apply(null,arguments)};return m(I),y(I),v(I),b(I),x(I),cle(I),I}g.update=function(I){return cle(I),I},g.nodeId=function(I){return arguments.length?(o=typeof I=="function"?I:L3(I),g):o},g.nodeAlign=function(I){return arguments.length?(l=typeof I=="function"?I:L3(I),g):l},g.nodeSort=function(I){return arguments.length?(u=I,g):u},g.nodeWidth=function(I){return arguments.length?(i=+I,g):i},g.nodePadding=function(I){return arguments.length?(a=s=+I,g):a},g.nodes=function(I){return arguments.length?(h=typeof I=="function"?I:L3(I),g):h},g.links=function(I){return arguments.length?(f=typeof I=="function"?I:L3(I),g):f},g.linkSort=function(I){return arguments.length?(d=I,g):d},g.size=function(I){return arguments.length?(t=e=0,r=+I[0],n=+I[1],g):[r-t,n-e]},g.extent=function(I){return arguments.length?(t=+I[0][0],r=+I[1][0],e=+I[0][1],n=+I[1][1],g):[[t,e],[r,n]]},g.iterations=function(I){return arguments.length?(p=+I,g):p};function m({nodes:I,links:D}){for(const[R,P]of I.entries())P.index=R,P.sourceLinks=[],P.targetLinks=[];const L=new Map(I.map((R,P)=>[o(R,P,I),R]));for(const[R,P]of D.entries()){P.index=R;let{source:z,target:B}=P;typeof z!="object"&&(z=P.source=lle(L,z)),typeof B!="object"&&(B=P.target=lle(L,B)),z.sourceLinks.push(P),B.targetLinks.push(P)}if(d!=null)for(const{sourceLinks:R,targetLinks:P}of I)R.sort(d),P.sort(d)}function y({nodes:I}){for(const D of I)D.value=D.fixedValue===void 0?Math.max(QL(D.sourceLinks,ZL),QL(D.targetLinks,ZL)):D.fixedValue}function v({nodes:I}){const D=I.length;let L=new Set(I),R=new Set,P=0;for(;L.size;){for(const z of L){z.depth=P;for(const{target:B}of z.sourceLinks)R.add(B)}if(++P>D)throw new Error("circular link");L=R,R=new Set}}function b({nodes:I}){const D=I.length;let L=new Set(I),R=new Set,P=0;for(;L.size;){for(const z of L){z.height=P;for(const{source:B}of z.targetLinks)R.add(B)}if(++P>D)throw new Error("circular link");L=R,R=new Set}}function _({nodes:I}){const D=ale(I,P=>P.depth)+1,L=(r-t-i)/(D-1),R=new Array(D);for(const P of I){const z=Math.max(0,Math.min(D-1,Math.floor(l.call(null,P,D))));P.layer=z,P.x0=t+z*L,P.x1=P.x0+i,R[z]?R[z].push(P):R[z]=[P]}if(u)for(const P of R)P.sort(u);return R}function E(I){const D=XAe(I,L=>(n-e-(L.length-1)*s)/QL(L,ZL));for(const L of I){let R=e;for(const P of L){P.y0=R,P.y1=R+P.value*D,R=P.y1+s;for(const z of P.sourceLinks)z.width=z.value*D}R=(n-R+s)/(L.length+1);for(let P=0;PL.length)-1)),E(D);for(let L=0;L0))continue;let Q=(q/Y-B.y0)*D;B.y0+=Q,B.y1+=Q,M(B)}u===void 0&&z.sort(Mw),w(z,L)}}function T(I,D,L){for(let R=I.length,P=R-2;P>=0;--P){const z=I[P];for(const B of z){let q=0,Y=0;for(const{target:H,value:J}of B.sourceLinks){let Z=J*(H.layer-B.layer);q+=A(B,H)*Z,Y+=Z}if(!(Y>0))continue;let Q=(q/Y-B.y0)*D;B.y0+=Q,B.y1+=Q,M(B)}u===void 0&&z.sort(Mw),w(z,L)}}function w(I,D){const L=I.length>>1,R=I[L];O(I,R.y0-s,L-1,D),N(I,R.y1+s,L+1,D),O(I,n,I.length-1,D),N(I,e,0,D)}function N(I,D,L,R){for(;L1e-6&&(P.y0+=z,P.y1+=z),D=P.y1+s}}function O(I,D,L,R){for(;L>=0;--L){const P=I[L],z=(P.y1-D)*R;z>1e-6&&(P.y0-=z,P.y1-=z),D=P.y0-s}}function M({sourceLinks:I,targetLinks:D}){if(d===void 0){for(const{source:{sourceLinks:L}}of D)L.sort(ole);for(const{target:{targetLinks:L}}of I)L.sort(sle)}}function $(I){if(d===void 0)for(const{sourceLinks:D,targetLinks:L}of I)D.sort(ole),L.sort(sle)}function F(I,D){let L=I.y0-(I.sourceLinks.length-1)*s/2;for(const{target:R,width:P}of I.sourceLinks){if(R===D)break;L+=P+s}for(const{source:R,width:P}of D.targetLinks){if(R===I)break;L-=P}return L}function A(I,D){let L=D.y0-(D.targetLinks.length-1)*s/2;for(const{source:R,width:P}of D.targetLinks){if(R===I)break;L+=P+s}for(const{target:R,width:P}of I.sourceLinks){if(R===D)break;L-=P}return L}return g}var uz=Math.PI,dz=2*uz,Of=1e-6,wOt=dz-Of;function hz(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function QAe(){return new hz}hz.prototype=QAe.prototype={constructor:hz,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+="Q"+ +t+","+ +e+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+="C"+ +t+","+ +e+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,r,n,i){t=+t,e=+e,r=+r,n=+n,i=+i;var a=this._x1,s=this._y1,o=r-t,l=n-e,u=a-t,d=s-e,h=u*u+d*d;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>Of)if(!(Math.abs(d*o-l*u)>Of)||!i)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var f=r-a,p=n-s,g=o*o+l*l,m=f*f+p*p,y=Math.sqrt(g),v=Math.sqrt(h),b=i*Math.tan((uz-Math.acos((g+h-m)/(2*y*v)))/2),_=b/v,E=b/y;Math.abs(_-1)>Of&&(this._+="L"+(t+_*u)+","+(e+_*d)),this._+="A"+i+","+i+",0,0,"+ +(d*f>u*p)+","+(this._x1=t+E*o)+","+(this._y1=e+E*l)}},arc:function(t,e,r,n,i,a){t=+t,e=+e,r=+r,a=!!a;var s=r*Math.cos(n),o=r*Math.sin(n),l=t+s,u=e+o,d=1^a,h=a?n-i:i-n;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+u:(Math.abs(this._x1-l)>Of||Math.abs(this._y1-u)>Of)&&(this._+="L"+l+","+u),r&&(h<0&&(h=h%dz+dz),h>wOt?this._+="A"+r+","+r+",0,1,"+d+","+(t-s)+","+(e-o)+"A"+r+","+r+",0,1,"+d+","+(this._x1=l)+","+(this._y1=u):h>Of&&(this._+="A"+r+","+r+",0,"+ +(h>=uz)+","+d+","+(this._x1=t+r*Math.cos(i))+","+(this._y1=e+r*Math.sin(i))))},rect:function(t,e,r,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};function ule(t){return function(){return t}}function kOt(t){return t[0]}function AOt(t){return t[1]}var ROt=Array.prototype.slice;function NOt(t){return t.source}function IOt(t){return t.target}function OOt(t){var e=NOt,r=IOt,n=kOt,i=AOt,a=null;function s(){var o,l=ROt.call(arguments),u=e.apply(this,l),d=r.apply(this,l);if(a||(a=o=QAe()),t(a,+n.apply(this,(l[0]=u,l)),+i.apply(this,l),+n.apply(this,(l[0]=d,l)),+i.apply(this,l)),o)return a=null,o+""||null}return s.source=function(o){return arguments.length?(e=o,s):e},s.target=function(o){return arguments.length?(r=o,s):r},s.x=function(o){return arguments.length?(n=typeof o=="function"?o:ule(+o),s):n},s.y=function(o){return arguments.length?(i=typeof o=="function"?o:ule(+o),s):i},s.context=function(o){return arguments.length?(a=o??null,s):a},s}function DOt(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function LOt(){return OOt(DOt)}function MOt(t){return[t.source.x1,t.y0]}function POt(t){return[t.target.x0,t.y1]}function BOt(){return LOt().source(MOt).target(POt)}var fz=(function(){var t=S(function(o,l,u,d){for(u=u||{},d=o.length;d--;u[o[d]]=l);return u},"o"),e=[1,9],r=[1,10],n=[1,5,10,12],i={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:S(function(l,u,d,h,f,p,g){var m=p.length-1;switch(f){case 7:const y=h.findOrCreateNode(p[m-4].trim().replaceAll('""','"')),v=h.findOrCreateNode(p[m-2].trim().replaceAll('""','"')),b=parseFloat(p[m].trim());h.addLink(y,v,b);break;case 8:case 9:case 11:this.$=p[m];break;case 10:this.$=p[m-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(n,[2,8]),t(n,[2,9]),{19:[1,16]},t(n,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:r},{15:18,16:7,17:8,18:e,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(n,[2,10]),{15:21,16:7,17:8,18:e,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:S(function(l,u){if(u.recoverable)this.trace(l);else{var d=new Error(l);throw d.hash=u,d}},"parseError"),parse:S(function(l){var u=this,d=[0],h=[],f=[null],p=[],g=this.table,m="",y=0,v=0,b=2,_=1,E=p.slice.call(arguments,1),x=Object.create(this.lexer),C={yy:{}};for(var T in this.yy)Object.prototype.hasOwnProperty.call(this.yy,T)&&(C.yy[T]=this.yy[T]);x.setInput(l,C.yy),C.yy.lexer=x,C.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var w=x.yylloc;p.push(w);var N=x.options&&x.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(q){d.length=d.length-2*q,f.length=f.length-q,p.length=p.length-q}S(O,"popStack");function M(){var q;return q=h.pop()||x.lex()||_,typeof q!="number"&&(q instanceof Array&&(h=q,q=h.pop()),q=u.symbols_[q]||q),q}S(M,"lex");for(var $,F,A,I,D={},L,R,P,z;;){if(F=d[d.length-1],this.defaultActions[F]?A=this.defaultActions[F]:(($===null||typeof $>"u")&&($=M()),A=g[F]&&g[F][$]),typeof A>"u"||!A.length||!A[0]){var B="";z=[];for(L in g[F])this.terminals_[L]&&L>b&&z.push("'"+this.terminals_[L]+"'");x.showPosition?B="Parse error on line "+(y+1)+`: +`,"getStyles"),mOt=gOt,yOt={db:dOt,renderer:fOt,parser:JIt,styles:mOt};const vOt=Object.freeze(Object.defineProperty({__proto__:null,diagram:yOt},Symbol.toStringTag,{value:"Module"}));function ale(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r=i)&&(r=i)}return r}function XAe(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function QL(t,e){let r=0;if(e===void 0)for(let n of t)(n=+n)&&(r+=n);else{let n=-1;for(let i of t)(i=+e(i,++n,t))&&(r+=i)}return r}function _Ot(t){return t.target.depth}function bOt(t){return t.depth}function EOt(t,e){return e-1-t.height}function jAe(t,e){return t.sourceLinks.length?t.depth:e-1}function SOt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?XAe(t.sourceLinks,_Ot)-1:0}function L3(t){return function(){return t}}function sle(t,e){return Mw(t.source,e.source)||t.index-e.index}function ole(t,e){return Mw(t.target,e.target)||t.index-e.index}function Mw(t,e){return t.y0-e.y0}function ZL(t){return t.value}function TOt(t){return t.index}function xOt(t){return t.nodes}function COt(t){return t.links}function lle(t,e){const r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function cle({nodes:t}){for(const e of t){let r=e.y0,n=r;for(const i of e.sourceLinks)i.y0=r+i.width/2,r+=i.width;for(const i of e.targetLinks)i.y1=n+i.width/2,n+=i.width}}function wOt(){let t=0,e=0,r=1,n=1,i=24,a=8,s,o=TOt,l=jAe,u,d,h=xOt,f=COt,p=6;function g(){const I={nodes:h.apply(null,arguments),links:f.apply(null,arguments)};return m(I),y(I),v(I),b(I),x(I),cle(I),I}g.update=function(I){return cle(I),I},g.nodeId=function(I){return arguments.length?(o=typeof I=="function"?I:L3(I),g):o},g.nodeAlign=function(I){return arguments.length?(l=typeof I=="function"?I:L3(I),g):l},g.nodeSort=function(I){return arguments.length?(u=I,g):u},g.nodeWidth=function(I){return arguments.length?(i=+I,g):i},g.nodePadding=function(I){return arguments.length?(a=s=+I,g):a},g.nodes=function(I){return arguments.length?(h=typeof I=="function"?I:L3(I),g):h},g.links=function(I){return arguments.length?(f=typeof I=="function"?I:L3(I),g):f},g.linkSort=function(I){return arguments.length?(d=I,g):d},g.size=function(I){return arguments.length?(t=e=0,r=+I[0],n=+I[1],g):[r-t,n-e]},g.extent=function(I){return arguments.length?(t=+I[0][0],r=+I[1][0],e=+I[0][1],n=+I[1][1],g):[[t,e],[r,n]]},g.iterations=function(I){return arguments.length?(p=+I,g):p};function m({nodes:I,links:D}){for(const[R,P]of I.entries())P.index=R,P.sourceLinks=[],P.targetLinks=[];const L=new Map(I.map((R,P)=>[o(R,P,I),R]));for(const[R,P]of D.entries()){P.index=R;let{source:z,target:B}=P;typeof z!="object"&&(z=P.source=lle(L,z)),typeof B!="object"&&(B=P.target=lle(L,B)),z.sourceLinks.push(P),B.targetLinks.push(P)}if(d!=null)for(const{sourceLinks:R,targetLinks:P}of I)R.sort(d),P.sort(d)}function y({nodes:I}){for(const D of I)D.value=D.fixedValue===void 0?Math.max(QL(D.sourceLinks,ZL),QL(D.targetLinks,ZL)):D.fixedValue}function v({nodes:I}){const D=I.length;let L=new Set(I),R=new Set,P=0;for(;L.size;){for(const z of L){z.depth=P;for(const{target:B}of z.sourceLinks)R.add(B)}if(++P>D)throw new Error("circular link");L=R,R=new Set}}function b({nodes:I}){const D=I.length;let L=new Set(I),R=new Set,P=0;for(;L.size;){for(const z of L){z.height=P;for(const{source:B}of z.targetLinks)R.add(B)}if(++P>D)throw new Error("circular link");L=R,R=new Set}}function _({nodes:I}){const D=ale(I,P=>P.depth)+1,L=(r-t-i)/(D-1),R=new Array(D);for(const P of I){const z=Math.max(0,Math.min(D-1,Math.floor(l.call(null,P,D))));P.layer=z,P.x0=t+z*L,P.x1=P.x0+i,R[z]?R[z].push(P):R[z]=[P]}if(u)for(const P of R)P.sort(u);return R}function E(I){const D=XAe(I,L=>(n-e-(L.length-1)*s)/QL(L,ZL));for(const L of I){let R=e;for(const P of L){P.y0=R,P.y1=R+P.value*D,R=P.y1+s;for(const z of P.sourceLinks)z.width=z.value*D}R=(n-R+s)/(L.length+1);for(let P=0;PL.length)-1)),E(D);for(let L=0;L0))continue;let Q=(q/Y-B.y0)*D;B.y0+=Q,B.y1+=Q,M(B)}u===void 0&&z.sort(Mw),w(z,L)}}function T(I,D,L){for(let R=I.length,P=R-2;P>=0;--P){const z=I[P];for(const B of z){let q=0,Y=0;for(const{target:H,value:J}of B.sourceLinks){let Z=J*(H.layer-B.layer);q+=A(B,H)*Z,Y+=Z}if(!(Y>0))continue;let Q=(q/Y-B.y0)*D;B.y0+=Q,B.y1+=Q,M(B)}u===void 0&&z.sort(Mw),w(z,L)}}function w(I,D){const L=I.length>>1,R=I[L];O(I,R.y0-s,L-1,D),N(I,R.y1+s,L+1,D),O(I,n,I.length-1,D),N(I,e,0,D)}function N(I,D,L,R){for(;L1e-6&&(P.y0+=z,P.y1+=z),D=P.y1+s}}function O(I,D,L,R){for(;L>=0;--L){const P=I[L],z=(P.y1-D)*R;z>1e-6&&(P.y0-=z,P.y1-=z),D=P.y0-s}}function M({sourceLinks:I,targetLinks:D}){if(d===void 0){for(const{source:{sourceLinks:L}}of D)L.sort(ole);for(const{target:{targetLinks:L}}of I)L.sort(sle)}}function $(I){if(d===void 0)for(const{sourceLinks:D,targetLinks:L}of I)D.sort(ole),L.sort(sle)}function F(I,D){let L=I.y0-(I.sourceLinks.length-1)*s/2;for(const{target:R,width:P}of I.sourceLinks){if(R===D)break;L+=P+s}for(const{source:R,width:P}of D.targetLinks){if(R===I)break;L-=P}return L}function A(I,D){let L=D.y0-(D.targetLinks.length-1)*s/2;for(const{source:R,width:P}of D.targetLinks){if(R===I)break;L+=P+s}for(const{target:R,width:P}of I.sourceLinks){if(R===D)break;L-=P}return L}return g}var uz=Math.PI,dz=2*uz,Of=1e-6,kOt=dz-Of;function hz(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function QAe(){return new hz}hz.prototype=QAe.prototype={constructor:hz,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+="Q"+ +t+","+ +e+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+="C"+ +t+","+ +e+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,r,n,i){t=+t,e=+e,r=+r,n=+n,i=+i;var a=this._x1,s=this._y1,o=r-t,l=n-e,u=a-t,d=s-e,h=u*u+d*d;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>Of)if(!(Math.abs(d*o-l*u)>Of)||!i)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var f=r-a,p=n-s,g=o*o+l*l,m=f*f+p*p,y=Math.sqrt(g),v=Math.sqrt(h),b=i*Math.tan((uz-Math.acos((g+h-m)/(2*y*v)))/2),_=b/v,E=b/y;Math.abs(_-1)>Of&&(this._+="L"+(t+_*u)+","+(e+_*d)),this._+="A"+i+","+i+",0,0,"+ +(d*f>u*p)+","+(this._x1=t+E*o)+","+(this._y1=e+E*l)}},arc:function(t,e,r,n,i,a){t=+t,e=+e,r=+r,a=!!a;var s=r*Math.cos(n),o=r*Math.sin(n),l=t+s,u=e+o,d=1^a,h=a?n-i:i-n;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+u:(Math.abs(this._x1-l)>Of||Math.abs(this._y1-u)>Of)&&(this._+="L"+l+","+u),r&&(h<0&&(h=h%dz+dz),h>kOt?this._+="A"+r+","+r+",0,1,"+d+","+(t-s)+","+(e-o)+"A"+r+","+r+",0,1,"+d+","+(this._x1=l)+","+(this._y1=u):h>Of&&(this._+="A"+r+","+r+",0,"+ +(h>=uz)+","+d+","+(this._x1=t+r*Math.cos(i))+","+(this._y1=e+r*Math.sin(i))))},rect:function(t,e,r,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};function ule(t){return function(){return t}}function AOt(t){return t[0]}function ROt(t){return t[1]}var NOt=Array.prototype.slice;function IOt(t){return t.source}function OOt(t){return t.target}function DOt(t){var e=IOt,r=OOt,n=AOt,i=ROt,a=null;function s(){var o,l=NOt.call(arguments),u=e.apply(this,l),d=r.apply(this,l);if(a||(a=o=QAe()),t(a,+n.apply(this,(l[0]=u,l)),+i.apply(this,l),+n.apply(this,(l[0]=d,l)),+i.apply(this,l)),o)return a=null,o+""||null}return s.source=function(o){return arguments.length?(e=o,s):e},s.target=function(o){return arguments.length?(r=o,s):r},s.x=function(o){return arguments.length?(n=typeof o=="function"?o:ule(+o),s):n},s.y=function(o){return arguments.length?(i=typeof o=="function"?o:ule(+o),s):i},s.context=function(o){return arguments.length?(a=o??null,s):a},s}function LOt(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function MOt(){return DOt(LOt)}function POt(t){return[t.source.x1,t.y0]}function BOt(t){return[t.target.x0,t.y1]}function FOt(){return MOt().source(POt).target(BOt)}var fz=(function(){var t=S(function(o,l,u,d){for(u=u||{},d=o.length;d--;u[o[d]]=l);return u},"o"),e=[1,9],r=[1,10],n=[1,5,10,12],i={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:S(function(l,u,d,h,f,p,g){var m=p.length-1;switch(f){case 7:const y=h.findOrCreateNode(p[m-4].trim().replaceAll('""','"')),v=h.findOrCreateNode(p[m-2].trim().replaceAll('""','"')),b=parseFloat(p[m].trim());h.addLink(y,v,b);break;case 8:case 9:case 11:this.$=p[m];break;case 10:this.$=p[m-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(n,[2,8]),t(n,[2,9]),{19:[1,16]},t(n,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:r},{15:18,16:7,17:8,18:e,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(n,[2,10]),{15:21,16:7,17:8,18:e,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:S(function(l,u){if(u.recoverable)this.trace(l);else{var d=new Error(l);throw d.hash=u,d}},"parseError"),parse:S(function(l){var u=this,d=[0],h=[],f=[null],p=[],g=this.table,m="",y=0,v=0,b=2,_=1,E=p.slice.call(arguments,1),x=Object.create(this.lexer),C={yy:{}};for(var T in this.yy)Object.prototype.hasOwnProperty.call(this.yy,T)&&(C.yy[T]=this.yy[T]);x.setInput(l,C.yy),C.yy.lexer=x,C.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var w=x.yylloc;p.push(w);var N=x.options&&x.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(q){d.length=d.length-2*q,f.length=f.length-q,p.length=p.length-q}S(O,"popStack");function M(){var q;return q=h.pop()||x.lex()||_,typeof q!="number"&&(q instanceof Array&&(h=q,q=h.pop()),q=u.symbols_[q]||q),q}S(M,"lex");for(var $,F,A,I,D={},L,R,P,z;;){if(F=d[d.length-1],this.defaultActions[F]?A=this.defaultActions[F]:(($===null||typeof $>"u")&&($=M()),A=g[F]&&g[F][$]),typeof A>"u"||!A.length||!A[0]){var B="";z=[];for(L in g[F])this.terminals_[L]&&L>b&&z.push("'"+this.terminals_[L]+"'");x.showPosition?B="Parse error on line "+(y+1)+`: `+x.showPosition()+` Expecting `+z.join(", ")+", got '"+(this.terminals_[$]||$)+"'":B="Parse error on line "+(y+1)+": Unexpected "+($==_?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(B,{text:x.match,token:this.terminals_[$]||$,line:x.yylineno,loc:w,expected:z})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+$);switch(A[0]){case 1:d.push($),f.push(x.yytext),p.push(x.yylloc),d.push(A[1]),$=null,v=x.yyleng,m=x.yytext,y=x.yylineno,w=x.yylloc;break;case 2:if(R=this.productions_[A[1]][1],D.$=f[f.length-R],D._$={first_line:p[p.length-(R||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(R||1)].first_column,last_column:p[p.length-1].last_column},N&&(D._$.range=[p[p.length-(R||1)].range[0],p[p.length-1].range[1]]),I=this.performAction.apply(D,[m,v,y,C.yy,A[1],f,p].concat(E)),typeof I<"u")return I;R&&(d=d.slice(0,-1*R*2),f=f.slice(0,-1*R),p=p.slice(0,-1*R)),d.push(this.productions_[A[1]][0]),f.push(D.$),p.push(D._$),P=g[d[d.length-2]][d[d.length-1]],d.push(P);break;case 3:return!0}}return!0},"parse")},a=(function(){var o={EOF:1,parseError:S(function(u,d){if(this.yy.parser)this.yy.parser.parseError(u,d);else throw new Error(u)},"parseError"),setInput:S(function(l,u){return this.yy=u||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var u=l.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:S(function(l){var u=l.length,d=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===h.length?this.yylloc.first_column:0)+h[h.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(l){this.unput(this.match.slice(l))},"less"),pastInput:S(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var l=this.pastInput(),u=new Array(l.length+1).join("-");return l+this.upcomingInput()+` `+u+"^"},"showPosition"),test_match:S(function(l,u){var d,h,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),h=l[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],d=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var p in f)this[p]=f[p];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,u,d,h;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),p=0;pu[0].length)){if(u=d,h=p,this.options.backtrack_lexer){if(l=this.test_match(d,f[p]),l!==!1)return l;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(l=this.test_match(u,f[h]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var u=this.next();return u||this.lex()},"lex"),begin:S(function(u){this.conditionStack.push(u)},"begin"),popState:S(function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},"topState"),pushState:S(function(u){this.begin(u)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(u,d,h,f){switch(h){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return o})();i.lexer=a;function s(){this.yy={}}return S(s,"Parser"),s.prototype=i,i.Parser=s,new s})();fz.parser=fz;var Pw=fz,l8=[],c8=[],Bw=new Map,FOt=S(()=>{l8=[],c8=[],Bw=new Map,oi()},"clear"),R_,$Ot=(R_=class{constructor(e,r,n=0){this.source=e,this.target=r,this.value=n}},S(R_,"SankeyLink"),R_),zOt=S((t,e,r)=>{l8.push(new $Ot(t,e,r))},"addLink"),N_,UOt=(N_=class{constructor(e){this.ID=e}},S(N_,"SankeyNode"),N_),GOt=S(t=>{t=qt.sanitizeText(t,Ke());let e=Bw.get(t);return e===void 0&&(e=new UOt(t),Bw.set(t,e),c8.push(e)),e},"findOrCreateNode"),qOt=S(()=>c8,"getNodes"),YOt=S(()=>l8,"getLinks"),HOt=S(()=>({nodes:c8.map(t=>({id:t.ID})),links:l8.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),VOt={nodesMap:Bw,getConfig:S(()=>Ke().sankey,"getConfig"),getNodes:qOt,getLinks:YOt,getGraph:HOt,addLink:zOt,findOrCreateNode:GOt,getAccTitle:yi,setAccTitle:ai,getAccDescription:_i,setAccDescription:vi,getDiagramTitle:li,setDiagramTitle:pi,clear:FOt},h0,dle=(h0=class{static next(e){return new h0(e+ ++h0.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return"url("+this.href+")"}},S(h0,"Uid"),h0.count=0,h0),WOt={left:_Ot,right:bOt,center:EOt,justify:jAe},KOt=S(t=>{let e=0,r=0;for(const n of t){const i=n.value??0;i>e&&(e=i,r=n.layer??0)}return r},"findCentralNodeLayer"),XOt=S(function(t,e,r,n){const{securityLevel:i,sankey:a}=Ke(),s=A0e.sankey;let o;i==="sandbox"&&(o=At("#i"+e));const l=At(i==="sandbox"?o.nodes()[0].contentDocument.body:"body"),u=i==="sandbox"?l.select(`[id="${e}"]`):At(`[id="${e}"]`),d=a?.width??s.width,h=a?.height??s.width,f=a?.useMaxWidth??s.useMaxWidth,p=a?.nodeAlignment??s.nodeAlignment,g=a?.prefix??s.prefix,m=a?.suffix??s.suffix,y=a?.showValues??s.showValues,v=a?.nodeWidth??s.nodeWidth??10,b=a?.nodePadding??s.nodePadding??12,_=a?.labelStyle??s.labelStyle??"legacy",E=a?.nodeColors??{},x=n.db.getGraph(),C=WOt[p];COt().nodeId(R=>R.id).nodeWidth(v).nodePadding(b+(y?15:0)).nodeAlign(C).extent([[0,0],[d,h]])(x);const w=KOt(x.nodes),N=hp(Jqe),O=S(R=>E[R]??N(R),"getNodeColor");u.append("g").attr("class","nodes").selectAll(".node").data(x.nodes).join("g").attr("class","node").attr("id",R=>(R.uid=dle.next("node-")).id).attr("transform",function(R){return"translate("+R.x0+","+R.y0+")"}).attr("x",R=>R.x0).attr("y",R=>R.y0).append("rect").attr("height",R=>R.y1-R.y0).attr("width",R=>R.x1-R.x0).attr("fill",R=>O(R.id));const M=S(({id:R,value:P})=>y?`${R} -${g}${Math.round(P*100)/100}${m}`:R,"getText"),$=S(R=>_==="outlined"?(R.layer??0)F.selectAll(R?`.${R}`:"text").data(x.nodes).join("text").attr("class",R??null).attr("x",P=>$(P).x).attr("y",P=>(P.y1+P.y0)/2).attr("dy",`${y?"0":"0.35"}em`).attr("text-anchor",P=>$(P).anchor).text(M),"appendLabel");_==="outlined"?(A("sankey-label-bg"),A("sankey-label-fg")):A();const I=u.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(x.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),D=a?.linkColor??"gradient";if(D==="gradient"){const R=I.append("linearGradient").attr("id",P=>(P.uid=dle.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",P=>P.source.x1).attr("x2",P=>P.target.x0);R.append("stop").attr("offset","0%").attr("stop-color",P=>O(P.source.id)),R.append("stop").attr("offset","100%").attr("stop-color",P=>O(P.target.id))}let L;switch(D){case"gradient":L=S(R=>R.uid,"coloring");break;case"source":L=S(R=>O(R.source.id),"coloring");break;case"target":L=S(R=>O(R.target.id),"coloring");break;default:L=D}I.append("path").attr("d",BOt()).attr("stroke",L).attr("stroke-width",R=>Math.max(1,R.width)),zb(void 0,u,0,f)},"draw"),jOt={draw:XOt},QOt=S(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` -`).trim(),"prepareTextForParsing"),ZOt=S(t=>`.label { +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var u=this.next();return u||this.lex()},"lex"),begin:S(function(u){this.conditionStack.push(u)},"begin"),popState:S(function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},"topState"),pushState:S(function(u){this.begin(u)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(u,d,h,f){switch(h){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return o})();i.lexer=a;function s(){this.yy={}}return S(s,"Parser"),s.prototype=i,i.Parser=s,new s})();fz.parser=fz;var Pw=fz,l8=[],c8=[],Bw=new Map,$Ot=S(()=>{l8=[],c8=[],Bw=new Map,oi()},"clear"),R_,zOt=(R_=class{constructor(e,r,n=0){this.source=e,this.target=r,this.value=n}},S(R_,"SankeyLink"),R_),UOt=S((t,e,r)=>{l8.push(new zOt(t,e,r))},"addLink"),N_,GOt=(N_=class{constructor(e){this.ID=e}},S(N_,"SankeyNode"),N_),qOt=S(t=>{t=qt.sanitizeText(t,Ke());let e=Bw.get(t);return e===void 0&&(e=new GOt(t),Bw.set(t,e),c8.push(e)),e},"findOrCreateNode"),YOt=S(()=>c8,"getNodes"),HOt=S(()=>l8,"getLinks"),VOt=S(()=>({nodes:c8.map(t=>({id:t.ID})),links:l8.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),WOt={nodesMap:Bw,getConfig:S(()=>Ke().sankey,"getConfig"),getNodes:YOt,getLinks:HOt,getGraph:VOt,addLink:UOt,findOrCreateNode:qOt,getAccTitle:yi,setAccTitle:ai,getAccDescription:_i,setAccDescription:vi,getDiagramTitle:li,setDiagramTitle:pi,clear:$Ot},h0,dle=(h0=class{static next(e){return new h0(e+ ++h0.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return"url("+this.href+")"}},S(h0,"Uid"),h0.count=0,h0),KOt={left:bOt,right:EOt,center:SOt,justify:jAe},XOt=S(t=>{let e=0,r=0;for(const n of t){const i=n.value??0;i>e&&(e=i,r=n.layer??0)}return r},"findCentralNodeLayer"),jOt=S(function(t,e,r,n){const{securityLevel:i,sankey:a}=Ke(),s=A0e.sankey;let o;i==="sandbox"&&(o=At("#i"+e));const l=At(i==="sandbox"?o.nodes()[0].contentDocument.body:"body"),u=i==="sandbox"?l.select(`[id="${e}"]`):At(`[id="${e}"]`),d=a?.width??s.width,h=a?.height??s.width,f=a?.useMaxWidth??s.useMaxWidth,p=a?.nodeAlignment??s.nodeAlignment,g=a?.prefix??s.prefix,m=a?.suffix??s.suffix,y=a?.showValues??s.showValues,v=a?.nodeWidth??s.nodeWidth??10,b=a?.nodePadding??s.nodePadding??12,_=a?.labelStyle??s.labelStyle??"legacy",E=a?.nodeColors??{},x=n.db.getGraph(),C=KOt[p];wOt().nodeId(R=>R.id).nodeWidth(v).nodePadding(b+(y?15:0)).nodeAlign(C).extent([[0,0],[d,h]])(x);const w=XOt(x.nodes),N=hp(eYe),O=S(R=>E[R]??N(R),"getNodeColor");u.append("g").attr("class","nodes").selectAll(".node").data(x.nodes).join("g").attr("class","node").attr("id",R=>(R.uid=dle.next("node-")).id).attr("transform",function(R){return"translate("+R.x0+","+R.y0+")"}).attr("x",R=>R.x0).attr("y",R=>R.y0).append("rect").attr("height",R=>R.y1-R.y0).attr("width",R=>R.x1-R.x0).attr("fill",R=>O(R.id));const M=S(({id:R,value:P})=>y?`${R} +${g}${Math.round(P*100)/100}${m}`:R,"getText"),$=S(R=>_==="outlined"?(R.layer??0)F.selectAll(R?`.${R}`:"text").data(x.nodes).join("text").attr("class",R??null).attr("x",P=>$(P).x).attr("y",P=>(P.y1+P.y0)/2).attr("dy",`${y?"0":"0.35"}em`).attr("text-anchor",P=>$(P).anchor).text(M),"appendLabel");_==="outlined"?(A("sankey-label-bg"),A("sankey-label-fg")):A();const I=u.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(x.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),D=a?.linkColor??"gradient";if(D==="gradient"){const R=I.append("linearGradient").attr("id",P=>(P.uid=dle.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",P=>P.source.x1).attr("x2",P=>P.target.x0);R.append("stop").attr("offset","0%").attr("stop-color",P=>O(P.source.id)),R.append("stop").attr("offset","100%").attr("stop-color",P=>O(P.target.id))}let L;switch(D){case"gradient":L=S(R=>R.uid,"coloring");break;case"source":L=S(R=>O(R.source.id),"coloring");break;case"target":L=S(R=>O(R.target.id),"coloring");break;default:L=D}I.append("path").attr("d",FOt()).attr("stroke",L).attr("stroke-width",R=>Math.max(1,R.width)),zb(void 0,u,0,f)},"draw"),QOt={draw:jOt},ZOt=S(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` +`).trim(),"prepareTextForParsing"),JOt=S(t=>`.label { font-family: ${t.fontFamily}; } @@ -6995,7 +6995,7 @@ ${g}${Math.round(P*100)/100}${m}`:R,"getText"),$=S(R=>_==="outlined"?(R.layer??0 stroke-opacity: 0.5; mix-blend-mode: multiply; } -`,"getStyles"),JOt=ZOt,e9t=Pw.parse.bind(Pw);Pw.parse=t=>e9t(QOt(t));var t9t={styles:JOt,parser:Pw,db:VOt,renderer:jOt};const r9t=Object.freeze(Object.defineProperty({__proto__:null,diagram:t9t},Symbol.toStringTag,{value:"Module"}));var n9t=on.packet,I_,ZAe=(I_=class{constructor(){this.packet=[],this.setAccTitle=ai,this.getAccTitle=yi,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.getAccDescription=_i,this.setAccDescription=vi}getConfig(){const e=$i({...n9t,...xr().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){oi(),this.packet=[]}},S(I_,"PacketDB"),I_),i9t=1e4,a9t=S((t,e)=>{wu(t,e);let r=-1,n=[],i=1;const{bitsPerRow:a}=e.getConfig();for(let{start:s,end:o,bits:l,label:u}of t.blocks){if(s!==void 0&&o!==void 0&&o{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const n=e*r-1,i=e*r;return[{start:t.start,end:n,label:t.label,bits:n-t.start},{start:i,end:t.end,label:t.label,bits:t.end-i}]},"getNextFittingBlock"),JAe={parser:{yy:void 0},parse:S(async t=>{const e=await _c("packet",t),r=JAe.parser?.yy;if(!(r instanceof ZAe))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ge.debug(e),a9t(e,r)},"parse")},o9t=S((t,e,r,n)=>{const i=n.db,a=i.getConfig(),{rowHeight:s,paddingY:o,bitWidth:l,bitsPerRow:u}=a,d=i.getPacket(),h=i.getDiagramTitle(),f=s+o,p=f*(d.length+1)-(h?0:s),g=l*u+2,m=To(e);m.attr("viewBox",`0 0 ${g} ${p}`),ua(m,p,g,a.useMaxWidth);for(const[y,v]of d.entries())l9t(m,v,y,a);m.append("text").text(h).attr("x",g/2).attr("y",p-f/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),l9t=S((t,e,r,{rowHeight:n,paddingX:i,paddingY:a,bitWidth:s,bitsPerRow:o,showBits:l})=>{const u=t.append("g"),d=r*(n+a)+a;for(const h of e){const f=h.start%o*s+1,p=(h.end-h.start+1)*s-i;if(u.append("rect").attr("x",f).attr("y",d).attr("width",p).attr("height",n).attr("class","packetBlock"),u.append("text").attr("x",f+p/2).attr("y",d+n/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(h.label),!l)continue;const g=h.end===h.start,m=d-2;u.append("text").attr("x",f+(g?p/2:0)).attr("y",m).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",g?"middle":"start").text(h.start),g||u.append("text").attr("x",f+p).attr("y",m).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(h.end)}},"drawWord"),c9t={draw:o9t},u9t={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},d9t=S(({packet:t}={})=>{const e=$i(u9t,t);return` +`,"getStyles"),e9t=JOt,t9t=Pw.parse.bind(Pw);Pw.parse=t=>t9t(ZOt(t));var r9t={styles:e9t,parser:Pw,db:WOt,renderer:QOt};const n9t=Object.freeze(Object.defineProperty({__proto__:null,diagram:r9t},Symbol.toStringTag,{value:"Module"}));var i9t=on.packet,I_,ZAe=(I_=class{constructor(){this.packet=[],this.setAccTitle=ai,this.getAccTitle=yi,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.getAccDescription=_i,this.setAccDescription=vi}getConfig(){const e=$i({...i9t,...xr().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){oi(),this.packet=[]}},S(I_,"PacketDB"),I_),a9t=1e4,s9t=S((t,e)=>{wu(t,e);let r=-1,n=[],i=1;const{bitsPerRow:a}=e.getConfig();for(let{start:s,end:o,bits:l,label:u}of t.blocks){if(s!==void 0&&o!==void 0&&o{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const n=e*r-1,i=e*r;return[{start:t.start,end:n,label:t.label,bits:n-t.start},{start:i,end:t.end,label:t.label,bits:t.end-i}]},"getNextFittingBlock"),JAe={parser:{yy:void 0},parse:S(async t=>{const e=await _c("packet",t),r=JAe.parser?.yy;if(!(r instanceof ZAe))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ge.debug(e),s9t(e,r)},"parse")},l9t=S((t,e,r,n)=>{const i=n.db,a=i.getConfig(),{rowHeight:s,paddingY:o,bitWidth:l,bitsPerRow:u}=a,d=i.getPacket(),h=i.getDiagramTitle(),f=s+o,p=f*(d.length+1)-(h?0:s),g=l*u+2,m=To(e);m.attr("viewBox",`0 0 ${g} ${p}`),ua(m,p,g,a.useMaxWidth);for(const[y,v]of d.entries())c9t(m,v,y,a);m.append("text").text(h).attr("x",g/2).attr("y",p-f/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),c9t=S((t,e,r,{rowHeight:n,paddingX:i,paddingY:a,bitWidth:s,bitsPerRow:o,showBits:l})=>{const u=t.append("g"),d=r*(n+a)+a;for(const h of e){const f=h.start%o*s+1,p=(h.end-h.start+1)*s-i;if(u.append("rect").attr("x",f).attr("y",d).attr("width",p).attr("height",n).attr("class","packetBlock"),u.append("text").attr("x",f+p/2).attr("y",d+n/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(h.label),!l)continue;const g=h.end===h.start,m=d-2;u.append("text").attr("x",f+(g?p/2:0)).attr("y",m).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",g?"middle":"start").text(h.start),g||u.append("text").attr("x",f+p).attr("y",m).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(h.end)}},"drawWord"),u9t={draw:l9t},d9t={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},h9t=S(({packet:t}={})=>{const e=$i(d9t,t);return` .packetByte { font-size: ${e.byteFontSize}; } @@ -7018,7 +7018,7 @@ ${g}${Math.round(P*100)/100}${m}`:R,"getText"),$=S(R=>_==="outlined"?(R.layer??0 stroke-width: ${e.blockStrokeWidth}; fill: ${e.blockFillColor}; } - `},"styles"),h9t={parser:JAe,get db(){return new ZAe},renderer:c9t,styles:d9t};const f9t=Object.freeze(Object.defineProperty({__proto__:null,diagram:h9t},Symbol.toStringTag,{value:"Module"}));var _m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},e8e={axes:[],curves:[],options:_m},Ng=structuredClone(e8e),p9t=on.radar,g9t=S(()=>$i({...p9t,...xr().radar}),"getConfig"),t8e=S(()=>Ng.axes,"getAxes"),m9t=S(()=>Ng.curves,"getCurves"),y9t=S(()=>Ng.options,"getOptions"),v9t=S(t=>{Ng.axes=t.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),_9t=S(t=>{Ng.curves=t.map(e=>({name:e.name,label:e.label??e.name,entries:b9t(e.entries)}))},"setCurves"),b9t=S(t=>{if(t[0].axis==null)return t.map(r=>r.value);const e=t8e();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(r=>{const n=t.find(i=>i.axis?.$refText===r.name);if(n===void 0)throw new Error("Missing entry for axis "+r.label);return n.value})},"computeCurveEntries"),E9t=S(t=>{const e=t.reduce((r,n)=>(r[n.name]=n,r),{});Ng.options={showLegend:e.showLegend?.value??_m.showLegend,ticks:e.ticks?.value??_m.ticks,max:e.max?.value??_m.max,min:e.min?.value??_m.min,graticule:e.graticule?.value??_m.graticule}},"setOptions"),S9t=S(()=>{oi(),Ng=structuredClone(e8e)},"clear"),PE={getAxes:t8e,getCurves:m9t,getOptions:y9t,setAxes:v9t,setCurves:_9t,setOptions:E9t,getConfig:g9t,clear:S9t,setAccTitle:ai,getAccTitle:yi,setDiagramTitle:pi,getDiagramTitle:li,getAccDescription:_i,setAccDescription:vi},T9t=S(t=>{wu(t,PE);const{axes:e,curves:r,options:n}=t;PE.setAxes(e),PE.setCurves(r),PE.setOptions(n)},"populate"),x9t={parse:S(async t=>{const e=await _c("radar",t);ge.debug(e),T9t(e)},"parse")},C9t=S((t,e,r,n)=>{const i=n.db,a=i.getAxes(),s=i.getCurves(),o=i.getOptions(),l=i.getConfig(),u=i.getDiagramTitle(),d=To(e),h=w9t(d,l),f=o.max??Math.max(...s.map(m=>Math.max(...m.entries))),p=o.min,g=Math.min(l.width,l.height)/2;k9t(h,a,g,o.ticks,o.graticule),A9t(h,a,g,l),r8e(h,a,s,p,f,o.graticule,l),a8e(h,s,o.showLegend,l),h.append("text").attr("class","radarTitle").text(u).attr("x",0).attr("y",-l.height/2-l.marginTop)},"draw"),w9t=S((t,e)=>{const r=e.width+e.marginLeft+e.marginRight,n=e.height+e.marginTop+e.marginBottom,i={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return ua(t,n,r,e.useMaxWidth??!0),t.attr("viewBox",`0 0 ${r} ${n}`),t.append("g").attr("transform",`translate(${i.x}, ${i.y})`)},"drawFrame"),k9t=S((t,e,r,n,i)=>{if(i==="circle")for(let a=0;a{const h=2*d*Math.PI/a-Math.PI/2,f=o*Math.cos(h),p=o*Math.sin(h);return`${f},${p}`}).join(" ");t.append("polygon").attr("points",l).attr("class","radarGraticule")}}},"drawGraticule"),A9t=S((t,e,r,n)=>{const i=e.length;for(let a=0;a{if(u.entries.length!==o)return;const h=u.entries.map((f,p)=>{const g=2*Math.PI*p/o-Math.PI/2,m=n8e(f,n,i,l),y=m*Math.cos(g),v=m*Math.sin(g);return{x:y,y:v}});a==="circle"?t.append("path").attr("d",i8e(h,s.curveTension)).attr("class",`radarCurve-${d}`):a==="polygon"&&t.append("polygon").attr("points",h.map(f=>`${f.x},${f.y}`).join(" ")).attr("class",`radarCurve-${d}`)})}S(r8e,"drawCurves");function n8e(t,e,r,n){const i=Math.min(Math.max(t,e),r);return n*(i-e)/(r-e)}S(n8e,"relativeRadius");function i8e(t,e){const r=t.length;let n=`M${t[0].x},${t[0].y}`;for(let i=0;i{const u=t.append("g").attr("transform",`translate(${i}, ${a+l*s})`);u.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${l}`),u.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(o.label)})}S(a8e,"drawLegend");var R9t={draw:C9t},N9t=S((t,e)=>{let r="";for(let n=0;n$i({...g9t,...xr().radar}),"getConfig"),t8e=S(()=>Ng.axes,"getAxes"),y9t=S(()=>Ng.curves,"getCurves"),v9t=S(()=>Ng.options,"getOptions"),_9t=S(t=>{Ng.axes=t.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),b9t=S(t=>{Ng.curves=t.map(e=>({name:e.name,label:e.label??e.name,entries:E9t(e.entries)}))},"setCurves"),E9t=S(t=>{if(t[0].axis==null)return t.map(r=>r.value);const e=t8e();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(r=>{const n=t.find(i=>i.axis?.$refText===r.name);if(n===void 0)throw new Error("Missing entry for axis "+r.label);return n.value})},"computeCurveEntries"),S9t=S(t=>{const e=t.reduce((r,n)=>(r[n.name]=n,r),{});Ng.options={showLegend:e.showLegend?.value??_m.showLegend,ticks:e.ticks?.value??_m.ticks,max:e.max?.value??_m.max,min:e.min?.value??_m.min,graticule:e.graticule?.value??_m.graticule}},"setOptions"),T9t=S(()=>{oi(),Ng=structuredClone(e8e)},"clear"),PE={getAxes:t8e,getCurves:y9t,getOptions:v9t,setAxes:_9t,setCurves:b9t,setOptions:S9t,getConfig:m9t,clear:T9t,setAccTitle:ai,getAccTitle:yi,setDiagramTitle:pi,getDiagramTitle:li,getAccDescription:_i,setAccDescription:vi},x9t=S(t=>{wu(t,PE);const{axes:e,curves:r,options:n}=t;PE.setAxes(e),PE.setCurves(r),PE.setOptions(n)},"populate"),C9t={parse:S(async t=>{const e=await _c("radar",t);ge.debug(e),x9t(e)},"parse")},w9t=S((t,e,r,n)=>{const i=n.db,a=i.getAxes(),s=i.getCurves(),o=i.getOptions(),l=i.getConfig(),u=i.getDiagramTitle(),d=To(e),h=k9t(d,l),f=o.max??Math.max(...s.map(m=>Math.max(...m.entries))),p=o.min,g=Math.min(l.width,l.height)/2;A9t(h,a,g,o.ticks,o.graticule),R9t(h,a,g,l),r8e(h,a,s,p,f,o.graticule,l),a8e(h,s,o.showLegend,l),h.append("text").attr("class","radarTitle").text(u).attr("x",0).attr("y",-l.height/2-l.marginTop)},"draw"),k9t=S((t,e)=>{const r=e.width+e.marginLeft+e.marginRight,n=e.height+e.marginTop+e.marginBottom,i={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return ua(t,n,r,e.useMaxWidth??!0),t.attr("viewBox",`0 0 ${r} ${n}`),t.append("g").attr("transform",`translate(${i.x}, ${i.y})`)},"drawFrame"),A9t=S((t,e,r,n,i)=>{if(i==="circle")for(let a=0;a{const h=2*d*Math.PI/a-Math.PI/2,f=o*Math.cos(h),p=o*Math.sin(h);return`${f},${p}`}).join(" ");t.append("polygon").attr("points",l).attr("class","radarGraticule")}}},"drawGraticule"),R9t=S((t,e,r,n)=>{const i=e.length;for(let a=0;a{if(u.entries.length!==o)return;const h=u.entries.map((f,p)=>{const g=2*Math.PI*p/o-Math.PI/2,m=n8e(f,n,i,l),y=m*Math.cos(g),v=m*Math.sin(g);return{x:y,y:v}});a==="circle"?t.append("path").attr("d",i8e(h,s.curveTension)).attr("class",`radarCurve-${d}`):a==="polygon"&&t.append("polygon").attr("points",h.map(f=>`${f.x},${f.y}`).join(" ")).attr("class",`radarCurve-${d}`)})}S(r8e,"drawCurves");function n8e(t,e,r,n){const i=Math.min(Math.max(t,e),r);return n*(i-e)/(r-e)}S(n8e,"relativeRadius");function i8e(t,e){const r=t.length;let n=`M${t[0].x},${t[0].y}`;for(let i=0;i{const u=t.append("g").attr("transform",`translate(${i}, ${a+l*s})`);u.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${l}`),u.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(o.label)})}S(a8e,"drawLegend");var N9t={draw:w9t},I9t=S((t,e)=>{let r="";for(let n=0;n_==="outlined"?(R.layer??0 fill-opacity: ${e.curveOpacity}; stroke: ${i}; } - `}return r},"genIndexStyles"),I9t=S(t=>{const e=Fb(),r=xr(),n=$i(e,r.themeVariables),i=$i(n.radar,t);return{themeVariables:n,radarOptions:i}},"buildRadarStyleOptions"),O9t=S(({radar:t}={})=>{const{themeVariables:e,radarOptions:r}=I9t(t);return` + `}return r},"genIndexStyles"),O9t=S(t=>{const e=Fb(),r=xr(),n=$i(e,r.themeVariables),i=$i(n.radar,t);return{themeVariables:n,radarOptions:i}},"buildRadarStyleOptions"),D9t=S(({radar:t}={})=>{const{themeVariables:e,radarOptions:r}=O9t(t);return` .radarTitle { font-size: ${e.fontSize}; color: ${e.titleColor}; @@ -7059,13 +7059,13 @@ ${g}${Math.round(P*100)/100}${m}`:R,"getText"),$=S(R=>_==="outlined"?(R.layer??0 font-size: ${r.legendFontSize}px; dominant-baseline: hanging; } - ${N9t(e,r)} - `},"styles"),D9t={parser:x9t,db:PE,renderer:R9t,styles:O9t};const L9t=Object.freeze(Object.defineProperty({__proto__:null,diagram:D9t},Symbol.toStringTag,{value:"Module"}));var pz=(function(){var t=S(function(_,E,x,C){for(x=x||{},C=_.length;C--;x[_[C]]=E);return x},"o"),e=[1,15],r=[1,7],n=[1,13],i=[1,14],a=[1,19],s=[1,16],o=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],h=[1,23],f=[1,24],p=[8,10,15,16,21,28,29,30,31,39,43,46],g=[8,10,15,16,21,27,28,29,30,31,39,43,46],m=[1,49],y={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:S(function(E,x,C,T,w,N,O){var M=N.length-1;switch(w){case 4:T.getLogger().debug("Rule: separator (NL) ");break;case 5:T.getLogger().debug("Rule: separator (Space) ");break;case 6:T.getLogger().debug("Rule: separator (EOF) ");break;case 7:T.getLogger().debug("Rule: hierarchy: ",N[M-1]),T.setHierarchy(N[M-1]);break;case 8:T.getLogger().debug("Stop NL ");break;case 9:T.getLogger().debug("Stop EOF ");break;case 10:T.getLogger().debug("Stop NL2 ");break;case 11:T.getLogger().debug("Stop EOF2 ");break;case 12:T.getLogger().debug("Rule: statement: ",N[M]),typeof N[M].length=="number"?this.$=N[M]:this.$=[N[M]];break;case 13:T.getLogger().debug("Rule: statement #2: ",N[M-1]),this.$=[N[M-1]].concat(N[M]);break;case 14:T.getLogger().debug("Rule: link: ",N[M],E),this.$={edgeTypeStr:N[M],label:""};break;case 15:T.getLogger().debug("Rule: LABEL link: ",N[M-3],N[M-1],N[M]),this.$={edgeTypeStr:N[M],label:N[M-1]};break;case 18:const $=parseInt(N[M]),F=T.generateId();this.$={id:F,type:"space",label:"",width:$,children:[]};break;case 23:T.getLogger().debug("Rule: (nodeStatement link node) ",N[M-2],N[M-1],N[M]," typestr: ",N[M-1].edgeTypeStr);const A=T.edgeStrToEdgeData(N[M-1].edgeTypeStr),I=T.edgeStrToEdgeStartData(N[M-1].edgeTypeStr),D=T.edgeStrToThickness(N[M-1].edgeTypeStr),L=T.edgeStrToPattern(N[M-1].edgeTypeStr);this.$=[{id:N[M-2].id,label:N[M-2].label,type:N[M-2].type,directions:N[M-2].directions},{id:N[M-2].id+"-"+N[M].id,start:N[M-2].id,end:N[M].id,label:N[M-1].label,type:"edge",thickness:D,pattern:L,directions:N[M].directions,arrowTypeEnd:A,arrowTypeStart:I},{id:N[M].id,label:N[M].label,type:T.typeStr2Type(N[M].typeStr),directions:N[M].directions}];break;case 24:T.getLogger().debug("Rule: nodeStatement (abc88 node size) ",N[M-1],N[M]),this.$={id:N[M-1].id,label:N[M-1].label,type:T.typeStr2Type(N[M-1].typeStr),directions:N[M-1].directions,widthInColumns:parseInt(N[M],10)};break;case 25:T.getLogger().debug("Rule: nodeStatement (node) ",N[M]),this.$={id:N[M].id,label:N[M].label,type:T.typeStr2Type(N[M].typeStr),directions:N[M].directions,widthInColumns:1};break;case 26:T.getLogger().debug("APA123",this?this:"na"),T.getLogger().debug("COLUMNS: ",N[M]),this.$={type:"column-setting",columns:N[M]==="auto"?-1:parseInt(N[M])};break;case 27:T.getLogger().debug("Rule: id-block statement : ",N[M-2],N[M-1]),T.generateId(),this.$={...N[M-2],type:"composite",children:N[M-1]};break;case 28:T.getLogger().debug("Rule: blockStatement : ",N[M-2],N[M-1],N[M]);const R=T.generateId();this.$={id:R,type:"composite",label:"",children:N[M-1]};break;case 29:T.getLogger().debug("Rule: node (NODE_ID separator): ",N[M]),this.$={id:N[M]};break;case 30:T.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",N[M-1],N[M]),this.$={id:N[M-1],label:N[M].label,typeStr:N[M].typeStr,directions:N[M].directions};break;case 31:T.getLogger().debug("Rule: dirList: ",N[M]),this.$=[N[M]];break;case 32:T.getLogger().debug("Rule: dirList: ",N[M-1],N[M]),this.$=[N[M-1]].concat(N[M]);break;case 33:T.getLogger().debug("Rule: nodeShapeNLabel: ",N[M-2],N[M-1],N[M]),this.$={typeStr:N[M-2]+N[M],label:N[M-1]};break;case 34:T.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",N[M-3],N[M-2]," #3:",N[M-1],N[M]),this.$={typeStr:N[M-3]+N[M],label:N[M-2],directions:N[M-1]};break;case 35:case 36:this.$={type:"classDef",id:N[M-1].trim(),css:N[M].trim()};break;case 37:this.$={type:"applyClass",id:N[M-1].trim(),styleClass:N[M].trim()};break;case 38:this.$={type:"applyStyles",id:N[M-1].trim(),stylesStr:N[M].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:e,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:o,46:l},{8:[1,20]},t(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:e,21:r,28:n,29:i,31:a,39:s,43:o,46:l}),t(d,[2,16],{14:22,15:h,16:f}),t(d,[2,17]),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),t(d,[2,21]),t(d,[2,22]),t(p,[2,25],{27:[1,25]}),t(d,[2,26]),{19:26,26:12,31:a},{10:e,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:o,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},t(g,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},t(u,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},t(p,[2,24]),{10:e,11:37,13:4,14:22,15:h,16:f,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:o,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},t(g,[2,30]),{18:[1,43]},{18:[1,44]},t(p,[2,23]),{18:[1,45]},{30:[1,46]},t(d,[2,28]),t(d,[2,35]),t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{36:[1,47]},{33:48,34:m},{15:[1,50]},t(d,[2,27]),t(g,[2,33]),{38:[1,51]},{33:52,34:m,38:[2,31]},{31:[2,15]},t(g,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:S(function(E,x){if(x.recoverable)this.trace(E);else{var C=new Error(E);throw C.hash=x,C}},"parseError"),parse:S(function(E){var x=this,C=[0],T=[],w=[null],N=[],O=this.table,M="",$=0,F=0,A=2,I=1,D=N.slice.call(arguments,1),L=Object.create(this.lexer),R={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(R.yy[P]=this.yy[P]);L.setInput(E,R.yy),R.yy.lexer=L,R.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var z=L.yylloc;N.push(z);var B=L.options&&L.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function q(Te){C.length=C.length-2*Te,w.length=w.length-Te,N.length=N.length-Te}S(q,"popStack");function Y(){var Te;return Te=T.pop()||L.lex()||I,typeof Te!="number"&&(Te instanceof Array&&(T=Te,Te=T.pop()),Te=x.symbols_[Te]||Te),Te}S(Y,"lex");for(var Q,H,J,Z,pe={},re,ce,ae,se;;){if(H=C[C.length-1],this.defaultActions[H]?J=this.defaultActions[H]:((Q===null||typeof Q>"u")&&(Q=Y()),J=O[H]&&O[H][Q]),typeof J>"u"||!J.length||!J[0]){var xe="";se=[];for(re in O[H])this.terminals_[re]&&re>A&&se.push("'"+this.terminals_[re]+"'");L.showPosition?xe="Parse error on line "+($+1)+`: + ${I9t(e,r)} + `},"styles"),L9t={parser:C9t,db:PE,renderer:N9t,styles:D9t};const M9t=Object.freeze(Object.defineProperty({__proto__:null,diagram:L9t},Symbol.toStringTag,{value:"Module"}));var pz=(function(){var t=S(function(_,E,x,C){for(x=x||{},C=_.length;C--;x[_[C]]=E);return x},"o"),e=[1,15],r=[1,7],n=[1,13],i=[1,14],a=[1,19],s=[1,16],o=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],h=[1,23],f=[1,24],p=[8,10,15,16,21,28,29,30,31,39,43,46],g=[8,10,15,16,21,27,28,29,30,31,39,43,46],m=[1,49],y={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:S(function(E,x,C,T,w,N,O){var M=N.length-1;switch(w){case 4:T.getLogger().debug("Rule: separator (NL) ");break;case 5:T.getLogger().debug("Rule: separator (Space) ");break;case 6:T.getLogger().debug("Rule: separator (EOF) ");break;case 7:T.getLogger().debug("Rule: hierarchy: ",N[M-1]),T.setHierarchy(N[M-1]);break;case 8:T.getLogger().debug("Stop NL ");break;case 9:T.getLogger().debug("Stop EOF ");break;case 10:T.getLogger().debug("Stop NL2 ");break;case 11:T.getLogger().debug("Stop EOF2 ");break;case 12:T.getLogger().debug("Rule: statement: ",N[M]),typeof N[M].length=="number"?this.$=N[M]:this.$=[N[M]];break;case 13:T.getLogger().debug("Rule: statement #2: ",N[M-1]),this.$=[N[M-1]].concat(N[M]);break;case 14:T.getLogger().debug("Rule: link: ",N[M],E),this.$={edgeTypeStr:N[M],label:""};break;case 15:T.getLogger().debug("Rule: LABEL link: ",N[M-3],N[M-1],N[M]),this.$={edgeTypeStr:N[M],label:N[M-1]};break;case 18:const $=parseInt(N[M]),F=T.generateId();this.$={id:F,type:"space",label:"",width:$,children:[]};break;case 23:T.getLogger().debug("Rule: (nodeStatement link node) ",N[M-2],N[M-1],N[M]," typestr: ",N[M-1].edgeTypeStr);const A=T.edgeStrToEdgeData(N[M-1].edgeTypeStr),I=T.edgeStrToEdgeStartData(N[M-1].edgeTypeStr),D=T.edgeStrToThickness(N[M-1].edgeTypeStr),L=T.edgeStrToPattern(N[M-1].edgeTypeStr);this.$=[{id:N[M-2].id,label:N[M-2].label,type:N[M-2].type,directions:N[M-2].directions},{id:N[M-2].id+"-"+N[M].id,start:N[M-2].id,end:N[M].id,label:N[M-1].label,type:"edge",thickness:D,pattern:L,directions:N[M].directions,arrowTypeEnd:A,arrowTypeStart:I},{id:N[M].id,label:N[M].label,type:T.typeStr2Type(N[M].typeStr),directions:N[M].directions}];break;case 24:T.getLogger().debug("Rule: nodeStatement (abc88 node size) ",N[M-1],N[M]),this.$={id:N[M-1].id,label:N[M-1].label,type:T.typeStr2Type(N[M-1].typeStr),directions:N[M-1].directions,widthInColumns:parseInt(N[M],10)};break;case 25:T.getLogger().debug("Rule: nodeStatement (node) ",N[M]),this.$={id:N[M].id,label:N[M].label,type:T.typeStr2Type(N[M].typeStr),directions:N[M].directions,widthInColumns:1};break;case 26:T.getLogger().debug("APA123",this?this:"na"),T.getLogger().debug("COLUMNS: ",N[M]),this.$={type:"column-setting",columns:N[M]==="auto"?-1:parseInt(N[M])};break;case 27:T.getLogger().debug("Rule: id-block statement : ",N[M-2],N[M-1]),T.generateId(),this.$={...N[M-2],type:"composite",children:N[M-1]};break;case 28:T.getLogger().debug("Rule: blockStatement : ",N[M-2],N[M-1],N[M]);const R=T.generateId();this.$={id:R,type:"composite",label:"",children:N[M-1]};break;case 29:T.getLogger().debug("Rule: node (NODE_ID separator): ",N[M]),this.$={id:N[M]};break;case 30:T.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",N[M-1],N[M]),this.$={id:N[M-1],label:N[M].label,typeStr:N[M].typeStr,directions:N[M].directions};break;case 31:T.getLogger().debug("Rule: dirList: ",N[M]),this.$=[N[M]];break;case 32:T.getLogger().debug("Rule: dirList: ",N[M-1],N[M]),this.$=[N[M-1]].concat(N[M]);break;case 33:T.getLogger().debug("Rule: nodeShapeNLabel: ",N[M-2],N[M-1],N[M]),this.$={typeStr:N[M-2]+N[M],label:N[M-1]};break;case 34:T.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",N[M-3],N[M-2]," #3:",N[M-1],N[M]),this.$={typeStr:N[M-3]+N[M],label:N[M-2],directions:N[M-1]};break;case 35:case 36:this.$={type:"classDef",id:N[M-1].trim(),css:N[M].trim()};break;case 37:this.$={type:"applyClass",id:N[M-1].trim(),styleClass:N[M].trim()};break;case 38:this.$={type:"applyStyles",id:N[M-1].trim(),stylesStr:N[M].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:e,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:o,46:l},{8:[1,20]},t(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:e,21:r,28:n,29:i,31:a,39:s,43:o,46:l}),t(d,[2,16],{14:22,15:h,16:f}),t(d,[2,17]),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),t(d,[2,21]),t(d,[2,22]),t(p,[2,25],{27:[1,25]}),t(d,[2,26]),{19:26,26:12,31:a},{10:e,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:o,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},t(g,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},t(u,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},t(p,[2,24]),{10:e,11:37,13:4,14:22,15:h,16:f,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:o,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},t(g,[2,30]),{18:[1,43]},{18:[1,44]},t(p,[2,23]),{18:[1,45]},{30:[1,46]},t(d,[2,28]),t(d,[2,35]),t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{36:[1,47]},{33:48,34:m},{15:[1,50]},t(d,[2,27]),t(g,[2,33]),{38:[1,51]},{33:52,34:m,38:[2,31]},{31:[2,15]},t(g,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:S(function(E,x){if(x.recoverable)this.trace(E);else{var C=new Error(E);throw C.hash=x,C}},"parseError"),parse:S(function(E){var x=this,C=[0],T=[],w=[null],N=[],O=this.table,M="",$=0,F=0,A=2,I=1,D=N.slice.call(arguments,1),L=Object.create(this.lexer),R={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(R.yy[P]=this.yy[P]);L.setInput(E,R.yy),R.yy.lexer=L,R.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var z=L.yylloc;N.push(z);var B=L.options&&L.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function q(Te){C.length=C.length-2*Te,w.length=w.length-Te,N.length=N.length-Te}S(q,"popStack");function Y(){var Te;return Te=T.pop()||L.lex()||I,typeof Te!="number"&&(Te instanceof Array&&(T=Te,Te=T.pop()),Te=x.symbols_[Te]||Te),Te}S(Y,"lex");for(var Q,H,J,Z,pe={},re,ce,ae,se;;){if(H=C[C.length-1],this.defaultActions[H]?J=this.defaultActions[H]:((Q===null||typeof Q>"u")&&(Q=Y()),J=O[H]&&O[H][Q]),typeof J>"u"||!J.length||!J[0]){var xe="";se=[];for(re in O[H])this.terminals_[re]&&re>A&&se.push("'"+this.terminals_[re]+"'");L.showPosition?xe="Parse error on line "+($+1)+`: `+L.showPosition()+` Expecting `+se.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":xe="Parse error on line "+($+1)+": Unexpected "+(Q==I?"end of input":"'"+(this.terminals_[Q]||Q)+"'"),this.parseError(xe,{text:L.match,token:this.terminals_[Q]||Q,line:L.yylineno,loc:z,expected:se})}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+Q);switch(J[0]){case 1:C.push(Q),w.push(L.yytext),N.push(L.yylloc),C.push(J[1]),Q=null,F=L.yyleng,M=L.yytext,$=L.yylineno,z=L.yylloc;break;case 2:if(ce=this.productions_[J[1]][1],pe.$=w[w.length-ce],pe._$={first_line:N[N.length-(ce||1)].first_line,last_line:N[N.length-1].last_line,first_column:N[N.length-(ce||1)].first_column,last_column:N[N.length-1].last_column},B&&(pe._$.range=[N[N.length-(ce||1)].range[0],N[N.length-1].range[1]]),Z=this.performAction.apply(pe,[M,F,$,R.yy,J[1],w,N].concat(D)),typeof Z<"u")return Z;ce&&(C=C.slice(0,-1*ce*2),w=w.slice(0,-1*ce),N=N.slice(0,-1*ce)),C.push(this.productions_[J[1]][0]),w.push(pe.$),N.push(pe._$),ae=O[C[C.length-2]][C[C.length-1]],C.push(ae);break;case 3:return!0}}return!0},"parse")},v=(function(){var _={EOF:1,parseError:S(function(x,C){if(this.yy.parser)this.yy.parser.parseError(x,C);else throw new Error(x)},"parseError"),setInput:S(function(E,x){return this.yy=x||this.yy||{},this._input=E,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var E=this._input[0];this.yytext+=E,this.yyleng++,this.offset++,this.match+=E,this.matched+=E;var x=E.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),E},"input"),unput:S(function(E){var x=E.length,C=E.split(/(?:\r\n?|\n)/g);this._input=E+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var T=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),C.length-1&&(this.yylineno-=C.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:C?(C.length===T.length?this.yylloc.first_column:0)+T[T.length-C.length].length-C[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(E){this.unput(this.match.slice(E))},"less"),pastInput:S(function(){var E=this.matched.substr(0,this.matched.length-this.match.length);return(E.length>20?"...":"")+E.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var E=this.match;return E.length<20&&(E+=this._input.substr(0,20-E.length)),(E.substr(0,20)+(E.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var E=this.pastInput(),x=new Array(E.length+1).join("-");return E+this.upcomingInput()+` `+x+"^"},"showPosition"),test_match:S(function(E,x){var C,T,w;if(this.options.backtrack_lexer&&(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(w.yylloc.range=this.yylloc.range.slice(0))),T=E[0].match(/(?:\r\n?|\n).*/g),T&&(this.yylineno+=T.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:T?T[T.length-1].length-T[T.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+E[0].length},this.yytext+=E[0],this.match+=E[0],this.matches=E,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(E[0].length),this.matched+=E[0],C=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),C)return C;if(this._backtrack){for(var N in w)this[N]=w[N];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var E,x,C,T;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),N=0;Nx[0].length)){if(x=C,T=N,this.options.backtrack_lexer){if(E=this.test_match(C,w[N]),E!==!1)return E;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(E=this.test_match(x,w[T]),E!==!1?E:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var x=this.next();return x||this.lex()},"lex"),begin:S(function(x){this.conditionStack.push(x)},"begin"),popState:S(function(){var x=this.conditionStack.length-1;return x>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},"topState"),pushState:S(function(x){this.begin(x)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:S(function(x,C,T,w){switch(T){case 0:return x.getLogger().debug("Found block-beta"),10;case 1:return x.getLogger().debug("Found id-block"),29;case 2:return x.getLogger().debug("Found block"),10;case 3:x.getLogger().debug(".",C.yytext);break;case 4:x.getLogger().debug("_",C.yytext);break;case 5:return 5;case 6:return C.yytext=-1,28;case 7:return C.yytext=C.yytext.replace(/columns\s+/,""),x.getLogger().debug("COLUMNS (LEX)",C.yytext),28;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:x.getLogger().debug("LEX: POPPING STR:",C.yytext),this.popState();break;case 13:return x.getLogger().debug("LEX: STR end:",C.yytext),"STR";case 14:return C.yytext=C.yytext.replace(/space\:/,""),x.getLogger().debug("SPACE NUM (LEX)",C.yytext),21;case 15:return C.yytext="1",x.getLogger().debug("COLUMNS (LEX)",C.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),x.getLogger().debug("Lex: (("),"NODE_DEND";case 38:return this.popState(),x.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),x.getLogger().debug("Lex: ))"),"NODE_DEND";case 40:return this.popState(),x.getLogger().debug("Lex: (("),"NODE_DEND";case 41:return this.popState(),x.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),x.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),x.getLogger().debug("Lex: -)"),"NODE_DEND";case 44:return this.popState(),x.getLogger().debug("Lex: (("),"NODE_DEND";case 45:return this.popState(),x.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),x.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),x.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:return this.popState(),x.getLogger().debug("Lex: /]"),"NODE_DEND";case 49:return this.popState(),x.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),x.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),x.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),x.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),x.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return x.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return x.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return x.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:return x.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return x.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 59:return x.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 60:return x.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 61:return x.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 62:return x.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return x.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 64:return x.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 65:return this.pushState("NODE"),35;case 66:return this.pushState("NODE"),35;case 67:return this.pushState("NODE"),35;case 68:return this.pushState("NODE"),35;case 69:return this.pushState("NODE"),35;case 70:return this.pushState("NODE"),35;case 71:return this.pushState("NODE"),35;case 72:return x.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),x.getLogger().debug("LEX ARR START"),37;case 74:return x.getLogger().debug("Lex: NODE_ID",C.yytext),31;case 75:return x.getLogger().debug("Lex: EOF",C.yytext),8;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:x.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:x.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return x.getLogger().debug("LEX: NODE_DESCR:",C.yytext),"NODE_DESCR";case 83:x.getLogger().debug("LEX POPPING"),this.popState();break;case 84:x.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return C.yytext=C.yytext.replace(/^,\s*/,""),x.getLogger().debug("Lex (right): dir:",C.yytext),"DIR";case 86:return C.yytext=C.yytext.replace(/^,\s*/,""),x.getLogger().debug("Lex (left):",C.yytext),"DIR";case 87:return C.yytext=C.yytext.replace(/^,\s*/,""),x.getLogger().debug("Lex (x):",C.yytext),"DIR";case 88:return C.yytext=C.yytext.replace(/^,\s*/,""),x.getLogger().debug("Lex (y):",C.yytext),"DIR";case 89:return C.yytext=C.yytext.replace(/^,\s*/,""),x.getLogger().debug("Lex (up):",C.yytext),"DIR";case 90:return C.yytext=C.yytext.replace(/^,\s*/,""),x.getLogger().debug("Lex (down):",C.yytext),"DIR";case 91:return C.yytext="]>",x.getLogger().debug("Lex (ARROW_DIR end):",C.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return x.getLogger().debug("Lex: LINK","#"+C.yytext+"#"),15;case 93:return x.getLogger().debug("Lex: LINK",C.yytext),15;case 94:return x.getLogger().debug("Lex: LINK",C.yytext),15;case 95:return x.getLogger().debug("Lex: LINK",C.yytext),15;case 96:return x.getLogger().debug("Lex: START_LINK",C.yytext),this.pushState("LLABEL"),16;case 97:return x.getLogger().debug("Lex: START_LINK",C.yytext),this.pushState("LLABEL"),16;case 98:return x.getLogger().debug("Lex: START_LINK",C.yytext),this.pushState("LLABEL"),16;case 99:this.pushState("md_string");break;case 100:return x.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),x.getLogger().debug("Lex: LINK","#"+C.yytext+"#"),15;case 102:return this.popState(),x.getLogger().debug("Lex: LINK",C.yytext),15;case 103:return this.popState(),x.getLogger().debug("Lex: LINK",C.yytext),15;case 104:return x.getLogger().debug("Lex: COLON",C.yytext),C.yytext=C.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return _})();y.lexer=v;function b(){this.yy={}}return S(b,"Parser"),b.prototype=y,y.Parser=b,new b})();pz.parser=pz;var M9t=pz,uc=new Map,RW=[],gz=new Map,hle="color",fle="fill",P9t="bgFill",s8e=",",B9t=Ke(),Fw=new Map,NW="",F9t=S(t=>qt.sanitizeText(t,B9t),"sanitizeText"),$9t=S(function(t,e=""){let r=Fw.get(t);r||(r={id:t,styles:[],textStyles:[]},Fw.set(t,r)),e?.split(s8e).forEach(n=>{const i=n.replace(/([^;]*);/,"$1").trim();if(RegExp(hle).exec(n)){const s=i.replace(fle,P9t).replace(hle,fle);r.textStyles.push(s)}r.styles.push(i)})},"addStyleClass"),z9t=S(function(t,e=""){const r=uc.get(t);e!=null&&(r.styles=e.split(s8e))},"addStyle2Node"),U9t=S(function(t,e){t.split(",").forEach(function(r){let n=uc.get(r);if(n===void 0){const i=r.trim();n={id:i,type:"na",children:[]},uc.set(i,n)}n.classes||(n.classes=[]),n.classes.push(e)})},"setCssClass"),o8e=S((t,e)=>{const r=t.flat(),n=[],a=r.find(s=>s?.type==="column-setting")?.columns??-1;for(const s of r){if(typeof a=="number"&&a>0&&s.type!=="column-setting"&&typeof s.widthInColumns=="number"&&s.widthInColumns>a&&ge.warn(`Block ${s.id} width ${s.widthInColumns} exceeds configured column width ${a}`),s.label&&(s.label=F9t(s.label)),s.type==="classDef"){$9t(s.id,s.css);continue}if(s.type==="applyClass"){U9t(s.id,s?.styleClass??"");continue}if(s.type==="applyStyles"){s?.stylesStr&&z9t(s.id,s?.stylesStr);continue}if(s.type==="column-setting")e.columns=s.columns??-1;else if(s.type==="edge"){const o=(gz.get(s.id)??0)+1;gz.set(s.id,o),s.id=o+"-"+s.id,RW.push(s)}else{s.label||(s.type==="composite"?s.label="":s.label=s.id);const o=uc.get(s.id);if(o===void 0?uc.set(s.id,s):(s.type!=="na"&&(o.type=s.type),s.label!==s.id&&(o.label=s.label)),s.children&&o8e(s.children,s),s.type==="space"){const l=s.width??1;for(let u=0;u{ge.debug("Clear called"),oi(),SS={id:"root",type:"composite",children:[],columns:-1},uc=new Map([["root",SS]]),IW=[],Fw=new Map,RW=[],gz=new Map,NW=""},"clear");function l8e(t){switch(ge.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return ge.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}S(l8e,"typeStr2Type");function c8e(t){return ge.debug("typeStr2Type",t),t==="=="?"thick":"normal"}S(c8e,"edgeTypeStr2Type");function u8e(t){switch(t.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}S(u8e,"edgeStrToEdgeData");function d8e(t){switch(t.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}S(d8e,"edgeStrToEdgeStartData");function h8e(t){return t.includes("==")?"thick":"normal"}S(h8e,"edgeStrToThickness");function f8e(t){return t.includes(".-")?"dotted":"solid"}S(f8e,"edgeStrToPattern");var ple=0,q9t=S(()=>(ple++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ple),"generateId"),Y9t=S(t=>{SS.children=t,o8e(t,SS),IW=SS.children},"setHierarchy"),H9t=S(t=>{const e=uc.get(t);return e?e.columns?e.columns:e.children?e.children.length:-1:-1},"getColumns"),V9t=S(()=>[...uc.values()],"getBlocksFlat"),W9t=S(()=>IW||[],"getBlocks"),K9t=S(()=>RW,"getEdges"),X9t=S(t=>uc.get(t),"getBlock"),j9t=S(t=>{uc.set(t.id,t)},"setBlock"),Q9t=S(t=>{NW=t},"setDiagramId"),Z9t=S(()=>NW,"getDiagramId"),J9t=S(()=>ge,"getLogger"),eDt=S(function(){return Fw},"getClasses"),tDt={getConfig:S(()=>xr().block,"getConfig"),typeStr2Type:l8e,edgeTypeStr2Type:c8e,edgeStrToEdgeData:u8e,edgeStrToEdgeStartData:d8e,edgeStrToThickness:h8e,edgeStrToPattern:f8e,getLogger:J9t,getBlocksFlat:V9t,getBlocks:W9t,getEdges:K9t,setHierarchy:Y9t,getBlock:X9t,setBlock:j9t,getColumns:H9t,getClasses:eDt,clear:G9t,generateId:q9t,setDiagramId:Q9t,getDiagramId:Z9t},rDt=tDt,JL=S((t,e)=>{const r=hU,n=r(t,"r"),i=r(t,"g"),a=r(t,"b");return Jl(n,i,a,e)},"fade"),nDt=S(t=>`.label { +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var x=this.next();return x||this.lex()},"lex"),begin:S(function(x){this.conditionStack.push(x)},"begin"),popState:S(function(){var x=this.conditionStack.length-1;return x>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},"topState"),pushState:S(function(x){this.begin(x)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:S(function(x,C,T,w){switch(T){case 0:return x.getLogger().debug("Found block-beta"),10;case 1:return x.getLogger().debug("Found id-block"),29;case 2:return x.getLogger().debug("Found block"),10;case 3:x.getLogger().debug(".",C.yytext);break;case 4:x.getLogger().debug("_",C.yytext);break;case 5:return 5;case 6:return C.yytext=-1,28;case 7:return C.yytext=C.yytext.replace(/columns\s+/,""),x.getLogger().debug("COLUMNS (LEX)",C.yytext),28;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:x.getLogger().debug("LEX: POPPING STR:",C.yytext),this.popState();break;case 13:return x.getLogger().debug("LEX: STR end:",C.yytext),"STR";case 14:return C.yytext=C.yytext.replace(/space\:/,""),x.getLogger().debug("SPACE NUM (LEX)",C.yytext),21;case 15:return C.yytext="1",x.getLogger().debug("COLUMNS (LEX)",C.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),x.getLogger().debug("Lex: (("),"NODE_DEND";case 38:return this.popState(),x.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),x.getLogger().debug("Lex: ))"),"NODE_DEND";case 40:return this.popState(),x.getLogger().debug("Lex: (("),"NODE_DEND";case 41:return this.popState(),x.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),x.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),x.getLogger().debug("Lex: -)"),"NODE_DEND";case 44:return this.popState(),x.getLogger().debug("Lex: (("),"NODE_DEND";case 45:return this.popState(),x.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),x.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),x.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:return this.popState(),x.getLogger().debug("Lex: /]"),"NODE_DEND";case 49:return this.popState(),x.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),x.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),x.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),x.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),x.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return x.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return x.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return x.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:return x.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return x.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 59:return x.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 60:return x.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 61:return x.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 62:return x.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return x.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 64:return x.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 65:return this.pushState("NODE"),35;case 66:return this.pushState("NODE"),35;case 67:return this.pushState("NODE"),35;case 68:return this.pushState("NODE"),35;case 69:return this.pushState("NODE"),35;case 70:return this.pushState("NODE"),35;case 71:return this.pushState("NODE"),35;case 72:return x.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),x.getLogger().debug("LEX ARR START"),37;case 74:return x.getLogger().debug("Lex: NODE_ID",C.yytext),31;case 75:return x.getLogger().debug("Lex: EOF",C.yytext),8;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:x.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:x.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return x.getLogger().debug("LEX: NODE_DESCR:",C.yytext),"NODE_DESCR";case 83:x.getLogger().debug("LEX POPPING"),this.popState();break;case 84:x.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return C.yytext=C.yytext.replace(/^,\s*/,""),x.getLogger().debug("Lex (right): dir:",C.yytext),"DIR";case 86:return C.yytext=C.yytext.replace(/^,\s*/,""),x.getLogger().debug("Lex (left):",C.yytext),"DIR";case 87:return C.yytext=C.yytext.replace(/^,\s*/,""),x.getLogger().debug("Lex (x):",C.yytext),"DIR";case 88:return C.yytext=C.yytext.replace(/^,\s*/,""),x.getLogger().debug("Lex (y):",C.yytext),"DIR";case 89:return C.yytext=C.yytext.replace(/^,\s*/,""),x.getLogger().debug("Lex (up):",C.yytext),"DIR";case 90:return C.yytext=C.yytext.replace(/^,\s*/,""),x.getLogger().debug("Lex (down):",C.yytext),"DIR";case 91:return C.yytext="]>",x.getLogger().debug("Lex (ARROW_DIR end):",C.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return x.getLogger().debug("Lex: LINK","#"+C.yytext+"#"),15;case 93:return x.getLogger().debug("Lex: LINK",C.yytext),15;case 94:return x.getLogger().debug("Lex: LINK",C.yytext),15;case 95:return x.getLogger().debug("Lex: LINK",C.yytext),15;case 96:return x.getLogger().debug("Lex: START_LINK",C.yytext),this.pushState("LLABEL"),16;case 97:return x.getLogger().debug("Lex: START_LINK",C.yytext),this.pushState("LLABEL"),16;case 98:return x.getLogger().debug("Lex: START_LINK",C.yytext),this.pushState("LLABEL"),16;case 99:this.pushState("md_string");break;case 100:return x.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),x.getLogger().debug("Lex: LINK","#"+C.yytext+"#"),15;case 102:return this.popState(),x.getLogger().debug("Lex: LINK",C.yytext),15;case 103:return this.popState(),x.getLogger().debug("Lex: LINK",C.yytext),15;case 104:return x.getLogger().debug("Lex: COLON",C.yytext),C.yytext=C.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return _})();y.lexer=v;function b(){this.yy={}}return S(b,"Parser"),b.prototype=y,y.Parser=b,new b})();pz.parser=pz;var P9t=pz,uc=new Map,RW=[],gz=new Map,hle="color",fle="fill",B9t="bgFill",s8e=",",F9t=Ke(),Fw=new Map,NW="",$9t=S(t=>qt.sanitizeText(t,F9t),"sanitizeText"),z9t=S(function(t,e=""){let r=Fw.get(t);r||(r={id:t,styles:[],textStyles:[]},Fw.set(t,r)),e?.split(s8e).forEach(n=>{const i=n.replace(/([^;]*);/,"$1").trim();if(RegExp(hle).exec(n)){const s=i.replace(fle,B9t).replace(hle,fle);r.textStyles.push(s)}r.styles.push(i)})},"addStyleClass"),U9t=S(function(t,e=""){const r=uc.get(t);e!=null&&(r.styles=e.split(s8e))},"addStyle2Node"),G9t=S(function(t,e){t.split(",").forEach(function(r){let n=uc.get(r);if(n===void 0){const i=r.trim();n={id:i,type:"na",children:[]},uc.set(i,n)}n.classes||(n.classes=[]),n.classes.push(e)})},"setCssClass"),o8e=S((t,e)=>{const r=t.flat(),n=[],a=r.find(s=>s?.type==="column-setting")?.columns??-1;for(const s of r){if(typeof a=="number"&&a>0&&s.type!=="column-setting"&&typeof s.widthInColumns=="number"&&s.widthInColumns>a&&ge.warn(`Block ${s.id} width ${s.widthInColumns} exceeds configured column width ${a}`),s.label&&(s.label=$9t(s.label)),s.type==="classDef"){z9t(s.id,s.css);continue}if(s.type==="applyClass"){G9t(s.id,s?.styleClass??"");continue}if(s.type==="applyStyles"){s?.stylesStr&&U9t(s.id,s?.stylesStr);continue}if(s.type==="column-setting")e.columns=s.columns??-1;else if(s.type==="edge"){const o=(gz.get(s.id)??0)+1;gz.set(s.id,o),s.id=o+"-"+s.id,RW.push(s)}else{s.label||(s.type==="composite"?s.label="":s.label=s.id);const o=uc.get(s.id);if(o===void 0?uc.set(s.id,s):(s.type!=="na"&&(o.type=s.type),s.label!==s.id&&(o.label=s.label)),s.children&&o8e(s.children,s),s.type==="space"){const l=s.width??1;for(let u=0;u{ge.debug("Clear called"),oi(),SS={id:"root",type:"composite",children:[],columns:-1},uc=new Map([["root",SS]]),IW=[],Fw=new Map,RW=[],gz=new Map,NW=""},"clear");function l8e(t){switch(ge.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return ge.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}S(l8e,"typeStr2Type");function c8e(t){return ge.debug("typeStr2Type",t),t==="=="?"thick":"normal"}S(c8e,"edgeTypeStr2Type");function u8e(t){switch(t.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}S(u8e,"edgeStrToEdgeData");function d8e(t){switch(t.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}S(d8e,"edgeStrToEdgeStartData");function h8e(t){return t.includes("==")?"thick":"normal"}S(h8e,"edgeStrToThickness");function f8e(t){return t.includes(".-")?"dotted":"solid"}S(f8e,"edgeStrToPattern");var ple=0,Y9t=S(()=>(ple++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ple),"generateId"),H9t=S(t=>{SS.children=t,o8e(t,SS),IW=SS.children},"setHierarchy"),V9t=S(t=>{const e=uc.get(t);return e?e.columns?e.columns:e.children?e.children.length:-1:-1},"getColumns"),W9t=S(()=>[...uc.values()],"getBlocksFlat"),K9t=S(()=>IW||[],"getBlocks"),X9t=S(()=>RW,"getEdges"),j9t=S(t=>uc.get(t),"getBlock"),Q9t=S(t=>{uc.set(t.id,t)},"setBlock"),Z9t=S(t=>{NW=t},"setDiagramId"),J9t=S(()=>NW,"getDiagramId"),eDt=S(()=>ge,"getLogger"),tDt=S(function(){return Fw},"getClasses"),rDt={getConfig:S(()=>xr().block,"getConfig"),typeStr2Type:l8e,edgeTypeStr2Type:c8e,edgeStrToEdgeData:u8e,edgeStrToEdgeStartData:d8e,edgeStrToThickness:h8e,edgeStrToPattern:f8e,getLogger:eDt,getBlocksFlat:W9t,getBlocks:K9t,getEdges:X9t,setHierarchy:H9t,getBlock:j9t,setBlock:Q9t,getColumns:V9t,getClasses:tDt,clear:q9t,generateId:Y9t,setDiagramId:Z9t,getDiagramId:J9t},nDt=rDt,JL=S((t,e)=>{const r=hU,n=r(t,"r"),i=r(t,"g"),a=r(t,"b");return Jl(n,i,a,e)},"fade"),iDt=S(t=>`.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor||t.textColor}; } @@ -7188,11 +7188,11 @@ Expecting `+se.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":xe="Parse error fill: ${t.textColor}; } ${OT()} -`,"getStyles"),iDt=nDt,aDt=S((t,e,r,n)=>{e.forEach(i=>{gDt[i](t,r,n)})},"insertMarkers"),sDt=S((t,e,r)=>{ge.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),oDt=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),lDt=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),cDt=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),uDt=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),dDt=S((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),hDt=S((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),fDt=S((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),pDt=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),gDt={extension:sDt,composition:oDt,aggregation:lDt,dependency:cDt,lollipop:uDt,point:dDt,circle:hDt,cross:fDt,barb:pDt},mDt=aDt,qi=Ke()?.block?.padding??8;function mz(t,e){if(t===0||!Number.isInteger(t))throw new Error("Columns must be an integer !== 0.");if(e<0||!Number.isInteger(e))throw new Error("Position must be a non-negative integer."+e);if(t<0)return{px:e,py:0};if(t===1)return{px:0,py:e};const r=e%t,n=Math.floor(e/t);return{px:r,py:n}}S(mz,"calculateBlockPosition");var yDt=S(t=>{let e=0,r=0;for(const n of t.children){const{width:i,height:a,x:s,y:o}=n.size??{width:0,height:0,x:0,y:0};if(ge.debug("getMaxChildSize abc95 child:",n.id,"width:",i,"height:",a,"x:",s,"y:",o,n.type),n.type==="space")continue;const l=i/(n.widthInColumns??1);l>e&&(e=l),a>r&&(r=a)}return{width:e,height:r}},"getMaxChildSize");function $w(t,e,r=0,n=0){ge.debug("setBlockSizes abc95 (start)",t.id,t?.size?.x,"block width =",t?.size,"siblingWidth",r),t?.size?.width||(t.size={width:r,height:n,x:0,y:0});let i=0,a=0;if(t.children?.length>0){for(const p of t.children)$w(p,e);const s=yDt(t);i=s.width,a=s.height,ge.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",i,a);for(const p of t.children)p.size&&(ge.debug(`abc95 Setting size of children of ${t.id} id=${p.id} ${i} ${a} ${JSON.stringify(p.size)}`),p.size.width=i*(p.widthInColumns??1)+qi*((p.widthInColumns??1)-1),p.size.height=a,p.size.x=0,p.size.y=0,ge.debug(`abc95 updating size of ${t.id} children child:${p.id} maxWidth:${i} maxHeight:${a}`));for(const p of t.children)$w(p,e,i,a);const o=t.columns??-1;let l=0;for(const p of t.children)l+=p.widthInColumns??1;let u=t.children.length;o>0&&o0?Math.min(t.children.length,o):t.children.length;if(p>0){const g=(h-p*qi-qi)/p;ge.debug("abc95 (growing to fit) width",t.id,h,t.size?.width,g);for(const m of t.children)m.size&&(m.size.width=g)}}t.size={width:h,height:f,x:0,y:0}}ge.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}S($w,"setBlockSizes");function OW(t,e){ge.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);const r=t.columns??-1;if(ge.debug("layoutBlocks columns abc95",t.id,"=>",r,t),t.children&&t.children.length>0){const n=t?.children[0]?.size?.width??0,i=t.children.length*n+(t.children.length-1)*qi;ge.debug("widthOfChildren 88",i,"posX");const a=new Map;{let d=0;for(const h of t.children){if(!h.size)continue;const{py:f}=mz(r,d),p=a.get(f)??0;h.size.height>p&&a.set(f,h.size.height);let g=h?.widthInColumns??1;r>0&&(g=Math.min(g,r-d%r)),d+=g}}const s=new Map;{let d=0;const h=[...a.keys()].sort((f,p)=>f-p);for(const f of h)s.set(f,d),d+=(a.get(f)??0)+qi}let o=0;ge.debug("abc91 block?.size?.x",t.id,t?.size?.x);let l=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-qi,u=0;for(const d of t.children){const h=t;if(!d.size)continue;const{width:f,height:p}=d.size,{px:g,py:m}=mz(r,o);if(m!=u&&(u=m,l=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-qi,ge.debug("New row in layout for block",t.id," and child ",d.id,u)),ge.debug(`abc89 layout blocks (child) id: ${d.id} Pos: ${o} (px, py) ${g},${m} (${h?.size?.x},${h?.size?.y}) parent: ${h.id} width: ${f}${qi}`),h.size){const v=f/2;d.size.x=l+qi+v,ge.debug(`abc91 layout blocks (calc) px, pyid:${d.id} startingPos=X${l} new startingPosX${d.size.x} ${v} padding=${qi} width=${f} halfWidth=${v} => x:${d.size.x} y:${d.size.y} ${d.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(d?.widthInColumns??1)/2}`),l=d.size.x+v;const b=s.get(m)??0,_=a.get(m)??p;d.size.y=h.size.y-h.size.height/2+b+_/2+qi,ge.debug(`abc88 layout blocks (calc) px, pyid:${d.id}startingPosX${l}${qi}${v}=>x:${d.size.x}y:${d.size.y}${d.widthInColumns}(width * (child?.w || 1)) / 2${f*(d?.widthInColumns??1)/2}`)}d.children&&OW(d);let y=d?.widthInColumns??1;r>0&&(y=Math.min(y,r-o%r)),o+=y,ge.debug("abc88 columnsPos",d,o)}}ge.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}S(OW,"layoutBlocks");function DW(t,{minX:e,minY:r,maxX:n,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&t.id!=="root"){const{x:a,y:s,width:o,height:l}=t.size;a-o/2n&&(n=a+o/2),s+l/2>i&&(i=s+l/2)}if(t.children)for(const a of t.children)({minX:e,minY:r,maxX:n,maxY:i}=DW(a,{minX:e,minY:r,maxX:n,maxY:i}));return{minX:e,minY:r,maxX:n,maxY:i}}S(DW,"findBounds");function p8e(t){const e=t.getBlock("root");if(!e)return;$w(e,t,0,0),OW(e),ge.debug("getBlocks",JSON.stringify(e,null,2));const{minX:r,minY:n,maxX:i,maxY:a}=DW(e),s=a-n,o=i-r;return{x:r,y:n,width:o,height:s}}S(p8e,"layout");var vDt=S(async(t,e,r,n=!1,i=!1)=>{let a=e||"";typeof a=="object"&&(a=a[0]);const s=Ke(),o=In(s);return await Zs(t,a,{style:r,isTitle:n,useHtmlLabels:o,markdown:!1,isNode:i,width:Number.POSITIVE_INFINITY},s)},"createLabel"),Ql=vDt,_Dt=S((t,e,r,n,i)=>{e.arrowTypeStart&&gle(t,"start",e.arrowTypeStart,r,n,i),e.arrowTypeEnd&&gle(t,"end",e.arrowTypeEnd,r,n,i)},"addEdgeMarkers"),bDt={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},gle=S((t,e,r,n,i,a)=>{const s=bDt[r];if(!s){ge.warn(`Unknown arrow type: ${r}`);return}const o=e==="start"?"Start":"End";t.attr(`marker-${e}`,`url(${n}#${i}_${a}-${s}${o})`)},"addEdgeMarker"),yz={},ss={},EDt=S(async(t,e)=>{const r=Ke(),n=In(r),i=t.insert("g").attr("class","edgeLabel"),a=i.insert("g").attr("class","label"),s=e.labelType==="markdown",o=await Zs(t,e.label,{style:e.labelStyle,useHtmlLabels:n,addSvgBackground:s,isNode:!1,markdown:s,width:s?void 0:Number.POSITIVE_INFINITY},r);a.node().appendChild(o);let l=o.getBBox(),u=l;if(n){const h=o.children[0],f=At(o);l=h.getBoundingClientRect(),u=l,f.attr("width",l.width),f.attr("height",l.height)}else{const h=At(o).select("text").node();h&&typeof h.getBBox=="function"&&(u=h.getBBox())}a.attr("transform",Gc(u,n)),yz[e.id]=i,e.width=l.width,e.height=l.height;let d;if(e.startLabelLeft){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await Ql(f,e.startLabelLeft,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],y=At(p);g=m.getBoundingClientRect(),y.attr("width",g.width),y.attr("height",g.height)}f.attr("transform",Gc(g,n)),ss[e.id]||(ss[e.id]={}),ss[e.id].startLeft=h,BE(d,e.startLabelLeft)}if(e.startLabelRight){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await Ql(f,e.startLabelRight,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],y=At(p);g=m.getBoundingClientRect(),y.attr("width",g.width),y.attr("height",g.height)}f.attr("transform",Gc(g,n)),ss[e.id]||(ss[e.id]={}),ss[e.id].startRight=h,BE(d,e.startLabelRight)}if(e.endLabelLeft){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await Ql(h,e.endLabelLeft,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],y=At(p);g=m.getBoundingClientRect(),y.attr("width",g.width),y.attr("height",g.height)}f.attr("transform",Gc(g,n)),ss[e.id]||(ss[e.id]={}),ss[e.id].endLeft=h,BE(d,e.endLabelLeft)}if(e.endLabelRight){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await Ql(h,e.endLabelRight,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],y=At(p);g=m.getBoundingClientRect(),y.attr("width",g.width),y.attr("height",g.height)}f.attr("transform",Gc(g,n)),ss[e.id]||(ss[e.id]={}),ss[e.id].endRight=h,BE(d,e.endLabelRight)}return o},"insertEdgeLabel");function BE(t,e){In(Ke())&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}S(BE,"setTerminalWidth");var SDt=S((t,e)=>{ge.debug("Moving label abc88 ",t.id,t.label,yz[t.id],e);let r=e.updatedPath?e.updatedPath:e.originalPath;const n=Ke(),{subGraphTitleTotalMargin:i}=oT(n);if(t.label){const a=yz[t.id];let s=t.x,o=t.y;if(r){const l=Wr.calcLabelPosition(r);ge.debug("Moving label "+t.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(s=l.x,o=l.y)}a.attr("transform",`translate(${s}, ${o+i/2})`)}if(t.startLabelLeft){const a=ss[t.id].startLeft;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.startLabelRight){const a=ss[t.id].startRight;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelLeft){const a=ss[t.id].endLeft;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelRight){const a=ss[t.id].endRight;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),TDt=S((t,e)=>{const r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),s=t.width/2,o=t.height/2;return i>=s||a>=o},"outsideNode"),xDt=S((t,e,r)=>{ge.debug(`intersection calc abc89: +`,"getStyles"),aDt=iDt,sDt=S((t,e,r,n)=>{e.forEach(i=>{mDt[i](t,r,n)})},"insertMarkers"),oDt=S((t,e,r)=>{ge.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),lDt=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),cDt=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),uDt=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),dDt=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),hDt=S((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),fDt=S((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),pDt=S((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),gDt=S((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),mDt={extension:oDt,composition:lDt,aggregation:cDt,dependency:uDt,lollipop:dDt,point:hDt,circle:fDt,cross:pDt,barb:gDt},yDt=sDt,qi=Ke()?.block?.padding??8;function mz(t,e){if(t===0||!Number.isInteger(t))throw new Error("Columns must be an integer !== 0.");if(e<0||!Number.isInteger(e))throw new Error("Position must be a non-negative integer."+e);if(t<0)return{px:e,py:0};if(t===1)return{px:0,py:e};const r=e%t,n=Math.floor(e/t);return{px:r,py:n}}S(mz,"calculateBlockPosition");var vDt=S(t=>{let e=0,r=0;for(const n of t.children){const{width:i,height:a,x:s,y:o}=n.size??{width:0,height:0,x:0,y:0};if(ge.debug("getMaxChildSize abc95 child:",n.id,"width:",i,"height:",a,"x:",s,"y:",o,n.type),n.type==="space")continue;const l=i/(n.widthInColumns??1);l>e&&(e=l),a>r&&(r=a)}return{width:e,height:r}},"getMaxChildSize");function $w(t,e,r=0,n=0){ge.debug("setBlockSizes abc95 (start)",t.id,t?.size?.x,"block width =",t?.size,"siblingWidth",r),t?.size?.width||(t.size={width:r,height:n,x:0,y:0});let i=0,a=0;if(t.children?.length>0){for(const p of t.children)$w(p,e);const s=vDt(t);i=s.width,a=s.height,ge.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",i,a);for(const p of t.children)p.size&&(ge.debug(`abc95 Setting size of children of ${t.id} id=${p.id} ${i} ${a} ${JSON.stringify(p.size)}`),p.size.width=i*(p.widthInColumns??1)+qi*((p.widthInColumns??1)-1),p.size.height=a,p.size.x=0,p.size.y=0,ge.debug(`abc95 updating size of ${t.id} children child:${p.id} maxWidth:${i} maxHeight:${a}`));for(const p of t.children)$w(p,e,i,a);const o=t.columns??-1;let l=0;for(const p of t.children)l+=p.widthInColumns??1;let u=t.children.length;o>0&&o0?Math.min(t.children.length,o):t.children.length;if(p>0){const g=(h-p*qi-qi)/p;ge.debug("abc95 (growing to fit) width",t.id,h,t.size?.width,g);for(const m of t.children)m.size&&(m.size.width=g)}}t.size={width:h,height:f,x:0,y:0}}ge.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}S($w,"setBlockSizes");function OW(t,e){ge.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);const r=t.columns??-1;if(ge.debug("layoutBlocks columns abc95",t.id,"=>",r,t),t.children&&t.children.length>0){const n=t?.children[0]?.size?.width??0,i=t.children.length*n+(t.children.length-1)*qi;ge.debug("widthOfChildren 88",i,"posX");const a=new Map;{let d=0;for(const h of t.children){if(!h.size)continue;const{py:f}=mz(r,d),p=a.get(f)??0;h.size.height>p&&a.set(f,h.size.height);let g=h?.widthInColumns??1;r>0&&(g=Math.min(g,r-d%r)),d+=g}}const s=new Map;{let d=0;const h=[...a.keys()].sort((f,p)=>f-p);for(const f of h)s.set(f,d),d+=(a.get(f)??0)+qi}let o=0;ge.debug("abc91 block?.size?.x",t.id,t?.size?.x);let l=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-qi,u=0;for(const d of t.children){const h=t;if(!d.size)continue;const{width:f,height:p}=d.size,{px:g,py:m}=mz(r,o);if(m!=u&&(u=m,l=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-qi,ge.debug("New row in layout for block",t.id," and child ",d.id,u)),ge.debug(`abc89 layout blocks (child) id: ${d.id} Pos: ${o} (px, py) ${g},${m} (${h?.size?.x},${h?.size?.y}) parent: ${h.id} width: ${f}${qi}`),h.size){const v=f/2;d.size.x=l+qi+v,ge.debug(`abc91 layout blocks (calc) px, pyid:${d.id} startingPos=X${l} new startingPosX${d.size.x} ${v} padding=${qi} width=${f} halfWidth=${v} => x:${d.size.x} y:${d.size.y} ${d.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(d?.widthInColumns??1)/2}`),l=d.size.x+v;const b=s.get(m)??0,_=a.get(m)??p;d.size.y=h.size.y-h.size.height/2+b+_/2+qi,ge.debug(`abc88 layout blocks (calc) px, pyid:${d.id}startingPosX${l}${qi}${v}=>x:${d.size.x}y:${d.size.y}${d.widthInColumns}(width * (child?.w || 1)) / 2${f*(d?.widthInColumns??1)/2}`)}d.children&&OW(d);let y=d?.widthInColumns??1;r>0&&(y=Math.min(y,r-o%r)),o+=y,ge.debug("abc88 columnsPos",d,o)}}ge.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}S(OW,"layoutBlocks");function DW(t,{minX:e,minY:r,maxX:n,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&t.id!=="root"){const{x:a,y:s,width:o,height:l}=t.size;a-o/2n&&(n=a+o/2),s+l/2>i&&(i=s+l/2)}if(t.children)for(const a of t.children)({minX:e,minY:r,maxX:n,maxY:i}=DW(a,{minX:e,minY:r,maxX:n,maxY:i}));return{minX:e,minY:r,maxX:n,maxY:i}}S(DW,"findBounds");function p8e(t){const e=t.getBlock("root");if(!e)return;$w(e,t,0,0),OW(e),ge.debug("getBlocks",JSON.stringify(e,null,2));const{minX:r,minY:n,maxX:i,maxY:a}=DW(e),s=a-n,o=i-r;return{x:r,y:n,width:o,height:s}}S(p8e,"layout");var _Dt=S(async(t,e,r,n=!1,i=!1)=>{let a=e||"";typeof a=="object"&&(a=a[0]);const s=Ke(),o=In(s);return await Zs(t,a,{style:r,isTitle:n,useHtmlLabels:o,markdown:!1,isNode:i,width:Number.POSITIVE_INFINITY},s)},"createLabel"),Ql=_Dt,bDt=S((t,e,r,n,i)=>{e.arrowTypeStart&&gle(t,"start",e.arrowTypeStart,r,n,i),e.arrowTypeEnd&&gle(t,"end",e.arrowTypeEnd,r,n,i)},"addEdgeMarkers"),EDt={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},gle=S((t,e,r,n,i,a)=>{const s=EDt[r];if(!s){ge.warn(`Unknown arrow type: ${r}`);return}const o=e==="start"?"Start":"End";t.attr(`marker-${e}`,`url(${n}#${i}_${a}-${s}${o})`)},"addEdgeMarker"),yz={},ss={},SDt=S(async(t,e)=>{const r=Ke(),n=In(r),i=t.insert("g").attr("class","edgeLabel"),a=i.insert("g").attr("class","label"),s=e.labelType==="markdown",o=await Zs(t,e.label,{style:e.labelStyle,useHtmlLabels:n,addSvgBackground:s,isNode:!1,markdown:s,width:s?void 0:Number.POSITIVE_INFINITY},r);a.node().appendChild(o);let l=o.getBBox(),u=l;if(n){const h=o.children[0],f=At(o);l=h.getBoundingClientRect(),u=l,f.attr("width",l.width),f.attr("height",l.height)}else{const h=At(o).select("text").node();h&&typeof h.getBBox=="function"&&(u=h.getBBox())}a.attr("transform",Gc(u,n)),yz[e.id]=i,e.width=l.width,e.height=l.height;let d;if(e.startLabelLeft){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await Ql(f,e.startLabelLeft,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],y=At(p);g=m.getBoundingClientRect(),y.attr("width",g.width),y.attr("height",g.height)}f.attr("transform",Gc(g,n)),ss[e.id]||(ss[e.id]={}),ss[e.id].startLeft=h,BE(d,e.startLabelLeft)}if(e.startLabelRight){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await Ql(f,e.startLabelRight,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],y=At(p);g=m.getBoundingClientRect(),y.attr("width",g.width),y.attr("height",g.height)}f.attr("transform",Gc(g,n)),ss[e.id]||(ss[e.id]={}),ss[e.id].startRight=h,BE(d,e.startLabelRight)}if(e.endLabelLeft){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await Ql(h,e.endLabelLeft,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],y=At(p);g=m.getBoundingClientRect(),y.attr("width",g.width),y.attr("height",g.height)}f.attr("transform",Gc(g,n)),ss[e.id]||(ss[e.id]={}),ss[e.id].endLeft=h,BE(d,e.endLabelLeft)}if(e.endLabelRight){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await Ql(h,e.endLabelRight,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],y=At(p);g=m.getBoundingClientRect(),y.attr("width",g.width),y.attr("height",g.height)}f.attr("transform",Gc(g,n)),ss[e.id]||(ss[e.id]={}),ss[e.id].endRight=h,BE(d,e.endLabelRight)}return o},"insertEdgeLabel");function BE(t,e){In(Ke())&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}S(BE,"setTerminalWidth");var TDt=S((t,e)=>{ge.debug("Moving label abc88 ",t.id,t.label,yz[t.id],e);let r=e.updatedPath?e.updatedPath:e.originalPath;const n=Ke(),{subGraphTitleTotalMargin:i}=oT(n);if(t.label){const a=yz[t.id];let s=t.x,o=t.y;if(r){const l=Wr.calcLabelPosition(r);ge.debug("Moving label "+t.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(s=l.x,o=l.y)}a.attr("transform",`translate(${s}, ${o+i/2})`)}if(t.startLabelLeft){const a=ss[t.id].startLeft;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.startLabelRight){const a=ss[t.id].startRight;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelLeft){const a=ss[t.id].endLeft;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelRight){const a=ss[t.id].endRight;let s=t.x,o=t.y;if(r){const l=Wr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),xDt=S((t,e)=>{const r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),s=t.width/2,o=t.height/2;return i>=s||a>=o},"outsideNode"),CDt=S((t,e,r)=>{ge.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} - node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const n=t.x,i=t.y,a=Math.abs(n-r.x),s=t.width/2;let o=r.xMath.abs(n-e.x)*l){let h=r.y{ge.debug("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(!TDt(e,a)&&!i){const s=xDt(e,n,a);let o=!1;r.forEach(l=>{o=o||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)||r.push(s),i=!0}else n=a,i||r.push(a)}),r},"cutPathAtIntersect"),CDt=S(function(t,e,r,n,i,a,s){let o=r.points;ge.debug("abc88 InsertEdge: edge=",r,"e=",e);let l=!1;const u=a.node(e.v);var d=a.node(e.w);d?.intersect&&u?.intersect&&(o=o.slice(1,r.points.length-1),o.unshift(u.intersect(o[0])),o.push(d.intersect(o[o.length-1]))),r.toCluster&&(ge.debug("to cluster abc88",n[r.toCluster]),o=mle(r.points,n[r.toCluster].node),l=!0),r.fromCluster&&(ge.debug("from cluster abc88",n[r.fromCluster]),o=mle(o.reverse(),n[r.fromCluster].node).reverse(),l=!0);const h=o.filter(E=>!Number.isNaN(E.y));let f=US;r.curve&&(i==="graph"||i==="flowchart")&&(f=r.curve);const{x:p,y:g}=Afe(r),m=zS().x(p).y(g).curve(f);let y;switch(r.thickness){case"normal":y="edge-thickness-normal";break;case"thick":y="edge-thickness-thick";break;case"invisible":y="edge-thickness-thick";break;default:y=""}switch(r.pattern){case"solid":y+=" edge-pattern-solid";break;case"dotted":y+=" edge-pattern-dotted";break;case"dashed":y+=" edge-pattern-dashed";break}const v=t.append("path").attr("d",m(h)).attr("id",r.id).attr("class"," "+y+(r.classes?" "+r.classes:"")).attr("style",r.style);let b="";(Ke().flowchart.arrowMarkerAbsolute||Ke().state.arrowMarkerAbsolute)&&(b=fk(!0)),_Dt(v,r,b,s,i);let _={};return l&&(_.updatedPath=o),_.originalPath=r.points,_},"insertEdge"),wDt=S(t=>{const e=new Set;for(const r of t)switch(r){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(r);break}return e},"expandAndDeduplicateDirections"),kDt=S((t,e,r,n)=>{const i=wDt(t),a=2,s=e.height+2*r.padding,o=s/a,l=n??e.width+2*o+r.padding,u=r.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:o,y:0},{x:l/2,y:2*u},{x:l-o,y:0},{x:l,y:0},{x:l,y:-s/3},{x:l+2*u,y:-s/2},{x:l,y:-2*s/3},{x:l,y:-s},{x:l-o,y:-s},{x:l/2,y:-s-2*u},{x:o,y:-s},{x:0,y:-s},{x:0,y:-2*s/3},{x:-2*u,y:-s/2},{x:0,y:-s/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:o,y:0},{x:l-o,y:0},{x:l,y:-s/2},{x:l-o,y:-s},{x:o,y:-s},{x:0,y:-s/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:o,y:-s},{x:l-o,y:-s},{x:l,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:l,y:-o},{x:l,y:-s+o},{x:0,y:-s}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:l,y:0},{x:0,y:-o},{x:0,y:-s+o},{x:l,y:-s}]:i.has("right")&&i.has("left")?[{x:o,y:0},{x:o,y:-u},{x:l-o,y:-u},{x:l-o,y:0},{x:l,y:-s/2},{x:l-o,y:-s},{x:l-o,y:-s+u},{x:o,y:-s+u},{x:o,y:-s},{x:0,y:-s/2}]:i.has("up")&&i.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:o,y:-u},{x:o,y:-s+u},{x:0,y:-s+u},{x:l/2,y:-s},{x:l,y:-s+u},{x:l-o,y:-s+u},{x:l-o,y:-u},{x:l,y:-u}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:l,y:-o},{x:0,y:-s}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-s}]:i.has("left")&&i.has("up")?[{x:l,y:0},{x:0,y:-o},{x:l,y:-s}]:i.has("left")&&i.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-s}]:i.has("right")?[{x:o,y:-u},{x:o,y:-u},{x:l-o,y:-u},{x:l-o,y:0},{x:l,y:-s/2},{x:l-o,y:-s},{x:l-o,y:-s+u},{x:o,y:-s+u},{x:o,y:-s+u}]:i.has("left")?[{x:o,y:0},{x:o,y:-u},{x:l-o,y:-u},{x:l-o,y:-s+u},{x:o,y:-s+u},{x:o,y:-s},{x:0,y:-s/2}]:i.has("up")?[{x:o,y:-u},{x:o,y:-s+u},{x:0,y:-s+u},{x:l/2,y:-s},{x:l,y:-s+u},{x:l-o,y:-s+u},{x:l-o,y:-u}]:i.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:o,y:-u},{x:o,y:-s+u},{x:l-o,y:-s+u},{x:l-o,y:-u},{x:l,y:-u}]:[{x:0,y:0}]},"getArrowPoints");function g8e(t,e){return t.intersect(e)}S(g8e,"intersectNode");var ADt=g8e;function m8e(t,e,r,n){var i=t.x,a=t.y,s=i-n.x,o=a-n.y,l=Math.sqrt(e*e*o*o+r*r*s*s),u=Math.abs(e*r*s/l);n.x0}S(vz,"sameSign");var NDt=_8e,IDt=b8e;function b8e(t,e,r){var n=t.x,i=t.y,a=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(g){s=Math.min(s,g.x),o=Math.min(o,g.y)}):(s=Math.min(s,e.x),o=Math.min(o,e.y));for(var l=n-t.width/2-s,u=i-t.height/2-o,d=0;d1&&a.sort(function(g,m){var y=g.x-r.x,v=g.y-r.y,b=Math.sqrt(y*y+v*v),_=m.x-r.x,E=m.y-r.y,x=Math.sqrt(_*_+E*E);return b{var r=t.x,n=t.y,i=e.x-r,a=e.y-n,s=t.width/2,o=t.height/2,l,u;return Math.abs(a)*s>Math.abs(i)*o?(a<0&&(o=-o),l=a===0?0:o*i/a,u=o):(i<0&&(s=-s),l=s,u=i===0?0:s*a/i),{x:r+l,y:n+u}},"intersectRect"),DDt=ODt,Si={node:ADt,circle:RDt,ellipse:y8e,polygon:IDt,rect:DDt},Ga=S(async(t,e,r,n)=>{const i=Ke();let a;const s=e.useHtmlLabels||In(i);r?a=r:a="node default";const o=t.insert("g").attr("class",a).attr("id",e.domId||e.id),l=o.insert("g").attr("class","label").attr("style",e.labelStyle);let u;e.labelText===void 0?u="":u=typeof e.labelText=="string"?e.labelText:e.labelText[0];let d;e.labelType==="markdown"?d=Zs(l,un(x0(u),i),{useHtmlLabels:s,width:e.width||i.flowchart.wrappingWidth,classes:"markdown-node-label"},i):d=await Ql(l,un(x0(u),i),e.labelStyle,!1,n);let h=d.getBBox();const f=e.padding/2;if(In(i)){const p=d.children[0],g=At(d);await sG(p,u),h=p.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}return s?l.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):l.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&l.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:o,bbox:h,halfPadding:f,label:l}},"labelHelper"),Ui=S((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds");function bc(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}S(bc,"insertPolygonShape");var LDt=S(async(t,e)=>{e.useHtmlLabels||In(Ke())||(e.centerLabel=!0);const{shapeSvg:n,bbox:i,halfPadding:a}=await Ga(t,e,"node "+e.classes,!0);ge.info("Classes = ",e.classes);const s=n.insert("rect",":first-child");return s.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),Ui(e,s),e.intersect=function(o){return Si.rect(e,o)},n},"note"),MDt=LDt,yle=S(t=>t?" "+t:"","formatClass"),rl=S((t,e)=>`${e||"node default"}${yle(t.classes)} ${yle(t.class)}`,"getClassesFromNode"),vle=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=i+a,o=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];ge.info("Question main (Circle)");const l=bc(r,s,s,o);return l.attr("style",e.style),Ui(e,l),e.intersect=function(u){return ge.warn("Intersect called"),Si.polygon(e,o,u)},r},"question"),PDt=S((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=28,i=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return r.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(s){return Si.circle(e,14,s)},r},"choice"),BDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=4,a=e.positioned?e.height:n.height+e.padding,s=a/i,o=e.positioned?e.width:n.width+2*s+e.padding,l=[{x:s,y:0},{x:o-s,y:0},{x:o,y:-a/2},{x:o-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],u=bc(r,o,a,l);return u.attr("style",e.style),Ui(e,u),e.intersect=function(d){return Si.polygon(e,l,d)},r},"hexagon"),FDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,void 0,!0),i=2,a=n.height+2*e.padding,s=a/i,o=n.width+2*s+e.padding,u=e.positioned&&(e.widthInColumns??1)>1&&e.width>o?e.width:o,d=kDt(e.directions,n,e,u),h=bc(r,u,a,d);return h.attr("style",e.style),Ui(e,h),e.intersect=function(f){return Si.polygon(e,d,f)},r},"block_arrow"),$Dt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return bc(r,i,a,s).attr("style",e.style),e.width=i+a,e.height=a,e.intersect=function(l){return Si.polygon(e,s,l)},r},"rect_left_inv_arrow"),zDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],o=bc(r,i,a,s);return o.attr("style",e.style),Ui(e,o),e.intersect=function(l){return Si.polygon(e,s,l)},r},"lean_right"),UDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],o=bc(r,i,a,s);return o.attr("style",e.style),Ui(e,o),e.intersect=function(l){return Si.polygon(e,s,l)},r},"lean_left"),GDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],o=bc(r,i,a,s);return o.attr("style",e.style),Ui(e,o),e.intersect=function(l){return Si.polygon(e,s,l)},r},"trapezoid"),qDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],o=bc(r,i,a,s);return o.attr("style",e.style),Ui(e,o),e.intersect=function(l){return Si.polygon(e,s,l)},r},"inv_trapezoid"),YDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],o=bc(r,i,a,s);return o.attr("style",e.style),Ui(e,o),e.intersect=function(l){return Si.polygon(e,s,l)},r},"rect_right_inv_arrow"),HDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=i/2,s=a/(2.5+i/50),o=n.height+s+e.padding,l="M 0,"+s+" a "+a+","+s+" 0,0,0 "+i+" 0 a "+a+","+s+" 0,0,0 "+-i+" 0 l 0,"+o+" a "+a+","+s+" 0,0,0 "+i+" 0 l 0,"+-o,u=r.attr("label-offset-y",s).insert("path",":first-child").attr("style",e.style).attr("d",l).attr("transform","translate("+-i/2+","+-(o/2+s)+")");return Ui(e,u),e.intersect=function(d){const h=Si.rect(e,d),f=h.x-e.x;if(a!=0&&(Math.abs(f)e.height/2-s)){let p=s*s*(1-f*f/(a*a));p!=0&&(p=Math.sqrt(p)),p=s-p,d.y-e.y>0&&(p=-p),h.y+=p}return h},r},"cylinder"),VDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:i}=await Ga(t,e,"node "+e.classes+" "+e.class,!0),a=r.insert("rect",":first-child"),s=e.positioned?e.width:n.width+e.padding,o=e.positioned?e.height:n.height+e.padding,l=e.positioned?-s/2:-n.width/2-i,u=e.positioned?-o/2:-n.height/2-i;if(a.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",l).attr("y",u).attr("width",s).attr("height",o),e.props){const d=new Set(Object.keys(e.props));e.props.borders&&(u8(a,e.props.borders,s,o),d.delete("borders")),d.forEach(h=>{ge.warn(`Unknown node property ${h}`)})}return Ui(e,a),e.intersect=function(d){return Si.rect(e,d)},r},"rect"),WDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:i}=await Ga(t,e,"node "+e.classes,!0),a=r.insert("rect",":first-child"),s=e.positioned?e.width:n.width+e.padding,o=e.positioned?e.height:n.height+e.padding,l=e.positioned?-s/2:-n.width/2-i,u=e.positioned?-o/2:-n.height/2-i;if(a.attr("class","basic cluster composite label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",l).attr("y",u).attr("width",s).attr("height",o),e.props){const d=new Set(Object.keys(e.props));e.props.borders&&(u8(a,e.props.borders,s,o),d.delete("borders")),d.forEach(h=>{ge.warn(`Unknown node property ${h}`)})}return Ui(e,a),e.intersect=function(d){return Si.rect(e,d)},r},"composite"),KDt=S(async(t,e)=>{const{shapeSvg:r}=await Ga(t,e,"label",!0);ge.trace("Classes = ",e.class);const n=r.insert("rect",":first-child"),i=0,a=0;if(n.attr("width",i).attr("height",a),r.attr("class","label edgeLabel"),e.props){const s=new Set(Object.keys(e.props));e.props.borders&&(u8(n,e.props.borders,i,a),s.delete("borders")),s.forEach(o=>{ge.warn(`Unknown node property ${o}`)})}return Ui(e,n),e.intersect=function(s){return Si.rect(e,s)},r},"labelRect");function u8(t,e,r,n){const i=[],a=S(o=>{i.push(o,0)},"addBorder"),s=S(o=>{i.push(0,o)},"skipBorder");e.includes("t")?(ge.debug("add top border"),a(r)):s(r),e.includes("r")?(ge.debug("add right border"),a(n)):s(n),e.includes("b")?(ge.debug("add bottom border"),a(r)):s(r),e.includes("l")?(ge.debug("add left border"),a(n)):s(n),t.attr("stroke-dasharray",i.join(" "))}S(u8,"applyNodePropertyBorders");var XDt=S(async(t,e)=>{let r;e.classes?r="node "+e.classes:r="node default";const n=t.insert("g").attr("class",r).attr("id",e.domId||e.id),i=n.insert("rect",":first-child"),a=n.insert("line"),s=n.insert("g").attr("class","label"),o=e.labelText.flat?e.labelText.flat():e.labelText;let l="";typeof o=="object"?l=o[0]:l=o,ge.info("Label text abc79",l,o,typeof o=="object");const u=await Ql(s,l,e.labelStyle,!0,!0);let d={width:0,height:0};if(In(Ke())){const m=u.children[0],y=At(u);d=m.getBoundingClientRect(),y.attr("width",d.width),y.attr("height",d.height)}ge.info("Text 2",o);const h=o.slice(1,o.length);let f=u.getBBox();const p=await Ql(s,h.join?h.join("
"):h,e.labelStyle,!0,!0);if(In(Ke())){const m=p.children[0],y=At(p);d=m.getBoundingClientRect(),y.attr("width",d.width),y.attr("height",d.height)}const g=e.padding/2;return At(p).attr("transform","translate( "+(d.width>f.width?0:(f.width-d.width)/2)+", "+(f.height+g+5)+")"),At(u).attr("transform","translate( "+(d.width{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.height+e.padding,a=n.width+i/4+e.padding,s=r.insert("rect",":first-child").attr("style",e.style).attr("rx",i/2).attr("ry",i/2).attr("x",-a/2).attr("y",-i/2).attr("width",a).attr("height",i);return Ui(e,s),e.intersect=function(o){return Si.rect(e,o)},r},"stadium"),QDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:i}=await Ga(t,e,rl(e,void 0),!0),a=r.insert("circle",":first-child");return a.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),ge.info("Circle main"),Ui(e,a),e.intersect=function(s){return ge.info("Circle intersect",e,n.width/2+i,s),Si.circle(e,n.width/2+i,s)},r},"circle"),ZDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:i}=await Ga(t,e,rl(e,void 0),!0),a=5,s=r.insert("g",":first-child"),o=s.insert("circle"),l=s.insert("circle");return s.attr("class",e.class),o.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i+a).attr("width",n.width+e.padding+a*2).attr("height",n.height+e.padding+a*2),l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),ge.info("DoubleCircle main"),Ui(e,o),e.intersect=function(u){return ge.info("DoubleCircle intersect",e,n.width/2+i+a,u),Si.circle(e,n.width/2+i+a,u)},r},"doublecircle"),JDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],o=bc(r,i,a,s);return o.attr("style",e.style),Ui(e,o),e.intersect=function(l){return Si.polygon(e,s,l)},r},"subroutine"),eLt=S((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Ui(e,n),e.intersect=function(i){return Si.circle(e,7,i)},r},"start"),_le=S((t,e,r)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let i=70,a=10;r==="LR"&&(i=10,a=70);const s=n.append("rect").attr("x",-1*i/2).attr("y",-1*a/2).attr("width",i).attr("height",a).attr("class","fork-join");return Ui(e,s),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(o){return Si.rect(e,o)},n},"forkJoin"),tLt=S((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child"),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Ui(e,i),e.intersect=function(a){return Si.circle(e,7,a)},r},"end"),rLt=S(async(t,e)=>{const r=e.padding/2,n=4,i=8;let a;e.classes?a="node "+e.classes:a="node default";const s=t.insert("g").attr("class",a).attr("id",e.domId||e.id),o=s.insert("rect",":first-child"),l=s.insert("line"),u=s.insert("line");let d=0,h=n;const f=s.insert("g").attr("class","label");let p=0;const g=e.classData.annotations?.[0],m=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",y=await Ql(f,m,e.labelStyle,!0,!0);let v=y.getBBox();if(In(Ke())){const w=y.children[0],N=At(y);v=w.getBoundingClientRect(),N.attr("width",v.width),N.attr("height",v.height)}e.classData.annotations[0]&&(h+=v.height+n,d+=v.width);let b=e.classData.label;e.classData.type!==void 0&&e.classData.type!==""&&(In(Ke())?b+="<"+e.classData.type+">":b+="<"+e.classData.type+">");const _=await Ql(f,b,e.labelStyle,!0,!0);At(_).attr("class","classTitle");let E=_.getBBox();if(In(Ke())){const w=_.children[0],N=At(_);E=w.getBoundingClientRect(),N.attr("width",E.width),N.attr("height",E.height)}h+=E.height+n,E.width>d&&(d=E.width);const x=[];e.classData.members.forEach(async w=>{const N=w.getDisplayDetails();let O=N.displayText;In(Ke())&&(O=O.replace(//g,">"));const M=await Ql(f,O,N.cssStyle?N.cssStyle:e.labelStyle,!0,!0);let $=M.getBBox();if(In(Ke())){const F=M.children[0],A=At(M);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>d&&(d=$.width),h+=$.height+n,x.push(M)}),h+=i;const C=[];if(e.classData.methods.forEach(async w=>{const N=w.getDisplayDetails();let O=N.displayText;In(Ke())&&(O=O.replace(//g,">"));const M=await Ql(f,O,N.cssStyle?N.cssStyle:e.labelStyle,!0,!0);let $=M.getBBox();if(In(Ke())){const F=M.children[0],A=At(M);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>d&&(d=$.width),h+=$.height+n,C.push(M)}),h+=i,g){let w=(d-v.width)/2;At(y).attr("transform","translate( "+(-1*d/2+w)+", "+-1*h/2+")"),p=v.height+n}let T=(d-E.width)/2;return At(_).attr("transform","translate( "+(-1*d/2+T)+", "+(-1*h/2+p)+")"),p+=E.height+n,l.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-h/2-r+i+p).attr("y2",-h/2-r+i+p),p+=i,x.forEach(w=>{At(w).attr("transform","translate( "+-d/2+", "+(-1*h/2+p+i/2)+")");const N=w?.getBBox();p+=(N?.height??0)+n}),p+=i,u.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-h/2-r+i+p).attr("y2",-h/2-r+i+p),p+=i,C.forEach(w=>{At(w).attr("transform","translate( "+-d/2+", "+(-1*h/2+p)+")");const N=w?.getBBox();p+=(N?.height??0)+n}),o.attr("style",e.style).attr("class","outer title-state").attr("x",-d/2-r).attr("y",-(h/2)-r).attr("width",d+e.padding).attr("height",h+e.padding),Ui(e,o),e.intersect=function(w){return Si.rect(e,w)},s},"class_box"),ble={rhombus:vle,composite:WDt,question:vle,rect:VDt,labelRect:KDt,rectWithTitle:XDt,choice:PDt,circle:QDt,doublecircle:ZDt,stadium:jDt,hexagon:BDt,block_arrow:FDt,rect_left_inv_arrow:$Dt,lean_right:zDt,lean_left:UDt,trapezoid:GDt,inv_trapezoid:qDt,rect_right_inv_arrow:YDt,cylinder:HDt,start:eLt,end:tLt,note:MDt,subroutine:JDt,fork:_le,join:_le,class_box:rLt},rC={},E8e=S(async(t,e,r)=>{let n,i;if(e.link){let a;Ke().securityLevel==="sandbox"?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),i=await ble[e.shape](n,e,r)}else i=await ble[e.shape](t,e,r),n=i;return e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),rC[e.id]=n,e.haveCallback&&rC[e.id].attr("class",rC[e.id].attr("class")+" clickable"),n},"insertNode"),nLt=S(t=>{const e=rC[t.id];ge.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8,n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},"positionNode");function LW(t,e,r=!1){const n=t;let i="default";(n?.classes?.length||0)>0&&(i=(n?.classes??[]).join(" ")),i=i+" flowchart-label";let a=0,s="",o;switch(n.type){case"round":a=5,s="rect";break;case"composite":a=0,s="composite",o=0;break;case"square":s="rect";break;case"diamond":s="question";break;case"hexagon":s="hexagon";break;case"block_arrow":s="block_arrow";break;case"odd":s="rect_left_inv_arrow";break;case"lean_right":s="lean_right";break;case"lean_left":s="lean_left";break;case"trapezoid":s="trapezoid";break;case"inv_trapezoid":s="inv_trapezoid";break;case"rect_left_inv_arrow":s="rect_left_inv_arrow";break;case"circle":s="circle";break;case"ellipse":s="ellipse";break;case"stadium":s="stadium";break;case"subroutine":s="subroutine";break;case"cylinder":s="cylinder";break;case"group":s="rect";break;case"doublecircle":s="doublecircle";break;default:s="rect"}const l=iG(n?.styles??[]),u=n.label,d=n.size??{width:0,height:0,x:0,y:0},h=e.getDiagramId();return{labelStyle:l.labelStyle,shape:s,labelText:u,rx:a,ry:a,class:i,style:l.style,id:n.id,domId:h?`${h}-${n.id}`:n.id,directions:n.directions,width:d.width,height:d.height,x:d.x,y:d.y,positioned:r,intersect:void 0,type:n.type,padding:o??xr()?.block?.padding??0,widthInColumns:n.widthInColumns??1}}S(LW,"getNodeFromBlock");async function S8e(t,e,r){const n=LW(e,r,!1);if(n.type==="group")return;const i=xr(),a=await E8e(t,n,{config:i}),s=a.node().getBBox(),o=r.getBlock(n.id);o.size={width:s.width,height:s.height,x:0,y:0,node:a},r.setBlock(o),a.remove()}S(S8e,"calculateBlockSize");async function T8e(t,e,r){const n=LW(e,r,!0);if(r.getBlock(n.id).type!=="space"){const a=xr();await E8e(t,n,{config:a}),e.intersect=n?.intersect,nLt(n)}}S(T8e,"insertBlockPositioned");async function d8(t,e,r,n){for(const i of e)await n(t,i,r),i.children&&await d8(t,i.children,r,n)}S(d8,"performOperations");async function x8e(t,e,r){await d8(t,e,r,S8e)}S(x8e,"calculateBlockSizes");async function C8e(t,e,r){await d8(t,e,r,T8e)}S(C8e,"insertBlocks");async function w8e(t,e,r,n,i){const a=new xo({multigraph:!0,compound:!0});a.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const s of r)s.size&&a.setNode(s.id,{width:s.size.width,height:s.size.height,intersect:s.intersect});for(const s of e)if(s.start&&s.end){const o=n.getBlock(s.start),l=n.getBlock(s.end);if(o?.size&&l?.size){const u=o.size,d=l.size,h=[{x:u.x,y:u.y},{x:u.x+(d.x-u.x)/2,y:u.y+(d.y-u.y)/2},{x:d.x,y:d.y}],f=i?`${i}-${s.id}`:s.id,p=s.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",g=s.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",m=`${p} ${g} flowchart-link LS-a1 LE-b1`;CDt(t,{v:s.start,w:s.end,name:f},{...s,id:f,arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:h,classes:m},void 0,"block",a,i),s.label&&(await EDt(t,{...s,label:s.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:h,classes:m}),SDt({...s,x:h[1].x,y:h[1].y},{originalPath:h}))}}}S(w8e,"insertEdges");var iLt=S(function(t,e){return e.db.getClasses()},"getClasses"),aLt=S(async function(t,e,r,n){const{securityLevel:i,block:a}=xr(),s=n.db;s.setDiagramId(e);let o;i==="sandbox"&&(o=At("#i"+e));const l=At(i==="sandbox"?o.nodes()[0].contentDocument.body:"body"),u=i==="sandbox"?l.select(`[id="${e}"]`):At(`[id="${e}"]`);mDt(u,["point","circle","cross"],n.type,e);const h=s.getBlocks(),f=s.getBlocksFlat(),p=s.getEdges(),g=u.insert("g").attr("class","block");await x8e(g,h,s);const m=p8e(s);if(await C8e(g,h,s),await w8e(g,p,f,s,e),m){const y=m,v=Math.max(1,Math.round(.125*(y.width/y.height))),b=y.height+v+10,_=y.width+10,{useMaxWidth:E}=a;ua(u,b,_,!!E),ge.debug("Here Bounds",m,y),u.attr("viewBox",`${y.x-5} ${y.y-5} ${y.width+10} ${y.height+10}`)}},"draw"),sLt={draw:aLt,getClasses:iLt},oLt={parser:M9t,db:rDt,renderer:sLt,styles:iDt};const lLt=Object.freeze(Object.defineProperty({__proto__:null,diagram:oLt},Symbol.toStringTag,{value:"Module"}));var Pc=new uY(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),cLt=S(()=>{Pc.reset(),oi()},"clear"),uLt=S(()=>Pc.records.stack[0],"getRoot"),dLt=S(()=>Pc.records.cnt,"getCount"),hLt=on.treeView,fLt=S(()=>$i(hLt,xr().treeView),"getConfig"),pLt=S((t,e)=>{for(;t<=Pc.records.stack[Pc.records.stack.length-1].level;)Pc.records.stack.pop();const r={id:Pc.records.cnt++,level:t,name:e,children:[]};Pc.records.stack[Pc.records.stack.length-1].children.push(r),Pc.records.stack.push(r)},"addNode"),gLt={clear:cLt,addNode:pLt,getRoot:uLt,getCount:dLt,getConfig:fLt,getAccTitle:yi,getAccDescription:_i,getDiagramTitle:li,setAccDescription:vi,setAccTitle:ai,setDiagramTitle:pi},_z=gLt,mLt=S(t=>{wu(t,_z),t.nodes.map(e=>_z.addNode(e.indent?parseInt(e.indent):0,e.name))},"populate"),yLt={parse:S(async t=>{const e=await _c("treeView",t);ge.debug(e),mLt(e)},"parse")},vLt=S((t,e,r,n,i)=>{const a=n.append("text").text(r.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:s,width:o}=a.node().getBBox(),l=s+i.paddingY*2,u=o+i.paddingX*2;a.attr("x",t+i.paddingX),a.attr("y",e+l/2),r.BBox={x:t,y:e,width:u,height:l}},"positionLabel"),Ele=S((t,e,r,n,i,a)=>t.append("line").attr("x1",e).attr("y1",r).attr("x2",n).attr("y2",i).attr("stroke-width",a).attr("class","treeView-node-line"),"positionLine"),_Lt=S((t,e,r)=>{let n=0,i=0;const a=S((o,l,u,d)=>{const h=d*(u.rowIndent+u.paddingX);vLt(h,n,l,o,u);const{height:f,width:p}=l.BBox;Ele(o,h-u.rowIndent,n+f/2,h,n+f/2,u.lineThickness),i=Math.max(i,h+p),n+=f},"drawNode"),s=S((o,l=0)=>{a(t,o,r,l),o.children.forEach(f=>{s(f,l+1)});const{x:u,y:d,height:h}=o.BBox;if(o.children.length){const{y:f,height:p}=o.children[o.children.length-1].BBox;Ele(t,u+r.paddingX,d+h,u+r.paddingX,f+p/2+r.lineThickness/2,r.lineThickness)}},"processNode");return s(e),{totalHeight:n,totalWidth:i}},"drawTree"),bLt=S((t,e,r,n)=>{ge.debug(`Rendering treeView diagram -`+t);const i=n.db,a=i.getRoot(),s=i.getConfig(),o=To(e),l=o.append("g");l.attr("class","tree-view");const{totalHeight:u,totalWidth:d}=_Lt(l,a,s);o.attr("viewBox",`-${s.lineThickness/2} 0 ${d} ${u}`),ua(o,u,d,s.useMaxWidth)},"draw"),ELt={draw:bLt},SLt=ELt,TLt={labelFontSize:"16px",labelColor:"black",lineColor:"black"},xLt=S(({treeView:t})=>{const{labelFontSize:e,labelColor:r,lineColor:n}=$i(TLt,t);return` + node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const n=t.x,i=t.y,a=Math.abs(n-r.x),s=t.width/2;let o=r.xMath.abs(n-e.x)*l){let h=r.y{ge.debug("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(!xDt(e,a)&&!i){const s=CDt(e,n,a);let o=!1;r.forEach(l=>{o=o||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)||r.push(s),i=!0}else n=a,i||r.push(a)}),r},"cutPathAtIntersect"),wDt=S(function(t,e,r,n,i,a,s){let o=r.points;ge.debug("abc88 InsertEdge: edge=",r,"e=",e);let l=!1;const u=a.node(e.v);var d=a.node(e.w);d?.intersect&&u?.intersect&&(o=o.slice(1,r.points.length-1),o.unshift(u.intersect(o[0])),o.push(d.intersect(o[o.length-1]))),r.toCluster&&(ge.debug("to cluster abc88",n[r.toCluster]),o=mle(r.points,n[r.toCluster].node),l=!0),r.fromCluster&&(ge.debug("from cluster abc88",n[r.fromCluster]),o=mle(o.reverse(),n[r.fromCluster].node).reverse(),l=!0);const h=o.filter(E=>!Number.isNaN(E.y));let f=US;r.curve&&(i==="graph"||i==="flowchart")&&(f=r.curve);const{x:p,y:g}=Afe(r),m=zS().x(p).y(g).curve(f);let y;switch(r.thickness){case"normal":y="edge-thickness-normal";break;case"thick":y="edge-thickness-thick";break;case"invisible":y="edge-thickness-thick";break;default:y=""}switch(r.pattern){case"solid":y+=" edge-pattern-solid";break;case"dotted":y+=" edge-pattern-dotted";break;case"dashed":y+=" edge-pattern-dashed";break}const v=t.append("path").attr("d",m(h)).attr("id",r.id).attr("class"," "+y+(r.classes?" "+r.classes:"")).attr("style",r.style);let b="";(Ke().flowchart.arrowMarkerAbsolute||Ke().state.arrowMarkerAbsolute)&&(b=fk(!0)),bDt(v,r,b,s,i);let _={};return l&&(_.updatedPath=o),_.originalPath=r.points,_},"insertEdge"),kDt=S(t=>{const e=new Set;for(const r of t)switch(r){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(r);break}return e},"expandAndDeduplicateDirections"),ADt=S((t,e,r,n)=>{const i=kDt(t),a=2,s=e.height+2*r.padding,o=s/a,l=n??e.width+2*o+r.padding,u=r.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:o,y:0},{x:l/2,y:2*u},{x:l-o,y:0},{x:l,y:0},{x:l,y:-s/3},{x:l+2*u,y:-s/2},{x:l,y:-2*s/3},{x:l,y:-s},{x:l-o,y:-s},{x:l/2,y:-s-2*u},{x:o,y:-s},{x:0,y:-s},{x:0,y:-2*s/3},{x:-2*u,y:-s/2},{x:0,y:-s/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:o,y:0},{x:l-o,y:0},{x:l,y:-s/2},{x:l-o,y:-s},{x:o,y:-s},{x:0,y:-s/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:o,y:-s},{x:l-o,y:-s},{x:l,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:l,y:-o},{x:l,y:-s+o},{x:0,y:-s}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:l,y:0},{x:0,y:-o},{x:0,y:-s+o},{x:l,y:-s}]:i.has("right")&&i.has("left")?[{x:o,y:0},{x:o,y:-u},{x:l-o,y:-u},{x:l-o,y:0},{x:l,y:-s/2},{x:l-o,y:-s},{x:l-o,y:-s+u},{x:o,y:-s+u},{x:o,y:-s},{x:0,y:-s/2}]:i.has("up")&&i.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:o,y:-u},{x:o,y:-s+u},{x:0,y:-s+u},{x:l/2,y:-s},{x:l,y:-s+u},{x:l-o,y:-s+u},{x:l-o,y:-u},{x:l,y:-u}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:l,y:-o},{x:0,y:-s}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-s}]:i.has("left")&&i.has("up")?[{x:l,y:0},{x:0,y:-o},{x:l,y:-s}]:i.has("left")&&i.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-s}]:i.has("right")?[{x:o,y:-u},{x:o,y:-u},{x:l-o,y:-u},{x:l-o,y:0},{x:l,y:-s/2},{x:l-o,y:-s},{x:l-o,y:-s+u},{x:o,y:-s+u},{x:o,y:-s+u}]:i.has("left")?[{x:o,y:0},{x:o,y:-u},{x:l-o,y:-u},{x:l-o,y:-s+u},{x:o,y:-s+u},{x:o,y:-s},{x:0,y:-s/2}]:i.has("up")?[{x:o,y:-u},{x:o,y:-s+u},{x:0,y:-s+u},{x:l/2,y:-s},{x:l,y:-s+u},{x:l-o,y:-s+u},{x:l-o,y:-u}]:i.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:o,y:-u},{x:o,y:-s+u},{x:l-o,y:-s+u},{x:l-o,y:-u},{x:l,y:-u}]:[{x:0,y:0}]},"getArrowPoints");function g8e(t,e){return t.intersect(e)}S(g8e,"intersectNode");var RDt=g8e;function m8e(t,e,r,n){var i=t.x,a=t.y,s=i-n.x,o=a-n.y,l=Math.sqrt(e*e*o*o+r*r*s*s),u=Math.abs(e*r*s/l);n.x0}S(vz,"sameSign");var IDt=_8e,ODt=b8e;function b8e(t,e,r){var n=t.x,i=t.y,a=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(g){s=Math.min(s,g.x),o=Math.min(o,g.y)}):(s=Math.min(s,e.x),o=Math.min(o,e.y));for(var l=n-t.width/2-s,u=i-t.height/2-o,d=0;d1&&a.sort(function(g,m){var y=g.x-r.x,v=g.y-r.y,b=Math.sqrt(y*y+v*v),_=m.x-r.x,E=m.y-r.y,x=Math.sqrt(_*_+E*E);return b{var r=t.x,n=t.y,i=e.x-r,a=e.y-n,s=t.width/2,o=t.height/2,l,u;return Math.abs(a)*s>Math.abs(i)*o?(a<0&&(o=-o),l=a===0?0:o*i/a,u=o):(i<0&&(s=-s),l=s,u=i===0?0:s*a/i),{x:r+l,y:n+u}},"intersectRect"),LDt=DDt,Si={node:RDt,circle:NDt,ellipse:y8e,polygon:ODt,rect:LDt},Ga=S(async(t,e,r,n)=>{const i=Ke();let a;const s=e.useHtmlLabels||In(i);r?a=r:a="node default";const o=t.insert("g").attr("class",a).attr("id",e.domId||e.id),l=o.insert("g").attr("class","label").attr("style",e.labelStyle);let u;e.labelText===void 0?u="":u=typeof e.labelText=="string"?e.labelText:e.labelText[0];let d;e.labelType==="markdown"?d=Zs(l,un(x0(u),i),{useHtmlLabels:s,width:e.width||i.flowchart.wrappingWidth,classes:"markdown-node-label"},i):d=await Ql(l,un(x0(u),i),e.labelStyle,!1,n);let h=d.getBBox();const f=e.padding/2;if(In(i)){const p=d.children[0],g=At(d);await sG(p,u),h=p.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}return s?l.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):l.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&l.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:o,bbox:h,halfPadding:f,label:l}},"labelHelper"),Ui=S((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds");function bc(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}S(bc,"insertPolygonShape");var MDt=S(async(t,e)=>{e.useHtmlLabels||In(Ke())||(e.centerLabel=!0);const{shapeSvg:n,bbox:i,halfPadding:a}=await Ga(t,e,"node "+e.classes,!0);ge.info("Classes = ",e.classes);const s=n.insert("rect",":first-child");return s.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),Ui(e,s),e.intersect=function(o){return Si.rect(e,o)},n},"note"),PDt=MDt,yle=S(t=>t?" "+t:"","formatClass"),rl=S((t,e)=>`${e||"node default"}${yle(t.classes)} ${yle(t.class)}`,"getClassesFromNode"),vle=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=i+a,o=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];ge.info("Question main (Circle)");const l=bc(r,s,s,o);return l.attr("style",e.style),Ui(e,l),e.intersect=function(u){return ge.warn("Intersect called"),Si.polygon(e,o,u)},r},"question"),BDt=S((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=28,i=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return r.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(s){return Si.circle(e,14,s)},r},"choice"),FDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=4,a=e.positioned?e.height:n.height+e.padding,s=a/i,o=e.positioned?e.width:n.width+2*s+e.padding,l=[{x:s,y:0},{x:o-s,y:0},{x:o,y:-a/2},{x:o-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],u=bc(r,o,a,l);return u.attr("style",e.style),Ui(e,u),e.intersect=function(d){return Si.polygon(e,l,d)},r},"hexagon"),$Dt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,void 0,!0),i=2,a=n.height+2*e.padding,s=a/i,o=n.width+2*s+e.padding,u=e.positioned&&(e.widthInColumns??1)>1&&e.width>o?e.width:o,d=ADt(e.directions,n,e,u),h=bc(r,u,a,d);return h.attr("style",e.style),Ui(e,h),e.intersect=function(f){return Si.polygon(e,d,f)},r},"block_arrow"),zDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return bc(r,i,a,s).attr("style",e.style),e.width=i+a,e.height=a,e.intersect=function(l){return Si.polygon(e,s,l)},r},"rect_left_inv_arrow"),UDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],o=bc(r,i,a,s);return o.attr("style",e.style),Ui(e,o),e.intersect=function(l){return Si.polygon(e,s,l)},r},"lean_right"),GDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],o=bc(r,i,a,s);return o.attr("style",e.style),Ui(e,o),e.intersect=function(l){return Si.polygon(e,s,l)},r},"lean_left"),qDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],o=bc(r,i,a,s);return o.attr("style",e.style),Ui(e,o),e.intersect=function(l){return Si.polygon(e,s,l)},r},"trapezoid"),YDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],o=bc(r,i,a,s);return o.attr("style",e.style),Ui(e,o),e.intersect=function(l){return Si.polygon(e,s,l)},r},"inv_trapezoid"),HDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],o=bc(r,i,a,s);return o.attr("style",e.style),Ui(e,o),e.intersect=function(l){return Si.polygon(e,s,l)},r},"rect_right_inv_arrow"),VDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=i/2,s=a/(2.5+i/50),o=n.height+s+e.padding,l="M 0,"+s+" a "+a+","+s+" 0,0,0 "+i+" 0 a "+a+","+s+" 0,0,0 "+-i+" 0 l 0,"+o+" a "+a+","+s+" 0,0,0 "+i+" 0 l 0,"+-o,u=r.attr("label-offset-y",s).insert("path",":first-child").attr("style",e.style).attr("d",l).attr("transform","translate("+-i/2+","+-(o/2+s)+")");return Ui(e,u),e.intersect=function(d){const h=Si.rect(e,d),f=h.x-e.x;if(a!=0&&(Math.abs(f)e.height/2-s)){let p=s*s*(1-f*f/(a*a));p!=0&&(p=Math.sqrt(p)),p=s-p,d.y-e.y>0&&(p=-p),h.y+=p}return h},r},"cylinder"),WDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:i}=await Ga(t,e,"node "+e.classes+" "+e.class,!0),a=r.insert("rect",":first-child"),s=e.positioned?e.width:n.width+e.padding,o=e.positioned?e.height:n.height+e.padding,l=e.positioned?-s/2:-n.width/2-i,u=e.positioned?-o/2:-n.height/2-i;if(a.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",l).attr("y",u).attr("width",s).attr("height",o),e.props){const d=new Set(Object.keys(e.props));e.props.borders&&(u8(a,e.props.borders,s,o),d.delete("borders")),d.forEach(h=>{ge.warn(`Unknown node property ${h}`)})}return Ui(e,a),e.intersect=function(d){return Si.rect(e,d)},r},"rect"),KDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:i}=await Ga(t,e,"node "+e.classes,!0),a=r.insert("rect",":first-child"),s=e.positioned?e.width:n.width+e.padding,o=e.positioned?e.height:n.height+e.padding,l=e.positioned?-s/2:-n.width/2-i,u=e.positioned?-o/2:-n.height/2-i;if(a.attr("class","basic cluster composite label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",l).attr("y",u).attr("width",s).attr("height",o),e.props){const d=new Set(Object.keys(e.props));e.props.borders&&(u8(a,e.props.borders,s,o),d.delete("borders")),d.forEach(h=>{ge.warn(`Unknown node property ${h}`)})}return Ui(e,a),e.intersect=function(d){return Si.rect(e,d)},r},"composite"),XDt=S(async(t,e)=>{const{shapeSvg:r}=await Ga(t,e,"label",!0);ge.trace("Classes = ",e.class);const n=r.insert("rect",":first-child"),i=0,a=0;if(n.attr("width",i).attr("height",a),r.attr("class","label edgeLabel"),e.props){const s=new Set(Object.keys(e.props));e.props.borders&&(u8(n,e.props.borders,i,a),s.delete("borders")),s.forEach(o=>{ge.warn(`Unknown node property ${o}`)})}return Ui(e,n),e.intersect=function(s){return Si.rect(e,s)},r},"labelRect");function u8(t,e,r,n){const i=[],a=S(o=>{i.push(o,0)},"addBorder"),s=S(o=>{i.push(0,o)},"skipBorder");e.includes("t")?(ge.debug("add top border"),a(r)):s(r),e.includes("r")?(ge.debug("add right border"),a(n)):s(n),e.includes("b")?(ge.debug("add bottom border"),a(r)):s(r),e.includes("l")?(ge.debug("add left border"),a(n)):s(n),t.attr("stroke-dasharray",i.join(" "))}S(u8,"applyNodePropertyBorders");var jDt=S(async(t,e)=>{let r;e.classes?r="node "+e.classes:r="node default";const n=t.insert("g").attr("class",r).attr("id",e.domId||e.id),i=n.insert("rect",":first-child"),a=n.insert("line"),s=n.insert("g").attr("class","label"),o=e.labelText.flat?e.labelText.flat():e.labelText;let l="";typeof o=="object"?l=o[0]:l=o,ge.info("Label text abc79",l,o,typeof o=="object");const u=await Ql(s,l,e.labelStyle,!0,!0);let d={width:0,height:0};if(In(Ke())){const m=u.children[0],y=At(u);d=m.getBoundingClientRect(),y.attr("width",d.width),y.attr("height",d.height)}ge.info("Text 2",o);const h=o.slice(1,o.length);let f=u.getBBox();const p=await Ql(s,h.join?h.join("
"):h,e.labelStyle,!0,!0);if(In(Ke())){const m=p.children[0],y=At(p);d=m.getBoundingClientRect(),y.attr("width",d.width),y.attr("height",d.height)}const g=e.padding/2;return At(p).attr("transform","translate( "+(d.width>f.width?0:(f.width-d.width)/2)+", "+(f.height+g+5)+")"),At(u).attr("transform","translate( "+(d.width{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.height+e.padding,a=n.width+i/4+e.padding,s=r.insert("rect",":first-child").attr("style",e.style).attr("rx",i/2).attr("ry",i/2).attr("x",-a/2).attr("y",-i/2).attr("width",a).attr("height",i);return Ui(e,s),e.intersect=function(o){return Si.rect(e,o)},r},"stadium"),ZDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:i}=await Ga(t,e,rl(e,void 0),!0),a=r.insert("circle",":first-child");return a.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),ge.info("Circle main"),Ui(e,a),e.intersect=function(s){return ge.info("Circle intersect",e,n.width/2+i,s),Si.circle(e,n.width/2+i,s)},r},"circle"),JDt=S(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:i}=await Ga(t,e,rl(e,void 0),!0),a=5,s=r.insert("g",":first-child"),o=s.insert("circle"),l=s.insert("circle");return s.attr("class",e.class),o.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i+a).attr("width",n.width+e.padding+a*2).attr("height",n.height+e.padding+a*2),l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),ge.info("DoubleCircle main"),Ui(e,o),e.intersect=function(u){return ge.info("DoubleCircle intersect",e,n.width/2+i+a,u),Si.circle(e,n.width/2+i+a,u)},r},"doublecircle"),eLt=S(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Ga(t,e,rl(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],o=bc(r,i,a,s);return o.attr("style",e.style),Ui(e,o),e.intersect=function(l){return Si.polygon(e,s,l)},r},"subroutine"),tLt=S((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Ui(e,n),e.intersect=function(i){return Si.circle(e,7,i)},r},"start"),_le=S((t,e,r)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let i=70,a=10;r==="LR"&&(i=10,a=70);const s=n.append("rect").attr("x",-1*i/2).attr("y",-1*a/2).attr("width",i).attr("height",a).attr("class","fork-join");return Ui(e,s),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(o){return Si.rect(e,o)},n},"forkJoin"),rLt=S((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child"),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Ui(e,i),e.intersect=function(a){return Si.circle(e,7,a)},r},"end"),nLt=S(async(t,e)=>{const r=e.padding/2,n=4,i=8;let a;e.classes?a="node "+e.classes:a="node default";const s=t.insert("g").attr("class",a).attr("id",e.domId||e.id),o=s.insert("rect",":first-child"),l=s.insert("line"),u=s.insert("line");let d=0,h=n;const f=s.insert("g").attr("class","label");let p=0;const g=e.classData.annotations?.[0],m=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",y=await Ql(f,m,e.labelStyle,!0,!0);let v=y.getBBox();if(In(Ke())){const w=y.children[0],N=At(y);v=w.getBoundingClientRect(),N.attr("width",v.width),N.attr("height",v.height)}e.classData.annotations[0]&&(h+=v.height+n,d+=v.width);let b=e.classData.label;e.classData.type!==void 0&&e.classData.type!==""&&(In(Ke())?b+="<"+e.classData.type+">":b+="<"+e.classData.type+">");const _=await Ql(f,b,e.labelStyle,!0,!0);At(_).attr("class","classTitle");let E=_.getBBox();if(In(Ke())){const w=_.children[0],N=At(_);E=w.getBoundingClientRect(),N.attr("width",E.width),N.attr("height",E.height)}h+=E.height+n,E.width>d&&(d=E.width);const x=[];e.classData.members.forEach(async w=>{const N=w.getDisplayDetails();let O=N.displayText;In(Ke())&&(O=O.replace(//g,">"));const M=await Ql(f,O,N.cssStyle?N.cssStyle:e.labelStyle,!0,!0);let $=M.getBBox();if(In(Ke())){const F=M.children[0],A=At(M);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>d&&(d=$.width),h+=$.height+n,x.push(M)}),h+=i;const C=[];if(e.classData.methods.forEach(async w=>{const N=w.getDisplayDetails();let O=N.displayText;In(Ke())&&(O=O.replace(//g,">"));const M=await Ql(f,O,N.cssStyle?N.cssStyle:e.labelStyle,!0,!0);let $=M.getBBox();if(In(Ke())){const F=M.children[0],A=At(M);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>d&&(d=$.width),h+=$.height+n,C.push(M)}),h+=i,g){let w=(d-v.width)/2;At(y).attr("transform","translate( "+(-1*d/2+w)+", "+-1*h/2+")"),p=v.height+n}let T=(d-E.width)/2;return At(_).attr("transform","translate( "+(-1*d/2+T)+", "+(-1*h/2+p)+")"),p+=E.height+n,l.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-h/2-r+i+p).attr("y2",-h/2-r+i+p),p+=i,x.forEach(w=>{At(w).attr("transform","translate( "+-d/2+", "+(-1*h/2+p+i/2)+")");const N=w?.getBBox();p+=(N?.height??0)+n}),p+=i,u.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-h/2-r+i+p).attr("y2",-h/2-r+i+p),p+=i,C.forEach(w=>{At(w).attr("transform","translate( "+-d/2+", "+(-1*h/2+p)+")");const N=w?.getBBox();p+=(N?.height??0)+n}),o.attr("style",e.style).attr("class","outer title-state").attr("x",-d/2-r).attr("y",-(h/2)-r).attr("width",d+e.padding).attr("height",h+e.padding),Ui(e,o),e.intersect=function(w){return Si.rect(e,w)},s},"class_box"),ble={rhombus:vle,composite:KDt,question:vle,rect:WDt,labelRect:XDt,rectWithTitle:jDt,choice:BDt,circle:ZDt,doublecircle:JDt,stadium:QDt,hexagon:FDt,block_arrow:$Dt,rect_left_inv_arrow:zDt,lean_right:UDt,lean_left:GDt,trapezoid:qDt,inv_trapezoid:YDt,rect_right_inv_arrow:HDt,cylinder:VDt,start:tLt,end:rLt,note:PDt,subroutine:eLt,fork:_le,join:_le,class_box:nLt},rC={},E8e=S(async(t,e,r)=>{let n,i;if(e.link){let a;Ke().securityLevel==="sandbox"?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),i=await ble[e.shape](n,e,r)}else i=await ble[e.shape](t,e,r),n=i;return e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),rC[e.id]=n,e.haveCallback&&rC[e.id].attr("class",rC[e.id].attr("class")+" clickable"),n},"insertNode"),iLt=S(t=>{const e=rC[t.id];ge.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8,n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},"positionNode");function LW(t,e,r=!1){const n=t;let i="default";(n?.classes?.length||0)>0&&(i=(n?.classes??[]).join(" ")),i=i+" flowchart-label";let a=0,s="",o;switch(n.type){case"round":a=5,s="rect";break;case"composite":a=0,s="composite",o=0;break;case"square":s="rect";break;case"diamond":s="question";break;case"hexagon":s="hexagon";break;case"block_arrow":s="block_arrow";break;case"odd":s="rect_left_inv_arrow";break;case"lean_right":s="lean_right";break;case"lean_left":s="lean_left";break;case"trapezoid":s="trapezoid";break;case"inv_trapezoid":s="inv_trapezoid";break;case"rect_left_inv_arrow":s="rect_left_inv_arrow";break;case"circle":s="circle";break;case"ellipse":s="ellipse";break;case"stadium":s="stadium";break;case"subroutine":s="subroutine";break;case"cylinder":s="cylinder";break;case"group":s="rect";break;case"doublecircle":s="doublecircle";break;default:s="rect"}const l=iG(n?.styles??[]),u=n.label,d=n.size??{width:0,height:0,x:0,y:0},h=e.getDiagramId();return{labelStyle:l.labelStyle,shape:s,labelText:u,rx:a,ry:a,class:i,style:l.style,id:n.id,domId:h?`${h}-${n.id}`:n.id,directions:n.directions,width:d.width,height:d.height,x:d.x,y:d.y,positioned:r,intersect:void 0,type:n.type,padding:o??xr()?.block?.padding??0,widthInColumns:n.widthInColumns??1}}S(LW,"getNodeFromBlock");async function S8e(t,e,r){const n=LW(e,r,!1);if(n.type==="group")return;const i=xr(),a=await E8e(t,n,{config:i}),s=a.node().getBBox(),o=r.getBlock(n.id);o.size={width:s.width,height:s.height,x:0,y:0,node:a},r.setBlock(o),a.remove()}S(S8e,"calculateBlockSize");async function T8e(t,e,r){const n=LW(e,r,!0);if(r.getBlock(n.id).type!=="space"){const a=xr();await E8e(t,n,{config:a}),e.intersect=n?.intersect,iLt(n)}}S(T8e,"insertBlockPositioned");async function d8(t,e,r,n){for(const i of e)await n(t,i,r),i.children&&await d8(t,i.children,r,n)}S(d8,"performOperations");async function x8e(t,e,r){await d8(t,e,r,S8e)}S(x8e,"calculateBlockSizes");async function C8e(t,e,r){await d8(t,e,r,T8e)}S(C8e,"insertBlocks");async function w8e(t,e,r,n,i){const a=new xo({multigraph:!0,compound:!0});a.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const s of r)s.size&&a.setNode(s.id,{width:s.size.width,height:s.size.height,intersect:s.intersect});for(const s of e)if(s.start&&s.end){const o=n.getBlock(s.start),l=n.getBlock(s.end);if(o?.size&&l?.size){const u=o.size,d=l.size,h=[{x:u.x,y:u.y},{x:u.x+(d.x-u.x)/2,y:u.y+(d.y-u.y)/2},{x:d.x,y:d.y}],f=i?`${i}-${s.id}`:s.id,p=s.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",g=s.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",m=`${p} ${g} flowchart-link LS-a1 LE-b1`;wDt(t,{v:s.start,w:s.end,name:f},{...s,id:f,arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:h,classes:m},void 0,"block",a,i),s.label&&(await SDt(t,{...s,label:s.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:h,classes:m}),TDt({...s,x:h[1].x,y:h[1].y},{originalPath:h}))}}}S(w8e,"insertEdges");var aLt=S(function(t,e){return e.db.getClasses()},"getClasses"),sLt=S(async function(t,e,r,n){const{securityLevel:i,block:a}=xr(),s=n.db;s.setDiagramId(e);let o;i==="sandbox"&&(o=At("#i"+e));const l=At(i==="sandbox"?o.nodes()[0].contentDocument.body:"body"),u=i==="sandbox"?l.select(`[id="${e}"]`):At(`[id="${e}"]`);yDt(u,["point","circle","cross"],n.type,e);const h=s.getBlocks(),f=s.getBlocksFlat(),p=s.getEdges(),g=u.insert("g").attr("class","block");await x8e(g,h,s);const m=p8e(s);if(await C8e(g,h,s),await w8e(g,p,f,s,e),m){const y=m,v=Math.max(1,Math.round(.125*(y.width/y.height))),b=y.height+v+10,_=y.width+10,{useMaxWidth:E}=a;ua(u,b,_,!!E),ge.debug("Here Bounds",m,y),u.attr("viewBox",`${y.x-5} ${y.y-5} ${y.width+10} ${y.height+10}`)}},"draw"),oLt={draw:sLt,getClasses:aLt},lLt={parser:P9t,db:nDt,renderer:oLt,styles:aDt};const cLt=Object.freeze(Object.defineProperty({__proto__:null,diagram:lLt},Symbol.toStringTag,{value:"Module"}));var Pc=new uY(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),uLt=S(()=>{Pc.reset(),oi()},"clear"),dLt=S(()=>Pc.records.stack[0],"getRoot"),hLt=S(()=>Pc.records.cnt,"getCount"),fLt=on.treeView,pLt=S(()=>$i(fLt,xr().treeView),"getConfig"),gLt=S((t,e)=>{for(;t<=Pc.records.stack[Pc.records.stack.length-1].level;)Pc.records.stack.pop();const r={id:Pc.records.cnt++,level:t,name:e,children:[]};Pc.records.stack[Pc.records.stack.length-1].children.push(r),Pc.records.stack.push(r)},"addNode"),mLt={clear:uLt,addNode:gLt,getRoot:dLt,getCount:hLt,getConfig:pLt,getAccTitle:yi,getAccDescription:_i,getDiagramTitle:li,setAccDescription:vi,setAccTitle:ai,setDiagramTitle:pi},_z=mLt,yLt=S(t=>{wu(t,_z),t.nodes.map(e=>_z.addNode(e.indent?parseInt(e.indent):0,e.name))},"populate"),vLt={parse:S(async t=>{const e=await _c("treeView",t);ge.debug(e),yLt(e)},"parse")},_Lt=S((t,e,r,n,i)=>{const a=n.append("text").text(r.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:s,width:o}=a.node().getBBox(),l=s+i.paddingY*2,u=o+i.paddingX*2;a.attr("x",t+i.paddingX),a.attr("y",e+l/2),r.BBox={x:t,y:e,width:u,height:l}},"positionLabel"),Ele=S((t,e,r,n,i,a)=>t.append("line").attr("x1",e).attr("y1",r).attr("x2",n).attr("y2",i).attr("stroke-width",a).attr("class","treeView-node-line"),"positionLine"),bLt=S((t,e,r)=>{let n=0,i=0;const a=S((o,l,u,d)=>{const h=d*(u.rowIndent+u.paddingX);_Lt(h,n,l,o,u);const{height:f,width:p}=l.BBox;Ele(o,h-u.rowIndent,n+f/2,h,n+f/2,u.lineThickness),i=Math.max(i,h+p),n+=f},"drawNode"),s=S((o,l=0)=>{a(t,o,r,l),o.children.forEach(f=>{s(f,l+1)});const{x:u,y:d,height:h}=o.BBox;if(o.children.length){const{y:f,height:p}=o.children[o.children.length-1].BBox;Ele(t,u+r.paddingX,d+h,u+r.paddingX,f+p/2+r.lineThickness/2,r.lineThickness)}},"processNode");return s(e),{totalHeight:n,totalWidth:i}},"drawTree"),ELt=S((t,e,r,n)=>{ge.debug(`Rendering treeView diagram +`+t);const i=n.db,a=i.getRoot(),s=i.getConfig(),o=To(e),l=o.append("g");l.attr("class","tree-view");const{totalHeight:u,totalWidth:d}=bLt(l,a,s);o.attr("viewBox",`-${s.lineThickness/2} 0 ${d} ${u}`),ua(o,u,d,s.useMaxWidth)},"draw"),SLt={draw:ELt},TLt=SLt,xLt={labelFontSize:"16px",labelColor:"black",lineColor:"black"},CLt=S(({treeView:t})=>{const{labelFontSize:e,labelColor:r,lineColor:n}=$i(xLt,t);return` .treeView-node-label { font-size: ${e}; fill: ${r}; @@ -7200,7 +7200,7 @@ Expecting `+se.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":xe="Parse error .treeView-node-line { stroke: ${n}; } - `},"styles"),CLt=xLt,wLt={db:_z,renderer:SLt,parser:yLt,styles:CLt};const kLt=Object.freeze(Object.defineProperty({__proto__:null,diagram:wLt},Symbol.toStringTag,{value:"Module"}));var nC={exports:{}},iC={exports:{}},aC={exports:{}},ALt=aC.exports,Sle;function RLt(){return Sle||(Sle=1,(function(t,e){(function(n,i){t.exports=i()})(ALt,function(){return(function(r){var n={};function i(a){if(n[a])return n[a].exports;var s=n[a]={i:a,l:!1,exports:{}};return r[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=r,i.c=n,i.i=function(a){return a},i.d=function(a,s,o){i.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:o})},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=28)})([(function(r,n,i){function a(){}a.QUALITY=1,a.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,a.DEFAULT_INCREMENTAL=!1,a.DEFAULT_ANIMATION_ON_LAYOUT=!0,a.DEFAULT_ANIMATION_DURING_LAYOUT=!1,a.DEFAULT_ANIMATION_PERIOD=50,a.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,a.DEFAULT_GRAPH_MARGIN=15,a.NODE_DIMENSIONS_INCLUDE_LABELS=!1,a.SIMPLE_NODE_SIZE=40,a.SIMPLE_NODE_HALF_SIZE=a.SIMPLE_NODE_SIZE/2,a.EMPTY_COMPOUND_NODE_SIZE=40,a.MIN_EDGE_LENGTH=1,a.WORLD_BOUNDARY=1e6,a.INITIAL_WORLD_BOUNDARY=a.WORLD_BOUNDARY/1e3,a.WORLD_CENTER_X=1200,a.WORLD_CENTER_Y=900,r.exports=a}),(function(r,n,i){var a=i(2),s=i(8),o=i(9);function l(d,h,f){a.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=d,this.target=h}l.prototype=Object.create(a.prototype);for(var u in a)l[u]=a[u];l.prototype.getSource=function(){return this.source},l.prototype.getTarget=function(){return this.target},l.prototype.isInterGraph=function(){return this.isInterGraph},l.prototype.getLength=function(){return this.length},l.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},l.prototype.getBendpoints=function(){return this.bendpoints},l.prototype.getLca=function(){return this.lca},l.prototype.getSourceInLca=function(){return this.sourceInLca},l.prototype.getTargetInLca=function(){return this.targetInLca},l.prototype.getOtherEnd=function(d){if(this.source===d)return this.target;if(this.target===d)return this.source;throw"Node is not incident with this edge"},l.prototype.getOtherEndInGraph=function(d,h){for(var f=this.getOtherEnd(d),p=h.getGraphManager().getRoot();;){if(f.getOwner()==h)return f;if(f.getOwner()==p)break;f=f.getOwner().getParent()}return null},l.prototype.updateLength=function(){var d=new Array(4);this.isOverlapingSourceAndTarget=s.getIntersection(this.target.getRect(),this.source.getRect(),d),this.isOverlapingSourceAndTarget||(this.lengthX=d[0]-d[2],this.lengthY=d[1]-d[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},l.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},r.exports=l}),(function(r,n,i){function a(s){this.vGraphObject=s}r.exports=a}),(function(r,n,i){var a=i(2),s=i(10),o=i(13),l=i(0),u=i(16),d=i(5);function h(p,g,m,y){m==null&&y==null&&(y=g),a.call(this,y),p.graphManager!=null&&(p=p.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=y,this.edges=[],this.graphManager=p,m!=null&&g!=null?this.rect=new o(g.x,g.y,m.width,m.height):this.rect=new o}h.prototype=Object.create(a.prototype);for(var f in a)h[f]=a[f];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(p){this.rect.width=p},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(p){this.rect.height=p},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new d(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new d(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(p,g){this.rect.x=p.x,this.rect.y=p.y,this.rect.width=g.width,this.rect.height=g.height},h.prototype.setCenter=function(p,g){this.rect.x=p-this.rect.width/2,this.rect.y=g-this.rect.height/2},h.prototype.setLocation=function(p,g){this.rect.x=p,this.rect.y=g},h.prototype.moveBy=function(p,g){this.rect.x+=p,this.rect.y+=g},h.prototype.getEdgeListToNode=function(p){var g=[],m=this;return m.edges.forEach(function(y){if(y.target==p){if(y.source!=m)throw"Incorrect edge source!";g.push(y)}}),g},h.prototype.getEdgesBetween=function(p){var g=[],m=this;return m.edges.forEach(function(y){if(!(y.source==m||y.target==m))throw"Incorrect edge source and/or target";(y.target==p||y.source==p)&&g.push(y)}),g},h.prototype.getNeighborsList=function(){var p=new Set,g=this;return g.edges.forEach(function(m){if(m.source==g)p.add(m.target);else{if(m.target!=g)throw"Incorrect incidency!";p.add(m.source)}}),p},h.prototype.withChildren=function(){var p=new Set,g,m;if(p.add(this),this.child!=null)for(var y=this.child.getNodes(),v=0;vg?(this.rect.x-=(this.labelWidth-g)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(g+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(m+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>m?(this.rect.y-=(this.labelHeight-m)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(m+this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(p){var g=this.rect.x;g>l.WORLD_BOUNDARY?g=l.WORLD_BOUNDARY:g<-l.WORLD_BOUNDARY&&(g=-l.WORLD_BOUNDARY);var m=this.rect.y;m>l.WORLD_BOUNDARY?m=l.WORLD_BOUNDARY:m<-l.WORLD_BOUNDARY&&(m=-l.WORLD_BOUNDARY);var y=new d(g,m),v=p.inverseTransformPoint(y);this.setLocation(v.x,v.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=h}),(function(r,n,i){var a=i(0);function s(){}for(var o in a)s[o]=a[o];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,s.MAX_NODE_DISPLACEMENT=s.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,r.exports=s}),(function(r,n,i){function a(s,o){s==null&&o==null?(this.x=0,this.y=0):(this.x=s,this.y=o)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(s){this.x=s},a.prototype.setY=function(s){this.y=s},a.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},r.exports=a}),(function(r,n,i){var a=i(2),s=i(10),o=i(0),l=i(7),u=i(3),d=i(1),h=i(13),f=i(12),p=i(11);function g(y,v,b){a.call(this,b),this.estimatedSize=s.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=y,v!=null&&v instanceof l?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}g.prototype=Object.create(a.prototype);for(var m in a)g[m]=a[m];g.prototype.getNodes=function(){return this.nodes},g.prototype.getEdges=function(){return this.edges},g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getParent=function(){return this.parent},g.prototype.getLeft=function(){return this.left},g.prototype.getRight=function(){return this.right},g.prototype.getTop=function(){return this.top},g.prototype.getBottom=function(){return this.bottom},g.prototype.isConnected=function(){return this.isConnected},g.prototype.add=function(y,v,b){if(v==null&&b==null){var _=y;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(_)>-1)throw"Node already in graph!";return _.owner=this,this.getNodes().push(_),_}else{var E=y;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(b)>-1))throw"Source or target not in graph!";if(!(v.owner==b.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=b.owner?null:(E.source=v,E.target=b,E.isInterGraph=!1,this.getEdges().push(E),v.edges.push(E),b!=v&&b.edges.push(E),E)}},g.prototype.remove=function(y){var v=y;if(y instanceof u){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var b=v.edges.slice(),_,E=b.length,x=0;x-1&&w>-1))throw"Source and/or target doesn't know this edge!";_.source.edges.splice(T,1),_.target!=_.source&&_.target.edges.splice(w,1);var C=_.source.owner.getEdges().indexOf(_);if(C==-1)throw"Not in owner's edge list!";_.source.owner.getEdges().splice(C,1)}},g.prototype.updateLeftTop=function(){for(var y=s.MAX_VALUE,v=s.MAX_VALUE,b,_,E,x=this.getNodes(),C=x.length,T=0;Tb&&(y=b),v>_&&(v=_)}return y==s.MAX_VALUE?null:(x[0].getParent().paddingLeft!=null?E=x[0].getParent().paddingLeft:E=this.margin,this.left=v-E,this.top=y-E,new f(this.left,this.top))},g.prototype.updateBounds=function(y){for(var v=s.MAX_VALUE,b=-s.MAX_VALUE,_=s.MAX_VALUE,E=-s.MAX_VALUE,x,C,T,w,N,O=this.nodes,M=O.length,$=0;$x&&(v=x),bT&&(_=T),Ex&&(v=x),bT&&(_=T),E=this.nodes.length){var M=0;b.forEach(function($){$.owner==y&&M++}),M==this.nodes.length&&(this.isConnected=!0)}},r.exports=g}),(function(r,n,i){var a,s=i(1);function o(l){a=i(6),this.layout=l,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var l=this.layout.newGraph(),u=this.layout.newNode(null),d=this.add(l,u);return this.setRootGraph(d),this.rootGraph},o.prototype.add=function(l,u,d,h,f){if(d==null&&h==null&&f==null){if(l==null)throw"Graph is null!";if(u==null)throw"Parent node is null!";if(this.graphs.indexOf(l)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(l),l.parent!=null)throw"Already has a parent!";if(u.child!=null)throw"Already has a child!";return l.parent=u,u.child=l,l}else{f=d,h=u,d=l;var p=h.getOwner(),g=f.getOwner();if(!(p!=null&&p.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(g!=null&&g.getGraphManager()==this))throw"Target not in this graph mgr!";if(p==g)return d.isInterGraph=!1,p.add(d,h,f);if(d.isInterGraph=!0,d.source=h,d.target=f,this.edges.indexOf(d)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(d),!(d.source!=null&&d.target!=null))throw"Edge source and/or target is null!";if(!(d.source.edges.indexOf(d)==-1&&d.target.edges.indexOf(d)==-1))throw"Edge already in source and/or target incidency list!";return d.source.edges.push(d),d.target.edges.push(d),d}},o.prototype.remove=function(l){if(l instanceof a){var u=l;if(u.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(u==this.rootGraph||u.parent!=null&&u.parent.graphManager==this))throw"Invalid parent node!";var d=[];d=d.concat(u.getEdges());for(var h,f=d.length,p=0;p=l.getRight()?u[0]+=Math.min(l.getX()-o.getX(),o.getRight()-l.getRight()):l.getX()<=o.getX()&&l.getRight()>=o.getRight()&&(u[0]+=Math.min(o.getX()-l.getX(),l.getRight()-o.getRight())),o.getY()<=l.getY()&&o.getBottom()>=l.getBottom()?u[1]+=Math.min(l.getY()-o.getY(),o.getBottom()-l.getBottom()):l.getY()<=o.getY()&&l.getBottom()>=o.getBottom()&&(u[1]+=Math.min(o.getY()-l.getY(),l.getBottom()-o.getBottom()));var f=Math.abs((l.getCenterY()-o.getCenterY())/(l.getCenterX()-o.getCenterX()));l.getCenterY()===o.getCenterY()&&l.getCenterX()===o.getCenterX()&&(f=1);var p=f*u[0],g=u[1]/f;u[0]p)return u[0]=d,u[1]=m,u[2]=f,u[3]=O,!1;if(hf)return u[0]=g,u[1]=h,u[2]=w,u[3]=p,!1;if(df?(u[0]=v,u[1]=b,A=!0):(u[0]=y,u[1]=m,A=!0):D===R&&(d>f?(u[0]=g,u[1]=m,A=!0):(u[0]=_,u[1]=b,A=!0)),-L===R?f>d?(u[2]=N,u[3]=O,I=!0):(u[2]=w,u[3]=T,I=!0):L===R&&(f>d?(u[2]=C,u[3]=T,I=!0):(u[2]=M,u[3]=O,I=!0)),A&&I)return!1;if(d>f?h>p?(P=this.getCardinalDirection(D,R,4),z=this.getCardinalDirection(L,R,2)):(P=this.getCardinalDirection(-D,R,3),z=this.getCardinalDirection(-L,R,1)):h>p?(P=this.getCardinalDirection(-D,R,1),z=this.getCardinalDirection(-L,R,3)):(P=this.getCardinalDirection(D,R,2),z=this.getCardinalDirection(L,R,4)),!A)switch(P){case 1:q=m,B=d+-x/R,u[0]=B,u[1]=q;break;case 2:B=_,q=h+E*R,u[0]=B,u[1]=q;break;case 3:q=b,B=d+x/R,u[0]=B,u[1]=q;break;case 4:B=v,q=h+-E*R,u[0]=B,u[1]=q;break}if(!I)switch(z){case 1:Q=T,Y=f+-F/R,u[2]=Y,u[3]=Q;break;case 2:Y=M,Q=p+$*R,u[2]=Y,u[3]=Q;break;case 3:Q=O,Y=f+F/R,u[2]=Y,u[3]=Q;break;case 4:Y=N,Q=p+-$*R,u[2]=Y,u[3]=Q;break}}return!1},s.getCardinalDirection=function(o,l,u){return o>l?u:1+u%4},s.getIntersection=function(o,l,u,d){if(d==null)return this.getIntersection2(o,l,u);var h=o.x,f=o.y,p=l.x,g=l.y,m=u.x,y=u.y,v=d.x,b=d.y,_=void 0,E=void 0,x=void 0,C=void 0,T=void 0,w=void 0,N=void 0,O=void 0,M=void 0;return x=g-f,T=h-p,N=p*f-h*g,C=b-y,w=m-v,O=v*y-m*b,M=x*w-C*T,M===0?null:(_=(T*O-w*N)/M,E=(C*N-x*O)/M,new a(_,E))},s.angleOfVector=function(o,l,u,d){var h=void 0;return o!==u?(h=Math.atan((d-l)/(u-o)),u=0){var b=(-m+Math.sqrt(m*m-4*g*y))/(2*g),_=(-m-Math.sqrt(m*m-4*g*y))/(2*g),E=null;return b>=0&&b<=1?[b]:_>=0&&_<=1?[_]:E}else return null},s.HALF_PI=.5*Math.PI,s.ONE_AND_HALF_PI=1.5*Math.PI,s.TWO_PI=2*Math.PI,s.THREE_PI=3*Math.PI,r.exports=s}),(function(r,n,i){function a(){}a.sign=function(s){return s>0?1:s<0?-1:0},a.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},a.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},r.exports=a}),(function(r,n,i){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,r.exports=a}),(function(r,n,i){var a=(function(){function h(f,p){for(var g=0;g"u"?"undefined":a(o);return o==null||l!="object"&&l!="function"},r.exports=s}),(function(r,n,i){function a(m){if(Array.isArray(m)){for(var y=0,v=Array(m.length);y0&&y;){for(x.push(T[0]);x.length>0&&y;){var w=x[0];x.splice(0,1),E.add(w);for(var N=w.getEdges(),_=0;_-1&&T.splice(F,1)}E=new Set,C=new Map}}return m},g.prototype.createDummyNodesForBendpoints=function(m){for(var y=[],v=m.source,b=this.graphManager.calcLowestCommonAncestor(m.source,m.target),_=0;_0){for(var b=this.edgeToDummyNodes.get(v),_=0;_=0&&y.splice(O,1);var M=C.getNeighborsList();M.forEach(function(A){if(v.indexOf(A)<0){var I=b.get(A),D=I-1;D==1&&w.push(A),b.set(A,D)}})}v=v.concat(w),(y.length==1||y.length==2)&&(_=!0,E=y[0])}return E},g.prototype.setGraphManager=function(m){this.graphManager=m},r.exports=g}),(function(r,n,i){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},r.exports=a}),(function(r,n,i){var a=i(5);function s(o,l){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(o){this.lworldOrgX=o},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(o){this.lworldOrgY=o},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(o){this.lworldExtX=o},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(o){this.lworldExtY=o},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(o){this.ldeviceOrgX=o},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(o){this.ldeviceOrgY=o},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(o){this.ldeviceExtX=o},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(o){this.ldeviceExtY=o},s.prototype.transformX=function(o){var l=0,u=this.lworldExtX;return u!=0&&(l=this.ldeviceOrgX+(o-this.lworldOrgX)*this.ldeviceExtX/u),l},s.prototype.transformY=function(o){var l=0,u=this.lworldExtY;return u!=0&&(l=this.ldeviceOrgY+(o-this.lworldOrgY)*this.ldeviceExtY/u),l},s.prototype.inverseTransformX=function(o){var l=0,u=this.ldeviceExtX;return u!=0&&(l=this.lworldOrgX+(o-this.ldeviceOrgX)*this.lworldExtX/u),l},s.prototype.inverseTransformY=function(o){var l=0,u=this.ldeviceExtY;return u!=0&&(l=this.lworldOrgY+(o-this.ldeviceOrgY)*this.lworldExtY/u),l},s.prototype.inverseTransformPoint=function(o){var l=new a(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return l},r.exports=s}),(function(r,n,i){function a(p){if(Array.isArray(p)){for(var g=0,m=Array(p.length);go.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(p-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(p>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(p-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var p=this.getAllEdges(),g,m=0;m0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m,y,v,b,_=this.getAllNodes(),E;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&p&&this.updateGrid(),E=new Set,m=0;m<_.length;m++)v=_[m],this.calculateRepulsionForceOfANode(v,E,p,g),E.add(v);else for(m=0;m<_.length;m++)for(v=_[m],y=m+1;y<_.length;y++)b=_[y],v.getOwner()==b.getOwner()&&this.calcRepulsionForce(v,b)},h.prototype.calcGravitationalForces=function(){for(var p,g=this.getAllNodesToApplyGravitation(),m=0;mx||E>x)&&(p.gravitationForceX=-this.gravityConstant*v,p.gravitationForceY=-this.gravityConstant*b)):(x=g.getEstimatedSize()*this.compoundGravityRangeFactor,(_>x||E>x)&&(p.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,p.gravitationForceY=-this.gravityConstant*b*this.compoundGravityConstant))},h.prototype.isConverged=function(){var p,g=!1;return this.totalIterations>this.maxIterations/3&&(g=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),p=this.totalDisplacement=_.length||x>=_[0].length)){for(var C=0;C<_[E][x].length;C++)if(b=_[E][x][C],!(p.getOwner()!=b.getOwner()||p==b)&&!g.has(b)&&!v.has(b)){var T=Math.abs(p.getCenterX()-b.getCenterX())-(p.getWidth()/2+b.getWidth()/2),w=Math.abs(p.getCenterY()-b.getCenterY())-(p.getHeight()/2+b.getHeight()/2);T<=this.repulsionRange&&w<=this.repulsionRange&&v.add(b)}}p.surrounding=[].concat(a(v))}for(E=0;Eh}}]),u})();r.exports=l}),(function(r,n,i){function a(){}a.svd=function(s){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=s.length,this.n=s[0].length;var o=Math.min(this.m,this.n);this.s=(function(ft){for(var mt=[];ft-- >0;)mt.push(0);return mt})(Math.min(this.m+1,this.n)),this.U=(function(ft){var mt=function fe(It){if(It.length==0)return 0;for(var St=[],Tt=0;Tt0;)mt.push(0);return mt})(this.n),u=(function(ft){for(var mt=[];ft-- >0;)mt.push(0);return mt})(this.m),d=!0,h=Math.min(this.m-1,this.n),f=Math.max(0,Math.min(this.n-2,this.m)),p=0;p=0;L--)if(this.s[L]!==0){for(var R=L+1;R=0;H--){if((function(ft,mt){return ft&&mt})(H0;){var Te=void 0,Ge=void 0;for(Te=A-2;Te>=-1&&Te!==-1;Te--)if(Math.abs(l[Te])<=xe+se*(Math.abs(this.s[Te])+Math.abs(this.s[Te+1]))){l[Te]=0;break}if(Te===A-2)Ge=4;else{var ze=void 0;for(ze=A-1;ze>=Te&&ze!==Te;ze--){var Xe=(ze!==A?Math.abs(l[ze]):0)+(ze!==Te+1?Math.abs(l[ze-1]):0);if(Math.abs(this.s[ze])<=xe+se*Xe){this.s[ze]=0;break}}ze===Te?Ge=3:ze===A-1?Ge=1:(Ge=2,Te=ze)}switch(Te++,Ge){case 1:{var Le=l[A-2];l[A-2]=0;for(var Re=A-2;Re>=Te;Re--){var qe=a.hypot(this.s[Re],Le),Ne=this.s[Re]/qe,ut=Le/qe;this.s[Re]=qe,Re!==Te&&(Le=-ut*l[Re-1],l[Re-1]=Ne*l[Re-1]);for(var De=0;De=this.s[Te+1]);){var gt=this.s[Te];if(this.s[Te]=this.s[Te+1],this.s[Te+1]=gt,TeMath.abs(o)?(l=o/s,l=Math.abs(s)*Math.sqrt(1+l*l)):o!=0?(l=s/o,l=Math.abs(o)*Math.sqrt(1+l*l)):l=0,l},r.exports=a}),(function(r,n,i){var a=(function(){function l(u,d){for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,l),this.sequence1=u,this.sequence2=d,this.match_score=h,this.mismatch_penalty=f,this.gap_penalty=p,this.iMax=u.length+1,this.jMax=d.length+1,this.grid=new Array(this.iMax);for(var g=0;g=0;u--){var d=this.listeners[u];d.event===o&&d.callback===l&&this.listeners.splice(u,1)}},s.emit=function(o,l){for(var u=0;u{var n={45:((o,l,u)=>{var d={};d.layoutBase=u(551),d.CoSEConstants=u(806),d.CoSEEdge=u(767),d.CoSEGraph=u(880),d.CoSEGraphManager=u(578),d.CoSELayout=u(765),d.CoSENode=u(991),d.ConstraintHandler=u(902),o.exports=d}),806:((o,l,u)=>{var d=u(551).FDLayoutConstants;function h(){}for(var f in d)h[f]=d[f];h.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,h.DEFAULT_RADIAL_SEPARATION=d.DEFAULT_EDGE_LENGTH,h.DEFAULT_COMPONENT_SEPERATION=60,h.TILE=!0,h.TILING_PADDING_VERTICAL=10,h.TILING_PADDING_HORIZONTAL=10,h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0,h.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,h.TREE_REDUCTION_ON_INCREMENTAL=!0,h.PURE_INCREMENTAL=h.DEFAULT_INCREMENTAL,o.exports=h}),767:((o,l,u)=>{var d=u(551).FDLayoutEdge;function h(p,g,m){d.call(this,p,g,m)}h.prototype=Object.create(d.prototype);for(var f in d)h[f]=d[f];o.exports=h}),880:((o,l,u)=>{var d=u(551).LGraph;function h(p,g,m){d.call(this,p,g,m)}h.prototype=Object.create(d.prototype);for(var f in d)h[f]=d[f];o.exports=h}),578:((o,l,u)=>{var d=u(551).LGraphManager;function h(p){d.call(this,p)}h.prototype=Object.create(d.prototype);for(var f in d)h[f]=d[f];o.exports=h}),765:((o,l,u)=>{var d=u(551).FDLayout,h=u(578),f=u(880),p=u(991),g=u(767),m=u(806),y=u(902),v=u(551).FDLayoutConstants,b=u(551).LayoutConstants,_=u(551).Point,E=u(551).PointD,x=u(551).DimensionD,C=u(551).Layout,T=u(551).Integer,w=u(551).IGeometry,N=u(551).LGraph,O=u(551).Transform,M=u(551).LinkedList;function $(){d.call(this),this.toBeTiled={},this.constraints={}}$.prototype=Object.create(d.prototype);for(var F in d)$[F]=d[F];$.prototype.newGraphManager=function(){var A=new h(this);return this.graphManager=A,A},$.prototype.newGraph=function(A){return new f(null,this.graphManager,A)},$.prototype.newNode=function(A){return new p(this.graphManager,A)},$.prototype.newEdge=function(A){return new g(null,null,A)},$.prototype.initParameters=function(){d.prototype.initParameters.call(this,arguments),this.isSubLayout||(m.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=m.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=m.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=v.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=v.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=v.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=v.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},$.prototype.initSpringEmbedder=function(){d.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/v.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},$.prototype.layout=function(){var A=b.DEFAULT_CREATE_BENDS_AS_NEEDED;return A&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},$.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(m.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var I=new Set(this.getAllNodes()),D=this.nodesWithGravity.filter(function(P){return I.has(P)});this.graphManager.setAllNodesToApplyGravitation(D)}}else{var A=this.getFlatForest();if(A.length>0)this.positionNodesRadially(A);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var I=new Set(this.getAllNodes()),D=this.nodesWithGravity.filter(function(L){return I.has(L)});this.graphManager.setAllNodesToApplyGravitation(D),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(y.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),m.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},$.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%v.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var A=new Set(this.getAllNodes()),I=this.nodesWithGravity.filter(function(R){return A.has(R)});this.graphManager.setAllNodesToApplyGravitation(I),this.graphManager.updateBounds(),this.updateGrid(),m.PURE_INCREMENTAL?this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),m.PURE_INCREMENTAL?this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var D=!this.isTreeGrowing&&!this.isGrowthFinished,L=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(D,L),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},$.prototype.getPositionsData=function(){for(var A=this.graphManager.getAllNodes(),I={},D=0;D0&&this.updateDisplacements();for(var D=0;D0&&(L.fixedNodeWeight=P)}}if(this.constraints.relativePlacementConstraint){var z=new Map,B=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(re){A.fixedNodesOnHorizontal.add(re),A.fixedNodesOnVertical.add(re)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var q=this.constraints.alignmentConstraint.vertical,D=0;D=2*re.length/3;se--)ce=Math.floor(Math.random()*(se+1)),ae=re[se],re[se]=re[ce],re[ce]=ae;return re},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(re){if(re.left){var ce=z.has(re.left)?z.get(re.left):re.left,ae=z.has(re.right)?z.get(re.right):re.right;A.nodesInRelativeHorizontal.includes(ce)||(A.nodesInRelativeHorizontal.push(ce),A.nodeToRelativeConstraintMapHorizontal.set(ce,[]),A.dummyToNodeForVerticalAlignment.has(ce)?A.nodeToTempPositionMapHorizontal.set(ce,A.idToNodeMap.get(A.dummyToNodeForVerticalAlignment.get(ce)[0]).getCenterX()):A.nodeToTempPositionMapHorizontal.set(ce,A.idToNodeMap.get(ce).getCenterX())),A.nodesInRelativeHorizontal.includes(ae)||(A.nodesInRelativeHorizontal.push(ae),A.nodeToRelativeConstraintMapHorizontal.set(ae,[]),A.dummyToNodeForVerticalAlignment.has(ae)?A.nodeToTempPositionMapHorizontal.set(ae,A.idToNodeMap.get(A.dummyToNodeForVerticalAlignment.get(ae)[0]).getCenterX()):A.nodeToTempPositionMapHorizontal.set(ae,A.idToNodeMap.get(ae).getCenterX())),A.nodeToRelativeConstraintMapHorizontal.get(ce).push({right:ae,gap:re.gap}),A.nodeToRelativeConstraintMapHorizontal.get(ae).push({left:ce,gap:re.gap})}else{var se=B.has(re.top)?B.get(re.top):re.top,xe=B.has(re.bottom)?B.get(re.bottom):re.bottom;A.nodesInRelativeVertical.includes(se)||(A.nodesInRelativeVertical.push(se),A.nodeToRelativeConstraintMapVertical.set(se,[]),A.dummyToNodeForHorizontalAlignment.has(se)?A.nodeToTempPositionMapVertical.set(se,A.idToNodeMap.get(A.dummyToNodeForHorizontalAlignment.get(se)[0]).getCenterY()):A.nodeToTempPositionMapVertical.set(se,A.idToNodeMap.get(se).getCenterY())),A.nodesInRelativeVertical.includes(xe)||(A.nodesInRelativeVertical.push(xe),A.nodeToRelativeConstraintMapVertical.set(xe,[]),A.dummyToNodeForHorizontalAlignment.has(xe)?A.nodeToTempPositionMapVertical.set(xe,A.idToNodeMap.get(A.dummyToNodeForHorizontalAlignment.get(xe)[0]).getCenterY()):A.nodeToTempPositionMapVertical.set(xe,A.idToNodeMap.get(xe).getCenterY())),A.nodeToRelativeConstraintMapVertical.get(se).push({bottom:xe,gap:re.gap}),A.nodeToRelativeConstraintMapVertical.get(xe).push({top:se,gap:re.gap})}});else{var Q=new Map,H=new Map;this.constraints.relativePlacementConstraint.forEach(function(re){if(re.left){var ce=z.has(re.left)?z.get(re.left):re.left,ae=z.has(re.right)?z.get(re.right):re.right;Q.has(ce)?Q.get(ce).push(ae):Q.set(ce,[ae]),Q.has(ae)?Q.get(ae).push(ce):Q.set(ae,[ce])}else{var se=B.has(re.top)?B.get(re.top):re.top,xe=B.has(re.bottom)?B.get(re.bottom):re.bottom;H.has(se)?H.get(se).push(xe):H.set(se,[xe]),H.has(xe)?H.get(xe).push(se):H.set(xe,[se])}});var J=function(ce,ae){var se=[],xe=[],Te=new M,Ge=new Set,ze=0;return ce.forEach(function(Xe,Le){if(!Ge.has(Le)){se[ze]=[],xe[ze]=!1;var Re=Le;for(Te.push(Re),Ge.add(Re),se[ze].push(Re);Te.length!=0;){Re=Te.shift(),ae.has(Re)&&(xe[ze]=!0);var qe=ce.get(Re);qe.forEach(function(Ne){Ge.has(Ne)||(Te.push(Ne),Ge.add(Ne),se[ze].push(Ne))})}ze++}}),{components:se,isFixed:xe}},Z=J(Q,A.fixedNodesOnHorizontal);this.componentsOnHorizontal=Z.components,this.fixedComponentsOnHorizontal=Z.isFixed;var pe=J(H,A.fixedNodesOnVertical);this.componentsOnVertical=pe.components,this.fixedComponentsOnVertical=pe.isFixed}}},$.prototype.updateDisplacements=function(){var A=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(pe){var re=A.idToNodeMap.get(pe.nodeId);re.displacementX=0,re.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var I=this.constraints.alignmentConstraint.vertical,D=0;D1){var B;for(B=0;BL&&(L=Math.floor(z.y)),P=Math.floor(z.x+m.DEFAULT_COMPONENT_SEPERATION)}this.transform(new E(b.WORLD_CENTER_X-z.x/2,b.WORLD_CENTER_Y-z.y/2))},$.radialLayout=function(A,I,D){var L=Math.max(this.maxDiagonalInTree(A),m.DEFAULT_RADIAL_SEPARATION);$.branchRadialLayout(I,null,0,359,0,L);var R=N.calculateBounds(A),P=new O;P.setDeviceOrgX(R.getMinX()),P.setDeviceOrgY(R.getMinY()),P.setWorldOrgX(D.x),P.setWorldOrgY(D.y);for(var z=0;z1;){var ae=ce[0];ce.splice(0,1);var se=H.indexOf(ae);se>=0&&H.splice(se,1),pe--,J--}I!=null?re=(H.indexOf(ce[0])+1)%pe:re=0;for(var xe=Math.abs(L-D)/J,Te=re;Z!=J;Te=++Te%pe){var Ge=H[Te].getOtherEnd(A);if(Ge!=I){var ze=(D+Z*xe)%360,Xe=(ze+xe)%360;$.branchRadialLayout(Ge,A,ze,Xe,R+P,P),Z++}}},$.maxDiagonalInTree=function(A){for(var I=T.MIN_VALUE,D=0;DI&&(I=R)}return I},$.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},$.prototype.groupZeroDegreeMembers=function(){var A=this,I={};this.memberGroups={},this.idToDummyNode={};for(var D=[],L=this.graphManager.getAllNodes(),R=0;R"u"&&(I[B]=[]),I[B]=I[B].concat(P)}Object.keys(I).forEach(function(q){if(I[q].length>1){var Y="DummyCompound_"+q;A.memberGroups[Y]=I[q];var Q=I[q][0].getParent(),H=new p(A.graphManager);H.id=Y,H.paddingLeft=Q.paddingLeft||0,H.paddingRight=Q.paddingRight||0,H.paddingBottom=Q.paddingBottom||0,H.paddingTop=Q.paddingTop||0,A.idToDummyNode[Y]=H;var J=A.getGraphManager().add(A.newGraph(),H),Z=Q.getChild();Z.add(H);for(var pe=0;peR?(L.rect.x-=(L.labelWidth-R)/2,L.setWidth(L.labelWidth),L.labelMarginLeft=(L.labelWidth-R)/2):L.labelPosHorizontal=="right"&&L.setWidth(R+L.labelWidth)),L.labelHeight&&(L.labelPosVertical=="top"?(L.rect.y-=L.labelHeight,L.setHeight(P+L.labelHeight),L.labelMarginTop=L.labelHeight):L.labelPosVertical=="center"&&L.labelHeight>P?(L.rect.y-=(L.labelHeight-P)/2,L.setHeight(L.labelHeight),L.labelMarginTop=(L.labelHeight-P)/2):L.labelPosVertical=="bottom"&&L.setHeight(P+L.labelHeight))}})},$.prototype.repopulateCompounds=function(){for(var A=this.compoundOrder.length-1;A>=0;A--){var I=this.compoundOrder[A],D=I.id,L=I.paddingLeft,R=I.paddingTop,P=I.labelMarginLeft,z=I.labelMarginTop;this.adjustLocations(this.tiledMemberPack[D],I.rect.x,I.rect.y,L,R,P,z)}},$.prototype.repopulateZeroDegreeMembers=function(){var A=this,I=this.tiledZeroDegreePack;Object.keys(I).forEach(function(D){var L=A.idToDummyNode[D],R=L.paddingLeft,P=L.paddingTop,z=L.labelMarginLeft,B=L.labelMarginTop;A.adjustLocations(I[D],L.rect.x,L.rect.y,R,P,z,B)})},$.prototype.getToBeTiled=function(A){var I=A.id;if(this.toBeTiled[I]!=null)return this.toBeTiled[I];var D=A.getChild();if(D==null)return this.toBeTiled[I]=!1,!1;for(var L=D.getNodes(),R=0;R0)return this.toBeTiled[I]=!1,!1;if(P.getChild()==null){this.toBeTiled[P.id]=!1;continue}if(!this.getToBeTiled(P))return this.toBeTiled[I]=!1,!1}return this.toBeTiled[I]=!0,!0},$.prototype.getNodeDegree=function(A){A.id;for(var I=A.getEdges(),D=0,L=0;LQ&&(Q=J.rect.height)}D+=Q+A.verticalPadding}},$.prototype.tileCompoundMembers=function(A,I){var D=this;this.tiledMemberPack=[],Object.keys(A).forEach(function(L){var R=I[L];if(D.tiledMemberPack[L]=D.tileNodes(A[L],R.paddingLeft+R.paddingRight),R.rect.width=D.tiledMemberPack[L].width,R.rect.height=D.tiledMemberPack[L].height,R.setCenter(D.tiledMemberPack[L].centerX,D.tiledMemberPack[L].centerY),R.labelMarginLeft=0,R.labelMarginTop=0,m.NODE_DIMENSIONS_INCLUDE_LABELS){var P=R.rect.width,z=R.rect.height;R.labelWidth&&(R.labelPosHorizontal=="left"?(R.rect.x-=R.labelWidth,R.setWidth(P+R.labelWidth),R.labelMarginLeft=R.labelWidth):R.labelPosHorizontal=="center"&&R.labelWidth>P?(R.rect.x-=(R.labelWidth-P)/2,R.setWidth(R.labelWidth),R.labelMarginLeft=(R.labelWidth-P)/2):R.labelPosHorizontal=="right"&&R.setWidth(P+R.labelWidth)),R.labelHeight&&(R.labelPosVertical=="top"?(R.rect.y-=R.labelHeight,R.setHeight(z+R.labelHeight),R.labelMarginTop=R.labelHeight):R.labelPosVertical=="center"&&R.labelHeight>z?(R.rect.y-=(R.labelHeight-z)/2,R.setHeight(R.labelHeight),R.labelMarginTop=(R.labelHeight-z)/2):R.labelPosVertical=="bottom"&&R.setHeight(z+R.labelHeight))}})},$.prototype.tileNodes=function(A,I){var D=this.tileNodesByFavoringDim(A,I,!0),L=this.tileNodesByFavoringDim(A,I,!1),R=this.getOrgRatio(D),P=this.getOrgRatio(L),z;return PB&&(B=pe.getWidth())});var q=P/R,Y=z/R,Q=Math.pow(D-L,2)+4*(q+L)*(Y+D)*R,H=(L-D+Math.sqrt(Q))/(2*(q+L)),J;I?(J=Math.ceil(H),J==H&&J++):J=Math.floor(H);var Z=J*(q+L)-L;return B>Z&&(Z=B),Z+=L*2,Z},$.prototype.tileNodesByFavoringDim=function(A,I,D){var L=m.TILING_PADDING_VERTICAL,R=m.TILING_PADDING_HORIZONTAL,P=m.TILING_COMPARE_BY,z={rows:[],rowWidth:[],rowHeight:[],width:0,height:I,verticalPadding:L,horizontalPadding:R,centerX:0,centerY:0};P&&(z.idealRowWidth=this.calcIdealRowWidth(A,D));var B=function(re){return re.rect.width*re.rect.height},q=function(re,ce){return B(ce)-B(re)};A.sort(function(pe,re){var ce=q;return z.idealRowWidth?(ce=P,ce(pe.id,re.id)):ce(pe,re)});for(var Y=0,Q=0,H=0;H0&&(z+=A.horizontalPadding),A.rowWidth[D]=z,A.width0&&(B+=A.verticalPadding);var q=0;B>A.rowHeight[D]&&(q=A.rowHeight[D],A.rowHeight[D]=B,q=A.rowHeight[D]-q),A.height+=q,A.rows[D].push(I)},$.prototype.getShortestRowIndex=function(A){for(var I=-1,D=Number.MAX_VALUE,L=0;LD&&(I=L,D=A.rowWidth[L]);return I},$.prototype.canAddHorizontal=function(A,I,D){if(A.idealRowWidth){var L=A.rows.length-1,R=A.rowWidth[L];return R+I+A.horizontalPadding<=A.idealRowWidth}var P=this.getShortestRowIndex(A);if(P<0)return!0;var z=A.rowWidth[P];if(z+A.horizontalPadding+I<=A.width)return!0;var B=0;A.rowHeight[P]0&&(B=D+A.verticalPadding-A.rowHeight[P]);var q;A.width-z>=I+A.horizontalPadding?q=(A.height+B)/(z+I+A.horizontalPadding):q=(A.height+B)/A.width,B=D+A.verticalPadding;var Y;return A.widthP&&I!=D){L.splice(-1,1),A.rows[D].push(R),A.rowWidth[I]=A.rowWidth[I]-P,A.rowWidth[D]=A.rowWidth[D]+P,A.width=A.rowWidth[instance.getLongestRowIndex(A)];for(var z=Number.MIN_VALUE,B=0;Bz&&(z=L[B].height);I>0&&(z+=A.verticalPadding);var q=A.rowHeight[I]+A.rowHeight[D];A.rowHeight[I]=z,A.rowHeight[D]0)for(var Z=R;Z<=P;Z++)J[0]+=this.grid[Z][z-1].length+this.grid[Z][z].length-1;if(P0)for(var Z=z;Z<=B;Z++)J[3]+=this.grid[R-1][Z].length+this.grid[R][Z].length-1;for(var pe=T.MAX_VALUE,re,ce,ae=0;ae{var d=u(551).FDLayoutNode,h=u(551).IMath;function f(g,m,y,v){d.call(this,g,m,y,v)}f.prototype=Object.create(d.prototype);for(var p in d)f[p]=d[p];f.prototype.calculateDisplacement=function(){var g=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=g.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=g.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=g.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=g.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*h.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*h.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},f.prototype.propogateDisplacementToChildren=function(g,m){for(var y=this.getChild().getNodes(),v,b=0;b{function d(y){if(Array.isArray(y)){for(var v=0,b=Array(y.length);v0){var gt=0;ve.forEach(function(et){ie=="horizontal"?(Ce.set(et,_.has(et)?E[_.get(et)]:V.get(et)),gt+=Ce.get(et)):(Ce.set(et,_.has(et)?x[_.get(et)]:V.get(et)),gt+=Ce.get(et))}),gt=gt/ve.length,Be.forEach(function(et){j.has(et)||Ce.set(et,gt)})}else{var Et=0;Be.forEach(function(et){ie=="horizontal"?Et+=_.has(et)?E[_.get(et)]:V.get(et):Et+=_.has(et)?x[_.get(et)]:V.get(et)}),Et=Et/Be.length,Be.forEach(function(et){Ce.set(et,Et)})}});for(var Ie=function(){var ve=Me.shift(),gt=G.get(ve);gt.forEach(function(Et){if(Ce.get(Et.id)et&&(et=Nt),Hrdt&&(dt=Hr)}}catch(Ye){mt=!0,fe=Ye}finally{try{!ft&&It.return&&It.return()}finally{if(mt)throw fe}}var Pe=(gt+et)/2-(Et+dt)/2,yt=!0,bt=!1,Ot=void 0;try{for(var Qt=Be[Symbol.iterator](),br;!(yt=(br=Qt.next()).done);yt=!0){var Ct=br.value;Ce.set(Ct,Ce.get(Ct)+Pe)}}catch(Ye){bt=!0,Ot=Ye}finally{try{!yt&&Qt.return&&Qt.return()}finally{if(bt)throw Ot}}})}return Ce},F=function(G){var ie=0,j=0,V=0,ue=0;if(G.forEach(function(ye){ye.left?E[_.get(ye.left)]-E[_.get(ye.right)]>=0?ie++:j++:x[_.get(ye.top)]-x[_.get(ye.bottom)]>=0?V++:ue++}),ie>j&&V>ue)for(var Fe=0;Fe<_.size;Fe++)E[Fe]=-1*E[Fe],x[Fe]=-1*x[Fe];else if(ie>j)for(var me=0;me<_.size;me++)E[me]=-1*E[me];else if(V>ue)for(var Ce=0;Ce<_.size;Ce++)x[Ce]=-1*x[Ce]},A=function(G){var ie=[],j=new f,V=new Set,ue=0;return G.forEach(function(Fe,me){if(!V.has(me)){ie[ue]=[];var Ce=me;for(j.push(Ce),V.add(Ce),ie[ue].push(Ce);j.length!=0;){Ce=j.shift();var ye=G.get(Ce);ye.forEach(function(Me){V.has(Me.id)||(j.push(Me.id),V.add(Me.id),ie[ue].push(Me.id))})}ue++}}),ie},I=function(G){var ie=new Map;return G.forEach(function(j,V){ie.set(V,[])}),G.forEach(function(j,V){j.forEach(function(ue){ie.get(V).push(ue),ie.get(ue.id).push({id:V,gap:ue.gap,direction:ue.direction})})}),ie},D=function(G){var ie=new Map;return G.forEach(function(j,V){ie.set(V,[])}),G.forEach(function(j,V){j.forEach(function(ue){ie.get(ue.id).push({id:V,gap:ue.gap,direction:ue.direction})})}),ie},L=[],R=[],P=!1,z=!1,B=new Set,q=new Map,Y=new Map,Q=[];if(v.fixedNodeConstraint&&v.fixedNodeConstraint.forEach(function(de){B.add(de.nodeId)}),v.relativePlacementConstraint&&(v.relativePlacementConstraint.forEach(function(de){de.left?(q.has(de.left)?q.get(de.left).push({id:de.right,gap:de.gap,direction:"horizontal"}):q.set(de.left,[{id:de.right,gap:de.gap,direction:"horizontal"}]),q.has(de.right)||q.set(de.right,[])):(q.has(de.top)?q.get(de.top).push({id:de.bottom,gap:de.gap,direction:"vertical"}):q.set(de.top,[{id:de.bottom,gap:de.gap,direction:"vertical"}]),q.has(de.bottom)||q.set(de.bottom,[]))}),Y=I(q),Q=A(Y)),h.TRANSFORM_ON_CONSTRAINT_HANDLING){if(v.fixedNodeConstraint&&v.fixedNodeConstraint.length>1)v.fixedNodeConstraint.forEach(function(de,G){L[G]=[de.position.x,de.position.y],R[G]=[E[_.get(de.nodeId)],x[_.get(de.nodeId)]]}),P=!0;else if(v.alignmentConstraint)(function(){var de=0;if(v.alignmentConstraint.vertical){for(var G=v.alignmentConstraint.vertical,ie=function(Ce){var ye=new Set;G[Ce].forEach(function(he){ye.add(he)});var Me=new Set([].concat(d(ye)).filter(function(he){return B.has(he)})),Ie=void 0;Me.size>0?Ie=E[_.get(Me.values().next().value)]:Ie=M(ye).x,G[Ce].forEach(function(he){L[de]=[Ie,x[_.get(he)]],R[de]=[E[_.get(he)],x[_.get(he)]],de++})},j=0;j0?Ie=E[_.get(Me.values().next().value)]:Ie=M(ye).y,V[Ce].forEach(function(he){L[de]=[E[_.get(he)],Ie],R[de]=[E[_.get(he)],x[_.get(he)]],de++})},Fe=0;FeH&&(H=Q[Z].length,J=Z);if(H0){var De={x:0,y:0};v.fixedNodeConstraint.forEach(function(de,G){var ie={x:E[_.get(de.nodeId)],y:x[_.get(de.nodeId)]},j=de.position,V=O(j,ie);De.x+=V.x,De.y+=V.y}),De.x/=v.fixedNodeConstraint.length,De.y/=v.fixedNodeConstraint.length,E.forEach(function(de,G){E[G]+=De.x}),x.forEach(function(de,G){x[G]+=De.y}),v.fixedNodeConstraint.forEach(function(de){E[_.get(de.nodeId)]=de.position.x,x[_.get(de.nodeId)]=de.position.y})}if(v.alignmentConstraint){if(v.alignmentConstraint.vertical)for(var Je=v.alignmentConstraint.vertical,st=function(G){var ie=new Set;Je[G].forEach(function(ue){ie.add(ue)});var j=new Set([].concat(d(ie)).filter(function(ue){return B.has(ue)})),V=void 0;j.size>0?V=E[_.get(j.values().next().value)]:V=M(ie).x,ie.forEach(function(ue){B.has(ue)||(E[_.get(ue)]=V)})},ct=0;ct0?V=x[_.get(j.values().next().value)]:V=M(ie).y,ie.forEach(function(ue){B.has(ue)||(x[_.get(ue)]=V)})},Oe=0;Oe{o.exports=r})},i={};function a(o){var l=i[o];if(l!==void 0)return l.exports;var u=i[o]={exports:{}};return n[o](u,u.exports,a),u.exports}var s=a(45);return s})()})})(iC)),iC.exports}var OLt=nC.exports,xle;function DLt(){return xle||(xle=1,(function(t,e){(function(n,i){t.exports=i(ILt())})(OLt,function(r){return(()=>{var n={658:(o=>{o.exports=Object.assign!=null?Object.assign.bind(Object):function(l){for(var u=arguments.length,d=Array(u>1?u-1:0),h=1;h{var d=(function(){function p(g,m){var y=[],v=!0,b=!1,_=void 0;try{for(var E=g[Symbol.iterator](),x;!(v=(x=E.next()).done)&&(y.push(x.value),!(m&&y.length===m));v=!0);}catch(C){b=!0,_=C}finally{try{!v&&E.return&&E.return()}finally{if(b)throw _}}return y}return function(g,m){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return p(g,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),h=u(140).layoutBase.LinkedList,f={};f.getTopMostNodes=function(p){for(var g={},m=0;m0&&P.merge(Y)});for(var z=0;z1){x=_[0],C=x.connectedEdges().length,_.forEach(function(R){R.connectedEdges().length0&&y.set("dummy"+(y.size+1),N),O},f.relocateComponent=function(p,g,m){if(!m.fixedNodeConstraint){var y=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY,b=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY;if(m.quality=="draft"){var E=!0,x=!1,C=void 0;try{for(var T=g.nodeIndexes[Symbol.iterator](),w;!(E=(w=T.next()).done);E=!0){var N=w.value,O=d(N,2),M=O[0],$=O[1],F=m.cy.getElementById(M);if(F){var A=F.boundingBox(),I=g.xCoords[$]-A.w/2,D=g.xCoords[$]+A.w/2,L=g.yCoords[$]-A.h/2,R=g.yCoords[$]+A.h/2;Iv&&(v=D),L_&&(_=R)}}}catch(Y){x=!0,C=Y}finally{try{!E&&T.return&&T.return()}finally{if(x)throw C}}var P=p.x-(v+y)/2,z=p.y-(_+b)/2;g.xCoords=g.xCoords.map(function(Y){return Y+P}),g.yCoords=g.yCoords.map(function(Y){return Y+z})}else{Object.keys(g).forEach(function(Y){var Q=g[Y],H=Q.getRect().x,J=Q.getRect().x+Q.getRect().width,Z=Q.getRect().y,pe=Q.getRect().y+Q.getRect().height;Hv&&(v=J),Z_&&(_=pe)});var B=p.x-(v+y)/2,q=p.y-(_+b)/2;Object.keys(g).forEach(function(Y){var Q=g[Y];Q.setCenter(Q.getCenterX()+B,Q.getCenterY()+q)})}}},f.calcBoundingBox=function(p,g,m,y){for(var v=Number.MAX_SAFE_INTEGER,b=Number.MIN_SAFE_INTEGER,_=Number.MAX_SAFE_INTEGER,E=Number.MIN_SAFE_INTEGER,x=void 0,C=void 0,T=void 0,w=void 0,N=p.descendants().not(":parent"),O=N.length,M=0;Mx&&(v=x),bT&&(_=T),E{var d=u(548),h=u(140).CoSELayout,f=u(140).CoSENode,p=u(140).layoutBase.PointD,g=u(140).layoutBase.DimensionD,m=u(140).layoutBase.LayoutConstants,y=u(140).layoutBase.FDLayoutConstants,v=u(140).CoSEConstants,b=function(E,x){var C=E.cy,T=E.eles,w=T.nodes(),N=T.edges(),O=void 0,M=void 0,$=void 0,F={};E.randomize&&(O=x.nodeIndexes,M=x.xCoords,$=x.yCoords);var A=function(Y){return typeof Y=="function"},I=function(Y,Q){return A(Y)?Y(Q):Y},D=d.calcParentsWithoutChildren(C,T),L=function q(Y,Q,H,J){for(var Z=Q.length,pe=0;pe0){var Te=void 0;Te=H.getGraphManager().add(H.newGraph(),ae),q(Te,ce,H,J)}}},R=function(Y,Q,H){for(var J=0,Z=0,pe=0;pe0?v.DEFAULT_EDGE_LENGTH=y.DEFAULT_EDGE_LENGTH=J/Z:A(E.idealEdgeLength)?v.DEFAULT_EDGE_LENGTH=y.DEFAULT_EDGE_LENGTH=50:v.DEFAULT_EDGE_LENGTH=y.DEFAULT_EDGE_LENGTH=E.idealEdgeLength,v.MIN_REPULSION_DIST=y.MIN_REPULSION_DIST=y.DEFAULT_EDGE_LENGTH/10,v.DEFAULT_RADIAL_SEPARATION=y.DEFAULT_EDGE_LENGTH)},P=function(Y,Q){Q.fixedNodeConstraint&&(Y.constraints.fixedNodeConstraint=Q.fixedNodeConstraint),Q.alignmentConstraint&&(Y.constraints.alignmentConstraint=Q.alignmentConstraint),Q.relativePlacementConstraint&&(Y.constraints.relativePlacementConstraint=Q.relativePlacementConstraint)};E.nestingFactor!=null&&(v.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=y.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=E.nestingFactor),E.gravity!=null&&(v.DEFAULT_GRAVITY_STRENGTH=y.DEFAULT_GRAVITY_STRENGTH=E.gravity),E.numIter!=null&&(v.MAX_ITERATIONS=y.MAX_ITERATIONS=E.numIter),E.gravityRange!=null&&(v.DEFAULT_GRAVITY_RANGE_FACTOR=y.DEFAULT_GRAVITY_RANGE_FACTOR=E.gravityRange),E.gravityCompound!=null&&(v.DEFAULT_COMPOUND_GRAVITY_STRENGTH=y.DEFAULT_COMPOUND_GRAVITY_STRENGTH=E.gravityCompound),E.gravityRangeCompound!=null&&(v.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=y.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=E.gravityRangeCompound),E.initialEnergyOnIncremental!=null&&(v.DEFAULT_COOLING_FACTOR_INCREMENTAL=y.DEFAULT_COOLING_FACTOR_INCREMENTAL=E.initialEnergyOnIncremental),E.tilingCompareBy!=null&&(v.TILING_COMPARE_BY=E.tilingCompareBy),E.quality=="proof"?m.QUALITY=2:m.QUALITY=0,v.NODE_DIMENSIONS_INCLUDE_LABELS=y.NODE_DIMENSIONS_INCLUDE_LABELS=m.NODE_DIMENSIONS_INCLUDE_LABELS=E.nodeDimensionsIncludeLabels,v.DEFAULT_INCREMENTAL=y.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!E.randomize,v.ANIMATE=y.ANIMATE=m.ANIMATE=E.animate,v.TILE=E.tile,v.TILING_PADDING_VERTICAL=typeof E.tilingPaddingVertical=="function"?E.tilingPaddingVertical.call():E.tilingPaddingVertical,v.TILING_PADDING_HORIZONTAL=typeof E.tilingPaddingHorizontal=="function"?E.tilingPaddingHorizontal.call():E.tilingPaddingHorizontal,v.DEFAULT_INCREMENTAL=y.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!0,v.PURE_INCREMENTAL=!E.randomize,m.DEFAULT_UNIFORM_LEAF_NODE_SIZES=E.uniformNodeDimensions,E.step=="transformed"&&(v.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,v.ENFORCE_CONSTRAINTS=!1,v.APPLY_LAYOUT=!1),E.step=="enforced"&&(v.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,v.ENFORCE_CONSTRAINTS=!0,v.APPLY_LAYOUT=!1),E.step=="cose"&&(v.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,v.ENFORCE_CONSTRAINTS=!1,v.APPLY_LAYOUT=!0),E.step=="all"&&(E.randomize?v.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:v.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,v.ENFORCE_CONSTRAINTS=!0,v.APPLY_LAYOUT=!0),E.fixedNodeConstraint||E.alignmentConstraint||E.relativePlacementConstraint?v.TREE_REDUCTION_ON_INCREMENTAL=!1:v.TREE_REDUCTION_ON_INCREMENTAL=!0;var z=new h,B=z.newGraphManager();return L(B.addRoot(),d.getTopMostNodes(w),z,E),R(z,B,N),P(z,E),z.runLayout(),F};o.exports={coseLayout:b}}),212:((o,l,u)=>{var d=(function(){function E(x,C){for(var T=0;T0)if(D){var P=p.getTopMostNodes(T.eles.nodes());if($=p.connectComponents(w,T.eles,P),$.forEach(function(Xe){var Le=Xe.boundingBox();F.push({x:Le.x1+Le.w/2,y:Le.y1+Le.h/2})}),T.randomize&&$.forEach(function(Xe){T.eles=Xe,O.push(m(T))}),T.quality=="default"||T.quality=="proof"){var z=w.collection();if(T.tile){var B=new Map,q=[],Y=[],Q=0,H={nodeIndexes:B,xCoords:q,yCoords:Y},J=[];if($.forEach(function(Xe,Le){Xe.edges().length==0&&(Xe.nodes().forEach(function(Re,qe){z.merge(Xe.nodes()[qe]),Re.isParent()||(H.nodeIndexes.set(Xe.nodes()[qe].id(),Q++),H.xCoords.push(Xe.nodes()[0].position().x),H.yCoords.push(Xe.nodes()[0].position().y))}),J.push(Le))}),z.length>1){var Z=z.boundingBox();F.push({x:Z.x1+Z.w/2,y:Z.y1+Z.h/2}),$.push(z),O.push(H);for(var pe=J.length-1;pe>=0;pe--)$.splice(J[pe],1),O.splice(J[pe],1),F.splice(J[pe],1)}}$.forEach(function(Xe,Le){T.eles=Xe,M.push(v(T,O[Le])),p.relocateComponent(F[Le],M[Le],T)})}else $.forEach(function(Xe,Le){p.relocateComponent(F[Le],O[Le],T)});var re=new Set;if($.length>1){var ce=[],ae=N.filter(function(Xe){return Xe.css("display")=="none"});$.forEach(function(Xe,Le){var Re=void 0;if(T.quality=="draft"&&(Re=O[Le].nodeIndexes),Xe.nodes().not(ae).length>0){var qe={};qe.edges=[],qe.nodes=[];var Ne=void 0;Xe.nodes().not(ae).forEach(function(ut){if(T.quality=="draft")if(!ut.isParent())Ne=Re.get(ut.id()),qe.nodes.push({x:O[Le].xCoords[Ne]-ut.boundingbox().w/2,y:O[Le].yCoords[Ne]-ut.boundingbox().h/2,width:ut.boundingbox().w,height:ut.boundingbox().h});else{var De=p.calcBoundingBox(ut,O[Le].xCoords,O[Le].yCoords,Re);qe.nodes.push({x:De.topLeftX,y:De.topLeftY,width:De.width,height:De.height})}else M[Le][ut.id()]&&qe.nodes.push({x:M[Le][ut.id()].getLeft(),y:M[Le][ut.id()].getTop(),width:M[Le][ut.id()].getWidth(),height:M[Le][ut.id()].getHeight()})}),Xe.edges().forEach(function(ut){var De=ut.source(),Je=ut.target();if(De.css("display")!="none"&&Je.css("display")!="none")if(T.quality=="draft"){var st=Re.get(De.id()),ct=Re.get(Je.id()),ot=[],it=[];if(De.isParent()){var Oe=p.calcBoundingBox(De,O[Le].xCoords,O[Le].yCoords,Re);ot.push(Oe.topLeftX+Oe.width/2),ot.push(Oe.topLeftY+Oe.height/2)}else ot.push(O[Le].xCoords[st]),ot.push(O[Le].yCoords[st]);if(Je.isParent()){var U=p.calcBoundingBox(Je,O[Le].xCoords,O[Le].yCoords,Re);it.push(U.topLeftX+U.width/2),it.push(U.topLeftY+U.height/2)}else it.push(O[Le].xCoords[ct]),it.push(O[Le].yCoords[ct]);qe.edges.push({startX:ot[0],startY:ot[1],endX:it[0],endY:it[1]})}else M[Le][De.id()]&&M[Le][Je.id()]&&qe.edges.push({startX:M[Le][De.id()].getCenterX(),startY:M[Le][De.id()].getCenterY(),endX:M[Le][Je.id()].getCenterX(),endY:M[Le][Je.id()].getCenterY()})}),qe.nodes.length>0&&(ce.push(qe),re.add(Le))}});var se=I.packComponents(ce,T.randomize).shifts;if(T.quality=="draft")O.forEach(function(Xe,Le){var Re=Xe.xCoords.map(function(Ne){return Ne+se[Le].dx}),qe=Xe.yCoords.map(function(Ne){return Ne+se[Le].dy});Xe.xCoords=Re,Xe.yCoords=qe});else{var xe=0;re.forEach(function(Xe){Object.keys(M[Xe]).forEach(function(Le){var Re=M[Xe][Le];Re.setCenter(Re.getCenterX()+se[xe].dx,Re.getCenterY()+se[xe].dy)}),xe++})}}}else{var L=T.eles.boundingBox();if(F.push({x:L.x1+L.w/2,y:L.y1+L.h/2}),T.randomize){var R=m(T);O.push(R)}T.quality=="default"||T.quality=="proof"?(M.push(v(T,O[0])),p.relocateComponent(F[0],M[0],T)):p.relocateComponent(F[0],O[0],T)}var Te=function(Le,Re){if(T.quality=="default"||T.quality=="proof"){typeof Le=="number"&&(Le=Re);var qe=void 0,Ne=void 0,ut=Le.data("id");return M.forEach(function(Je){ut in Je&&(qe={x:Je[ut].getRect().getCenterX(),y:Je[ut].getRect().getCenterY()},Ne=Je[ut])}),T.nodeDimensionsIncludeLabels&&(Ne.labelWidth&&(Ne.labelPosHorizontal=="left"?qe.x+=Ne.labelWidth/2:Ne.labelPosHorizontal=="right"&&(qe.x-=Ne.labelWidth/2)),Ne.labelHeight&&(Ne.labelPosVertical=="top"?qe.y+=Ne.labelHeight/2:Ne.labelPosVertical=="bottom"&&(qe.y-=Ne.labelHeight/2))),qe==null&&(qe={x:Le.position("x"),y:Le.position("y")}),{x:qe.x,y:qe.y}}else{var De=void 0;return O.forEach(function(Je){var st=Je.nodeIndexes.get(Le.id());st!=null&&(De={x:Je.xCoords[st],y:Je.yCoords[st]})}),De==null&&(De={x:Le.position("x"),y:Le.position("y")}),{x:De.x,y:De.y}}};if(T.quality=="default"||T.quality=="proof"||T.randomize){var Ge=p.calcParentsWithoutChildren(w,N),ze=N.filter(function(Xe){return Xe.css("display")=="none"});T.eles=N.not(ze),N.nodes().not(":parent").not(ze).layoutPositions(C,T,Te),Ge.length>0&&Ge.forEach(function(Xe){Xe.position(Te(Xe))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),E})();o.exports=_}),657:((o,l,u)=>{var d=u(548),h=u(140).layoutBase.Matrix,f=u(140).layoutBase.SVD,p=function(m){var y=m.cy,v=m.eles,b=v.nodes(),_=v.nodes(":parent"),E=new Map,x=new Map,C=new Map,T=[],w=[],N=[],O=[],M=[],$=[],F=[],A=[],I=void 0,D=1e8,L=1e-9,R=m.piTol,P=m.samplingType,z=m.nodeSeparation,B=void 0,q=function(){for(var G=0,ie=0,j=!1;ie=ue;){me=V[ue++];for(var le=T[me],Be=0;BeMe&&(Me=M[gt],Ie=gt)}return Ie},Q=function(G){var ie=void 0;if(G){ie=Math.floor(Math.random()*I);for(var V=0;V=1)break;ye=Ce}for(var he=0;he=1)break;ye=Ce}for(var Be=0;Be0&&(ie.isParent()?T[G].push(C.get(ie.id())):T[G].push(ie.id()))})});var ze=function(G){var ie=x.get(G),j=void 0;E.get(G).forEach(function(V){y.getElementById(V).isParent()?j=C.get(V):j=V,T[ie].push(j),T[x.get(j)].push(G)})},Xe=!0,Le=!1,Re=void 0;try{for(var qe=E.keys()[Symbol.iterator](),Ne;!(Xe=(Ne=qe.next()).done);Xe=!0){var ut=Ne.value;ze(ut)}}catch(de){Le=!0,Re=de}finally{try{!Xe&&qe.return&&qe.return()}finally{if(Le)throw Re}}I=x.size;var De=void 0;if(I>2){B=I{var d=u(212),h=function(p){p&&p("layout","fcose",d)};typeof cytoscape<"u"&&h(cytoscape),o.exports=h}),140:(o=>{o.exports=r})},i={};function a(o){var l=i[o];if(l!==void 0)return l.exports;var u=i[o]={exports:{}};return n[o](u,u.exports,a),u.exports}var s=a(579);return s})()})})(nC)),nC.exports}var LLt=DLt();const MLt=Ml(LLt);var Cle={L:"left",R:"right",T:"top",B:"bottom"},wle={L:S(t=>`${t},${t/2} 0,${t} 0,0`,"L"),R:S(t=>`0,${t/2} ${t},0 ${t},${t}`,"R"),T:S(t=>`0,0 ${t},0 ${t/2},${t}`,"T"),B:S(t=>`${t/2},0 ${t},${t} 0,${t}`,"B")},M3={L:S((t,e)=>t-e+2,"L"),R:S((t,e)=>t-2,"R"),T:S((t,e)=>t-e+2,"T"),B:S((t,e)=>t-2,"B")},PLt=S(function(t){return Is(t)?t==="L"?"R":"L":t==="T"?"B":"T"},"getOppositeArchitectureDirection"),kle=S(function(t){const e=t;return e==="L"||e==="R"||e==="T"||e==="B"},"isArchitectureDirection"),Is=S(function(t){const e=t;return e==="L"||e==="R"},"isArchitectureDirectionX"),Ah=S(function(t){const e=t;return e==="T"||e==="B"},"isArchitectureDirectionY"),MW=S(function(t,e){const r=Is(t)&&Ah(e),n=Ah(t)&&Is(e);return r||n},"isArchitectureDirectionXY"),BLt=S(function(t){const e=t[0],r=t[1],n=Is(e)&&Ah(r),i=Ah(e)&&Is(r);return n||i},"isArchitecturePairXY"),FLt=S(function(t){return t!=="LL"&&t!=="RR"&&t!=="TT"&&t!=="BB"},"isValidArchitectureDirectionPair"),bz=S(function(t,e){const r=`${t}${e}`;return FLt(r)?r:void 0},"getArchitectureDirectionPair"),$Lt=S(function([t,e],r){const n=r[0],i=r[1];return Is(n)?Ah(i)?[t+(n==="L"?-1:1),e+(i==="T"?1:-1)]:[t+(n==="L"?-1:1),e]:Is(i)?[t+(i==="L"?1:-1),e+(n==="T"?1:-1)]:[t,e+(n==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),zLt=S(function(t){return t==="LT"||t==="TL"?[1,1]:t==="BL"||t==="LB"?[1,-1]:t==="BR"||t==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),ULt=S(function(t,e){return MW(t,e)?"bend":Is(t)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),GLt=S(function(t){return t.type==="service"},"isArchitectureService"),qLt=S(function(t){return t.type==="junction"},"isArchitectureJunction"),k8e=S(t=>t.data(),"edgeData"),$m=S(t=>t.data(),"nodeData"),YLt=on.architecture,O_,A8e=(O_=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.diagramId="",this.setAccTitle=ai,this.getAccTitle=yi,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.getAccDescription=_i,this.setAccDescription=vi,this.clear()}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},this.diagramId="",oi()}addService({id:e,icon:r,in:n,title:i,iconText:a}){if(this.registeredIds[e]!==void 0)throw new Error(`The service id [${e}] is already in use by another ${this.registeredIds[e]}`);if(n!==void 0){if(e===n)throw new Error(`The service [${e}] cannot be placed within itself`);if(this.registeredIds[n]===void 0)throw new Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[n]==="node")throw new Error(`The service [${e}]'s parent is not a group`)}this.registeredIds[e]="node",this.nodes[e]={id:e,type:"service",icon:r,iconText:a,title:i,edges:[],in:n}}getServices(){return Object.values(this.nodes).filter(GLt)}addJunction({id:e,in:r}){if(this.registeredIds[e]!==void 0)throw new Error(`The junction id [${e}] is already in use by another ${this.registeredIds[e]}`);if(r!==void 0){if(e===r)throw new Error(`The junction [${e}] cannot be placed within itself`);if(this.registeredIds[r]===void 0)throw new Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds[r]==="node")throw new Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds[e]="node",this.nodes[e]={id:e,type:"junction",edges:[],in:r}}getJunctions(){return Object.values(this.nodes).filter(qLt)}getNodes(){return Object.values(this.nodes)}getNode(e){return this.nodes[e]??null}addGroup({id:e,icon:r,in:n,title:i}){if(this.registeredIds?.[e]!==void 0)throw new Error(`The group id [${e}] is already in use by another ${this.registeredIds[e]}`);if(n!==void 0){if(e===n)throw new Error(`The group [${e}] cannot be placed within itself`);if(this.registeredIds?.[n]===void 0)throw new Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds?.[n]==="node")throw new Error(`The group [${e}]'s parent is not a group`)}this.registeredIds[e]="group",this.groups[e]={id:e,icon:r,title:i,in:n}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:e,rhsId:r,lhsDir:n,rhsDir:i,lhsInto:a,rhsInto:s,lhsGroup:o,rhsGroup:l,title:u}){if(!kle(n))throw new Error(`Invalid direction given for left hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(n)}`);if(!kle(i))throw new Error(`Invalid direction given for right hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(i)}`);if(this.nodes[e]===void 0&&this.groups[e]===void 0)throw new Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[r]===void 0&&this.groups[r]===void 0)throw new Error(`The right-hand id [${r}] does not yet exist. Please create the service/group before declaring an edge to it.`);const d=this.nodes[e].in,h=this.nodes[r].in;if(o&&d&&h&&d==h)throw new Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(l&&d&&h&&d==h)throw new Error(`The right-hand id [${r}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const f={lhsId:e,lhsDir:n,lhsInto:a,lhsGroup:o,rhsId:r,rhsDir:i,rhsInto:s,rhsGroup:l,title:u};this.edges.push(f),this.nodes[e]&&this.nodes[r]&&(this.nodes[e].edges.push(this.edges[this.edges.length-1]),this.nodes[r].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){const e={},r=Object.entries(this.nodes).reduce((l,[u,d])=>(l[u]=d.edges.reduce((h,f)=>{const p=this.getNode(f.lhsId)?.in,g=this.getNode(f.rhsId)?.in;if(p&&g&&p!==g){const m=ULt(f.lhsDir,f.rhsDir);m!=="bend"&&(e[p]??={},e[p][g]=m,e[g]??={},e[g][p]=m)}if(f.lhsId===u){const m=bz(f.lhsDir,f.rhsDir);m&&(h[m]=f.rhsId)}else{const m=bz(f.rhsDir,f.lhsDir);m&&(h[m]=f.lhsId)}return h},{}),l),{}),n=Object.keys(r)[0],i={[n]:1},a=Object.keys(r).reduce((l,u)=>u===n?l:{...l,[u]:1},{}),s=S(l=>{const u={[l]:[0,0]},d=[l];for(;d.length>0;){const h=d.shift();if(h){i[h]=1,delete a[h];const f=r[h],[p,g]=u[h];Object.entries(f).forEach(([m,y])=>{i[y]||(u[y]=$Lt([p,g],m),d.push(y))})}}return u},"BFS"),o=[s(n)];for(;Object.keys(a).length>0;)o.push(s(Object.keys(a)[0]));this.dataStructures={adjList:r,spatialMaps:o,groupAlignments:e}}return this.dataStructures}setElementForId(e,r){this.elements[e]=r}getElementById(e){return this.elements[e]}getConfig(){return $i({...YLt,...xr().architecture})}getConfigField(e){return this.getConfig()[e]}},S(O_,"ArchitectureDB"),O_),HLt=S((t,e)=>{wu(t,e),t.groups.map(r=>e.addGroup(r)),t.services.map(r=>e.addService({...r,type:"service"})),t.junctions.map(r=>e.addJunction({...r,type:"junction"})),t.edges.map(r=>e.addEdge(r))},"populateDb"),R8e={parser:{yy:void 0},parse:S(async t=>{const e=await _c("architecture",t);ge.debug(e);const r=R8e.parser?.yy;if(!(r instanceof A8e))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");HLt(e,r)},"parse")},VLt=S(t=>` + `},"styles"),wLt=CLt,kLt={db:_z,renderer:TLt,parser:vLt,styles:wLt};const ALt=Object.freeze(Object.defineProperty({__proto__:null,diagram:kLt},Symbol.toStringTag,{value:"Module"}));var nC={exports:{}},iC={exports:{}},aC={exports:{}},RLt=aC.exports,Sle;function NLt(){return Sle||(Sle=1,(function(t,e){(function(n,i){t.exports=i()})(RLt,function(){return(function(r){var n={};function i(a){if(n[a])return n[a].exports;var s=n[a]={i:a,l:!1,exports:{}};return r[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=r,i.c=n,i.i=function(a){return a},i.d=function(a,s,o){i.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:o})},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=28)})([(function(r,n,i){function a(){}a.QUALITY=1,a.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,a.DEFAULT_INCREMENTAL=!1,a.DEFAULT_ANIMATION_ON_LAYOUT=!0,a.DEFAULT_ANIMATION_DURING_LAYOUT=!1,a.DEFAULT_ANIMATION_PERIOD=50,a.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,a.DEFAULT_GRAPH_MARGIN=15,a.NODE_DIMENSIONS_INCLUDE_LABELS=!1,a.SIMPLE_NODE_SIZE=40,a.SIMPLE_NODE_HALF_SIZE=a.SIMPLE_NODE_SIZE/2,a.EMPTY_COMPOUND_NODE_SIZE=40,a.MIN_EDGE_LENGTH=1,a.WORLD_BOUNDARY=1e6,a.INITIAL_WORLD_BOUNDARY=a.WORLD_BOUNDARY/1e3,a.WORLD_CENTER_X=1200,a.WORLD_CENTER_Y=900,r.exports=a}),(function(r,n,i){var a=i(2),s=i(8),o=i(9);function l(d,h,f){a.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=d,this.target=h}l.prototype=Object.create(a.prototype);for(var u in a)l[u]=a[u];l.prototype.getSource=function(){return this.source},l.prototype.getTarget=function(){return this.target},l.prototype.isInterGraph=function(){return this.isInterGraph},l.prototype.getLength=function(){return this.length},l.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},l.prototype.getBendpoints=function(){return this.bendpoints},l.prototype.getLca=function(){return this.lca},l.prototype.getSourceInLca=function(){return this.sourceInLca},l.prototype.getTargetInLca=function(){return this.targetInLca},l.prototype.getOtherEnd=function(d){if(this.source===d)return this.target;if(this.target===d)return this.source;throw"Node is not incident with this edge"},l.prototype.getOtherEndInGraph=function(d,h){for(var f=this.getOtherEnd(d),p=h.getGraphManager().getRoot();;){if(f.getOwner()==h)return f;if(f.getOwner()==p)break;f=f.getOwner().getParent()}return null},l.prototype.updateLength=function(){var d=new Array(4);this.isOverlapingSourceAndTarget=s.getIntersection(this.target.getRect(),this.source.getRect(),d),this.isOverlapingSourceAndTarget||(this.lengthX=d[0]-d[2],this.lengthY=d[1]-d[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},l.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},r.exports=l}),(function(r,n,i){function a(s){this.vGraphObject=s}r.exports=a}),(function(r,n,i){var a=i(2),s=i(10),o=i(13),l=i(0),u=i(16),d=i(5);function h(p,g,m,y){m==null&&y==null&&(y=g),a.call(this,y),p.graphManager!=null&&(p=p.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=y,this.edges=[],this.graphManager=p,m!=null&&g!=null?this.rect=new o(g.x,g.y,m.width,m.height):this.rect=new o}h.prototype=Object.create(a.prototype);for(var f in a)h[f]=a[f];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(p){this.rect.width=p},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(p){this.rect.height=p},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new d(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new d(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(p,g){this.rect.x=p.x,this.rect.y=p.y,this.rect.width=g.width,this.rect.height=g.height},h.prototype.setCenter=function(p,g){this.rect.x=p-this.rect.width/2,this.rect.y=g-this.rect.height/2},h.prototype.setLocation=function(p,g){this.rect.x=p,this.rect.y=g},h.prototype.moveBy=function(p,g){this.rect.x+=p,this.rect.y+=g},h.prototype.getEdgeListToNode=function(p){var g=[],m=this;return m.edges.forEach(function(y){if(y.target==p){if(y.source!=m)throw"Incorrect edge source!";g.push(y)}}),g},h.prototype.getEdgesBetween=function(p){var g=[],m=this;return m.edges.forEach(function(y){if(!(y.source==m||y.target==m))throw"Incorrect edge source and/or target";(y.target==p||y.source==p)&&g.push(y)}),g},h.prototype.getNeighborsList=function(){var p=new Set,g=this;return g.edges.forEach(function(m){if(m.source==g)p.add(m.target);else{if(m.target!=g)throw"Incorrect incidency!";p.add(m.source)}}),p},h.prototype.withChildren=function(){var p=new Set,g,m;if(p.add(this),this.child!=null)for(var y=this.child.getNodes(),v=0;vg?(this.rect.x-=(this.labelWidth-g)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(g+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(m+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>m?(this.rect.y-=(this.labelHeight-m)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(m+this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(p){var g=this.rect.x;g>l.WORLD_BOUNDARY?g=l.WORLD_BOUNDARY:g<-l.WORLD_BOUNDARY&&(g=-l.WORLD_BOUNDARY);var m=this.rect.y;m>l.WORLD_BOUNDARY?m=l.WORLD_BOUNDARY:m<-l.WORLD_BOUNDARY&&(m=-l.WORLD_BOUNDARY);var y=new d(g,m),v=p.inverseTransformPoint(y);this.setLocation(v.x,v.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=h}),(function(r,n,i){var a=i(0);function s(){}for(var o in a)s[o]=a[o];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,s.MAX_NODE_DISPLACEMENT=s.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,r.exports=s}),(function(r,n,i){function a(s,o){s==null&&o==null?(this.x=0,this.y=0):(this.x=s,this.y=o)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(s){this.x=s},a.prototype.setY=function(s){this.y=s},a.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},r.exports=a}),(function(r,n,i){var a=i(2),s=i(10),o=i(0),l=i(7),u=i(3),d=i(1),h=i(13),f=i(12),p=i(11);function g(y,v,b){a.call(this,b),this.estimatedSize=s.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=y,v!=null&&v instanceof l?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}g.prototype=Object.create(a.prototype);for(var m in a)g[m]=a[m];g.prototype.getNodes=function(){return this.nodes},g.prototype.getEdges=function(){return this.edges},g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getParent=function(){return this.parent},g.prototype.getLeft=function(){return this.left},g.prototype.getRight=function(){return this.right},g.prototype.getTop=function(){return this.top},g.prototype.getBottom=function(){return this.bottom},g.prototype.isConnected=function(){return this.isConnected},g.prototype.add=function(y,v,b){if(v==null&&b==null){var _=y;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(_)>-1)throw"Node already in graph!";return _.owner=this,this.getNodes().push(_),_}else{var E=y;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(b)>-1))throw"Source or target not in graph!";if(!(v.owner==b.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=b.owner?null:(E.source=v,E.target=b,E.isInterGraph=!1,this.getEdges().push(E),v.edges.push(E),b!=v&&b.edges.push(E),E)}},g.prototype.remove=function(y){var v=y;if(y instanceof u){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var b=v.edges.slice(),_,E=b.length,x=0;x-1&&w>-1))throw"Source and/or target doesn't know this edge!";_.source.edges.splice(T,1),_.target!=_.source&&_.target.edges.splice(w,1);var C=_.source.owner.getEdges().indexOf(_);if(C==-1)throw"Not in owner's edge list!";_.source.owner.getEdges().splice(C,1)}},g.prototype.updateLeftTop=function(){for(var y=s.MAX_VALUE,v=s.MAX_VALUE,b,_,E,x=this.getNodes(),C=x.length,T=0;Tb&&(y=b),v>_&&(v=_)}return y==s.MAX_VALUE?null:(x[0].getParent().paddingLeft!=null?E=x[0].getParent().paddingLeft:E=this.margin,this.left=v-E,this.top=y-E,new f(this.left,this.top))},g.prototype.updateBounds=function(y){for(var v=s.MAX_VALUE,b=-s.MAX_VALUE,_=s.MAX_VALUE,E=-s.MAX_VALUE,x,C,T,w,N,O=this.nodes,M=O.length,$=0;$x&&(v=x),bT&&(_=T),Ex&&(v=x),bT&&(_=T),E=this.nodes.length){var M=0;b.forEach(function($){$.owner==y&&M++}),M==this.nodes.length&&(this.isConnected=!0)}},r.exports=g}),(function(r,n,i){var a,s=i(1);function o(l){a=i(6),this.layout=l,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var l=this.layout.newGraph(),u=this.layout.newNode(null),d=this.add(l,u);return this.setRootGraph(d),this.rootGraph},o.prototype.add=function(l,u,d,h,f){if(d==null&&h==null&&f==null){if(l==null)throw"Graph is null!";if(u==null)throw"Parent node is null!";if(this.graphs.indexOf(l)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(l),l.parent!=null)throw"Already has a parent!";if(u.child!=null)throw"Already has a child!";return l.parent=u,u.child=l,l}else{f=d,h=u,d=l;var p=h.getOwner(),g=f.getOwner();if(!(p!=null&&p.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(g!=null&&g.getGraphManager()==this))throw"Target not in this graph mgr!";if(p==g)return d.isInterGraph=!1,p.add(d,h,f);if(d.isInterGraph=!0,d.source=h,d.target=f,this.edges.indexOf(d)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(d),!(d.source!=null&&d.target!=null))throw"Edge source and/or target is null!";if(!(d.source.edges.indexOf(d)==-1&&d.target.edges.indexOf(d)==-1))throw"Edge already in source and/or target incidency list!";return d.source.edges.push(d),d.target.edges.push(d),d}},o.prototype.remove=function(l){if(l instanceof a){var u=l;if(u.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(u==this.rootGraph||u.parent!=null&&u.parent.graphManager==this))throw"Invalid parent node!";var d=[];d=d.concat(u.getEdges());for(var h,f=d.length,p=0;p=l.getRight()?u[0]+=Math.min(l.getX()-o.getX(),o.getRight()-l.getRight()):l.getX()<=o.getX()&&l.getRight()>=o.getRight()&&(u[0]+=Math.min(o.getX()-l.getX(),l.getRight()-o.getRight())),o.getY()<=l.getY()&&o.getBottom()>=l.getBottom()?u[1]+=Math.min(l.getY()-o.getY(),o.getBottom()-l.getBottom()):l.getY()<=o.getY()&&l.getBottom()>=o.getBottom()&&(u[1]+=Math.min(o.getY()-l.getY(),l.getBottom()-o.getBottom()));var f=Math.abs((l.getCenterY()-o.getCenterY())/(l.getCenterX()-o.getCenterX()));l.getCenterY()===o.getCenterY()&&l.getCenterX()===o.getCenterX()&&(f=1);var p=f*u[0],g=u[1]/f;u[0]p)return u[0]=d,u[1]=m,u[2]=f,u[3]=O,!1;if(hf)return u[0]=g,u[1]=h,u[2]=w,u[3]=p,!1;if(df?(u[0]=v,u[1]=b,A=!0):(u[0]=y,u[1]=m,A=!0):D===R&&(d>f?(u[0]=g,u[1]=m,A=!0):(u[0]=_,u[1]=b,A=!0)),-L===R?f>d?(u[2]=N,u[3]=O,I=!0):(u[2]=w,u[3]=T,I=!0):L===R&&(f>d?(u[2]=C,u[3]=T,I=!0):(u[2]=M,u[3]=O,I=!0)),A&&I)return!1;if(d>f?h>p?(P=this.getCardinalDirection(D,R,4),z=this.getCardinalDirection(L,R,2)):(P=this.getCardinalDirection(-D,R,3),z=this.getCardinalDirection(-L,R,1)):h>p?(P=this.getCardinalDirection(-D,R,1),z=this.getCardinalDirection(-L,R,3)):(P=this.getCardinalDirection(D,R,2),z=this.getCardinalDirection(L,R,4)),!A)switch(P){case 1:q=m,B=d+-x/R,u[0]=B,u[1]=q;break;case 2:B=_,q=h+E*R,u[0]=B,u[1]=q;break;case 3:q=b,B=d+x/R,u[0]=B,u[1]=q;break;case 4:B=v,q=h+-E*R,u[0]=B,u[1]=q;break}if(!I)switch(z){case 1:Q=T,Y=f+-F/R,u[2]=Y,u[3]=Q;break;case 2:Y=M,Q=p+$*R,u[2]=Y,u[3]=Q;break;case 3:Q=O,Y=f+F/R,u[2]=Y,u[3]=Q;break;case 4:Y=N,Q=p+-$*R,u[2]=Y,u[3]=Q;break}}return!1},s.getCardinalDirection=function(o,l,u){return o>l?u:1+u%4},s.getIntersection=function(o,l,u,d){if(d==null)return this.getIntersection2(o,l,u);var h=o.x,f=o.y,p=l.x,g=l.y,m=u.x,y=u.y,v=d.x,b=d.y,_=void 0,E=void 0,x=void 0,C=void 0,T=void 0,w=void 0,N=void 0,O=void 0,M=void 0;return x=g-f,T=h-p,N=p*f-h*g,C=b-y,w=m-v,O=v*y-m*b,M=x*w-C*T,M===0?null:(_=(T*O-w*N)/M,E=(C*N-x*O)/M,new a(_,E))},s.angleOfVector=function(o,l,u,d){var h=void 0;return o!==u?(h=Math.atan((d-l)/(u-o)),u=0){var b=(-m+Math.sqrt(m*m-4*g*y))/(2*g),_=(-m-Math.sqrt(m*m-4*g*y))/(2*g),E=null;return b>=0&&b<=1?[b]:_>=0&&_<=1?[_]:E}else return null},s.HALF_PI=.5*Math.PI,s.ONE_AND_HALF_PI=1.5*Math.PI,s.TWO_PI=2*Math.PI,s.THREE_PI=3*Math.PI,r.exports=s}),(function(r,n,i){function a(){}a.sign=function(s){return s>0?1:s<0?-1:0},a.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},a.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},r.exports=a}),(function(r,n,i){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,r.exports=a}),(function(r,n,i){var a=(function(){function h(f,p){for(var g=0;g"u"?"undefined":a(o);return o==null||l!="object"&&l!="function"},r.exports=s}),(function(r,n,i){function a(m){if(Array.isArray(m)){for(var y=0,v=Array(m.length);y0&&y;){for(x.push(T[0]);x.length>0&&y;){var w=x[0];x.splice(0,1),E.add(w);for(var N=w.getEdges(),_=0;_-1&&T.splice(F,1)}E=new Set,C=new Map}}return m},g.prototype.createDummyNodesForBendpoints=function(m){for(var y=[],v=m.source,b=this.graphManager.calcLowestCommonAncestor(m.source,m.target),_=0;_0){for(var b=this.edgeToDummyNodes.get(v),_=0;_=0&&y.splice(O,1);var M=C.getNeighborsList();M.forEach(function(A){if(v.indexOf(A)<0){var I=b.get(A),D=I-1;D==1&&w.push(A),b.set(A,D)}})}v=v.concat(w),(y.length==1||y.length==2)&&(_=!0,E=y[0])}return E},g.prototype.setGraphManager=function(m){this.graphManager=m},r.exports=g}),(function(r,n,i){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},r.exports=a}),(function(r,n,i){var a=i(5);function s(o,l){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(o){this.lworldOrgX=o},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(o){this.lworldOrgY=o},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(o){this.lworldExtX=o},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(o){this.lworldExtY=o},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(o){this.ldeviceOrgX=o},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(o){this.ldeviceOrgY=o},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(o){this.ldeviceExtX=o},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(o){this.ldeviceExtY=o},s.prototype.transformX=function(o){var l=0,u=this.lworldExtX;return u!=0&&(l=this.ldeviceOrgX+(o-this.lworldOrgX)*this.ldeviceExtX/u),l},s.prototype.transformY=function(o){var l=0,u=this.lworldExtY;return u!=0&&(l=this.ldeviceOrgY+(o-this.lworldOrgY)*this.ldeviceExtY/u),l},s.prototype.inverseTransformX=function(o){var l=0,u=this.ldeviceExtX;return u!=0&&(l=this.lworldOrgX+(o-this.ldeviceOrgX)*this.lworldExtX/u),l},s.prototype.inverseTransformY=function(o){var l=0,u=this.ldeviceExtY;return u!=0&&(l=this.lworldOrgY+(o-this.ldeviceOrgY)*this.lworldExtY/u),l},s.prototype.inverseTransformPoint=function(o){var l=new a(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return l},r.exports=s}),(function(r,n,i){function a(p){if(Array.isArray(p)){for(var g=0,m=Array(p.length);go.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(p-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(p>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(p-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var p=this.getAllEdges(),g,m=0;m0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m,y,v,b,_=this.getAllNodes(),E;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&p&&this.updateGrid(),E=new Set,m=0;m<_.length;m++)v=_[m],this.calculateRepulsionForceOfANode(v,E,p,g),E.add(v);else for(m=0;m<_.length;m++)for(v=_[m],y=m+1;y<_.length;y++)b=_[y],v.getOwner()==b.getOwner()&&this.calcRepulsionForce(v,b)},h.prototype.calcGravitationalForces=function(){for(var p,g=this.getAllNodesToApplyGravitation(),m=0;mx||E>x)&&(p.gravitationForceX=-this.gravityConstant*v,p.gravitationForceY=-this.gravityConstant*b)):(x=g.getEstimatedSize()*this.compoundGravityRangeFactor,(_>x||E>x)&&(p.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,p.gravitationForceY=-this.gravityConstant*b*this.compoundGravityConstant))},h.prototype.isConverged=function(){var p,g=!1;return this.totalIterations>this.maxIterations/3&&(g=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),p=this.totalDisplacement=_.length||x>=_[0].length)){for(var C=0;C<_[E][x].length;C++)if(b=_[E][x][C],!(p.getOwner()!=b.getOwner()||p==b)&&!g.has(b)&&!v.has(b)){var T=Math.abs(p.getCenterX()-b.getCenterX())-(p.getWidth()/2+b.getWidth()/2),w=Math.abs(p.getCenterY()-b.getCenterY())-(p.getHeight()/2+b.getHeight()/2);T<=this.repulsionRange&&w<=this.repulsionRange&&v.add(b)}}p.surrounding=[].concat(a(v))}for(E=0;Eh}}]),u})();r.exports=l}),(function(r,n,i){function a(){}a.svd=function(s){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=s.length,this.n=s[0].length;var o=Math.min(this.m,this.n);this.s=(function(ft){for(var mt=[];ft-- >0;)mt.push(0);return mt})(Math.min(this.m+1,this.n)),this.U=(function(ft){var mt=function fe(It){if(It.length==0)return 0;for(var St=[],Tt=0;Tt0;)mt.push(0);return mt})(this.n),u=(function(ft){for(var mt=[];ft-- >0;)mt.push(0);return mt})(this.m),d=!0,h=Math.min(this.m-1,this.n),f=Math.max(0,Math.min(this.n-2,this.m)),p=0;p=0;L--)if(this.s[L]!==0){for(var R=L+1;R=0;H--){if((function(ft,mt){return ft&&mt})(H0;){var Te=void 0,Ge=void 0;for(Te=A-2;Te>=-1&&Te!==-1;Te--)if(Math.abs(l[Te])<=xe+se*(Math.abs(this.s[Te])+Math.abs(this.s[Te+1]))){l[Te]=0;break}if(Te===A-2)Ge=4;else{var ze=void 0;for(ze=A-1;ze>=Te&&ze!==Te;ze--){var Xe=(ze!==A?Math.abs(l[ze]):0)+(ze!==Te+1?Math.abs(l[ze-1]):0);if(Math.abs(this.s[ze])<=xe+se*Xe){this.s[ze]=0;break}}ze===Te?Ge=3:ze===A-1?Ge=1:(Ge=2,Te=ze)}switch(Te++,Ge){case 1:{var Le=l[A-2];l[A-2]=0;for(var Re=A-2;Re>=Te;Re--){var qe=a.hypot(this.s[Re],Le),Ne=this.s[Re]/qe,ut=Le/qe;this.s[Re]=qe,Re!==Te&&(Le=-ut*l[Re-1],l[Re-1]=Ne*l[Re-1]);for(var De=0;De=this.s[Te+1]);){var gt=this.s[Te];if(this.s[Te]=this.s[Te+1],this.s[Te+1]=gt,TeMath.abs(o)?(l=o/s,l=Math.abs(s)*Math.sqrt(1+l*l)):o!=0?(l=s/o,l=Math.abs(o)*Math.sqrt(1+l*l)):l=0,l},r.exports=a}),(function(r,n,i){var a=(function(){function l(u,d){for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,l),this.sequence1=u,this.sequence2=d,this.match_score=h,this.mismatch_penalty=f,this.gap_penalty=p,this.iMax=u.length+1,this.jMax=d.length+1,this.grid=new Array(this.iMax);for(var g=0;g=0;u--){var d=this.listeners[u];d.event===o&&d.callback===l&&this.listeners.splice(u,1)}},s.emit=function(o,l){for(var u=0;u{var n={45:((o,l,u)=>{var d={};d.layoutBase=u(551),d.CoSEConstants=u(806),d.CoSEEdge=u(767),d.CoSEGraph=u(880),d.CoSEGraphManager=u(578),d.CoSELayout=u(765),d.CoSENode=u(991),d.ConstraintHandler=u(902),o.exports=d}),806:((o,l,u)=>{var d=u(551).FDLayoutConstants;function h(){}for(var f in d)h[f]=d[f];h.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,h.DEFAULT_RADIAL_SEPARATION=d.DEFAULT_EDGE_LENGTH,h.DEFAULT_COMPONENT_SEPERATION=60,h.TILE=!0,h.TILING_PADDING_VERTICAL=10,h.TILING_PADDING_HORIZONTAL=10,h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0,h.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,h.TREE_REDUCTION_ON_INCREMENTAL=!0,h.PURE_INCREMENTAL=h.DEFAULT_INCREMENTAL,o.exports=h}),767:((o,l,u)=>{var d=u(551).FDLayoutEdge;function h(p,g,m){d.call(this,p,g,m)}h.prototype=Object.create(d.prototype);for(var f in d)h[f]=d[f];o.exports=h}),880:((o,l,u)=>{var d=u(551).LGraph;function h(p,g,m){d.call(this,p,g,m)}h.prototype=Object.create(d.prototype);for(var f in d)h[f]=d[f];o.exports=h}),578:((o,l,u)=>{var d=u(551).LGraphManager;function h(p){d.call(this,p)}h.prototype=Object.create(d.prototype);for(var f in d)h[f]=d[f];o.exports=h}),765:((o,l,u)=>{var d=u(551).FDLayout,h=u(578),f=u(880),p=u(991),g=u(767),m=u(806),y=u(902),v=u(551).FDLayoutConstants,b=u(551).LayoutConstants,_=u(551).Point,E=u(551).PointD,x=u(551).DimensionD,C=u(551).Layout,T=u(551).Integer,w=u(551).IGeometry,N=u(551).LGraph,O=u(551).Transform,M=u(551).LinkedList;function $(){d.call(this),this.toBeTiled={},this.constraints={}}$.prototype=Object.create(d.prototype);for(var F in d)$[F]=d[F];$.prototype.newGraphManager=function(){var A=new h(this);return this.graphManager=A,A},$.prototype.newGraph=function(A){return new f(null,this.graphManager,A)},$.prototype.newNode=function(A){return new p(this.graphManager,A)},$.prototype.newEdge=function(A){return new g(null,null,A)},$.prototype.initParameters=function(){d.prototype.initParameters.call(this,arguments),this.isSubLayout||(m.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=m.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=m.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=v.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=v.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=v.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=v.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},$.prototype.initSpringEmbedder=function(){d.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/v.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},$.prototype.layout=function(){var A=b.DEFAULT_CREATE_BENDS_AS_NEEDED;return A&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},$.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(m.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var I=new Set(this.getAllNodes()),D=this.nodesWithGravity.filter(function(P){return I.has(P)});this.graphManager.setAllNodesToApplyGravitation(D)}}else{var A=this.getFlatForest();if(A.length>0)this.positionNodesRadially(A);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var I=new Set(this.getAllNodes()),D=this.nodesWithGravity.filter(function(L){return I.has(L)});this.graphManager.setAllNodesToApplyGravitation(D),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(y.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),m.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},$.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%v.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var A=new Set(this.getAllNodes()),I=this.nodesWithGravity.filter(function(R){return A.has(R)});this.graphManager.setAllNodesToApplyGravitation(I),this.graphManager.updateBounds(),this.updateGrid(),m.PURE_INCREMENTAL?this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),m.PURE_INCREMENTAL?this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var D=!this.isTreeGrowing&&!this.isGrowthFinished,L=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(D,L),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},$.prototype.getPositionsData=function(){for(var A=this.graphManager.getAllNodes(),I={},D=0;D0&&this.updateDisplacements();for(var D=0;D0&&(L.fixedNodeWeight=P)}}if(this.constraints.relativePlacementConstraint){var z=new Map,B=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(re){A.fixedNodesOnHorizontal.add(re),A.fixedNodesOnVertical.add(re)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var q=this.constraints.alignmentConstraint.vertical,D=0;D=2*re.length/3;se--)ce=Math.floor(Math.random()*(se+1)),ae=re[se],re[se]=re[ce],re[ce]=ae;return re},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(re){if(re.left){var ce=z.has(re.left)?z.get(re.left):re.left,ae=z.has(re.right)?z.get(re.right):re.right;A.nodesInRelativeHorizontal.includes(ce)||(A.nodesInRelativeHorizontal.push(ce),A.nodeToRelativeConstraintMapHorizontal.set(ce,[]),A.dummyToNodeForVerticalAlignment.has(ce)?A.nodeToTempPositionMapHorizontal.set(ce,A.idToNodeMap.get(A.dummyToNodeForVerticalAlignment.get(ce)[0]).getCenterX()):A.nodeToTempPositionMapHorizontal.set(ce,A.idToNodeMap.get(ce).getCenterX())),A.nodesInRelativeHorizontal.includes(ae)||(A.nodesInRelativeHorizontal.push(ae),A.nodeToRelativeConstraintMapHorizontal.set(ae,[]),A.dummyToNodeForVerticalAlignment.has(ae)?A.nodeToTempPositionMapHorizontal.set(ae,A.idToNodeMap.get(A.dummyToNodeForVerticalAlignment.get(ae)[0]).getCenterX()):A.nodeToTempPositionMapHorizontal.set(ae,A.idToNodeMap.get(ae).getCenterX())),A.nodeToRelativeConstraintMapHorizontal.get(ce).push({right:ae,gap:re.gap}),A.nodeToRelativeConstraintMapHorizontal.get(ae).push({left:ce,gap:re.gap})}else{var se=B.has(re.top)?B.get(re.top):re.top,xe=B.has(re.bottom)?B.get(re.bottom):re.bottom;A.nodesInRelativeVertical.includes(se)||(A.nodesInRelativeVertical.push(se),A.nodeToRelativeConstraintMapVertical.set(se,[]),A.dummyToNodeForHorizontalAlignment.has(se)?A.nodeToTempPositionMapVertical.set(se,A.idToNodeMap.get(A.dummyToNodeForHorizontalAlignment.get(se)[0]).getCenterY()):A.nodeToTempPositionMapVertical.set(se,A.idToNodeMap.get(se).getCenterY())),A.nodesInRelativeVertical.includes(xe)||(A.nodesInRelativeVertical.push(xe),A.nodeToRelativeConstraintMapVertical.set(xe,[]),A.dummyToNodeForHorizontalAlignment.has(xe)?A.nodeToTempPositionMapVertical.set(xe,A.idToNodeMap.get(A.dummyToNodeForHorizontalAlignment.get(xe)[0]).getCenterY()):A.nodeToTempPositionMapVertical.set(xe,A.idToNodeMap.get(xe).getCenterY())),A.nodeToRelativeConstraintMapVertical.get(se).push({bottom:xe,gap:re.gap}),A.nodeToRelativeConstraintMapVertical.get(xe).push({top:se,gap:re.gap})}});else{var Q=new Map,H=new Map;this.constraints.relativePlacementConstraint.forEach(function(re){if(re.left){var ce=z.has(re.left)?z.get(re.left):re.left,ae=z.has(re.right)?z.get(re.right):re.right;Q.has(ce)?Q.get(ce).push(ae):Q.set(ce,[ae]),Q.has(ae)?Q.get(ae).push(ce):Q.set(ae,[ce])}else{var se=B.has(re.top)?B.get(re.top):re.top,xe=B.has(re.bottom)?B.get(re.bottom):re.bottom;H.has(se)?H.get(se).push(xe):H.set(se,[xe]),H.has(xe)?H.get(xe).push(se):H.set(xe,[se])}});var J=function(ce,ae){var se=[],xe=[],Te=new M,Ge=new Set,ze=0;return ce.forEach(function(Xe,Le){if(!Ge.has(Le)){se[ze]=[],xe[ze]=!1;var Re=Le;for(Te.push(Re),Ge.add(Re),se[ze].push(Re);Te.length!=0;){Re=Te.shift(),ae.has(Re)&&(xe[ze]=!0);var qe=ce.get(Re);qe.forEach(function(Ne){Ge.has(Ne)||(Te.push(Ne),Ge.add(Ne),se[ze].push(Ne))})}ze++}}),{components:se,isFixed:xe}},Z=J(Q,A.fixedNodesOnHorizontal);this.componentsOnHorizontal=Z.components,this.fixedComponentsOnHorizontal=Z.isFixed;var pe=J(H,A.fixedNodesOnVertical);this.componentsOnVertical=pe.components,this.fixedComponentsOnVertical=pe.isFixed}}},$.prototype.updateDisplacements=function(){var A=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(pe){var re=A.idToNodeMap.get(pe.nodeId);re.displacementX=0,re.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var I=this.constraints.alignmentConstraint.vertical,D=0;D1){var B;for(B=0;BL&&(L=Math.floor(z.y)),P=Math.floor(z.x+m.DEFAULT_COMPONENT_SEPERATION)}this.transform(new E(b.WORLD_CENTER_X-z.x/2,b.WORLD_CENTER_Y-z.y/2))},$.radialLayout=function(A,I,D){var L=Math.max(this.maxDiagonalInTree(A),m.DEFAULT_RADIAL_SEPARATION);$.branchRadialLayout(I,null,0,359,0,L);var R=N.calculateBounds(A),P=new O;P.setDeviceOrgX(R.getMinX()),P.setDeviceOrgY(R.getMinY()),P.setWorldOrgX(D.x),P.setWorldOrgY(D.y);for(var z=0;z1;){var ae=ce[0];ce.splice(0,1);var se=H.indexOf(ae);se>=0&&H.splice(se,1),pe--,J--}I!=null?re=(H.indexOf(ce[0])+1)%pe:re=0;for(var xe=Math.abs(L-D)/J,Te=re;Z!=J;Te=++Te%pe){var Ge=H[Te].getOtherEnd(A);if(Ge!=I){var ze=(D+Z*xe)%360,Xe=(ze+xe)%360;$.branchRadialLayout(Ge,A,ze,Xe,R+P,P),Z++}}},$.maxDiagonalInTree=function(A){for(var I=T.MIN_VALUE,D=0;DI&&(I=R)}return I},$.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},$.prototype.groupZeroDegreeMembers=function(){var A=this,I={};this.memberGroups={},this.idToDummyNode={};for(var D=[],L=this.graphManager.getAllNodes(),R=0;R"u"&&(I[B]=[]),I[B]=I[B].concat(P)}Object.keys(I).forEach(function(q){if(I[q].length>1){var Y="DummyCompound_"+q;A.memberGroups[Y]=I[q];var Q=I[q][0].getParent(),H=new p(A.graphManager);H.id=Y,H.paddingLeft=Q.paddingLeft||0,H.paddingRight=Q.paddingRight||0,H.paddingBottom=Q.paddingBottom||0,H.paddingTop=Q.paddingTop||0,A.idToDummyNode[Y]=H;var J=A.getGraphManager().add(A.newGraph(),H),Z=Q.getChild();Z.add(H);for(var pe=0;peR?(L.rect.x-=(L.labelWidth-R)/2,L.setWidth(L.labelWidth),L.labelMarginLeft=(L.labelWidth-R)/2):L.labelPosHorizontal=="right"&&L.setWidth(R+L.labelWidth)),L.labelHeight&&(L.labelPosVertical=="top"?(L.rect.y-=L.labelHeight,L.setHeight(P+L.labelHeight),L.labelMarginTop=L.labelHeight):L.labelPosVertical=="center"&&L.labelHeight>P?(L.rect.y-=(L.labelHeight-P)/2,L.setHeight(L.labelHeight),L.labelMarginTop=(L.labelHeight-P)/2):L.labelPosVertical=="bottom"&&L.setHeight(P+L.labelHeight))}})},$.prototype.repopulateCompounds=function(){for(var A=this.compoundOrder.length-1;A>=0;A--){var I=this.compoundOrder[A],D=I.id,L=I.paddingLeft,R=I.paddingTop,P=I.labelMarginLeft,z=I.labelMarginTop;this.adjustLocations(this.tiledMemberPack[D],I.rect.x,I.rect.y,L,R,P,z)}},$.prototype.repopulateZeroDegreeMembers=function(){var A=this,I=this.tiledZeroDegreePack;Object.keys(I).forEach(function(D){var L=A.idToDummyNode[D],R=L.paddingLeft,P=L.paddingTop,z=L.labelMarginLeft,B=L.labelMarginTop;A.adjustLocations(I[D],L.rect.x,L.rect.y,R,P,z,B)})},$.prototype.getToBeTiled=function(A){var I=A.id;if(this.toBeTiled[I]!=null)return this.toBeTiled[I];var D=A.getChild();if(D==null)return this.toBeTiled[I]=!1,!1;for(var L=D.getNodes(),R=0;R0)return this.toBeTiled[I]=!1,!1;if(P.getChild()==null){this.toBeTiled[P.id]=!1;continue}if(!this.getToBeTiled(P))return this.toBeTiled[I]=!1,!1}return this.toBeTiled[I]=!0,!0},$.prototype.getNodeDegree=function(A){A.id;for(var I=A.getEdges(),D=0,L=0;LQ&&(Q=J.rect.height)}D+=Q+A.verticalPadding}},$.prototype.tileCompoundMembers=function(A,I){var D=this;this.tiledMemberPack=[],Object.keys(A).forEach(function(L){var R=I[L];if(D.tiledMemberPack[L]=D.tileNodes(A[L],R.paddingLeft+R.paddingRight),R.rect.width=D.tiledMemberPack[L].width,R.rect.height=D.tiledMemberPack[L].height,R.setCenter(D.tiledMemberPack[L].centerX,D.tiledMemberPack[L].centerY),R.labelMarginLeft=0,R.labelMarginTop=0,m.NODE_DIMENSIONS_INCLUDE_LABELS){var P=R.rect.width,z=R.rect.height;R.labelWidth&&(R.labelPosHorizontal=="left"?(R.rect.x-=R.labelWidth,R.setWidth(P+R.labelWidth),R.labelMarginLeft=R.labelWidth):R.labelPosHorizontal=="center"&&R.labelWidth>P?(R.rect.x-=(R.labelWidth-P)/2,R.setWidth(R.labelWidth),R.labelMarginLeft=(R.labelWidth-P)/2):R.labelPosHorizontal=="right"&&R.setWidth(P+R.labelWidth)),R.labelHeight&&(R.labelPosVertical=="top"?(R.rect.y-=R.labelHeight,R.setHeight(z+R.labelHeight),R.labelMarginTop=R.labelHeight):R.labelPosVertical=="center"&&R.labelHeight>z?(R.rect.y-=(R.labelHeight-z)/2,R.setHeight(R.labelHeight),R.labelMarginTop=(R.labelHeight-z)/2):R.labelPosVertical=="bottom"&&R.setHeight(z+R.labelHeight))}})},$.prototype.tileNodes=function(A,I){var D=this.tileNodesByFavoringDim(A,I,!0),L=this.tileNodesByFavoringDim(A,I,!1),R=this.getOrgRatio(D),P=this.getOrgRatio(L),z;return PB&&(B=pe.getWidth())});var q=P/R,Y=z/R,Q=Math.pow(D-L,2)+4*(q+L)*(Y+D)*R,H=(L-D+Math.sqrt(Q))/(2*(q+L)),J;I?(J=Math.ceil(H),J==H&&J++):J=Math.floor(H);var Z=J*(q+L)-L;return B>Z&&(Z=B),Z+=L*2,Z},$.prototype.tileNodesByFavoringDim=function(A,I,D){var L=m.TILING_PADDING_VERTICAL,R=m.TILING_PADDING_HORIZONTAL,P=m.TILING_COMPARE_BY,z={rows:[],rowWidth:[],rowHeight:[],width:0,height:I,verticalPadding:L,horizontalPadding:R,centerX:0,centerY:0};P&&(z.idealRowWidth=this.calcIdealRowWidth(A,D));var B=function(re){return re.rect.width*re.rect.height},q=function(re,ce){return B(ce)-B(re)};A.sort(function(pe,re){var ce=q;return z.idealRowWidth?(ce=P,ce(pe.id,re.id)):ce(pe,re)});for(var Y=0,Q=0,H=0;H0&&(z+=A.horizontalPadding),A.rowWidth[D]=z,A.width0&&(B+=A.verticalPadding);var q=0;B>A.rowHeight[D]&&(q=A.rowHeight[D],A.rowHeight[D]=B,q=A.rowHeight[D]-q),A.height+=q,A.rows[D].push(I)},$.prototype.getShortestRowIndex=function(A){for(var I=-1,D=Number.MAX_VALUE,L=0;LD&&(I=L,D=A.rowWidth[L]);return I},$.prototype.canAddHorizontal=function(A,I,D){if(A.idealRowWidth){var L=A.rows.length-1,R=A.rowWidth[L];return R+I+A.horizontalPadding<=A.idealRowWidth}var P=this.getShortestRowIndex(A);if(P<0)return!0;var z=A.rowWidth[P];if(z+A.horizontalPadding+I<=A.width)return!0;var B=0;A.rowHeight[P]0&&(B=D+A.verticalPadding-A.rowHeight[P]);var q;A.width-z>=I+A.horizontalPadding?q=(A.height+B)/(z+I+A.horizontalPadding):q=(A.height+B)/A.width,B=D+A.verticalPadding;var Y;return A.widthP&&I!=D){L.splice(-1,1),A.rows[D].push(R),A.rowWidth[I]=A.rowWidth[I]-P,A.rowWidth[D]=A.rowWidth[D]+P,A.width=A.rowWidth[instance.getLongestRowIndex(A)];for(var z=Number.MIN_VALUE,B=0;Bz&&(z=L[B].height);I>0&&(z+=A.verticalPadding);var q=A.rowHeight[I]+A.rowHeight[D];A.rowHeight[I]=z,A.rowHeight[D]0)for(var Z=R;Z<=P;Z++)J[0]+=this.grid[Z][z-1].length+this.grid[Z][z].length-1;if(P0)for(var Z=z;Z<=B;Z++)J[3]+=this.grid[R-1][Z].length+this.grid[R][Z].length-1;for(var pe=T.MAX_VALUE,re,ce,ae=0;ae{var d=u(551).FDLayoutNode,h=u(551).IMath;function f(g,m,y,v){d.call(this,g,m,y,v)}f.prototype=Object.create(d.prototype);for(var p in d)f[p]=d[p];f.prototype.calculateDisplacement=function(){var g=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=g.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=g.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=g.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=g.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*h.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*h.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},f.prototype.propogateDisplacementToChildren=function(g,m){for(var y=this.getChild().getNodes(),v,b=0;b{function d(y){if(Array.isArray(y)){for(var v=0,b=Array(y.length);v0){var gt=0;ve.forEach(function(et){ie=="horizontal"?(Ce.set(et,_.has(et)?E[_.get(et)]:V.get(et)),gt+=Ce.get(et)):(Ce.set(et,_.has(et)?x[_.get(et)]:V.get(et)),gt+=Ce.get(et))}),gt=gt/ve.length,Be.forEach(function(et){j.has(et)||Ce.set(et,gt)})}else{var Et=0;Be.forEach(function(et){ie=="horizontal"?Et+=_.has(et)?E[_.get(et)]:V.get(et):Et+=_.has(et)?x[_.get(et)]:V.get(et)}),Et=Et/Be.length,Be.forEach(function(et){Ce.set(et,Et)})}});for(var Ie=function(){var ve=Me.shift(),gt=G.get(ve);gt.forEach(function(Et){if(Ce.get(Et.id)et&&(et=Nt),Hrdt&&(dt=Hr)}}catch(Ye){mt=!0,fe=Ye}finally{try{!ft&&It.return&&It.return()}finally{if(mt)throw fe}}var Pe=(gt+et)/2-(Et+dt)/2,yt=!0,bt=!1,Ot=void 0;try{for(var Qt=Be[Symbol.iterator](),br;!(yt=(br=Qt.next()).done);yt=!0){var Ct=br.value;Ce.set(Ct,Ce.get(Ct)+Pe)}}catch(Ye){bt=!0,Ot=Ye}finally{try{!yt&&Qt.return&&Qt.return()}finally{if(bt)throw Ot}}})}return Ce},F=function(G){var ie=0,j=0,V=0,ue=0;if(G.forEach(function(ye){ye.left?E[_.get(ye.left)]-E[_.get(ye.right)]>=0?ie++:j++:x[_.get(ye.top)]-x[_.get(ye.bottom)]>=0?V++:ue++}),ie>j&&V>ue)for(var Fe=0;Fe<_.size;Fe++)E[Fe]=-1*E[Fe],x[Fe]=-1*x[Fe];else if(ie>j)for(var me=0;me<_.size;me++)E[me]=-1*E[me];else if(V>ue)for(var Ce=0;Ce<_.size;Ce++)x[Ce]=-1*x[Ce]},A=function(G){var ie=[],j=new f,V=new Set,ue=0;return G.forEach(function(Fe,me){if(!V.has(me)){ie[ue]=[];var Ce=me;for(j.push(Ce),V.add(Ce),ie[ue].push(Ce);j.length!=0;){Ce=j.shift();var ye=G.get(Ce);ye.forEach(function(Me){V.has(Me.id)||(j.push(Me.id),V.add(Me.id),ie[ue].push(Me.id))})}ue++}}),ie},I=function(G){var ie=new Map;return G.forEach(function(j,V){ie.set(V,[])}),G.forEach(function(j,V){j.forEach(function(ue){ie.get(V).push(ue),ie.get(ue.id).push({id:V,gap:ue.gap,direction:ue.direction})})}),ie},D=function(G){var ie=new Map;return G.forEach(function(j,V){ie.set(V,[])}),G.forEach(function(j,V){j.forEach(function(ue){ie.get(ue.id).push({id:V,gap:ue.gap,direction:ue.direction})})}),ie},L=[],R=[],P=!1,z=!1,B=new Set,q=new Map,Y=new Map,Q=[];if(v.fixedNodeConstraint&&v.fixedNodeConstraint.forEach(function(de){B.add(de.nodeId)}),v.relativePlacementConstraint&&(v.relativePlacementConstraint.forEach(function(de){de.left?(q.has(de.left)?q.get(de.left).push({id:de.right,gap:de.gap,direction:"horizontal"}):q.set(de.left,[{id:de.right,gap:de.gap,direction:"horizontal"}]),q.has(de.right)||q.set(de.right,[])):(q.has(de.top)?q.get(de.top).push({id:de.bottom,gap:de.gap,direction:"vertical"}):q.set(de.top,[{id:de.bottom,gap:de.gap,direction:"vertical"}]),q.has(de.bottom)||q.set(de.bottom,[]))}),Y=I(q),Q=A(Y)),h.TRANSFORM_ON_CONSTRAINT_HANDLING){if(v.fixedNodeConstraint&&v.fixedNodeConstraint.length>1)v.fixedNodeConstraint.forEach(function(de,G){L[G]=[de.position.x,de.position.y],R[G]=[E[_.get(de.nodeId)],x[_.get(de.nodeId)]]}),P=!0;else if(v.alignmentConstraint)(function(){var de=0;if(v.alignmentConstraint.vertical){for(var G=v.alignmentConstraint.vertical,ie=function(Ce){var ye=new Set;G[Ce].forEach(function(he){ye.add(he)});var Me=new Set([].concat(d(ye)).filter(function(he){return B.has(he)})),Ie=void 0;Me.size>0?Ie=E[_.get(Me.values().next().value)]:Ie=M(ye).x,G[Ce].forEach(function(he){L[de]=[Ie,x[_.get(he)]],R[de]=[E[_.get(he)],x[_.get(he)]],de++})},j=0;j0?Ie=E[_.get(Me.values().next().value)]:Ie=M(ye).y,V[Ce].forEach(function(he){L[de]=[E[_.get(he)],Ie],R[de]=[E[_.get(he)],x[_.get(he)]],de++})},Fe=0;FeH&&(H=Q[Z].length,J=Z);if(H0){var De={x:0,y:0};v.fixedNodeConstraint.forEach(function(de,G){var ie={x:E[_.get(de.nodeId)],y:x[_.get(de.nodeId)]},j=de.position,V=O(j,ie);De.x+=V.x,De.y+=V.y}),De.x/=v.fixedNodeConstraint.length,De.y/=v.fixedNodeConstraint.length,E.forEach(function(de,G){E[G]+=De.x}),x.forEach(function(de,G){x[G]+=De.y}),v.fixedNodeConstraint.forEach(function(de){E[_.get(de.nodeId)]=de.position.x,x[_.get(de.nodeId)]=de.position.y})}if(v.alignmentConstraint){if(v.alignmentConstraint.vertical)for(var Je=v.alignmentConstraint.vertical,st=function(G){var ie=new Set;Je[G].forEach(function(ue){ie.add(ue)});var j=new Set([].concat(d(ie)).filter(function(ue){return B.has(ue)})),V=void 0;j.size>0?V=E[_.get(j.values().next().value)]:V=M(ie).x,ie.forEach(function(ue){B.has(ue)||(E[_.get(ue)]=V)})},ct=0;ct0?V=x[_.get(j.values().next().value)]:V=M(ie).y,ie.forEach(function(ue){B.has(ue)||(x[_.get(ue)]=V)})},Oe=0;Oe{o.exports=r})},i={};function a(o){var l=i[o];if(l!==void 0)return l.exports;var u=i[o]={exports:{}};return n[o](u,u.exports,a),u.exports}var s=a(45);return s})()})})(iC)),iC.exports}var DLt=nC.exports,xle;function LLt(){return xle||(xle=1,(function(t,e){(function(n,i){t.exports=i(OLt())})(DLt,function(r){return(()=>{var n={658:(o=>{o.exports=Object.assign!=null?Object.assign.bind(Object):function(l){for(var u=arguments.length,d=Array(u>1?u-1:0),h=1;h{var d=(function(){function p(g,m){var y=[],v=!0,b=!1,_=void 0;try{for(var E=g[Symbol.iterator](),x;!(v=(x=E.next()).done)&&(y.push(x.value),!(m&&y.length===m));v=!0);}catch(C){b=!0,_=C}finally{try{!v&&E.return&&E.return()}finally{if(b)throw _}}return y}return function(g,m){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return p(g,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),h=u(140).layoutBase.LinkedList,f={};f.getTopMostNodes=function(p){for(var g={},m=0;m0&&P.merge(Y)});for(var z=0;z1){x=_[0],C=x.connectedEdges().length,_.forEach(function(R){R.connectedEdges().length0&&y.set("dummy"+(y.size+1),N),O},f.relocateComponent=function(p,g,m){if(!m.fixedNodeConstraint){var y=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY,b=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY;if(m.quality=="draft"){var E=!0,x=!1,C=void 0;try{for(var T=g.nodeIndexes[Symbol.iterator](),w;!(E=(w=T.next()).done);E=!0){var N=w.value,O=d(N,2),M=O[0],$=O[1],F=m.cy.getElementById(M);if(F){var A=F.boundingBox(),I=g.xCoords[$]-A.w/2,D=g.xCoords[$]+A.w/2,L=g.yCoords[$]-A.h/2,R=g.yCoords[$]+A.h/2;Iv&&(v=D),L_&&(_=R)}}}catch(Y){x=!0,C=Y}finally{try{!E&&T.return&&T.return()}finally{if(x)throw C}}var P=p.x-(v+y)/2,z=p.y-(_+b)/2;g.xCoords=g.xCoords.map(function(Y){return Y+P}),g.yCoords=g.yCoords.map(function(Y){return Y+z})}else{Object.keys(g).forEach(function(Y){var Q=g[Y],H=Q.getRect().x,J=Q.getRect().x+Q.getRect().width,Z=Q.getRect().y,pe=Q.getRect().y+Q.getRect().height;Hv&&(v=J),Z_&&(_=pe)});var B=p.x-(v+y)/2,q=p.y-(_+b)/2;Object.keys(g).forEach(function(Y){var Q=g[Y];Q.setCenter(Q.getCenterX()+B,Q.getCenterY()+q)})}}},f.calcBoundingBox=function(p,g,m,y){for(var v=Number.MAX_SAFE_INTEGER,b=Number.MIN_SAFE_INTEGER,_=Number.MAX_SAFE_INTEGER,E=Number.MIN_SAFE_INTEGER,x=void 0,C=void 0,T=void 0,w=void 0,N=p.descendants().not(":parent"),O=N.length,M=0;Mx&&(v=x),bT&&(_=T),E{var d=u(548),h=u(140).CoSELayout,f=u(140).CoSENode,p=u(140).layoutBase.PointD,g=u(140).layoutBase.DimensionD,m=u(140).layoutBase.LayoutConstants,y=u(140).layoutBase.FDLayoutConstants,v=u(140).CoSEConstants,b=function(E,x){var C=E.cy,T=E.eles,w=T.nodes(),N=T.edges(),O=void 0,M=void 0,$=void 0,F={};E.randomize&&(O=x.nodeIndexes,M=x.xCoords,$=x.yCoords);var A=function(Y){return typeof Y=="function"},I=function(Y,Q){return A(Y)?Y(Q):Y},D=d.calcParentsWithoutChildren(C,T),L=function q(Y,Q,H,J){for(var Z=Q.length,pe=0;pe0){var Te=void 0;Te=H.getGraphManager().add(H.newGraph(),ae),q(Te,ce,H,J)}}},R=function(Y,Q,H){for(var J=0,Z=0,pe=0;pe0?v.DEFAULT_EDGE_LENGTH=y.DEFAULT_EDGE_LENGTH=J/Z:A(E.idealEdgeLength)?v.DEFAULT_EDGE_LENGTH=y.DEFAULT_EDGE_LENGTH=50:v.DEFAULT_EDGE_LENGTH=y.DEFAULT_EDGE_LENGTH=E.idealEdgeLength,v.MIN_REPULSION_DIST=y.MIN_REPULSION_DIST=y.DEFAULT_EDGE_LENGTH/10,v.DEFAULT_RADIAL_SEPARATION=y.DEFAULT_EDGE_LENGTH)},P=function(Y,Q){Q.fixedNodeConstraint&&(Y.constraints.fixedNodeConstraint=Q.fixedNodeConstraint),Q.alignmentConstraint&&(Y.constraints.alignmentConstraint=Q.alignmentConstraint),Q.relativePlacementConstraint&&(Y.constraints.relativePlacementConstraint=Q.relativePlacementConstraint)};E.nestingFactor!=null&&(v.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=y.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=E.nestingFactor),E.gravity!=null&&(v.DEFAULT_GRAVITY_STRENGTH=y.DEFAULT_GRAVITY_STRENGTH=E.gravity),E.numIter!=null&&(v.MAX_ITERATIONS=y.MAX_ITERATIONS=E.numIter),E.gravityRange!=null&&(v.DEFAULT_GRAVITY_RANGE_FACTOR=y.DEFAULT_GRAVITY_RANGE_FACTOR=E.gravityRange),E.gravityCompound!=null&&(v.DEFAULT_COMPOUND_GRAVITY_STRENGTH=y.DEFAULT_COMPOUND_GRAVITY_STRENGTH=E.gravityCompound),E.gravityRangeCompound!=null&&(v.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=y.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=E.gravityRangeCompound),E.initialEnergyOnIncremental!=null&&(v.DEFAULT_COOLING_FACTOR_INCREMENTAL=y.DEFAULT_COOLING_FACTOR_INCREMENTAL=E.initialEnergyOnIncremental),E.tilingCompareBy!=null&&(v.TILING_COMPARE_BY=E.tilingCompareBy),E.quality=="proof"?m.QUALITY=2:m.QUALITY=0,v.NODE_DIMENSIONS_INCLUDE_LABELS=y.NODE_DIMENSIONS_INCLUDE_LABELS=m.NODE_DIMENSIONS_INCLUDE_LABELS=E.nodeDimensionsIncludeLabels,v.DEFAULT_INCREMENTAL=y.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!E.randomize,v.ANIMATE=y.ANIMATE=m.ANIMATE=E.animate,v.TILE=E.tile,v.TILING_PADDING_VERTICAL=typeof E.tilingPaddingVertical=="function"?E.tilingPaddingVertical.call():E.tilingPaddingVertical,v.TILING_PADDING_HORIZONTAL=typeof E.tilingPaddingHorizontal=="function"?E.tilingPaddingHorizontal.call():E.tilingPaddingHorizontal,v.DEFAULT_INCREMENTAL=y.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!0,v.PURE_INCREMENTAL=!E.randomize,m.DEFAULT_UNIFORM_LEAF_NODE_SIZES=E.uniformNodeDimensions,E.step=="transformed"&&(v.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,v.ENFORCE_CONSTRAINTS=!1,v.APPLY_LAYOUT=!1),E.step=="enforced"&&(v.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,v.ENFORCE_CONSTRAINTS=!0,v.APPLY_LAYOUT=!1),E.step=="cose"&&(v.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,v.ENFORCE_CONSTRAINTS=!1,v.APPLY_LAYOUT=!0),E.step=="all"&&(E.randomize?v.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:v.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,v.ENFORCE_CONSTRAINTS=!0,v.APPLY_LAYOUT=!0),E.fixedNodeConstraint||E.alignmentConstraint||E.relativePlacementConstraint?v.TREE_REDUCTION_ON_INCREMENTAL=!1:v.TREE_REDUCTION_ON_INCREMENTAL=!0;var z=new h,B=z.newGraphManager();return L(B.addRoot(),d.getTopMostNodes(w),z,E),R(z,B,N),P(z,E),z.runLayout(),F};o.exports={coseLayout:b}}),212:((o,l,u)=>{var d=(function(){function E(x,C){for(var T=0;T0)if(D){var P=p.getTopMostNodes(T.eles.nodes());if($=p.connectComponents(w,T.eles,P),$.forEach(function(Xe){var Le=Xe.boundingBox();F.push({x:Le.x1+Le.w/2,y:Le.y1+Le.h/2})}),T.randomize&&$.forEach(function(Xe){T.eles=Xe,O.push(m(T))}),T.quality=="default"||T.quality=="proof"){var z=w.collection();if(T.tile){var B=new Map,q=[],Y=[],Q=0,H={nodeIndexes:B,xCoords:q,yCoords:Y},J=[];if($.forEach(function(Xe,Le){Xe.edges().length==0&&(Xe.nodes().forEach(function(Re,qe){z.merge(Xe.nodes()[qe]),Re.isParent()||(H.nodeIndexes.set(Xe.nodes()[qe].id(),Q++),H.xCoords.push(Xe.nodes()[0].position().x),H.yCoords.push(Xe.nodes()[0].position().y))}),J.push(Le))}),z.length>1){var Z=z.boundingBox();F.push({x:Z.x1+Z.w/2,y:Z.y1+Z.h/2}),$.push(z),O.push(H);for(var pe=J.length-1;pe>=0;pe--)$.splice(J[pe],1),O.splice(J[pe],1),F.splice(J[pe],1)}}$.forEach(function(Xe,Le){T.eles=Xe,M.push(v(T,O[Le])),p.relocateComponent(F[Le],M[Le],T)})}else $.forEach(function(Xe,Le){p.relocateComponent(F[Le],O[Le],T)});var re=new Set;if($.length>1){var ce=[],ae=N.filter(function(Xe){return Xe.css("display")=="none"});$.forEach(function(Xe,Le){var Re=void 0;if(T.quality=="draft"&&(Re=O[Le].nodeIndexes),Xe.nodes().not(ae).length>0){var qe={};qe.edges=[],qe.nodes=[];var Ne=void 0;Xe.nodes().not(ae).forEach(function(ut){if(T.quality=="draft")if(!ut.isParent())Ne=Re.get(ut.id()),qe.nodes.push({x:O[Le].xCoords[Ne]-ut.boundingbox().w/2,y:O[Le].yCoords[Ne]-ut.boundingbox().h/2,width:ut.boundingbox().w,height:ut.boundingbox().h});else{var De=p.calcBoundingBox(ut,O[Le].xCoords,O[Le].yCoords,Re);qe.nodes.push({x:De.topLeftX,y:De.topLeftY,width:De.width,height:De.height})}else M[Le][ut.id()]&&qe.nodes.push({x:M[Le][ut.id()].getLeft(),y:M[Le][ut.id()].getTop(),width:M[Le][ut.id()].getWidth(),height:M[Le][ut.id()].getHeight()})}),Xe.edges().forEach(function(ut){var De=ut.source(),Je=ut.target();if(De.css("display")!="none"&&Je.css("display")!="none")if(T.quality=="draft"){var st=Re.get(De.id()),ct=Re.get(Je.id()),ot=[],it=[];if(De.isParent()){var Oe=p.calcBoundingBox(De,O[Le].xCoords,O[Le].yCoords,Re);ot.push(Oe.topLeftX+Oe.width/2),ot.push(Oe.topLeftY+Oe.height/2)}else ot.push(O[Le].xCoords[st]),ot.push(O[Le].yCoords[st]);if(Je.isParent()){var U=p.calcBoundingBox(Je,O[Le].xCoords,O[Le].yCoords,Re);it.push(U.topLeftX+U.width/2),it.push(U.topLeftY+U.height/2)}else it.push(O[Le].xCoords[ct]),it.push(O[Le].yCoords[ct]);qe.edges.push({startX:ot[0],startY:ot[1],endX:it[0],endY:it[1]})}else M[Le][De.id()]&&M[Le][Je.id()]&&qe.edges.push({startX:M[Le][De.id()].getCenterX(),startY:M[Le][De.id()].getCenterY(),endX:M[Le][Je.id()].getCenterX(),endY:M[Le][Je.id()].getCenterY()})}),qe.nodes.length>0&&(ce.push(qe),re.add(Le))}});var se=I.packComponents(ce,T.randomize).shifts;if(T.quality=="draft")O.forEach(function(Xe,Le){var Re=Xe.xCoords.map(function(Ne){return Ne+se[Le].dx}),qe=Xe.yCoords.map(function(Ne){return Ne+se[Le].dy});Xe.xCoords=Re,Xe.yCoords=qe});else{var xe=0;re.forEach(function(Xe){Object.keys(M[Xe]).forEach(function(Le){var Re=M[Xe][Le];Re.setCenter(Re.getCenterX()+se[xe].dx,Re.getCenterY()+se[xe].dy)}),xe++})}}}else{var L=T.eles.boundingBox();if(F.push({x:L.x1+L.w/2,y:L.y1+L.h/2}),T.randomize){var R=m(T);O.push(R)}T.quality=="default"||T.quality=="proof"?(M.push(v(T,O[0])),p.relocateComponent(F[0],M[0],T)):p.relocateComponent(F[0],O[0],T)}var Te=function(Le,Re){if(T.quality=="default"||T.quality=="proof"){typeof Le=="number"&&(Le=Re);var qe=void 0,Ne=void 0,ut=Le.data("id");return M.forEach(function(Je){ut in Je&&(qe={x:Je[ut].getRect().getCenterX(),y:Je[ut].getRect().getCenterY()},Ne=Je[ut])}),T.nodeDimensionsIncludeLabels&&(Ne.labelWidth&&(Ne.labelPosHorizontal=="left"?qe.x+=Ne.labelWidth/2:Ne.labelPosHorizontal=="right"&&(qe.x-=Ne.labelWidth/2)),Ne.labelHeight&&(Ne.labelPosVertical=="top"?qe.y+=Ne.labelHeight/2:Ne.labelPosVertical=="bottom"&&(qe.y-=Ne.labelHeight/2))),qe==null&&(qe={x:Le.position("x"),y:Le.position("y")}),{x:qe.x,y:qe.y}}else{var De=void 0;return O.forEach(function(Je){var st=Je.nodeIndexes.get(Le.id());st!=null&&(De={x:Je.xCoords[st],y:Je.yCoords[st]})}),De==null&&(De={x:Le.position("x"),y:Le.position("y")}),{x:De.x,y:De.y}}};if(T.quality=="default"||T.quality=="proof"||T.randomize){var Ge=p.calcParentsWithoutChildren(w,N),ze=N.filter(function(Xe){return Xe.css("display")=="none"});T.eles=N.not(ze),N.nodes().not(":parent").not(ze).layoutPositions(C,T,Te),Ge.length>0&&Ge.forEach(function(Xe){Xe.position(Te(Xe))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),E})();o.exports=_}),657:((o,l,u)=>{var d=u(548),h=u(140).layoutBase.Matrix,f=u(140).layoutBase.SVD,p=function(m){var y=m.cy,v=m.eles,b=v.nodes(),_=v.nodes(":parent"),E=new Map,x=new Map,C=new Map,T=[],w=[],N=[],O=[],M=[],$=[],F=[],A=[],I=void 0,D=1e8,L=1e-9,R=m.piTol,P=m.samplingType,z=m.nodeSeparation,B=void 0,q=function(){for(var G=0,ie=0,j=!1;ie=ue;){me=V[ue++];for(var le=T[me],Be=0;BeMe&&(Me=M[gt],Ie=gt)}return Ie},Q=function(G){var ie=void 0;if(G){ie=Math.floor(Math.random()*I);for(var V=0;V=1)break;ye=Ce}for(var he=0;he=1)break;ye=Ce}for(var Be=0;Be0&&(ie.isParent()?T[G].push(C.get(ie.id())):T[G].push(ie.id()))})});var ze=function(G){var ie=x.get(G),j=void 0;E.get(G).forEach(function(V){y.getElementById(V).isParent()?j=C.get(V):j=V,T[ie].push(j),T[x.get(j)].push(G)})},Xe=!0,Le=!1,Re=void 0;try{for(var qe=E.keys()[Symbol.iterator](),Ne;!(Xe=(Ne=qe.next()).done);Xe=!0){var ut=Ne.value;ze(ut)}}catch(de){Le=!0,Re=de}finally{try{!Xe&&qe.return&&qe.return()}finally{if(Le)throw Re}}I=x.size;var De=void 0;if(I>2){B=I{var d=u(212),h=function(p){p&&p("layout","fcose",d)};typeof cytoscape<"u"&&h(cytoscape),o.exports=h}),140:(o=>{o.exports=r})},i={};function a(o){var l=i[o];if(l!==void 0)return l.exports;var u=i[o]={exports:{}};return n[o](u,u.exports,a),u.exports}var s=a(579);return s})()})})(nC)),nC.exports}var MLt=LLt();const PLt=Ml(MLt);var Cle={L:"left",R:"right",T:"top",B:"bottom"},wle={L:S(t=>`${t},${t/2} 0,${t} 0,0`,"L"),R:S(t=>`0,${t/2} ${t},0 ${t},${t}`,"R"),T:S(t=>`0,0 ${t},0 ${t/2},${t}`,"T"),B:S(t=>`${t/2},0 ${t},${t} 0,${t}`,"B")},M3={L:S((t,e)=>t-e+2,"L"),R:S((t,e)=>t-2,"R"),T:S((t,e)=>t-e+2,"T"),B:S((t,e)=>t-2,"B")},BLt=S(function(t){return Is(t)?t==="L"?"R":"L":t==="T"?"B":"T"},"getOppositeArchitectureDirection"),kle=S(function(t){const e=t;return e==="L"||e==="R"||e==="T"||e==="B"},"isArchitectureDirection"),Is=S(function(t){const e=t;return e==="L"||e==="R"},"isArchitectureDirectionX"),Ah=S(function(t){const e=t;return e==="T"||e==="B"},"isArchitectureDirectionY"),MW=S(function(t,e){const r=Is(t)&&Ah(e),n=Ah(t)&&Is(e);return r||n},"isArchitectureDirectionXY"),FLt=S(function(t){const e=t[0],r=t[1],n=Is(e)&&Ah(r),i=Ah(e)&&Is(r);return n||i},"isArchitecturePairXY"),$Lt=S(function(t){return t!=="LL"&&t!=="RR"&&t!=="TT"&&t!=="BB"},"isValidArchitectureDirectionPair"),bz=S(function(t,e){const r=`${t}${e}`;return $Lt(r)?r:void 0},"getArchitectureDirectionPair"),zLt=S(function([t,e],r){const n=r[0],i=r[1];return Is(n)?Ah(i)?[t+(n==="L"?-1:1),e+(i==="T"?1:-1)]:[t+(n==="L"?-1:1),e]:Is(i)?[t+(i==="L"?1:-1),e+(n==="T"?1:-1)]:[t,e+(n==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),ULt=S(function(t){return t==="LT"||t==="TL"?[1,1]:t==="BL"||t==="LB"?[1,-1]:t==="BR"||t==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),GLt=S(function(t,e){return MW(t,e)?"bend":Is(t)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),qLt=S(function(t){return t.type==="service"},"isArchitectureService"),YLt=S(function(t){return t.type==="junction"},"isArchitectureJunction"),k8e=S(t=>t.data(),"edgeData"),$m=S(t=>t.data(),"nodeData"),HLt=on.architecture,O_,A8e=(O_=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.diagramId="",this.setAccTitle=ai,this.getAccTitle=yi,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.getAccDescription=_i,this.setAccDescription=vi,this.clear()}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},this.diagramId="",oi()}addService({id:e,icon:r,in:n,title:i,iconText:a}){if(this.registeredIds[e]!==void 0)throw new Error(`The service id [${e}] is already in use by another ${this.registeredIds[e]}`);if(n!==void 0){if(e===n)throw new Error(`The service [${e}] cannot be placed within itself`);if(this.registeredIds[n]===void 0)throw new Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[n]==="node")throw new Error(`The service [${e}]'s parent is not a group`)}this.registeredIds[e]="node",this.nodes[e]={id:e,type:"service",icon:r,iconText:a,title:i,edges:[],in:n}}getServices(){return Object.values(this.nodes).filter(qLt)}addJunction({id:e,in:r}){if(this.registeredIds[e]!==void 0)throw new Error(`The junction id [${e}] is already in use by another ${this.registeredIds[e]}`);if(r!==void 0){if(e===r)throw new Error(`The junction [${e}] cannot be placed within itself`);if(this.registeredIds[r]===void 0)throw new Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds[r]==="node")throw new Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds[e]="node",this.nodes[e]={id:e,type:"junction",edges:[],in:r}}getJunctions(){return Object.values(this.nodes).filter(YLt)}getNodes(){return Object.values(this.nodes)}getNode(e){return this.nodes[e]??null}addGroup({id:e,icon:r,in:n,title:i}){if(this.registeredIds?.[e]!==void 0)throw new Error(`The group id [${e}] is already in use by another ${this.registeredIds[e]}`);if(n!==void 0){if(e===n)throw new Error(`The group [${e}] cannot be placed within itself`);if(this.registeredIds?.[n]===void 0)throw new Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds?.[n]==="node")throw new Error(`The group [${e}]'s parent is not a group`)}this.registeredIds[e]="group",this.groups[e]={id:e,icon:r,title:i,in:n}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:e,rhsId:r,lhsDir:n,rhsDir:i,lhsInto:a,rhsInto:s,lhsGroup:o,rhsGroup:l,title:u}){if(!kle(n))throw new Error(`Invalid direction given for left hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(n)}`);if(!kle(i))throw new Error(`Invalid direction given for right hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(i)}`);if(this.nodes[e]===void 0&&this.groups[e]===void 0)throw new Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[r]===void 0&&this.groups[r]===void 0)throw new Error(`The right-hand id [${r}] does not yet exist. Please create the service/group before declaring an edge to it.`);const d=this.nodes[e].in,h=this.nodes[r].in;if(o&&d&&h&&d==h)throw new Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(l&&d&&h&&d==h)throw new Error(`The right-hand id [${r}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const f={lhsId:e,lhsDir:n,lhsInto:a,lhsGroup:o,rhsId:r,rhsDir:i,rhsInto:s,rhsGroup:l,title:u};this.edges.push(f),this.nodes[e]&&this.nodes[r]&&(this.nodes[e].edges.push(this.edges[this.edges.length-1]),this.nodes[r].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){const e={},r=Object.entries(this.nodes).reduce((l,[u,d])=>(l[u]=d.edges.reduce((h,f)=>{const p=this.getNode(f.lhsId)?.in,g=this.getNode(f.rhsId)?.in;if(p&&g&&p!==g){const m=GLt(f.lhsDir,f.rhsDir);m!=="bend"&&(e[p]??={},e[p][g]=m,e[g]??={},e[g][p]=m)}if(f.lhsId===u){const m=bz(f.lhsDir,f.rhsDir);m&&(h[m]=f.rhsId)}else{const m=bz(f.rhsDir,f.lhsDir);m&&(h[m]=f.lhsId)}return h},{}),l),{}),n=Object.keys(r)[0],i={[n]:1},a=Object.keys(r).reduce((l,u)=>u===n?l:{...l,[u]:1},{}),s=S(l=>{const u={[l]:[0,0]},d=[l];for(;d.length>0;){const h=d.shift();if(h){i[h]=1,delete a[h];const f=r[h],[p,g]=u[h];Object.entries(f).forEach(([m,y])=>{i[y]||(u[y]=zLt([p,g],m),d.push(y))})}}return u},"BFS"),o=[s(n)];for(;Object.keys(a).length>0;)o.push(s(Object.keys(a)[0]));this.dataStructures={adjList:r,spatialMaps:o,groupAlignments:e}}return this.dataStructures}setElementForId(e,r){this.elements[e]=r}getElementById(e){return this.elements[e]}getConfig(){return $i({...HLt,...xr().architecture})}getConfigField(e){return this.getConfig()[e]}},S(O_,"ArchitectureDB"),O_),VLt=S((t,e)=>{wu(t,e),t.groups.map(r=>e.addGroup(r)),t.services.map(r=>e.addService({...r,type:"service"})),t.junctions.map(r=>e.addJunction({...r,type:"junction"})),t.edges.map(r=>e.addEdge(r))},"populateDb"),R8e={parser:{yy:void 0},parse:S(async t=>{const e=await _c("architecture",t);ge.debug(e);const r=R8e.parser?.yy;if(!(r instanceof A8e))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");VLt(e,r)},"parse")},WLt=S(t=>` .edge { stroke-width: ${t.archEdgeWidth}; stroke: ${t.archEdgeColor}; @@ -7231,19 +7231,19 @@ Expecting `+se.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":xe="Parse error display: -webkit-box; -webkit-box-orient: vertical; } -`,"getStyles"),WLt=VLt,Qg=S(t=>`${t}`,"wrapIcon"),q4={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:Qg('')},server:{body:Qg('')},disk:{body:Qg('')},internet:{body:Qg('')},cloud:{body:Qg('')},unknown:upe,blank:{body:Qg("")}}},KLt=S(async function(t,e,r,n){const i=r.getConfigField("padding"),a=r.getConfigField("iconSize"),s=a/2,o=a/6,l=o/2;await Promise.all(e.edges().map(async u=>{const{source:d,sourceDir:h,sourceArrow:f,sourceGroup:p,target:g,targetDir:m,targetArrow:y,targetGroup:v,label:b}=k8e(u);let{x:_,y:E}=u[0].sourceEndpoint();const{x,y:C}=u[0].midpoint();let{x:T,y:w}=u[0].targetEndpoint();const N=i+4;if(p&&(Is(h)?_+=h==="L"?-N:N:E+=h==="T"?-N:N+18),v&&(Is(m)?T+=m==="L"?-N:N:w+=m==="T"?-N:N+18),!p&&r.getNode(d)?.type==="junction"&&(Is(h)?_+=h==="L"?s:-s:E+=h==="T"?s:-s),!v&&r.getNode(g)?.type==="junction"&&(Is(m)?T+=m==="L"?s:-s:w+=m==="T"?s:-s),u[0]._private.rscratch){const O=t.insert("g");if(O.insert("path").attr("d",`M ${_},${E} L ${x},${C} L${T},${w} `).attr("class","edge").attr("id",`${n}-${Vm(d,g,{prefix:"L"})}`),f){const M=Is(h)?M3[h](_,o):_-l,$=Ah(h)?M3[h](E,o):E-l;O.insert("polygon").attr("points",wle[h](o)).attr("transform",`translate(${M},${$})`).attr("class","arrow")}if(y){const M=Is(m)?M3[m](T,o):T-l,$=Ah(m)?M3[m](w,o):w-l;O.insert("polygon").attr("points",wle[m](o)).attr("transform",`translate(${M},${$})`).attr("class","arrow")}if(b){const M=MW(h,m)?"XY":Is(h)?"X":"Y";let $=0;M==="X"?$=Math.abs(_-T):M==="Y"?$=Math.abs(E-w)/1.5:$=Math.abs(_-T)/2;const F=O.append("g");if(await Zs(F,b,{useHtmlLabels:!1,width:$,classes:"architecture-service-label"},Ke()),F.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),M==="X")F.attr("transform","translate("+x+", "+C+")");else if(M==="Y")F.attr("transform","translate("+x+", "+C+") rotate(-90)");else if(M==="XY"){const A=bz(h,m);if(A&&BLt(A)){const I=F.node().getBoundingClientRect(),[D,L]=zLt(A);F.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*D*L*45})`);const R=F.node().getBoundingClientRect();F.attr("transform",` +`,"getStyles"),KLt=WLt,Qg=S(t=>`${t}`,"wrapIcon"),q4={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:Qg('')},server:{body:Qg('')},disk:{body:Qg('')},internet:{body:Qg('')},cloud:{body:Qg('')},unknown:upe,blank:{body:Qg("")}}},XLt=S(async function(t,e,r,n){const i=r.getConfigField("padding"),a=r.getConfigField("iconSize"),s=a/2,o=a/6,l=o/2;await Promise.all(e.edges().map(async u=>{const{source:d,sourceDir:h,sourceArrow:f,sourceGroup:p,target:g,targetDir:m,targetArrow:y,targetGroup:v,label:b}=k8e(u);let{x:_,y:E}=u[0].sourceEndpoint();const{x,y:C}=u[0].midpoint();let{x:T,y:w}=u[0].targetEndpoint();const N=i+4;if(p&&(Is(h)?_+=h==="L"?-N:N:E+=h==="T"?-N:N+18),v&&(Is(m)?T+=m==="L"?-N:N:w+=m==="T"?-N:N+18),!p&&r.getNode(d)?.type==="junction"&&(Is(h)?_+=h==="L"?s:-s:E+=h==="T"?s:-s),!v&&r.getNode(g)?.type==="junction"&&(Is(m)?T+=m==="L"?s:-s:w+=m==="T"?s:-s),u[0]._private.rscratch){const O=t.insert("g");if(O.insert("path").attr("d",`M ${_},${E} L ${x},${C} L${T},${w} `).attr("class","edge").attr("id",`${n}-${Vm(d,g,{prefix:"L"})}`),f){const M=Is(h)?M3[h](_,o):_-l,$=Ah(h)?M3[h](E,o):E-l;O.insert("polygon").attr("points",wle[h](o)).attr("transform",`translate(${M},${$})`).attr("class","arrow")}if(y){const M=Is(m)?M3[m](T,o):T-l,$=Ah(m)?M3[m](w,o):w-l;O.insert("polygon").attr("points",wle[m](o)).attr("transform",`translate(${M},${$})`).attr("class","arrow")}if(b){const M=MW(h,m)?"XY":Is(h)?"X":"Y";let $=0;M==="X"?$=Math.abs(_-T):M==="Y"?$=Math.abs(E-w)/1.5:$=Math.abs(_-T)/2;const F=O.append("g");if(await Zs(F,b,{useHtmlLabels:!1,width:$,classes:"architecture-service-label"},Ke()),F.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),M==="X")F.attr("transform","translate("+x+", "+C+")");else if(M==="Y")F.attr("transform","translate("+x+", "+C+") rotate(-90)");else if(M==="XY"){const A=bz(h,m);if(A&&FLt(A)){const I=F.node().getBoundingClientRect(),[D,L]=ULt(A);F.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*D*L*45})`);const R=F.node().getBoundingClientRect();F.attr("transform",` translate(${x}, ${C-I.height/2}) translate(${D*R.width/2}, ${L*R.height/2}) rotate(${-1*D*L*45}, 0, ${I.height/2}) - `)}}}}}))},"drawEdges"),XLt=S(async function(t,e,r,n){const a=r.getConfigField("padding")*.75,s=r.getConfigField("fontSize"),l=r.getConfigField("iconSize")/2;await Promise.all(e.nodes().map(async u=>{const d=$m(u);if(d.type==="group"){const{h,w:f,x1:p,y1:g}=u.boundingBox(),m=t.append("rect");m.attr("id",`${n}-group-${d.id}`).attr("x",p+l).attr("y",g+l).attr("width",f).attr("height",h).attr("class","node-bkg");const y=t.append("g");let v=p,b=g;if(d.icon){const _=y.append("g");_.html(`${await sh(d.icon,{height:a,width:a,fallbackPrefix:q4.prefix})}`),_.attr("transform","translate("+(v+l+1)+", "+(b+l+1)+")"),v+=a,b+=s/2-1-2}if(d.label){const _=y.append("g");await Zs(_,d.label,{useHtmlLabels:!1,width:f,classes:"architecture-service-label"},Ke()),_.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),_.attr("transform","translate("+(v+l+4)+", "+(b+l+2)+")")}r.setElementForId(d.id,m)}}))},"drawGroups"),jLt=S(async function(t,e,r,n){const i=Ke();for(const a of r){const s=e.append("g"),o=t.getConfigField("iconSize");if(a.title){const h=s.append("g");await Zs(h,a.title,{useHtmlLabels:!1,width:o*1.5,classes:"architecture-service-label"},i),h.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),h.attr("transform","translate("+o/2+", "+o+")")}const l=s.append("g");if(a.icon)l.html(`${await sh(a.icon,{height:o,width:o,fallbackPrefix:q4.prefix})}`);else if(a.iconText){l.html(`${await sh("blank",{height:o,width:o,fallbackPrefix:q4.prefix})}`);const p=l.append("g").append("foreignObject").attr("width",o).attr("height",o).append("div").attr("class","node-icon-text").attr("style",`height: ${o}px;`).append("div").html(un(a.iconText,i)),g=parseInt(window.getComputedStyle(p.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;p.attr("style",`-webkit-line-clamp: ${Math.floor((o-2)/g)};`)}else l.append("path").attr("class","node-bkg").attr("id",`${n}-node-${a.id}`).attr("d",`M0,${o} V5 Q0,0 5,0 H${o-5} Q${o},0 ${o},5 V${o} Z`);s.attr("id",`${n}-service-${a.id}`).attr("class","architecture-service");const{width:u,height:d}=s.node().getBBox();a.width=u,a.height=d,t.setElementForId(a.id,s)}return 0},"drawServices"),QLt=S(function(t,e,r,n){r.forEach(i=>{const a=e.append("g"),s=t.getConfigField("iconSize");a.append("g").append("rect").attr("id",`${n}-node-${i.id}`).attr("fill-opacity","0").attr("width",s).attr("height",s),a.attr("class","architecture-junction");const{width:l,height:u}=a._groups[0][0].getBBox();a.width=l,a.height=u,t.setElementForId(i.id,a)})},"drawJunctions");hpe([{name:q4.prefix,icons:q4}]);su.use(MLt);function N8e(t,e,r){t.forEach(n=>{e.add({group:"nodes",data:{type:"service",id:n.id,icon:n.icon,label:n.title,parent:n.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-service"})})}S(N8e,"addServices");function I8e(t,e,r){t.forEach(n=>{e.add({group:"nodes",data:{type:"junction",id:n.id,parent:n.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-junction"})})}S(I8e,"addJunctions");function O8e(t,e){e.nodes().map(r=>{const n=$m(r);if(n.type==="group")return;n.x=r.position().x,n.y=r.position().y,t.getElementById(n.id).attr("transform","translate("+(n.x||0)+","+(n.y||0)+")")})}S(O8e,"positionNodes");function D8e(t,e){t.forEach(r=>{e.add({group:"nodes",data:{type:"group",id:r.id,icon:r.icon,label:r.title,parent:r.in},classes:"node-group"})})}S(D8e,"addGroups");function L8e(t,e){t.forEach(r=>{const{lhsId:n,rhsId:i,lhsInto:a,lhsGroup:s,rhsInto:o,lhsDir:l,rhsDir:u,rhsGroup:d,title:h}=r,f=MW(r.lhsDir,r.rhsDir)?"segments":"straight",p={id:`${n}-${i}`,label:h,source:n,sourceDir:l,sourceArrow:a,sourceGroup:s,sourceEndpoint:l==="L"?"0 50%":l==="R"?"100% 50%":l==="T"?"50% 0":"50% 100%",target:i,targetDir:u,targetArrow:o,targetGroup:d,targetEndpoint:u==="L"?"0 50%":u==="R"?"100% 50%":u==="T"?"50% 0":"50% 100%"};e.add({group:"edges",data:p,classes:f})})}S(L8e,"addEdges");function M8e(t,e,r){const n=S((o,l)=>Object.entries(o).reduce((u,[d,h])=>{let f=0;const p=Object.entries(h);if(p.length===1)return u[d]=p[0][1],u;for(let g=0;g{const l={},u={};return Object.entries(o).forEach(([d,[h,f]])=>{const p=t.getNode(d)?.in??"default";l[f]??={},l[f][p]??=[],l[f][p].push(d),u[h]??={},u[h][p]??=[],u[h][p].push(d)}),{horiz:Object.values(n(l,"horizontal")).filter(d=>d.length>1),vert:Object.values(n(u,"vertical")).filter(d=>d.length>1)}}),[a,s]=i.reduce(([o,l],{horiz:u,vert:d})=>[[...o,...u],[...l,...d]],[[],[]]);return{horizontal:a,vertical:s}}S(M8e,"getAlignments");function P8e(t,e){const r=[],n=S(a=>`${a[0]},${a[1]}`,"posToStr"),i=S(a=>a.split(",").map(s=>parseInt(s)),"strToPos");return t.forEach(a=>{const s=Object.fromEntries(Object.entries(a).map(([d,h])=>[n(h),d])),o=[n([0,0])],l={},u={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;o.length>0;){const d=o.shift();if(d){l[d]=1;const h=s[d];if(h){const f=i(d);Object.entries(u).forEach(([p,g])=>{const m=n([f[0]+g[0],f[1]+g[1]]),y=s[m];y&&!l[m]&&(o.push(m),r.push({[Cle[p]]:y,[Cle[PLt(p)]]:h,gap:1.5*e.getConfigField("iconSize")}))})}}}}),r}S(P8e,"getRelativeConstraints");function B8e(t,e,r,n,i,{spatialMaps:a,groupAlignments:s}){return new Promise(o=>{const l=At("body").append("div").attr("id","cy").attr("style","display:none"),u=su({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${i.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${i.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});l.remove(),D8e(r,u),N8e(t,u,i),I8e(e,u,i),L8e(n,u);const d=M8e(i,a,s),h=P8e(a,i),f=i.getConfigField("iconSize"),p=i.getConfigField("idealEdgeLengthMultiplier")*f,g=.5*f,m=i.getConfigField("edgeElasticity"),y=u.layout({name:"fcose",quality:"proof",randomize:i.getConfigField("randomize"),nodeSeparation:i.getConfigField("nodeSeparation"),numIter:i.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(v){const[b,_]=v.connectedNodes(),{parent:E}=$m(b),{parent:x}=$m(_);return E===x?p:g},edgeElasticity(v){const[b,_]=v.connectedNodes(),{parent:E}=$m(b),{parent:x}=$m(_);return E===x?m:.001},alignmentConstraint:d,relativePlacementConstraint:h});y.one("layoutstop",()=>{function v(b,_,E,x){let C,T;const{x:w,y:N}=b,{x:O,y:M}=_;T=(x-N+(w-E)*(N-M)/(w-O))/Math.sqrt(1+Math.pow((N-M)/(w-O),2)),C=Math.sqrt(Math.pow(x-N,2)+Math.pow(E-w,2)-Math.pow(T,2));const $=Math.sqrt(Math.pow(O-w,2)+Math.pow(M-N,2));C=C/$;let F=(O-w)*(x-N)-(M-N)*(E-w);switch(!0){case F>=0:F=1;break;case F<0:F=-1;break}let A=(O-w)*(E-w)+(M-N)*(x-N);switch(!0){case A>=0:A=1;break;case A<0:A=-1;break}return T=Math.abs(T)*F,C=C*A,{distances:T,weights:C}}S(v,"getSegmentWeights"),u.startBatch();for(const b of Object.values(u.edges()))if(b.data?.()){const{x:_,y:E}=b.source().position(),{x,y:C}=b.target().position();if(_!==x&&E!==C){const T=b.sourceEndpoint(),w=b.targetEndpoint(),{sourceDir:N}=k8e(b),[O,M]=Ah(N)?[T.x,w.y]:[w.x,T.y],{weights:$,distances:F}=v(T,w,O,M);b.style("segment-distances",F),b.style("segment-weights",$)}}u.endBatch(),y.run()}),y.run(),u.ready(v=>{ge.info("Ready",v),o(u)})})}S(B8e,"layoutArchitecture");var ZLt=S(async(t,e,r,n)=>{const i=n.db;i.setDiagramId(e);const a=i.getServices(),s=i.getJunctions(),o=i.getGroups(),l=i.getEdges(),u=i.getDataStructures(),d=To(e),h=d.append("g");h.attr("class","architecture-edges");const f=d.append("g");f.attr("class","architecture-services");const p=d.append("g");p.attr("class","architecture-groups"),await jLt(i,f,a,e),QLt(i,f,s,e);const g=await B8e(a,s,o,l,i,u);await KLt(h,g,i,e),await XLt(p,g,i,e),O8e(i,g),zb(void 0,d,i.getConfigField("padding"),i.getConfigField("useMaxWidth"))},"draw"),JLt={draw:ZLt},eMt={parser:R8e,get db(){return new A8e},renderer:JLt,styles:WLt};const tMt=Object.freeze(Object.defineProperty({__proto__:null,diagram:eMt},Symbol.toStringTag,{value:"Module"}));var F8e="position frame",$8e="frame positioned",Ez="position relation",z8e="relation positioned",rMt=S(function(t){ge.debug("options str",t)},"setOptions"),nMt=S(function(){return{}},"getOptions"),iMt=S(function(){U8e(),oi()},"clear");function U8e(){PW={}}S(U8e,"reset");var aMt=on.eventmodeling,sMt=S(()=>$i({...aMt,...xr().eventmodeling}),"getConfig"),PW={};function G8e(){let t=oMt;const{ast:e}=PW,r=BW();if(!e)throw new Error("No data for EventModel");return e.frames.forEach((n,i)=>{const a=X8e(n,e.dataEntities,r);t=oC(t,{$kind:F8e,index:i,frame:n,textProps:a});let s;tRe(n)?(ge.debug("source frame",n.sourceFrames),s=e.frames.filter(o=>n.sourceFrames.some(l=>l.$refText===o.name)),s.forEach(o=>{t=oC(t,{$kind:Ez,index:i,frame:n,sourceFrame:o})})):t=oC(t,{$kind:Ez,index:i,frame:n})}),t={...t,sortedSwimlanesArray:FW(t.swimlanes)},t}S(G8e,"getState");function q8e(t){PW.ast=t}S(q8e,"setAst");var _n={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function BW(){return _n}S(BW,"getDiagramProps");var oMt={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function Y8e(t){const e=t.split(".");if(e.length===2)return e[0]}S(Y8e,"extractNamespace");function H8e(t){const e=t.split(".");return e.length===2?e[1]:t}S(H8e,"extractName");function V8e(t,e){if(!(!e||e.length===0))return Object.values(t).find(r=>r.namespace===e)}S(V8e,"findSwimlaneByNamespace");function sC(t,e,r){return Math.max(e,...Object.keys(t).filter(n=>{const i=Number.parseInt(n);return i>e&&iNumber.parseInt(n)))+1}S(sC,"findNextAvailableIndex");function W8e(t,e){const r=Y8e(t.entityIdentifier),n=V8e(e,r);switch(t.modelEntityType){case"ui":case"pcr":case"processor":return n?{index:n.index,label:n.namespace||_n.labelUiAutomation}:r?{index:sC(e,0,100),label:_n.labelUiAutomationPrefix+r}:{index:0,label:_n.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return n?{index:n.index,label:n.namespace||_n.labelCommandReadModel}:r?{index:sC(e,100,200),label:_n.labelCommandReadModelPrefix+r}:{index:100,label:_n.labelCommandReadModel};default:return n?{index:n.index,label:n.namespace||_n.labelEvents}:r?{index:sC(e,200,300),label:_n.labelEventsPrefix+r}:{index:200,label:_n.labelEvents}}}S(W8e,"calculateSwimlaneProps");function K8e(t){const{themeVariables:e}=xr();switch(t.modelEntityType){case"ui":return{fill:e.emUiFill??"white",stroke:e.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:e.emProcessorFill??"#edb3f6",stroke:e.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:e.emReadModelFill??"#d3f1a2",stroke:e.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:e.emCommandFill??"#bcd6fe",stroke:e.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:e.emEventFill??"#ffb778",stroke:e.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}S(K8e,"calculateEntityVisualProps");function X8e(t,e,r){const n=xr(),i=un(H8e(t.entityIdentifier)??"",n);let a;const s={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"
"};let l=`${jE(i,r.textMaxWidth,s)}`;if(t.dataInlineValue&&(a=t.dataInlineValue,a=a.substring(a.indexOf("{")+1),a=a.substring(0,a.lastIndexOf("}")-1),a=un(a,n),a=jE(a,r.textMaxWidth,s),a=a.replaceAll(" "," ")),t.dataReference){const g=e.find(m=>m.name===t.dataReference?.$refText);g&&(a=g.dataBlockValue,a=a.substring(a.indexOf(`{ -`)+2),a=a.substring(0,a.lastIndexOf("}")-1),a=un(a,n),a=jE(a,r.textMaxWidth,s),a=a.replaceAll(" "," "),a+="
")}const u=a!==void 0;u&&(l+=`

${a}`);const d={fontSize:s.fontSize,fontWeight:s.fontWeight,fontFamily:s.fontFamily},h=Ik(l,d),f=u?h.width/3:h.width,p={content:l,width:f,height:h.height};return ge.debug(`[${t.name}] ${t.entityIdentifier} text`,p),p}S(X8e,"calculateTextProps");function j8e(t,e){const r=e,n=K8e(r.frame),i={width:r.textProps.width+2*_n.boxTextPadding,height:r.textProps.height+2*_n.boxTextPadding};return[{$kind:$8e,frame:r.frame,index:r.index,visual:n,dimension:i,textProps:r.textProps}]}S(j8e,"decidePositionFrame");function Q8e(t,e,r){return e===void 0?_n.contentStartX:e.index===t.index&&t.r?t.r+_n.boxPadding:r===void 0?_n.contentStartX:r.r-_n.boxOverlap+_n.boxPadding}S(Q8e,"calculateX");function Z8e(t,e){const r=[...t.map(n=>n.r),e];return Math.max(...r)}S(Z8e,"calculateMaxRight");function FW(t){return Object.values(t).sort((e,r)=>e.index-r.index)}S(FW,"sortedSwimlanesArray");function J8e(t,e){const r=e,n=W8e(r.frame,t.swimlanes);let i;n.index in t.swimlanes?i=t.swimlanes[n.index]:i={index:n.index,label:n.label,r:0,y:n.index*_n.swimlaneMinHeight+_n.swimlaneGap,height:_n.swimlaneMinHeight,maxHeight:_n.swimlaneMinHeight};const a=t.boxes.length>0?t.boxes[t.boxes.length-1]:void 0,s=t.previousSwimlaneNumber!==void 0?t.swimlanes[t.previousSwimlaneNumber]:void 0,o={width:Math.max(_n.boxMinWidth,Math.min(_n.boxMaxWidth,r.dimension.width))+2*_n.boxPadding,height:Math.max(_n.boxMinHeight,Math.min(_n.boxMaxHeight,r.dimension.height))+2*_n.boxPadding},l=Q8e(i,s,a),u=l+o.width+_n.boxPadding,d=Z8e(Object.values(t.swimlanes),u);i.r=l+o.width,i.maxHeight=Math.max(i.maxHeight,o.height),i.height=Math.max(_n.swimlaneMinHeight,i.maxHeight)+2*_n.swimlanePadding;const h={x:l,y:_n.swimlanePadding+i.y,r:u,dimension:o,leftSibling:!1,swimlane:i,visual:r.visual,text:r.textProps.content,frame:r.frame,index:r.index},f={...t,boxes:[...t.boxes,h],swimlanes:{...t.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:n.index,previousFrame:r.frame,maxR:d},p=FW(f.swimlanes);p.length>0&&(p[0].y=0);for(let g=1;g0}S(tRe,"hasSourceFrame");function Sz(t,e){if(e!=null)return t.find(r=>r.frame.name===e.name)}S(Sz,"findBoxByFrame");function rRe(t,e,r){if(!(r<0))for(let n=r;n>=0;n--){const i=t[n];if(i.swimlane.index!==e)return i}}S(rRe,"findBoxByLineIndex");function nRe(t,e){const r=e;if(Ake(r.frame)||eRe(r.index,r.frame))return[];const n=Sz(t.boxes,r.frame);if(n===void 0)throw new Error(`Target box not found for frame ${r.frame.name}`);let i;return r.sourceFrame?i=Sz(t.boxes,r.sourceFrame):i=rRe(t.boxes,n.swimlane.index,r.index-1),i===void 0?[]:[{$kind:z8e,frame:r.frame,index:r.index,sourceBox:i,targetBox:n}]}S(nRe,"decidePositionRelation");function iRe(t,e){const r=e,n={visual:{fill:"none",stroke:"#000"},source:{x:r.sourceBox.x,y:r.sourceBox.y},target:{x:r.targetBox.x,y:r.targetBox.y},sourceBox:r.sourceBox,targetBox:r.targetBox};return{...t,relations:[...t.relations,n]}}S(iRe,"evolveRelationPositioned");var lMt={[F8e]:j8e,[Ez]:nRe},cMt={[$8e]:J8e,[z8e]:iRe};function aRe(t,e){const r=lMt[e.$kind];if(r==null)return[];const n=r(t,e);return ge.debug("decided events",n),n}S(aRe,"decide");function sRe(t,e){const r=e.reduce((n,i)=>{const a=cMt[i.$kind];return a==null?n:a(n,i)},t);return ge.debug("evolve events",{state:t,newState:r,events:e}),r}S(sRe,"evolve");function oC(t,e){const r=aRe(t,e);return sRe(t,r)}S(oC,"dispatch");var Tz={getConfig:sMt,setOptions:rMt,getOptions:nMt,clear:iMt,setAccTitle:ai,getAccTitle:yi,getAccDescription:_i,setAccDescription:vi,setDiagramTitle:pi,getDiagramTitle:li,setAst:q8e,getDiagramProps:BW,getState:G8e},uMt={parse:S(async t=>{const e=await _c("eventmodeling",t);ge.debug(e),Tz.setAst(e),wu(e,Tz)},"parse")},dMt=Ke(),hMt=dMt?.eventmodeling;function oRe(t,e){return r=>{const n=r.swimlane.y+e.swimlanePadding,i=t.append("g").attr("class","em-box");i.append("rect").attr("x",r.x).attr("y",n).attr("rx","3").attr("width",r.dimension.width).attr("height",r.dimension.height).attr("stroke",r.visual.stroke).attr("fill",r.visual.fill),i.append("foreignObject").attr("x",r.x+e.boxPadding).attr("y",n+10).attr("width",r.dimension.width-2*e.boxPadding).attr("height",r.dimension.height-2*e.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(r.text)}}S(oRe,"renderD3Box");function lRe(t,e){return t>e}S(lRe,"dirUpwards");function cRe(t,e,r,n){return i=>{const a=i.sourceBox.swimlane.y+e.swimlanePadding,s=i.targetBox.swimlane.y+e.swimlanePadding,o=lRe(a,s),l=i.sourceBox.x+i.sourceBox.dimension.width*2/3,u=i.targetBox.x+i.targetBox.dimension.width/3;let d,h;ge.debug(`rendering relation up=${o} for `,{sourceBox:i.sourceBox,targetBox:i.targetBox}),o?(d=a,h=s+i.targetBox.dimension.height):(d=a+i.sourceBox.dimension.height,h=s);const f=n.emRelationStroke??i.visual.stroke;t.append("path").attr("class","em-relation").attr("fill",i.visual.fill).attr("stroke",f).attr("stroke-width","1").attr("marker-end",`url(#${r})`).attr("d",`M${l} ${d} L${u} ${h}`)}}S(cRe,"renderD3Relation");function uRe(t,e,r,n){return i=>{const a=t.append("g").attr("class","em-swimlane"),s=n.emSwimlaneBackgroundOdd??"rgb(250,250,250)",o=n.emSwimlaneBackgroundStroke??"rgb(240,240,240)";a.append("rect").attr("x",0).attr("y",i.y).attr("rx","3").attr("width",e+r.swimlanePadding).attr("height",i.height).attr("fill",s).attr("stroke",o),a.append("text").attr("font-weight",r.swimlaneTextFontWeight).attr("x",30).attr("y",i.y+30).text(i.label)}}S(uRe,"renderD3Swimlane");var fMt=S(function(t,e,r,n){if(ge.debug("in eventmodeling renderer",t+` -`,"id:",e,r),!hMt)throw new Error("EventModeling config not found");const i=n.db,{themeVariables:a,eventmodeling:s}=Ke(),o=At(`[id="${e}"]`),l=i.getDiagramProps(),u=i.getState(),d=`em-arrowhead-${e}`,h=a.emArrowhead??"#000000";u.sortedSwimlanesArray.forEach(uRe(o,u.maxR,l,a)),u.boxes.forEach(oRe(o,l)),u.relations.forEach(cRe(o,l,d,a)),o.append("defs").append("marker").attr("id",d).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",h),EU(void 0,o,s?.padding??30,s?.useMaxWidth)},"draw"),pMt={draw:fMt},gMt=S(t=>"","getStyles"),mMt=gMt,yMt={parser:uMt,db:Tz,renderer:pMt,styles:mMt};const vMt=Object.freeze(Object.defineProperty({__proto__:null,diagram:yMt},Symbol.toStringTag,{value:"Module"}));var xz=(function(){var t=S(function(v,b,_,E){for(_=_||{},E=v.length;E--;_[v[E]]=b);return _},"o"),e=[1,4],r=[1,14],n=[1,12],i=[1,13],a=[6,7,8],s=[1,20],o=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],h=[1,23],f=[1,24],p=[1,6,7,11,13,14],g={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:S(function(b,_,E,x,C,T,w){var N=T.length-1;switch(C){case 6:case 7:return x;case 15:x.addNode(T[N-1].length,T[N].trim());break;case 16:x.addNode(0,T[N].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:n,14:i},t(a,[2,3]),{1:[2,2]},t(a,[2,4]),t(a,[2,5]),{1:[2,6],6:r,12:15,13:n,14:i},{6:r,9:16,12:11,13:n,14:i},{6:s,7:o,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:o,10:22,11:l},{1:[2,7],6:r,12:15,13:n,14:i},t(d,[2,14],{7:h,11:f}),t(p,[2,8]),t(p,[2,9]),t(p,[2,10]),t(u,[2,15]),t(d,[2,13],{7:h,11:f}),t(p,[2,11]),t(p,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:S(function(b,_){if(_.recoverable)this.trace(b);else{var E=new Error(b);throw E.hash=_,E}},"parseError"),parse:S(function(b){var _=this,E=[0],x=[],C=[null],T=[],w=this.table,N="",O=0,M=0,$=2,F=1,A=T.slice.call(arguments,1),I=Object.create(this.lexer),D={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(D.yy[L]=this.yy[L]);I.setInput(b,D.yy),D.yy.lexer=I,D.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var R=I.yylloc;T.push(R);var P=I.options&&I.options.ranges;typeof D.yy.parseError=="function"?this.parseError=D.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(se){E.length=E.length-2*se,C.length=C.length-se,T.length=T.length-se}S(z,"popStack");function B(){var se;return se=x.pop()||I.lex()||F,typeof se!="number"&&(se instanceof Array&&(x=se,se=x.pop()),se=_.symbols_[se]||se),se}S(B,"lex");for(var q,Y,Q,H,J={},Z,pe,re,ce;;){if(Y=E[E.length-1],this.defaultActions[Y]?Q=this.defaultActions[Y]:((q===null||typeof q>"u")&&(q=B()),Q=w[Y]&&w[Y][q]),typeof Q>"u"||!Q.length||!Q[0]){var ae="";ce=[];for(Z in w[Y])this.terminals_[Z]&&Z>$&&ce.push("'"+this.terminals_[Z]+"'");I.showPosition?ae="Parse error on line "+(O+1)+`: + `)}}}}}))},"drawEdges"),jLt=S(async function(t,e,r,n){const a=r.getConfigField("padding")*.75,s=r.getConfigField("fontSize"),l=r.getConfigField("iconSize")/2;await Promise.all(e.nodes().map(async u=>{const d=$m(u);if(d.type==="group"){const{h,w:f,x1:p,y1:g}=u.boundingBox(),m=t.append("rect");m.attr("id",`${n}-group-${d.id}`).attr("x",p+l).attr("y",g+l).attr("width",f).attr("height",h).attr("class","node-bkg");const y=t.append("g");let v=p,b=g;if(d.icon){const _=y.append("g");_.html(`${await sh(d.icon,{height:a,width:a,fallbackPrefix:q4.prefix})}`),_.attr("transform","translate("+(v+l+1)+", "+(b+l+1)+")"),v+=a,b+=s/2-1-2}if(d.label){const _=y.append("g");await Zs(_,d.label,{useHtmlLabels:!1,width:f,classes:"architecture-service-label"},Ke()),_.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),_.attr("transform","translate("+(v+l+4)+", "+(b+l+2)+")")}r.setElementForId(d.id,m)}}))},"drawGroups"),QLt=S(async function(t,e,r,n){const i=Ke();for(const a of r){const s=e.append("g"),o=t.getConfigField("iconSize");if(a.title){const h=s.append("g");await Zs(h,a.title,{useHtmlLabels:!1,width:o*1.5,classes:"architecture-service-label"},i),h.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),h.attr("transform","translate("+o/2+", "+o+")")}const l=s.append("g");if(a.icon)l.html(`${await sh(a.icon,{height:o,width:o,fallbackPrefix:q4.prefix})}`);else if(a.iconText){l.html(`${await sh("blank",{height:o,width:o,fallbackPrefix:q4.prefix})}`);const p=l.append("g").append("foreignObject").attr("width",o).attr("height",o).append("div").attr("class","node-icon-text").attr("style",`height: ${o}px;`).append("div").html(un(a.iconText,i)),g=parseInt(window.getComputedStyle(p.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;p.attr("style",`-webkit-line-clamp: ${Math.floor((o-2)/g)};`)}else l.append("path").attr("class","node-bkg").attr("id",`${n}-node-${a.id}`).attr("d",`M0,${o} V5 Q0,0 5,0 H${o-5} Q${o},0 ${o},5 V${o} Z`);s.attr("id",`${n}-service-${a.id}`).attr("class","architecture-service");const{width:u,height:d}=s.node().getBBox();a.width=u,a.height=d,t.setElementForId(a.id,s)}return 0},"drawServices"),ZLt=S(function(t,e,r,n){r.forEach(i=>{const a=e.append("g"),s=t.getConfigField("iconSize");a.append("g").append("rect").attr("id",`${n}-node-${i.id}`).attr("fill-opacity","0").attr("width",s).attr("height",s),a.attr("class","architecture-junction");const{width:l,height:u}=a._groups[0][0].getBBox();a.width=l,a.height=u,t.setElementForId(i.id,a)})},"drawJunctions");hpe([{name:q4.prefix,icons:q4}]);su.use(PLt);function N8e(t,e,r){t.forEach(n=>{e.add({group:"nodes",data:{type:"service",id:n.id,icon:n.icon,label:n.title,parent:n.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-service"})})}S(N8e,"addServices");function I8e(t,e,r){t.forEach(n=>{e.add({group:"nodes",data:{type:"junction",id:n.id,parent:n.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-junction"})})}S(I8e,"addJunctions");function O8e(t,e){e.nodes().map(r=>{const n=$m(r);if(n.type==="group")return;n.x=r.position().x,n.y=r.position().y,t.getElementById(n.id).attr("transform","translate("+(n.x||0)+","+(n.y||0)+")")})}S(O8e,"positionNodes");function D8e(t,e){t.forEach(r=>{e.add({group:"nodes",data:{type:"group",id:r.id,icon:r.icon,label:r.title,parent:r.in},classes:"node-group"})})}S(D8e,"addGroups");function L8e(t,e){t.forEach(r=>{const{lhsId:n,rhsId:i,lhsInto:a,lhsGroup:s,rhsInto:o,lhsDir:l,rhsDir:u,rhsGroup:d,title:h}=r,f=MW(r.lhsDir,r.rhsDir)?"segments":"straight",p={id:`${n}-${i}`,label:h,source:n,sourceDir:l,sourceArrow:a,sourceGroup:s,sourceEndpoint:l==="L"?"0 50%":l==="R"?"100% 50%":l==="T"?"50% 0":"50% 100%",target:i,targetDir:u,targetArrow:o,targetGroup:d,targetEndpoint:u==="L"?"0 50%":u==="R"?"100% 50%":u==="T"?"50% 0":"50% 100%"};e.add({group:"edges",data:p,classes:f})})}S(L8e,"addEdges");function M8e(t,e,r){const n=S((o,l)=>Object.entries(o).reduce((u,[d,h])=>{let f=0;const p=Object.entries(h);if(p.length===1)return u[d]=p[0][1],u;for(let g=0;g{const l={},u={};return Object.entries(o).forEach(([d,[h,f]])=>{const p=t.getNode(d)?.in??"default";l[f]??={},l[f][p]??=[],l[f][p].push(d),u[h]??={},u[h][p]??=[],u[h][p].push(d)}),{horiz:Object.values(n(l,"horizontal")).filter(d=>d.length>1),vert:Object.values(n(u,"vertical")).filter(d=>d.length>1)}}),[a,s]=i.reduce(([o,l],{horiz:u,vert:d})=>[[...o,...u],[...l,...d]],[[],[]]);return{horizontal:a,vertical:s}}S(M8e,"getAlignments");function P8e(t,e){const r=[],n=S(a=>`${a[0]},${a[1]}`,"posToStr"),i=S(a=>a.split(",").map(s=>parseInt(s)),"strToPos");return t.forEach(a=>{const s=Object.fromEntries(Object.entries(a).map(([d,h])=>[n(h),d])),o=[n([0,0])],l={},u={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;o.length>0;){const d=o.shift();if(d){l[d]=1;const h=s[d];if(h){const f=i(d);Object.entries(u).forEach(([p,g])=>{const m=n([f[0]+g[0],f[1]+g[1]]),y=s[m];y&&!l[m]&&(o.push(m),r.push({[Cle[p]]:y,[Cle[BLt(p)]]:h,gap:1.5*e.getConfigField("iconSize")}))})}}}}),r}S(P8e,"getRelativeConstraints");function B8e(t,e,r,n,i,{spatialMaps:a,groupAlignments:s}){return new Promise(o=>{const l=At("body").append("div").attr("id","cy").attr("style","display:none"),u=su({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${i.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${i.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});l.remove(),D8e(r,u),N8e(t,u,i),I8e(e,u,i),L8e(n,u);const d=M8e(i,a,s),h=P8e(a,i),f=i.getConfigField("iconSize"),p=i.getConfigField("idealEdgeLengthMultiplier")*f,g=.5*f,m=i.getConfigField("edgeElasticity"),y=u.layout({name:"fcose",quality:"proof",randomize:i.getConfigField("randomize"),nodeSeparation:i.getConfigField("nodeSeparation"),numIter:i.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(v){const[b,_]=v.connectedNodes(),{parent:E}=$m(b),{parent:x}=$m(_);return E===x?p:g},edgeElasticity(v){const[b,_]=v.connectedNodes(),{parent:E}=$m(b),{parent:x}=$m(_);return E===x?m:.001},alignmentConstraint:d,relativePlacementConstraint:h});y.one("layoutstop",()=>{function v(b,_,E,x){let C,T;const{x:w,y:N}=b,{x:O,y:M}=_;T=(x-N+(w-E)*(N-M)/(w-O))/Math.sqrt(1+Math.pow((N-M)/(w-O),2)),C=Math.sqrt(Math.pow(x-N,2)+Math.pow(E-w,2)-Math.pow(T,2));const $=Math.sqrt(Math.pow(O-w,2)+Math.pow(M-N,2));C=C/$;let F=(O-w)*(x-N)-(M-N)*(E-w);switch(!0){case F>=0:F=1;break;case F<0:F=-1;break}let A=(O-w)*(E-w)+(M-N)*(x-N);switch(!0){case A>=0:A=1;break;case A<0:A=-1;break}return T=Math.abs(T)*F,C=C*A,{distances:T,weights:C}}S(v,"getSegmentWeights"),u.startBatch();for(const b of Object.values(u.edges()))if(b.data?.()){const{x:_,y:E}=b.source().position(),{x,y:C}=b.target().position();if(_!==x&&E!==C){const T=b.sourceEndpoint(),w=b.targetEndpoint(),{sourceDir:N}=k8e(b),[O,M]=Ah(N)?[T.x,w.y]:[w.x,T.y],{weights:$,distances:F}=v(T,w,O,M);b.style("segment-distances",F),b.style("segment-weights",$)}}u.endBatch(),y.run()}),y.run(),u.ready(v=>{ge.info("Ready",v),o(u)})})}S(B8e,"layoutArchitecture");var JLt=S(async(t,e,r,n)=>{const i=n.db;i.setDiagramId(e);const a=i.getServices(),s=i.getJunctions(),o=i.getGroups(),l=i.getEdges(),u=i.getDataStructures(),d=To(e),h=d.append("g");h.attr("class","architecture-edges");const f=d.append("g");f.attr("class","architecture-services");const p=d.append("g");p.attr("class","architecture-groups"),await QLt(i,f,a,e),ZLt(i,f,s,e);const g=await B8e(a,s,o,l,i,u);await XLt(h,g,i,e),await jLt(p,g,i,e),O8e(i,g),zb(void 0,d,i.getConfigField("padding"),i.getConfigField("useMaxWidth"))},"draw"),eMt={draw:JLt},tMt={parser:R8e,get db(){return new A8e},renderer:eMt,styles:KLt};const rMt=Object.freeze(Object.defineProperty({__proto__:null,diagram:tMt},Symbol.toStringTag,{value:"Module"}));var F8e="position frame",$8e="frame positioned",Ez="position relation",z8e="relation positioned",nMt=S(function(t){ge.debug("options str",t)},"setOptions"),iMt=S(function(){return{}},"getOptions"),aMt=S(function(){U8e(),oi()},"clear");function U8e(){PW={}}S(U8e,"reset");var sMt=on.eventmodeling,oMt=S(()=>$i({...sMt,...xr().eventmodeling}),"getConfig"),PW={};function G8e(){let t=lMt;const{ast:e}=PW,r=BW();if(!e)throw new Error("No data for EventModel");return e.frames.forEach((n,i)=>{const a=X8e(n,e.dataEntities,r);t=oC(t,{$kind:F8e,index:i,frame:n,textProps:a});let s;tRe(n)?(ge.debug("source frame",n.sourceFrames),s=e.frames.filter(o=>n.sourceFrames.some(l=>l.$refText===o.name)),s.forEach(o=>{t=oC(t,{$kind:Ez,index:i,frame:n,sourceFrame:o})})):t=oC(t,{$kind:Ez,index:i,frame:n})}),t={...t,sortedSwimlanesArray:FW(t.swimlanes)},t}S(G8e,"getState");function q8e(t){PW.ast=t}S(q8e,"setAst");var _n={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function BW(){return _n}S(BW,"getDiagramProps");var lMt={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function Y8e(t){const e=t.split(".");if(e.length===2)return e[0]}S(Y8e,"extractNamespace");function H8e(t){const e=t.split(".");return e.length===2?e[1]:t}S(H8e,"extractName");function V8e(t,e){if(!(!e||e.length===0))return Object.values(t).find(r=>r.namespace===e)}S(V8e,"findSwimlaneByNamespace");function sC(t,e,r){return Math.max(e,...Object.keys(t).filter(n=>{const i=Number.parseInt(n);return i>e&&iNumber.parseInt(n)))+1}S(sC,"findNextAvailableIndex");function W8e(t,e){const r=Y8e(t.entityIdentifier),n=V8e(e,r);switch(t.modelEntityType){case"ui":case"pcr":case"processor":return n?{index:n.index,label:n.namespace||_n.labelUiAutomation}:r?{index:sC(e,0,100),label:_n.labelUiAutomationPrefix+r}:{index:0,label:_n.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return n?{index:n.index,label:n.namespace||_n.labelCommandReadModel}:r?{index:sC(e,100,200),label:_n.labelCommandReadModelPrefix+r}:{index:100,label:_n.labelCommandReadModel};default:return n?{index:n.index,label:n.namespace||_n.labelEvents}:r?{index:sC(e,200,300),label:_n.labelEventsPrefix+r}:{index:200,label:_n.labelEvents}}}S(W8e,"calculateSwimlaneProps");function K8e(t){const{themeVariables:e}=xr();switch(t.modelEntityType){case"ui":return{fill:e.emUiFill??"white",stroke:e.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:e.emProcessorFill??"#edb3f6",stroke:e.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:e.emReadModelFill??"#d3f1a2",stroke:e.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:e.emCommandFill??"#bcd6fe",stroke:e.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:e.emEventFill??"#ffb778",stroke:e.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}S(K8e,"calculateEntityVisualProps");function X8e(t,e,r){const n=xr(),i=un(H8e(t.entityIdentifier)??"",n);let a;const s={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"
"};let l=`${jE(i,r.textMaxWidth,s)}`;if(t.dataInlineValue&&(a=t.dataInlineValue,a=a.substring(a.indexOf("{")+1),a=a.substring(0,a.lastIndexOf("}")-1),a=un(a,n),a=jE(a,r.textMaxWidth,s),a=a.replaceAll(" "," ")),t.dataReference){const g=e.find(m=>m.name===t.dataReference?.$refText);g&&(a=g.dataBlockValue,a=a.substring(a.indexOf(`{ +`)+2),a=a.substring(0,a.lastIndexOf("}")-1),a=un(a,n),a=jE(a,r.textMaxWidth,s),a=a.replaceAll(" "," "),a+="
")}const u=a!==void 0;u&&(l+=`

${a}`);const d={fontSize:s.fontSize,fontWeight:s.fontWeight,fontFamily:s.fontFamily},h=Ik(l,d),f=u?h.width/3:h.width,p={content:l,width:f,height:h.height};return ge.debug(`[${t.name}] ${t.entityIdentifier} text`,p),p}S(X8e,"calculateTextProps");function j8e(t,e){const r=e,n=K8e(r.frame),i={width:r.textProps.width+2*_n.boxTextPadding,height:r.textProps.height+2*_n.boxTextPadding};return[{$kind:$8e,frame:r.frame,index:r.index,visual:n,dimension:i,textProps:r.textProps}]}S(j8e,"decidePositionFrame");function Q8e(t,e,r){return e===void 0?_n.contentStartX:e.index===t.index&&t.r?t.r+_n.boxPadding:r===void 0?_n.contentStartX:r.r-_n.boxOverlap+_n.boxPadding}S(Q8e,"calculateX");function Z8e(t,e){const r=[...t.map(n=>n.r),e];return Math.max(...r)}S(Z8e,"calculateMaxRight");function FW(t){return Object.values(t).sort((e,r)=>e.index-r.index)}S(FW,"sortedSwimlanesArray");function J8e(t,e){const r=e,n=W8e(r.frame,t.swimlanes);let i;n.index in t.swimlanes?i=t.swimlanes[n.index]:i={index:n.index,label:n.label,r:0,y:n.index*_n.swimlaneMinHeight+_n.swimlaneGap,height:_n.swimlaneMinHeight,maxHeight:_n.swimlaneMinHeight};const a=t.boxes.length>0?t.boxes[t.boxes.length-1]:void 0,s=t.previousSwimlaneNumber!==void 0?t.swimlanes[t.previousSwimlaneNumber]:void 0,o={width:Math.max(_n.boxMinWidth,Math.min(_n.boxMaxWidth,r.dimension.width))+2*_n.boxPadding,height:Math.max(_n.boxMinHeight,Math.min(_n.boxMaxHeight,r.dimension.height))+2*_n.boxPadding},l=Q8e(i,s,a),u=l+o.width+_n.boxPadding,d=Z8e(Object.values(t.swimlanes),u);i.r=l+o.width,i.maxHeight=Math.max(i.maxHeight,o.height),i.height=Math.max(_n.swimlaneMinHeight,i.maxHeight)+2*_n.swimlanePadding;const h={x:l,y:_n.swimlanePadding+i.y,r:u,dimension:o,leftSibling:!1,swimlane:i,visual:r.visual,text:r.textProps.content,frame:r.frame,index:r.index},f={...t,boxes:[...t.boxes,h],swimlanes:{...t.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:n.index,previousFrame:r.frame,maxR:d},p=FW(f.swimlanes);p.length>0&&(p[0].y=0);for(let g=1;g0}S(tRe,"hasSourceFrame");function Sz(t,e){if(e!=null)return t.find(r=>r.frame.name===e.name)}S(Sz,"findBoxByFrame");function rRe(t,e,r){if(!(r<0))for(let n=r;n>=0;n--){const i=t[n];if(i.swimlane.index!==e)return i}}S(rRe,"findBoxByLineIndex");function nRe(t,e){const r=e;if(Ake(r.frame)||eRe(r.index,r.frame))return[];const n=Sz(t.boxes,r.frame);if(n===void 0)throw new Error(`Target box not found for frame ${r.frame.name}`);let i;return r.sourceFrame?i=Sz(t.boxes,r.sourceFrame):i=rRe(t.boxes,n.swimlane.index,r.index-1),i===void 0?[]:[{$kind:z8e,frame:r.frame,index:r.index,sourceBox:i,targetBox:n}]}S(nRe,"decidePositionRelation");function iRe(t,e){const r=e,n={visual:{fill:"none",stroke:"#000"},source:{x:r.sourceBox.x,y:r.sourceBox.y},target:{x:r.targetBox.x,y:r.targetBox.y},sourceBox:r.sourceBox,targetBox:r.targetBox};return{...t,relations:[...t.relations,n]}}S(iRe,"evolveRelationPositioned");var cMt={[F8e]:j8e,[Ez]:nRe},uMt={[$8e]:J8e,[z8e]:iRe};function aRe(t,e){const r=cMt[e.$kind];if(r==null)return[];const n=r(t,e);return ge.debug("decided events",n),n}S(aRe,"decide");function sRe(t,e){const r=e.reduce((n,i)=>{const a=uMt[i.$kind];return a==null?n:a(n,i)},t);return ge.debug("evolve events",{state:t,newState:r,events:e}),r}S(sRe,"evolve");function oC(t,e){const r=aRe(t,e);return sRe(t,r)}S(oC,"dispatch");var Tz={getConfig:oMt,setOptions:nMt,getOptions:iMt,clear:aMt,setAccTitle:ai,getAccTitle:yi,getAccDescription:_i,setAccDescription:vi,setDiagramTitle:pi,getDiagramTitle:li,setAst:q8e,getDiagramProps:BW,getState:G8e},dMt={parse:S(async t=>{const e=await _c("eventmodeling",t);ge.debug(e),Tz.setAst(e),wu(e,Tz)},"parse")},hMt=Ke(),fMt=hMt?.eventmodeling;function oRe(t,e){return r=>{const n=r.swimlane.y+e.swimlanePadding,i=t.append("g").attr("class","em-box");i.append("rect").attr("x",r.x).attr("y",n).attr("rx","3").attr("width",r.dimension.width).attr("height",r.dimension.height).attr("stroke",r.visual.stroke).attr("fill",r.visual.fill),i.append("foreignObject").attr("x",r.x+e.boxPadding).attr("y",n+10).attr("width",r.dimension.width-2*e.boxPadding).attr("height",r.dimension.height-2*e.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(r.text)}}S(oRe,"renderD3Box");function lRe(t,e){return t>e}S(lRe,"dirUpwards");function cRe(t,e,r,n){return i=>{const a=i.sourceBox.swimlane.y+e.swimlanePadding,s=i.targetBox.swimlane.y+e.swimlanePadding,o=lRe(a,s),l=i.sourceBox.x+i.sourceBox.dimension.width*2/3,u=i.targetBox.x+i.targetBox.dimension.width/3;let d,h;ge.debug(`rendering relation up=${o} for `,{sourceBox:i.sourceBox,targetBox:i.targetBox}),o?(d=a,h=s+i.targetBox.dimension.height):(d=a+i.sourceBox.dimension.height,h=s);const f=n.emRelationStroke??i.visual.stroke;t.append("path").attr("class","em-relation").attr("fill",i.visual.fill).attr("stroke",f).attr("stroke-width","1").attr("marker-end",`url(#${r})`).attr("d",`M${l} ${d} L${u} ${h}`)}}S(cRe,"renderD3Relation");function uRe(t,e,r,n){return i=>{const a=t.append("g").attr("class","em-swimlane"),s=n.emSwimlaneBackgroundOdd??"rgb(250,250,250)",o=n.emSwimlaneBackgroundStroke??"rgb(240,240,240)";a.append("rect").attr("x",0).attr("y",i.y).attr("rx","3").attr("width",e+r.swimlanePadding).attr("height",i.height).attr("fill",s).attr("stroke",o),a.append("text").attr("font-weight",r.swimlaneTextFontWeight).attr("x",30).attr("y",i.y+30).text(i.label)}}S(uRe,"renderD3Swimlane");var pMt=S(function(t,e,r,n){if(ge.debug("in eventmodeling renderer",t+` +`,"id:",e,r),!fMt)throw new Error("EventModeling config not found");const i=n.db,{themeVariables:a,eventmodeling:s}=Ke(),o=At(`[id="${e}"]`),l=i.getDiagramProps(),u=i.getState(),d=`em-arrowhead-${e}`,h=a.emArrowhead??"#000000";u.sortedSwimlanesArray.forEach(uRe(o,u.maxR,l,a)),u.boxes.forEach(oRe(o,l)),u.relations.forEach(cRe(o,l,d,a)),o.append("defs").append("marker").attr("id",d).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",h),EU(void 0,o,s?.padding??30,s?.useMaxWidth)},"draw"),gMt={draw:pMt},mMt=S(t=>"","getStyles"),yMt=mMt,vMt={parser:dMt,db:Tz,renderer:gMt,styles:yMt};const _Mt=Object.freeze(Object.defineProperty({__proto__:null,diagram:vMt},Symbol.toStringTag,{value:"Module"}));var xz=(function(){var t=S(function(v,b,_,E){for(_=_||{},E=v.length;E--;_[v[E]]=b);return _},"o"),e=[1,4],r=[1,14],n=[1,12],i=[1,13],a=[6,7,8],s=[1,20],o=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],h=[1,23],f=[1,24],p=[1,6,7,11,13,14],g={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:S(function(b,_,E,x,C,T,w){var N=T.length-1;switch(C){case 6:case 7:return x;case 15:x.addNode(T[N-1].length,T[N].trim());break;case 16:x.addNode(0,T[N].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:n,14:i},t(a,[2,3]),{1:[2,2]},t(a,[2,4]),t(a,[2,5]),{1:[2,6],6:r,12:15,13:n,14:i},{6:r,9:16,12:11,13:n,14:i},{6:s,7:o,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:o,10:22,11:l},{1:[2,7],6:r,12:15,13:n,14:i},t(d,[2,14],{7:h,11:f}),t(p,[2,8]),t(p,[2,9]),t(p,[2,10]),t(u,[2,15]),t(d,[2,13],{7:h,11:f}),t(p,[2,11]),t(p,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:S(function(b,_){if(_.recoverable)this.trace(b);else{var E=new Error(b);throw E.hash=_,E}},"parseError"),parse:S(function(b){var _=this,E=[0],x=[],C=[null],T=[],w=this.table,N="",O=0,M=0,$=2,F=1,A=T.slice.call(arguments,1),I=Object.create(this.lexer),D={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(D.yy[L]=this.yy[L]);I.setInput(b,D.yy),D.yy.lexer=I,D.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var R=I.yylloc;T.push(R);var P=I.options&&I.options.ranges;typeof D.yy.parseError=="function"?this.parseError=D.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(se){E.length=E.length-2*se,C.length=C.length-se,T.length=T.length-se}S(z,"popStack");function B(){var se;return se=x.pop()||I.lex()||F,typeof se!="number"&&(se instanceof Array&&(x=se,se=x.pop()),se=_.symbols_[se]||se),se}S(B,"lex");for(var q,Y,Q,H,J={},Z,pe,re,ce;;){if(Y=E[E.length-1],this.defaultActions[Y]?Q=this.defaultActions[Y]:((q===null||typeof q>"u")&&(q=B()),Q=w[Y]&&w[Y][q]),typeof Q>"u"||!Q.length||!Q[0]){var ae="";ce=[];for(Z in w[Y])this.terminals_[Z]&&Z>$&&ce.push("'"+this.terminals_[Z]+"'");I.showPosition?ae="Parse error on line "+(O+1)+`: `+I.showPosition()+` Expecting `+ce.join(", ")+", got '"+(this.terminals_[q]||q)+"'":ae="Parse error on line "+(O+1)+": Unexpected "+(q==F?"end of input":"'"+(this.terminals_[q]||q)+"'"),this.parseError(ae,{text:I.match,token:this.terminals_[q]||q,line:I.yylineno,loc:R,expected:ce})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+q);switch(Q[0]){case 1:E.push(q),C.push(I.yytext),T.push(I.yylloc),E.push(Q[1]),q=null,M=I.yyleng,N=I.yytext,O=I.yylineno,R=I.yylloc;break;case 2:if(pe=this.productions_[Q[1]][1],J.$=C[C.length-pe],J._$={first_line:T[T.length-(pe||1)].first_line,last_line:T[T.length-1].last_line,first_column:T[T.length-(pe||1)].first_column,last_column:T[T.length-1].last_column},P&&(J._$.range=[T[T.length-(pe||1)].range[0],T[T.length-1].range[1]]),H=this.performAction.apply(J,[N,M,O,D.yy,Q[1],C,T].concat(A)),typeof H<"u")return H;pe&&(E=E.slice(0,-1*pe*2),C=C.slice(0,-1*pe),T=T.slice(0,-1*pe)),E.push(this.productions_[Q[1]][0]),C.push(J.$),T.push(J._$),re=w[E[E.length-2]][E[E.length-1]],E.push(re);break;case 3:return!0}}return!0},"parse")},m=(function(){var v={EOF:1,parseError:S(function(_,E){if(this.yy.parser)this.yy.parser.parseError(_,E);else throw new Error(_)},"parseError"),setInput:S(function(b,_){return this.yy=_||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var _=b.match(/(?:\r\n?|\n).*/g);return _?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:S(function(b){var _=b.length,E=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_),this.offset-=_;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===x.length?this.yylloc.first_column:0)+x[x.length-E.length].length-E[0].length:this.yylloc.first_column-_},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-_]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(b){this.unput(this.match.slice(b))},"less"),pastInput:S(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var b=this.pastInput(),_=new Array(b.length+1).join("-");return b+this.upcomingInput()+` `+_+"^"},"showPosition"),test_match:S(function(b,_){var E,x,C;if(this.options.backtrack_lexer&&(C={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(C.yylloc.range=this.yylloc.range.slice(0))),x=b[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],E=this.performAction.call(this,this.yy,this,_,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),E)return E;if(this._backtrack){for(var T in C)this[T]=C[T];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,_,E,x;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),T=0;T_[0].length)){if(_=E,x=T,this.options.backtrack_lexer){if(b=this.test_match(E,C[T]),b!==!1)return b;if(this._backtrack){_=!1;continue}else return!1}else if(!this.options.flex)break}return _?(b=this.test_match(_,C[x]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var _=this.next();return _||this.lex()},"lex"),begin:S(function(_){this.conditionStack.push(_)},"begin"),popState:S(function(){var _=this.conditionStack.length-1;return _>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(_){return _=this.conditionStack.length-1-Math.abs(_||0),_>=0?this.conditionStack[_]:"INITIAL"},"topState"),pushState:S(function(_){this.begin(_)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(_,E,x,C){switch(x){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return v})();g.lexer=m;function y(){this.yy={}}return S(y,"Parser"),y.prototype=g,g.Parser=y,new y})();xz.parser=xz;var _Mt=xz,D_,bMt=(D_=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,oi()}getRoot(){return this.root}addNode(e,r){const n=qt.sanitizeText(r,Ke());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],pi(n);return}this.baseLevel??=e;let i=e-this.baseLevel+1;for(i<=0&&(i=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=i;)this.stack.pop();const a=this.stack[this.stack.length-1].node,s={text:n,children:[]};a.children.push(s),this.stack.push({level:i,node:s})}getAccTitle(){return yi()}setAccTitle(e){ai(e)}getAccDescription(){return _i()}setAccDescription(e){vi(e)}getDiagramTitle(){return li()}setDiagramTitle(e){pi(e)}},S(D_,"IshikawaDB"),D_),EMt=14,Zg=250,SMt=30,TMt=60,xMt=5,dRe=82*Math.PI/180,Ale=Math.cos(dRe),Rle=Math.sin(dRe),Nle=S((t,e,r)=>{const n=t.node().getBBox(),i=n.width+e*2,a=n.height+e*2;ua(t,a,i,r),t.attr("viewBox",`${n.x-e} ${n.y-e} ${i} ${a}`)},"applyPaddedViewBox"),CMt=S((t,e,r,n)=>{const a=n.db.getRoot();if(!a)return;const s=Ke(),{look:o,handDrawnSeed:l,themeVariables:u}=s,d=Y0(s.fontSize)[0]??EMt,h=o==="handDrawn",f=a.children??[],p=s.ishikawa?.diagramPadding??20,g=s.ishikawa?.useMaxWidth??!1,m=To(e),y=m.append("g").attr("class","ishikawa"),v=h?gr.svg(m.node()):void 0,b=v?{roughSvg:v,seed:l??0,lineColor:u?.lineColor??"#333",fillColor:u?.mainBkg??"#fff"}:void 0,_=`ishikawa-arrow-${e}`;h||y.append("defs").append("marker").attr("id",_).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let E=0,x=Zg;const C=h?void 0:l1(y,E,x,E,x,"ishikawa-spine");if(wMt(y,E,x,a.text,d,b),!f.length){h&&l1(y,E,x,E,x,"ishikawa-spine",b),Nle(m,p,g);return}E-=20;const T=f.filter((D,L)=>L%2===0),w=f.filter((D,L)=>L%2===1),N=Ile(T),O=Ile(w),M=N.total+O.total;let $=Zg,F=Zg;if(M>0){const D=Zg*2,L=Zg*.3;$=Math.max(L,D*(N.total/M)),F=Math.max(L,D*(O.total/M))}const A=d*2;$=Math.max($,N.max*A),F=Math.max(F,O.max*A),x=Math.max($,Zg),C&&C.attr("y1",x).attr("y2",x),y.select(".ishikawa-head-group").attr("transform",`translate(0,${x})`);const I=Math.ceil(f.length/2);for(let D=0;DMath.min(R,P.getBBox().x),1/0)}if(h)l1(y,E,x,0,x,"ishikawa-spine",b);else{C.attr("x1",E);const D=`url(#${_})`;y.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",D)}Nle(m,p,g)},"draw"),Ile=S(t=>{const e=S(r=>r.children.reduce((n,i)=>n+1+e(i),0),"countDescendants");return t.reduce((r,n)=>{const i=e(n);return r.total+=i,r.max=Math.max(r.max,i),r},{total:0,max:0})},"sideStats"),wMt=S((t,e,r,n,i,a)=>{const s=Math.max(6,Math.floor(110/(i*.6))),o=t.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${e},${r})`),l=zw(o,hRe(n,s),0,0,"ishikawa-head-label","start",i),u=l.node().getBBox(),d=Math.max(60,u.width+6),h=Math.max(40,u.height*2+40),f=`M 0 ${-h/2} L 0 ${h/2} Q ${d*2.4} 0 0 ${-h/2} Z`;if(a){const p=a.roughSvg.path(f,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});o.insert(()=>p,":first-child").attr("class","ishikawa-head")}else o.insert("path",":first-child").attr("class","ishikawa-head").attr("d",f);l.attr("transform",`translate(${(d-u.width)/2-u.x+3},${-u.y-u.height/2})`)},"drawHead"),kMt=S((t,e)=>{const r=[],n=[],i=S((a,s,o)=>{const l=e===-1?[...a].reverse():a;for(const u of l){const d=r.length,h=u.children??[];r.push({depth:o,text:hRe(u.text,15),parentIndex:s,childCount:h.length}),o%2===0?(n.push(d),h.length&&i(h,d,o+1)):(h.length&&i(h,d,o+1),n.push(d))}},"walk");return i(t,-1,2),{entries:r,yOrder:n}},"flattenTree"),AMt=S((t,e,r,n,i,a,s)=>{const o=t.append("g").attr("class","ishikawa-label-group"),u=zw(o,e,r,n+11*i,"ishikawa-label cause","middle",a).node().getBBox();if(s){const d=s.roughSvg.rectangle(u.x-20,u.y-2,u.width+40,u.height+4,{roughness:1.5,seed:s.seed,fill:s.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:s.lineColor,strokeWidth:2});o.insert(()=>d,":first-child").attr("class","ishikawa-label-box")}else o.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",u.x-20).attr("y",u.y-2).attr("width",u.width+40).attr("height",u.height+4)},"drawCauseLabel"),eM=S((t,e,r,n,i,a)=>{const s=Math.sqrt(n*n+i*i);if(s===0)return;const o=n/s,l=i/s,u=6,d=-l*u,h=o*u,f=e,p=r,g=`M ${f} ${p} L ${f-o*u*2+d} ${p-l*u*2+h} L ${f-o*u*2-d} ${p-l*u*2-h} Z`,m=a.roughSvg.path(g,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:"solid",stroke:a.lineColor,strokeWidth:1});t.append(()=>m)},"drawArrowMarker"),RMt=S((t,e,r,n,i,a,s,o)=>{const l=e.children??[],u=a*(l.length?1:.2),d=-Ale*u,h=Rle*u*i,f=r+d,p=n+h;if(l1(t,r,n,f,p,"ishikawa-branch",o),o&&eM(t,r,n,r-f,n-p,o),AMt(t,e.text,f,p,i,s,o),!l.length)return;const{entries:g,yOrder:m}=kMt(l,i),y=g.length,v=new Array(y);for(const[C,T]of m.entries())v[T]=n+h*((C+1)/(y+1));const b=new Map;b.set(-1,{x0:r,y0:n,x1:f,y1:p,childCount:l.length,childrenDrawn:0});const _=-Ale,E=Rle*i,x=i<0?"ishikawa-label up":"ishikawa-label down";for(const[C,T]of g.entries()){const w=v[C],N=b.get(T.parentIndex),O=t.append("g").attr("class","ishikawa-sub-group");let M=0,$=0,F=0;if(T.depth%2===0){const A=N.y1-N.y0;M=Ole(N.x0,N.x1,A?(w-N.y0)/A:.5),$=w,F=M-(T.childCount>0?TMt+T.childCount*xMt:SMt),l1(O,M,w,F,w,"ishikawa-sub-branch",o),o&&eM(O,M,w,1,0,o),zw(O,T.text,F,w,"ishikawa-label align","end",s)}else{const A=N.childrenDrawn++;M=Ole(N.x0,N.x1,(N.childCount-A)/(N.childCount+1)),$=N.y0,F=M+_*((w-$)/E),l1(O,M,$,F,w,"ishikawa-sub-branch",o),o&&eM(O,M,$,M-F,$-w,o),zw(O,T.text,F,w,x,"end",s)}T.childCount>0&&b.set(C,{x0:M,y0:$,x1:F,y1:w,childCount:T.childCount,childrenDrawn:0})}},"drawBranch"),NMt=S(t=>t.split(/|\n/),"splitLines"),hRe=S((t,e)=>{if(t.length<=e)return t;const r=[];for(const n of t.split(/\s+/)){const i=r.length-1;i>=0&&r[i].length+1+n.length<=e?r[i]+=" "+n:r.push(n)}return r.join(` -`)},"wrapText"),zw=S((t,e,r,n,i,a,s)=>{const o=NMt(e),l=s*1.05,u=t.append("text").attr("class",i).attr("text-anchor",a).attr("x",r).attr("y",n-(o.length-1)*l/2);for(const[d,h]of o.entries())u.append("tspan").attr("x",r).attr("dy",d===0?0:l).text(h);return u},"drawMultilineText"),Ole=S((t,e,r)=>t+(e-t)*r,"lerp"),l1=S((t,e,r,n,i,a,s)=>{if(s){const o=s.roughSvg.line(e,r,n,i,{roughness:1.5,seed:s.seed,stroke:s.lineColor,strokeWidth:2});t.append(()=>o).attr("class",a);return}return t.append("line").attr("class",a).attr("x1",e).attr("y1",r).attr("x2",n).attr("y2",i)},"drawLine"),IMt={draw:CMt},OMt=S(t=>` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var _=this.next();return _||this.lex()},"lex"),begin:S(function(_){this.conditionStack.push(_)},"begin"),popState:S(function(){var _=this.conditionStack.length-1;return _>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(_){return _=this.conditionStack.length-1-Math.abs(_||0),_>=0?this.conditionStack[_]:"INITIAL"},"topState"),pushState:S(function(_){this.begin(_)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(_,E,x,C){switch(x){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return v})();g.lexer=m;function y(){this.yy={}}return S(y,"Parser"),y.prototype=g,g.Parser=y,new y})();xz.parser=xz;var bMt=xz,D_,EMt=(D_=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,oi()}getRoot(){return this.root}addNode(e,r){const n=qt.sanitizeText(r,Ke());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],pi(n);return}this.baseLevel??=e;let i=e-this.baseLevel+1;for(i<=0&&(i=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=i;)this.stack.pop();const a=this.stack[this.stack.length-1].node,s={text:n,children:[]};a.children.push(s),this.stack.push({level:i,node:s})}getAccTitle(){return yi()}setAccTitle(e){ai(e)}getAccDescription(){return _i()}setAccDescription(e){vi(e)}getDiagramTitle(){return li()}setDiagramTitle(e){pi(e)}},S(D_,"IshikawaDB"),D_),SMt=14,Zg=250,TMt=30,xMt=60,CMt=5,dRe=82*Math.PI/180,Ale=Math.cos(dRe),Rle=Math.sin(dRe),Nle=S((t,e,r)=>{const n=t.node().getBBox(),i=n.width+e*2,a=n.height+e*2;ua(t,a,i,r),t.attr("viewBox",`${n.x-e} ${n.y-e} ${i} ${a}`)},"applyPaddedViewBox"),wMt=S((t,e,r,n)=>{const a=n.db.getRoot();if(!a)return;const s=Ke(),{look:o,handDrawnSeed:l,themeVariables:u}=s,d=Y0(s.fontSize)[0]??SMt,h=o==="handDrawn",f=a.children??[],p=s.ishikawa?.diagramPadding??20,g=s.ishikawa?.useMaxWidth??!1,m=To(e),y=m.append("g").attr("class","ishikawa"),v=h?gr.svg(m.node()):void 0,b=v?{roughSvg:v,seed:l??0,lineColor:u?.lineColor??"#333",fillColor:u?.mainBkg??"#fff"}:void 0,_=`ishikawa-arrow-${e}`;h||y.append("defs").append("marker").attr("id",_).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let E=0,x=Zg;const C=h?void 0:l1(y,E,x,E,x,"ishikawa-spine");if(kMt(y,E,x,a.text,d,b),!f.length){h&&l1(y,E,x,E,x,"ishikawa-spine",b),Nle(m,p,g);return}E-=20;const T=f.filter((D,L)=>L%2===0),w=f.filter((D,L)=>L%2===1),N=Ile(T),O=Ile(w),M=N.total+O.total;let $=Zg,F=Zg;if(M>0){const D=Zg*2,L=Zg*.3;$=Math.max(L,D*(N.total/M)),F=Math.max(L,D*(O.total/M))}const A=d*2;$=Math.max($,N.max*A),F=Math.max(F,O.max*A),x=Math.max($,Zg),C&&C.attr("y1",x).attr("y2",x),y.select(".ishikawa-head-group").attr("transform",`translate(0,${x})`);const I=Math.ceil(f.length/2);for(let D=0;DMath.min(R,P.getBBox().x),1/0)}if(h)l1(y,E,x,0,x,"ishikawa-spine",b);else{C.attr("x1",E);const D=`url(#${_})`;y.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",D)}Nle(m,p,g)},"draw"),Ile=S(t=>{const e=S(r=>r.children.reduce((n,i)=>n+1+e(i),0),"countDescendants");return t.reduce((r,n)=>{const i=e(n);return r.total+=i,r.max=Math.max(r.max,i),r},{total:0,max:0})},"sideStats"),kMt=S((t,e,r,n,i,a)=>{const s=Math.max(6,Math.floor(110/(i*.6))),o=t.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${e},${r})`),l=zw(o,hRe(n,s),0,0,"ishikawa-head-label","start",i),u=l.node().getBBox(),d=Math.max(60,u.width+6),h=Math.max(40,u.height*2+40),f=`M 0 ${-h/2} L 0 ${h/2} Q ${d*2.4} 0 0 ${-h/2} Z`;if(a){const p=a.roughSvg.path(f,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});o.insert(()=>p,":first-child").attr("class","ishikawa-head")}else o.insert("path",":first-child").attr("class","ishikawa-head").attr("d",f);l.attr("transform",`translate(${(d-u.width)/2-u.x+3},${-u.y-u.height/2})`)},"drawHead"),AMt=S((t,e)=>{const r=[],n=[],i=S((a,s,o)=>{const l=e===-1?[...a].reverse():a;for(const u of l){const d=r.length,h=u.children??[];r.push({depth:o,text:hRe(u.text,15),parentIndex:s,childCount:h.length}),o%2===0?(n.push(d),h.length&&i(h,d,o+1)):(h.length&&i(h,d,o+1),n.push(d))}},"walk");return i(t,-1,2),{entries:r,yOrder:n}},"flattenTree"),RMt=S((t,e,r,n,i,a,s)=>{const o=t.append("g").attr("class","ishikawa-label-group"),u=zw(o,e,r,n+11*i,"ishikawa-label cause","middle",a).node().getBBox();if(s){const d=s.roughSvg.rectangle(u.x-20,u.y-2,u.width+40,u.height+4,{roughness:1.5,seed:s.seed,fill:s.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:s.lineColor,strokeWidth:2});o.insert(()=>d,":first-child").attr("class","ishikawa-label-box")}else o.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",u.x-20).attr("y",u.y-2).attr("width",u.width+40).attr("height",u.height+4)},"drawCauseLabel"),eM=S((t,e,r,n,i,a)=>{const s=Math.sqrt(n*n+i*i);if(s===0)return;const o=n/s,l=i/s,u=6,d=-l*u,h=o*u,f=e,p=r,g=`M ${f} ${p} L ${f-o*u*2+d} ${p-l*u*2+h} L ${f-o*u*2-d} ${p-l*u*2-h} Z`,m=a.roughSvg.path(g,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:"solid",stroke:a.lineColor,strokeWidth:1});t.append(()=>m)},"drawArrowMarker"),NMt=S((t,e,r,n,i,a,s,o)=>{const l=e.children??[],u=a*(l.length?1:.2),d=-Ale*u,h=Rle*u*i,f=r+d,p=n+h;if(l1(t,r,n,f,p,"ishikawa-branch",o),o&&eM(t,r,n,r-f,n-p,o),RMt(t,e.text,f,p,i,s,o),!l.length)return;const{entries:g,yOrder:m}=AMt(l,i),y=g.length,v=new Array(y);for(const[C,T]of m.entries())v[T]=n+h*((C+1)/(y+1));const b=new Map;b.set(-1,{x0:r,y0:n,x1:f,y1:p,childCount:l.length,childrenDrawn:0});const _=-Ale,E=Rle*i,x=i<0?"ishikawa-label up":"ishikawa-label down";for(const[C,T]of g.entries()){const w=v[C],N=b.get(T.parentIndex),O=t.append("g").attr("class","ishikawa-sub-group");let M=0,$=0,F=0;if(T.depth%2===0){const A=N.y1-N.y0;M=Ole(N.x0,N.x1,A?(w-N.y0)/A:.5),$=w,F=M-(T.childCount>0?xMt+T.childCount*CMt:TMt),l1(O,M,w,F,w,"ishikawa-sub-branch",o),o&&eM(O,M,w,1,0,o),zw(O,T.text,F,w,"ishikawa-label align","end",s)}else{const A=N.childrenDrawn++;M=Ole(N.x0,N.x1,(N.childCount-A)/(N.childCount+1)),$=N.y0,F=M+_*((w-$)/E),l1(O,M,$,F,w,"ishikawa-sub-branch",o),o&&eM(O,M,$,M-F,$-w,o),zw(O,T.text,F,w,x,"end",s)}T.childCount>0&&b.set(C,{x0:M,y0:$,x1:F,y1:w,childCount:T.childCount,childrenDrawn:0})}},"drawBranch"),IMt=S(t=>t.split(/|\n/),"splitLines"),hRe=S((t,e)=>{if(t.length<=e)return t;const r=[];for(const n of t.split(/\s+/)){const i=r.length-1;i>=0&&r[i].length+1+n.length<=e?r[i]+=" "+n:r.push(n)}return r.join(` +`)},"wrapText"),zw=S((t,e,r,n,i,a,s)=>{const o=IMt(e),l=s*1.05,u=t.append("text").attr("class",i).attr("text-anchor",a).attr("x",r).attr("y",n-(o.length-1)*l/2);for(const[d,h]of o.entries())u.append("tspan").attr("x",r).attr("dy",d===0?0:l).text(h);return u},"drawMultilineText"),Ole=S((t,e,r)=>t+(e-t)*r,"lerp"),l1=S((t,e,r,n,i,a,s)=>{if(s){const o=s.roughSvg.line(e,r,n,i,{roughness:1.5,seed:s.seed,stroke:s.lineColor,strokeWidth:2});t.append(()=>o).attr("class",a);return}return t.append("line").attr("class",a).attr("x1",e).attr("y1",r).attr("x2",n).attr("y2",i)},"drawLine"),OMt={draw:wMt},DMt=S(t=>` .ishikawa .ishikawa-spine, .ishikawa .ishikawa-branch, .ishikawa .ishikawa-sub-branch { @@ -7306,18 +7306,18 @@ Expecting `+ce.join(", ")+", got '"+(this.terminals_[q]||q)+"'":ae="Parse error .ishikawa .ishikawa-label.down { dominant-baseline: hanging; } -`,"getStyles"),DMt=OMt,LMt={parser:_Mt,get db(){return new bMt},renderer:IMt,styles:DMt};const MMt=Object.freeze(Object.defineProperty({__proto__:null,diagram:LMt},Symbol.toStringTag,{value:"Module"})),fRe=1e-10;function h8(t,e){const r=BMt(t),n=r.filter(o=>PMt(o,t));let i=0,a=0;const s=[];if(n.length>1){const o=gRe(n);for(let u=0;ud.angle-u.angle);let l=n[n.length-1];for(let u=0;ug.radius*2&&(_=g.radius*2),(f==null||f.width>_)&&(f={circle:g,width:_,p1:d,p2:l,large:_>g.radius,sweep:!0})}f!=null&&(s.push(f),i+=Cz(f.circle.radius,f.width),l=d)}}else{let o=t[0];for(let u=1;uMath.abs(o.radius-t[u].radius)){l=!0;break}l?i=a=0:(i=o.radius*o.radius*Math.PI,s.push({circle:o,p1:{x:o.x,y:o.y+o.radius},p2:{x:o.x-fRe,y:o.y+o.radius},width:o.radius*2,large:!0,sweep:!0}))}return a/=2,e&&(e.area=i+a,e.arcArea=i,e.polygonArea=a,e.arcs=s,e.innerPoints=n,e.intersectionPoints=r),i+a}function PMt(t,e){return e.every(r=>_o(t,r)=t+e)return 0;if(r<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);const n=t-(r*r-e*e+t*t)/(2*r),i=e-(r*r-t*t+e*e)/(2*r);return Cz(t,n)+Cz(e,i)}function pRe(t,e){const r=_o(t,e),n=t.radius,i=e.radius;if(r>=n+i||r<=Math.abs(n-i))return[];const a=(n*n-i*i+r*r)/(2*r),s=Math.sqrt(n*n-a*a),o=t.x+a*(e.x-t.x)/r,l=t.y+a*(e.y-t.y)/r,u=-(e.y-t.y)*(s/r),d=-(e.x-t.x)*(s/r);return[{x:o+u,y:l-d},{x:o-u,y:l+d}]}function gRe(t){const e={x:0,y:0};for(const r of t)e.x+=r.x,e.y+=r.y;return e.x/=t.length,e.y/=t.length,e}function FMt(t,e,r,n){n=n||{};const i=n.maxIterations||100,a=n.tolerance||1e-10,s=t(e),o=t(r);let l=r-e;if(s*o>0)throw"Initial bisect points must have opposite signs";if(s===0)return e;if(o===0)return r;for(let u=0;u=0&&(e=d),Math.abs(l)wz(e))}function c1(t,e){let r=0;for(let n=0;nx.fx-C.fx,v=e.slice(),b=e.slice(),_=e.slice(),E=e.slice();for(let x=0;x{const N=w.slice();return N.fx=w.fx,N.id=w.id,N});T.sort((w,N)=>w.id-N.id),r.history.push({x:g[0].slice(),fx:g[0].fx,simplex:T})}f=0;for(let T=0;T=g[p-1].fx){let T=!1;if(b.fx>C.fx?(n0(_,1+d,v,-d,C),_.fx=t(_),_.fx=1)break;for(let w=1;wo+a*i*l||u>=y)m=i;else{if(Math.abs(h)<=-s*l)return i;h*(m-g)>=0&&(m=g),g=i,y=u}return 0}for(let g=0;g<10;++g){if(n0(n.x,1,r.x,i,e),u=n.fx=t(n.x,n.fxprime),h=c1(n.fxprime,e),u>o+a*i*l||g&&u>=d)return p(f,i,d);if(Math.abs(h)<=-s*l)return i;if(h>=0)return p(i,f,u);d=u,f=i,i*=2}return i}function zMt(t,e,r){let n={x:e.slice(),fx:0,fxprime:e.slice()},i={x:e.slice(),fx:0,fxprime:e.slice()};const a=e.slice();let s,o,l=1,u;r=r||{},u=r.maxIterations||e.length*20,n.fx=t(n.x,n.fxprime),s=n.fxprime.slice(),Az(s,n.fxprime,-1);for(let d=0;d{const h={};for(let f=0;f$W(t,e,n)-r,0,t+e)}function UMt(t,e={}){const r=e.distinct,n=t.map(o=>Object.assign({},o));function i(o){return o.join(";")}if(r){const o=new Map;for(const l of n)for(let u=0;uo===l?0:oa.sets.length===2).forEach(a=>{const s=r[a.sets[0]],o=r[a.sets[1]],l=Math.sqrt(e[s].size/Math.PI),u=Math.sqrt(e[o].size/Math.PI),d=Rz(l,u,a.size);n[s][o]=n[o][s]=d;let h=0;a.size+1e-10>=Math.min(e[s].size,e[o].size)?h=1:a.size<=1e-10&&(h=-1),i[s][o]=i[o][s]=h}),{distances:n,constraints:i}}function qMt(t,e,r,n){for(let a=0;a0&&g<=h||f<0&&g>=h||(i+=2*m*m,e[2*a]+=4*m*(s-u),e[2*a+1]+=4*m*(o-d),e[2*l]+=4*m*(u-s),e[2*l+1]+=4*m*(d-o))}}return i}function YMt(t,e={}){let r=VMt(t,e);const n=e.lossFunction||Ob;if(t.length>=8){const i=HMt(t,e),a=n(i,t),s=n(r,t);a+1e-8f.map(p=>p/o));const l=(f,p)=>qMt(f,p,a,s);let u=null;for(let f=0;fh.sets.length===2);for(const h of t){let f=h.weight!=null?h.weight:1;const p=h.sets[0],g=h.sets[1];h.size+vRe>=Math.min(n[p].size,n[g].size)&&(f=0),i[p].push({set:g,size:h.size,weight:f}),i[g].push({set:p,size:h.size,weight:f})}const a=[];Object.keys(i).forEach(h=>{let f=0;for(let p=0;pt[s]));const a=n.weight!=null?n.weight:1;r+=a*(i-n.size)*(i-n.size)}return r}function _Re(t,e){let r=0;for(const n of e){if(n.sets.length===1)continue;let i;if(n.sets.length===2){const o=t[n.sets[0]],l=t[n.sets[1]];i=$W(o.radius,l.radius,_o(o,l))}else i=h8(n.sets.map(o=>t[o]));const a=n.weight!=null?n.weight:1,s=Math.log((i+1)/(n.size+1));r+=a*s*s}return r}function WMt(t,e,r){if(r==null?t.sort((i,a)=>a.radius-i.radius):t.sort(r),t.length>0){const i=t[0].x,a=t[0].y;for(const s of t)s.x-=i,s.y-=a}if(t.length===2&&_o(t[0],t[1])1){const i=Math.atan2(t[1].x,t[1].y)-e,a=Math.cos(i),s=Math.sin(i);for(const o of t){const l=o.x,u=o.y;o.x=a*l-s*u,o.y=s*l+a*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-e;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const a=t[1].y/(1e-10+t[1].x);for(const s of t){var n=(s.x+a*s.y)/(1+a*a);s.x=2*n-s.x,s.y=2*n*a-s.y}}}}function KMt(t){t.forEach(i=>{i.parent=i});function e(i){return i.parent!==i&&(i.parent=e(i.parent)),i.parent}function r(i,a){const s=e(i),o=e(a);s.parent=o}for(let i=0;i{delete i.parent}),Array.from(n.values())}function Nz(t){const e=r=>{const n=t.reduce((a,s)=>Math.max(a,s[r]+s.radius),Number.NEGATIVE_INFINITY),i=t.reduce((a,s)=>Math.min(a,s[r]-s.radius),Number.POSITIVE_INFINITY);return{max:n,min:i}};return{xRange:e("x"),yRange:e("y")}}function bRe(t,e,r){e==null&&(e=Math.PI/2);let n=TRe(t).map(u=>Object.assign({},u));const i=KMt(n);for(const u of i){WMt(u,e,r);const d=Nz(u);u.size=(d.xRange.max-d.xRange.min)*(d.yRange.max-d.yRange.min),u.bounds=d}i.sort((u,d)=>d.size-u.size),n=i[0];let a=n.bounds;const s=(a.xRange.max-a.xRange.min)/50;function o(u,d,h){if(!u)return;const f=u.bounds;let p,g;if(d)p=a.xRange.max-f.xRange.min+s;else{p=a.xRange.max-f.xRange.max;const m=(f.xRange.max-f.xRange.min)/2-(a.xRange.max-a.xRange.min)/2;m<0&&(p+=m)}if(h)g=a.yRange.max-f.yRange.min+s;else{g=a.yRange.max-f.yRange.max;const m=(f.yRange.max-f.yRange.min)/2-(a.yRange.max-a.yRange.min)/2;m<0&&(g+=m)}for(const m of u)m.x+=p,m.y+=g,n.push(m)}let l=1;for(;l({radius:d*p.radius,x:n+h+(p.x-s.min)*d,y:n+f+(p.y-o.min)*d,setid:p.setid})))}function SRe(t){const e={};for(const r of t)e[r.setid]=r;return e}function TRe(t){return Object.keys(t).map(r=>Object.assign(t[r],{setid:r}))}function XMt(t={}){let e=!1,r=600,n=350,i=15,a=1e3,s=Math.PI/2,o=!0,l=null,u=!0,d=!0,h=null,f=null,p=!1,g=null,m=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,y={},v=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],b=0,_=function(T){if(T in y)return y[T];var w=y[T]=v[b];return b+=1,b>=v.length&&(b=0),w},E=yRe,x=Ob;function C(T){let w=T.datum();const N=new Set;w.forEach(Z=>{Z.size==0&&Z.sets.length==1&&N.add(Z.sets[0])}),w=w.filter(Z=>!Z.sets.some(pe=>N.has(pe)));let O={},M={};if(w.length>0){let Z=E(w,{lossFunction:x,distinct:p});o&&(Z=bRe(Z,s,f)),O=ERe(Z,r,n,i,l),M=CRe(O,w,m)}const $={};w.forEach(Z=>{Z.label&&($[Z.sets]=Z.label)});function F(Z){if(Z.sets in $)return $[Z.sets];if(Z.sets.length==1)return""+Z.sets[0]}T.selectAll("svg").data([O]).enter().append("svg");const A=T.select("svg");e?A.attr("viewBox",`0 0 ${r} ${n}`):A.attr("width",r).attr("height",n);const I={};let D=!1;A.selectAll(".venn-area path").each(function(Z){const pe=this.getAttribute("d");Z.sets.length==1&&pe&&!p&&(D=!0,I[Z.sets[0]]=ZMt(pe))});function L(Z){return pe=>{const re=Z.sets.map(ce=>{let ae=I[ce],se=O[ce];return ae||(ae={x:r/2,y:n/2,radius:1}),se||(se={x:r/2,y:n/2,radius:1}),{x:ae.x*(1-pe)+se.x*pe,y:ae.y*(1-pe)+se.y*pe,radius:ae.radius*(1-pe)+se.radius*pe}});return Lle(re,g)}}const R=A.selectAll(".venn-area").data(w,Z=>Z.sets),P=R.enter().append("g").attr("class",Z=>`venn-area venn-${Z.sets.length==1?"circle":"intersection"}${Z.colour||Z.color?" venn-coloured":""}`).attr("data-venn-sets",Z=>Z.sets.join("_")),z=P.append("path"),B=P.append("text").attr("class","label").text(Z=>F(Z)).attr("text-anchor","middle").attr("dy",".35em").attr("x",r/2).attr("y",n/2);d&&(z.style("fill-opacity","0").filter(Z=>Z.sets.length==1).style("fill",Z=>Z.colour?Z.colour:Z.color?Z.color:_(Z.sets)).style("fill-opacity",".25"),B.style("fill",Z=>Z.colour||Z.color?"#FFF":t.textFill?t.textFill:Z.sets.length==1?_(Z.sets):"#444"));function q(Z){return typeof Z.transition=="function"?Z.transition("venn").duration(a):Z}let Y=T;D&&typeof Y.transition=="function"?(Y=q(T),Y.selectAll("path").attrTween("d",L)):Y.selectAll("path").attr("d",Z=>Lle(Z.sets.map(pe=>O[pe])),g);const Q=Y.selectAll("text").filter(Z=>Z.sets in M).text(Z=>F(Z)).attr("x",Z=>Math.floor(M[Z.sets].x)).attr("y",Z=>Math.floor(M[Z.sets].y));u&&(D?"on"in Q?Q.on("end",tM(O,F)):Q.each("end",tM(O,F)):Q.each(tM(O,F)));const H=q(R.exit()).remove();typeof R.transition=="function"&&H.selectAll("path").attrTween("d",L);const J=H.selectAll("text").attr("x",r/2).attr("y",n/2);return h!==null&&(B.style("font-size","0px"),Q.style("font-size",h),J.style("font-size","0px")),{circles:O,textCentres:M,nodes:R,enter:P,update:Y,exit:H}}return C.wrap=function(T){return arguments.length?(u=T,C):u},C.useViewBox=function(){return e=!0,C},C.width=function(T){return arguments.length?(r=T,C):r},C.height=function(T){return arguments.length?(n=T,C):n},C.padding=function(T){return arguments.length?(i=T,C):i},C.distinct=function(T){return arguments.length?(p=T,C):p},C.colours=function(T){return arguments.length?(_=T,C):_},C.colors=function(T){return arguments.length?(_=T,C):_},C.fontSize=function(T){return arguments.length?(h=T,C):h},C.round=function(T){return arguments.length?(g=T,C):g},C.duration=function(T){return arguments.length?(a=T,C):a},C.layoutFunction=function(T){return arguments.length?(E=T,C):E},C.normalize=function(T){return arguments.length?(o=T,C):o},C.scaleToFit=function(T){return arguments.length?(l=T,C):l},C.styled=function(T){return arguments.length?(d=T,C):d},C.orientation=function(T){return arguments.length?(s=T,C):s},C.orientationOrder=function(T){return arguments.length?(f=T,C):f},C.lossFunction=function(T){return arguments.length?(x=T==="default"?Ob:T==="logRatio"?_Re:T,C):x},C}function tM(t,e){return function(r){const n=this,i=t[r.sets[0]].radius||50,a=e(r)||"",s=a.split(/\s+/).reverse(),l=(a.length+s.length)/3;let u=s.pop(),d=[u],h=0;const f=1.1;n.textContent=null;const p=[];function g(_){const E=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return E.textContent=_,p.push(E),n.append(E),E}let m=g(u);for(;u=s.pop(),!!u;){d.push(u);const _=d.join(" ");m.textContent=_,_.length>l&&m.getComputedTextLength()>i&&(d.pop(),m.textContent=d.join(" "),d=[u],m=g(u),h++)}const y=.35-h*f/2,v=n.getAttribute("x"),b=n.getAttribute("y");p.forEach((_,E)=>{_.setAttribute("x",v),_.setAttribute("y",b),_.setAttribute("dy",`${y+E*f}em`)})}}function rM(t,e,r){let n=e[0].radius-_o(e[0],t);for(let i=1;i=a&&(i=n[d],a=h)}const s=mRe(d=>-1*rM({x:d[0],y:d[1]},t,e),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,o={x:r?0:s[0],y:s[1]};let l=!0;for(const d of t)if(_o(o,d)>d.radius){l=!1;break}for(const d of e)if(_o(o,d)d.p1))}function jMt(t){const e={},r=Object.keys(t);for(const n of r)e[n]=[];for(let n=0;n0&&console.log("WARNING: area "+s+" not represented on screen")}return n}function QMt(t,e,r){const n=[];return n.push(` +`,"getStyles"),LMt=DMt,MMt={parser:bMt,get db(){return new EMt},renderer:OMt,styles:LMt};const PMt=Object.freeze(Object.defineProperty({__proto__:null,diagram:MMt},Symbol.toStringTag,{value:"Module"})),fRe=1e-10;function h8(t,e){const r=FMt(t),n=r.filter(o=>BMt(o,t));let i=0,a=0;const s=[];if(n.length>1){const o=gRe(n);for(let u=0;ud.angle-u.angle);let l=n[n.length-1];for(let u=0;ug.radius*2&&(_=g.radius*2),(f==null||f.width>_)&&(f={circle:g,width:_,p1:d,p2:l,large:_>g.radius,sweep:!0})}f!=null&&(s.push(f),i+=Cz(f.circle.radius,f.width),l=d)}}else{let o=t[0];for(let u=1;uMath.abs(o.radius-t[u].radius)){l=!0;break}l?i=a=0:(i=o.radius*o.radius*Math.PI,s.push({circle:o,p1:{x:o.x,y:o.y+o.radius},p2:{x:o.x-fRe,y:o.y+o.radius},width:o.radius*2,large:!0,sweep:!0}))}return a/=2,e&&(e.area=i+a,e.arcArea=i,e.polygonArea=a,e.arcs=s,e.innerPoints=n,e.intersectionPoints=r),i+a}function BMt(t,e){return e.every(r=>_o(t,r)=t+e)return 0;if(r<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);const n=t-(r*r-e*e+t*t)/(2*r),i=e-(r*r-t*t+e*e)/(2*r);return Cz(t,n)+Cz(e,i)}function pRe(t,e){const r=_o(t,e),n=t.radius,i=e.radius;if(r>=n+i||r<=Math.abs(n-i))return[];const a=(n*n-i*i+r*r)/(2*r),s=Math.sqrt(n*n-a*a),o=t.x+a*(e.x-t.x)/r,l=t.y+a*(e.y-t.y)/r,u=-(e.y-t.y)*(s/r),d=-(e.x-t.x)*(s/r);return[{x:o+u,y:l-d},{x:o-u,y:l+d}]}function gRe(t){const e={x:0,y:0};for(const r of t)e.x+=r.x,e.y+=r.y;return e.x/=t.length,e.y/=t.length,e}function $Mt(t,e,r,n){n=n||{};const i=n.maxIterations||100,a=n.tolerance||1e-10,s=t(e),o=t(r);let l=r-e;if(s*o>0)throw"Initial bisect points must have opposite signs";if(s===0)return e;if(o===0)return r;for(let u=0;u=0&&(e=d),Math.abs(l)wz(e))}function c1(t,e){let r=0;for(let n=0;nx.fx-C.fx,v=e.slice(),b=e.slice(),_=e.slice(),E=e.slice();for(let x=0;x{const N=w.slice();return N.fx=w.fx,N.id=w.id,N});T.sort((w,N)=>w.id-N.id),r.history.push({x:g[0].slice(),fx:g[0].fx,simplex:T})}f=0;for(let T=0;T=g[p-1].fx){let T=!1;if(b.fx>C.fx?(n0(_,1+d,v,-d,C),_.fx=t(_),_.fx=1)break;for(let w=1;wo+a*i*l||u>=y)m=i;else{if(Math.abs(h)<=-s*l)return i;h*(m-g)>=0&&(m=g),g=i,y=u}return 0}for(let g=0;g<10;++g){if(n0(n.x,1,r.x,i,e),u=n.fx=t(n.x,n.fxprime),h=c1(n.fxprime,e),u>o+a*i*l||g&&u>=d)return p(f,i,d);if(Math.abs(h)<=-s*l)return i;if(h>=0)return p(i,f,u);d=u,f=i,i*=2}return i}function UMt(t,e,r){let n={x:e.slice(),fx:0,fxprime:e.slice()},i={x:e.slice(),fx:0,fxprime:e.slice()};const a=e.slice();let s,o,l=1,u;r=r||{},u=r.maxIterations||e.length*20,n.fx=t(n.x,n.fxprime),s=n.fxprime.slice(),Az(s,n.fxprime,-1);for(let d=0;d{const h={};for(let f=0;f$W(t,e,n)-r,0,t+e)}function GMt(t,e={}){const r=e.distinct,n=t.map(o=>Object.assign({},o));function i(o){return o.join(";")}if(r){const o=new Map;for(const l of n)for(let u=0;uo===l?0:oa.sets.length===2).forEach(a=>{const s=r[a.sets[0]],o=r[a.sets[1]],l=Math.sqrt(e[s].size/Math.PI),u=Math.sqrt(e[o].size/Math.PI),d=Rz(l,u,a.size);n[s][o]=n[o][s]=d;let h=0;a.size+1e-10>=Math.min(e[s].size,e[o].size)?h=1:a.size<=1e-10&&(h=-1),i[s][o]=i[o][s]=h}),{distances:n,constraints:i}}function YMt(t,e,r,n){for(let a=0;a0&&g<=h||f<0&&g>=h||(i+=2*m*m,e[2*a]+=4*m*(s-u),e[2*a+1]+=4*m*(o-d),e[2*l]+=4*m*(u-s),e[2*l+1]+=4*m*(d-o))}}return i}function HMt(t,e={}){let r=WMt(t,e);const n=e.lossFunction||Ob;if(t.length>=8){const i=VMt(t,e),a=n(i,t),s=n(r,t);a+1e-8f.map(p=>p/o));const l=(f,p)=>YMt(f,p,a,s);let u=null;for(let f=0;fh.sets.length===2);for(const h of t){let f=h.weight!=null?h.weight:1;const p=h.sets[0],g=h.sets[1];h.size+vRe>=Math.min(n[p].size,n[g].size)&&(f=0),i[p].push({set:g,size:h.size,weight:f}),i[g].push({set:p,size:h.size,weight:f})}const a=[];Object.keys(i).forEach(h=>{let f=0;for(let p=0;pt[s]));const a=n.weight!=null?n.weight:1;r+=a*(i-n.size)*(i-n.size)}return r}function _Re(t,e){let r=0;for(const n of e){if(n.sets.length===1)continue;let i;if(n.sets.length===2){const o=t[n.sets[0]],l=t[n.sets[1]];i=$W(o.radius,l.radius,_o(o,l))}else i=h8(n.sets.map(o=>t[o]));const a=n.weight!=null?n.weight:1,s=Math.log((i+1)/(n.size+1));r+=a*s*s}return r}function KMt(t,e,r){if(r==null?t.sort((i,a)=>a.radius-i.radius):t.sort(r),t.length>0){const i=t[0].x,a=t[0].y;for(const s of t)s.x-=i,s.y-=a}if(t.length===2&&_o(t[0],t[1])1){const i=Math.atan2(t[1].x,t[1].y)-e,a=Math.cos(i),s=Math.sin(i);for(const o of t){const l=o.x,u=o.y;o.x=a*l-s*u,o.y=s*l+a*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-e;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const a=t[1].y/(1e-10+t[1].x);for(const s of t){var n=(s.x+a*s.y)/(1+a*a);s.x=2*n-s.x,s.y=2*n*a-s.y}}}}function XMt(t){t.forEach(i=>{i.parent=i});function e(i){return i.parent!==i&&(i.parent=e(i.parent)),i.parent}function r(i,a){const s=e(i),o=e(a);s.parent=o}for(let i=0;i{delete i.parent}),Array.from(n.values())}function Nz(t){const e=r=>{const n=t.reduce((a,s)=>Math.max(a,s[r]+s.radius),Number.NEGATIVE_INFINITY),i=t.reduce((a,s)=>Math.min(a,s[r]-s.radius),Number.POSITIVE_INFINITY);return{max:n,min:i}};return{xRange:e("x"),yRange:e("y")}}function bRe(t,e,r){e==null&&(e=Math.PI/2);let n=TRe(t).map(u=>Object.assign({},u));const i=XMt(n);for(const u of i){KMt(u,e,r);const d=Nz(u);u.size=(d.xRange.max-d.xRange.min)*(d.yRange.max-d.yRange.min),u.bounds=d}i.sort((u,d)=>d.size-u.size),n=i[0];let a=n.bounds;const s=(a.xRange.max-a.xRange.min)/50;function o(u,d,h){if(!u)return;const f=u.bounds;let p,g;if(d)p=a.xRange.max-f.xRange.min+s;else{p=a.xRange.max-f.xRange.max;const m=(f.xRange.max-f.xRange.min)/2-(a.xRange.max-a.xRange.min)/2;m<0&&(p+=m)}if(h)g=a.yRange.max-f.yRange.min+s;else{g=a.yRange.max-f.yRange.max;const m=(f.yRange.max-f.yRange.min)/2-(a.yRange.max-a.yRange.min)/2;m<0&&(g+=m)}for(const m of u)m.x+=p,m.y+=g,n.push(m)}let l=1;for(;l({radius:d*p.radius,x:n+h+(p.x-s.min)*d,y:n+f+(p.y-o.min)*d,setid:p.setid})))}function SRe(t){const e={};for(const r of t)e[r.setid]=r;return e}function TRe(t){return Object.keys(t).map(r=>Object.assign(t[r],{setid:r}))}function jMt(t={}){let e=!1,r=600,n=350,i=15,a=1e3,s=Math.PI/2,o=!0,l=null,u=!0,d=!0,h=null,f=null,p=!1,g=null,m=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,y={},v=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],b=0,_=function(T){if(T in y)return y[T];var w=y[T]=v[b];return b+=1,b>=v.length&&(b=0),w},E=yRe,x=Ob;function C(T){let w=T.datum();const N=new Set;w.forEach(Z=>{Z.size==0&&Z.sets.length==1&&N.add(Z.sets[0])}),w=w.filter(Z=>!Z.sets.some(pe=>N.has(pe)));let O={},M={};if(w.length>0){let Z=E(w,{lossFunction:x,distinct:p});o&&(Z=bRe(Z,s,f)),O=ERe(Z,r,n,i,l),M=CRe(O,w,m)}const $={};w.forEach(Z=>{Z.label&&($[Z.sets]=Z.label)});function F(Z){if(Z.sets in $)return $[Z.sets];if(Z.sets.length==1)return""+Z.sets[0]}T.selectAll("svg").data([O]).enter().append("svg");const A=T.select("svg");e?A.attr("viewBox",`0 0 ${r} ${n}`):A.attr("width",r).attr("height",n);const I={};let D=!1;A.selectAll(".venn-area path").each(function(Z){const pe=this.getAttribute("d");Z.sets.length==1&&pe&&!p&&(D=!0,I[Z.sets[0]]=JMt(pe))});function L(Z){return pe=>{const re=Z.sets.map(ce=>{let ae=I[ce],se=O[ce];return ae||(ae={x:r/2,y:n/2,radius:1}),se||(se={x:r/2,y:n/2,radius:1}),{x:ae.x*(1-pe)+se.x*pe,y:ae.y*(1-pe)+se.y*pe,radius:ae.radius*(1-pe)+se.radius*pe}});return Lle(re,g)}}const R=A.selectAll(".venn-area").data(w,Z=>Z.sets),P=R.enter().append("g").attr("class",Z=>`venn-area venn-${Z.sets.length==1?"circle":"intersection"}${Z.colour||Z.color?" venn-coloured":""}`).attr("data-venn-sets",Z=>Z.sets.join("_")),z=P.append("path"),B=P.append("text").attr("class","label").text(Z=>F(Z)).attr("text-anchor","middle").attr("dy",".35em").attr("x",r/2).attr("y",n/2);d&&(z.style("fill-opacity","0").filter(Z=>Z.sets.length==1).style("fill",Z=>Z.colour?Z.colour:Z.color?Z.color:_(Z.sets)).style("fill-opacity",".25"),B.style("fill",Z=>Z.colour||Z.color?"#FFF":t.textFill?t.textFill:Z.sets.length==1?_(Z.sets):"#444"));function q(Z){return typeof Z.transition=="function"?Z.transition("venn").duration(a):Z}let Y=T;D&&typeof Y.transition=="function"?(Y=q(T),Y.selectAll("path").attrTween("d",L)):Y.selectAll("path").attr("d",Z=>Lle(Z.sets.map(pe=>O[pe])),g);const Q=Y.selectAll("text").filter(Z=>Z.sets in M).text(Z=>F(Z)).attr("x",Z=>Math.floor(M[Z.sets].x)).attr("y",Z=>Math.floor(M[Z.sets].y));u&&(D?"on"in Q?Q.on("end",tM(O,F)):Q.each("end",tM(O,F)):Q.each(tM(O,F)));const H=q(R.exit()).remove();typeof R.transition=="function"&&H.selectAll("path").attrTween("d",L);const J=H.selectAll("text").attr("x",r/2).attr("y",n/2);return h!==null&&(B.style("font-size","0px"),Q.style("font-size",h),J.style("font-size","0px")),{circles:O,textCentres:M,nodes:R,enter:P,update:Y,exit:H}}return C.wrap=function(T){return arguments.length?(u=T,C):u},C.useViewBox=function(){return e=!0,C},C.width=function(T){return arguments.length?(r=T,C):r},C.height=function(T){return arguments.length?(n=T,C):n},C.padding=function(T){return arguments.length?(i=T,C):i},C.distinct=function(T){return arguments.length?(p=T,C):p},C.colours=function(T){return arguments.length?(_=T,C):_},C.colors=function(T){return arguments.length?(_=T,C):_},C.fontSize=function(T){return arguments.length?(h=T,C):h},C.round=function(T){return arguments.length?(g=T,C):g},C.duration=function(T){return arguments.length?(a=T,C):a},C.layoutFunction=function(T){return arguments.length?(E=T,C):E},C.normalize=function(T){return arguments.length?(o=T,C):o},C.scaleToFit=function(T){return arguments.length?(l=T,C):l},C.styled=function(T){return arguments.length?(d=T,C):d},C.orientation=function(T){return arguments.length?(s=T,C):s},C.orientationOrder=function(T){return arguments.length?(f=T,C):f},C.lossFunction=function(T){return arguments.length?(x=T==="default"?Ob:T==="logRatio"?_Re:T,C):x},C}function tM(t,e){return function(r){const n=this,i=t[r.sets[0]].radius||50,a=e(r)||"",s=a.split(/\s+/).reverse(),l=(a.length+s.length)/3;let u=s.pop(),d=[u],h=0;const f=1.1;n.textContent=null;const p=[];function g(_){const E=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return E.textContent=_,p.push(E),n.append(E),E}let m=g(u);for(;u=s.pop(),!!u;){d.push(u);const _=d.join(" ");m.textContent=_,_.length>l&&m.getComputedTextLength()>i&&(d.pop(),m.textContent=d.join(" "),d=[u],m=g(u),h++)}const y=.35-h*f/2,v=n.getAttribute("x"),b=n.getAttribute("y");p.forEach((_,E)=>{_.setAttribute("x",v),_.setAttribute("y",b),_.setAttribute("dy",`${y+E*f}em`)})}}function rM(t,e,r){let n=e[0].radius-_o(e[0],t);for(let i=1;i=a&&(i=n[d],a=h)}const s=mRe(d=>-1*rM({x:d[0],y:d[1]},t,e),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,o={x:r?0:s[0],y:s[1]};let l=!0;for(const d of t)if(_o(o,d)>d.radius){l=!1;break}for(const d of e)if(_o(o,d)d.p1))}function QMt(t){const e={},r=Object.keys(t);for(const n of r)e[n]=[];for(let n=0;n0&&console.log("WARNING: area "+s+" not represented on screen")}return n}function ZMt(t,e,r){const n=[];return n.push(` M`,t,e),n.push(` m`,-r,0),n.push(` a`,r,r,0,1,0,r*2,0),n.push(` -a`,r,r,0,1,0,-r*2,0),n.join(" ")}function ZMt(t){const e=t.split(" ");return{x:Number.parseFloat(e[1]),y:Number.parseFloat(e[2]),radius:-Number.parseFloat(e[4])}}function wRe(t){if(t.length===0)return[];const e={};return h8(t,e),e.arcs}function kRe(t,e){if(t.length===0)return"M 0 0";const r=Math.pow(10,e||0),n=e!=null?a=>Math.round(a*r)/r:a=>a;if(t.length==1){const a=t[0].circle;return QMt(n(a.x),n(a.y),n(a.radius))}const i=[` +a`,r,r,0,1,0,-r*2,0),n.join(" ")}function JMt(t){const e=t.split(" ");return{x:Number.parseFloat(e[1]),y:Number.parseFloat(e[2]),radius:-Number.parseFloat(e[4])}}function wRe(t){if(t.length===0)return[];const e={};return h8(t,e),e.arcs}function kRe(t,e){if(t.length===0)return"M 0 0";const r=Math.pow(10,e||0),n=e!=null?a=>Math.round(a*r)/r:a=>a;if(t.length==1){const a=t[0].circle;return ZMt(n(a.x),n(a.y),n(a.radius))}const i=[` M`,n(t[0].p2.x),n(t[0].p2.y)];for(const a of t){const s=n(a.circle.radius);i.push(` -A`,s,s,0,a.large?1:0,a.sweep?1:0,n(a.p1.x),n(a.p1.y))}return i.join(" ")}function Lle(t,e){return kRe(wRe(t),e)}function JMt(t,e={}){const{lossFunction:r,layoutFunction:n=yRe,normalize:i=!0,orientation:a=Math.PI/2,orientationOrder:s,width:o=600,height:l=350,padding:u=15,scaleToFit:d=!1,symmetricalTextCentre:h=!1,distinct:f,round:p=2}=e;let g=n(t,{lossFunction:r==="default"||!r?Ob:r==="logRatio"?_Re:r,distinct:f});i&&(g=bRe(g,a,s));const m=ERe(g,o,l,u,d),y=CRe(m,t,h),v=new Map(Object.keys(m).map(E=>[E,{set:E,x:m[E].x,y:m[E].y,radius:m[E].radius}])),b=t.map(E=>{const x=E.sets.map(w=>v.get(w)),C=wRe(x),T=kRe(C,p);return{circles:x,arcs:C,path:T,area:E,has:new Set(E.sets)}});function _(E){let x="";for(const C of b)C.has.size>E.length&&E.every(T=>C.has.has(T))&&(x+=" "+C.path);return x}return b.map(({circles:E,arcs:x,path:C,area:T})=>({data:T,text:y[T.sets],circles:E,arcs:x,path:C,distinctPath:C+_(T.sets)}))}var Iz=(function(){var t=S(function(b,_,E,x){for(E=E||{},x=b.length;x--;E[b[x]]=_);return E},"o"),e=[5,8],r=[7,8,11,12,17,19,22,24],n=[1,17],i=[1,18],a=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],s=[1,31],o=[1,39],l=[7,8,11,12,17,19,22,24,27],u=[1,57],d=[1,56],h=[1,58],f=[1,59],p=[1,60],g=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],m={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:S(function(_,E,x,C,T,w,N){var O=w.length-1;switch(T){case 1:return w[O-1];case 2:case 3:case 4:this.$=[];break;case 5:w[O-1].push(w[O]),this.$=w[O-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=w[O];break;case 8:C.setDiagramTitle(w[O].substr(6)),this.$=w[O].substr(6);break;case 9:C.addSubsetData([w[O]],void 0,void 0),C.setIndentMode&&C.setIndentMode(!0);break;case 10:C.addSubsetData([w[O-1]],w[O],void 0),C.setIndentMode&&C.setIndentMode(!0);break;case 11:C.addSubsetData([w[O-2]],void 0,parseFloat(w[O])),C.setIndentMode&&C.setIndentMode(!0);break;case 12:C.addSubsetData([w[O-3]],w[O-2],parseFloat(w[O])),C.setIndentMode&&C.setIndentMode(!0);break;case 13:if(w[O].length<2)throw new Error("union requires multiple identifiers");C.validateUnionIdentifiers&&C.validateUnionIdentifiers(w[O]),C.addSubsetData(w[O],void 0,void 0),C.setIndentMode&&C.setIndentMode(!0);break;case 14:if(w[O-1].length<2)throw new Error("union requires multiple identifiers");C.validateUnionIdentifiers&&C.validateUnionIdentifiers(w[O-1]),C.addSubsetData(w[O-1],w[O],void 0),C.setIndentMode&&C.setIndentMode(!0);break;case 15:if(w[O-2].length<2)throw new Error("union requires multiple identifiers");C.validateUnionIdentifiers&&C.validateUnionIdentifiers(w[O-2]),C.addSubsetData(w[O-2],void 0,parseFloat(w[O])),C.setIndentMode&&C.setIndentMode(!0);break;case 16:if(w[O-3].length<2)throw new Error("union requires multiple identifiers");C.validateUnionIdentifiers&&C.validateUnionIdentifiers(w[O-3]),C.addSubsetData(w[O-3],w[O-2],parseFloat(w[O])),C.setIndentMode&&C.setIndentMode(!0);break;case 17:case 18:case 19:C.addTextData(w[O-1],w[O],void 0);break;case 20:case 21:C.addTextData(w[O-2],w[O-1],w[O]);break;case 23:C.addStyleData(w[O-1],w[O]);break;case 24:case 25:case 26:var M=C.getCurrentSets();if(!M)throw new Error("text requires set");C.addTextData(M,w[O],void 0);break;case 27:case 28:var M=C.getCurrentSets();if(!M)throw new Error("text requires set");C.addTextData(M,w[O-1],w[O]);break;case 29:case 41:this.$=[w[O]];break;case 30:case 42:this.$=[...w[O-2],w[O]];break;case 31:this.$=[w[O-2],w[O]];break;case 33:this.$=w[O].join(" ");break;case 34:this.$=[w[O]];break;case 35:w[O-1].push(w[O]),this.$=w[O-1];break;case 43:case 44:this.$=w[O];break}},"anonymous"),table:[t(e,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},t(r,[2,4],{6:5}),t(e,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},t(r,[2,5]),t(r,[2,6]),t(r,[2,7]),t(r,[2,8]),{13:16,20:n,21:i},{13:20,18:19,20:n,21:i},{13:20,18:21,20:n,21:i},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:n,21:i},t(r,[2,9],{14:[1,27],15:[1,28]}),t(a,[2,43]),t(a,[2,44]),t(r,[2,13],{14:[1,29],15:[1,30],27:s}),t(a,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:s},t(r,[2,22]),t(r,[2,24],{14:[1,35]}),t(r,[2,25],{14:[1,36]}),t(r,[2,26]),{20:o,25:37,26:38,27:s},t(r,[2,10],{15:[1,40]}),{16:[1,41]},t(r,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:n,21:i},t(r,[2,17],{14:[1,45]}),t(r,[2,18],{14:[1,46]}),t(r,[2,19]),t(r,[2,27]),t(r,[2,28]),t(r,[2,23],{27:[1,47]}),t(l,[2,29]),{15:[1,48]},{16:[1,49]},t(r,[2,11]),{16:[1,50]},t(r,[2,15]),t(a,[2,42]),t(r,[2,20]),t(r,[2,21]),{20:o,26:51},{16:u,20:d,21:[1,53],28:52,29:54,30:55,31:h,32:f,33:p},t(r,[2,12]),t(r,[2,16]),t(l,[2,30]),t(l,[2,31]),t(l,[2,32]),t(l,[2,33],{30:61,16:u,20:d,31:h,32:f,33:p}),t(g,[2,34]),t(g,[2,36]),t(g,[2,37]),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,35])],defaultActions:{6:[2,1]},parseError:S(function(_,E){if(E.recoverable)this.trace(_);else{var x=new Error(_);throw x.hash=E,x}},"parseError"),parse:S(function(_){var E=this,x=[0],C=[],T=[null],w=[],N=this.table,O="",M=0,$=0,F=2,A=1,I=w.slice.call(arguments,1),D=Object.create(this.lexer),L={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(L.yy[R]=this.yy[R]);D.setInput(_,L.yy),L.yy.lexer=D,L.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var P=D.yylloc;w.push(P);var z=D.options&&D.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function B(xe){x.length=x.length-2*xe,T.length=T.length-xe,w.length=w.length-xe}S(B,"popStack");function q(){var xe;return xe=C.pop()||D.lex()||A,typeof xe!="number"&&(xe instanceof Array&&(C=xe,xe=C.pop()),xe=E.symbols_[xe]||xe),xe}S(q,"lex");for(var Y,Q,H,J,Z={},pe,re,ce,ae;;){if(Q=x[x.length-1],this.defaultActions[Q]?H=this.defaultActions[Q]:((Y===null||typeof Y>"u")&&(Y=q()),H=N[Q]&&N[Q][Y]),typeof H>"u"||!H.length||!H[0]){var se="";ae=[];for(pe in N[Q])this.terminals_[pe]&&pe>F&&ae.push("'"+this.terminals_[pe]+"'");D.showPosition?se="Parse error on line "+(M+1)+`: +A`,s,s,0,a.large?1:0,a.sweep?1:0,n(a.p1.x),n(a.p1.y))}return i.join(" ")}function Lle(t,e){return kRe(wRe(t),e)}function ePt(t,e={}){const{lossFunction:r,layoutFunction:n=yRe,normalize:i=!0,orientation:a=Math.PI/2,orientationOrder:s,width:o=600,height:l=350,padding:u=15,scaleToFit:d=!1,symmetricalTextCentre:h=!1,distinct:f,round:p=2}=e;let g=n(t,{lossFunction:r==="default"||!r?Ob:r==="logRatio"?_Re:r,distinct:f});i&&(g=bRe(g,a,s));const m=ERe(g,o,l,u,d),y=CRe(m,t,h),v=new Map(Object.keys(m).map(E=>[E,{set:E,x:m[E].x,y:m[E].y,radius:m[E].radius}])),b=t.map(E=>{const x=E.sets.map(w=>v.get(w)),C=wRe(x),T=kRe(C,p);return{circles:x,arcs:C,path:T,area:E,has:new Set(E.sets)}});function _(E){let x="";for(const C of b)C.has.size>E.length&&E.every(T=>C.has.has(T))&&(x+=" "+C.path);return x}return b.map(({circles:E,arcs:x,path:C,area:T})=>({data:T,text:y[T.sets],circles:E,arcs:x,path:C,distinctPath:C+_(T.sets)}))}var Iz=(function(){var t=S(function(b,_,E,x){for(E=E||{},x=b.length;x--;E[b[x]]=_);return E},"o"),e=[5,8],r=[7,8,11,12,17,19,22,24],n=[1,17],i=[1,18],a=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],s=[1,31],o=[1,39],l=[7,8,11,12,17,19,22,24,27],u=[1,57],d=[1,56],h=[1,58],f=[1,59],p=[1,60],g=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],m={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:S(function(_,E,x,C,T,w,N){var O=w.length-1;switch(T){case 1:return w[O-1];case 2:case 3:case 4:this.$=[];break;case 5:w[O-1].push(w[O]),this.$=w[O-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=w[O];break;case 8:C.setDiagramTitle(w[O].substr(6)),this.$=w[O].substr(6);break;case 9:C.addSubsetData([w[O]],void 0,void 0),C.setIndentMode&&C.setIndentMode(!0);break;case 10:C.addSubsetData([w[O-1]],w[O],void 0),C.setIndentMode&&C.setIndentMode(!0);break;case 11:C.addSubsetData([w[O-2]],void 0,parseFloat(w[O])),C.setIndentMode&&C.setIndentMode(!0);break;case 12:C.addSubsetData([w[O-3]],w[O-2],parseFloat(w[O])),C.setIndentMode&&C.setIndentMode(!0);break;case 13:if(w[O].length<2)throw new Error("union requires multiple identifiers");C.validateUnionIdentifiers&&C.validateUnionIdentifiers(w[O]),C.addSubsetData(w[O],void 0,void 0),C.setIndentMode&&C.setIndentMode(!0);break;case 14:if(w[O-1].length<2)throw new Error("union requires multiple identifiers");C.validateUnionIdentifiers&&C.validateUnionIdentifiers(w[O-1]),C.addSubsetData(w[O-1],w[O],void 0),C.setIndentMode&&C.setIndentMode(!0);break;case 15:if(w[O-2].length<2)throw new Error("union requires multiple identifiers");C.validateUnionIdentifiers&&C.validateUnionIdentifiers(w[O-2]),C.addSubsetData(w[O-2],void 0,parseFloat(w[O])),C.setIndentMode&&C.setIndentMode(!0);break;case 16:if(w[O-3].length<2)throw new Error("union requires multiple identifiers");C.validateUnionIdentifiers&&C.validateUnionIdentifiers(w[O-3]),C.addSubsetData(w[O-3],w[O-2],parseFloat(w[O])),C.setIndentMode&&C.setIndentMode(!0);break;case 17:case 18:case 19:C.addTextData(w[O-1],w[O],void 0);break;case 20:case 21:C.addTextData(w[O-2],w[O-1],w[O]);break;case 23:C.addStyleData(w[O-1],w[O]);break;case 24:case 25:case 26:var M=C.getCurrentSets();if(!M)throw new Error("text requires set");C.addTextData(M,w[O],void 0);break;case 27:case 28:var M=C.getCurrentSets();if(!M)throw new Error("text requires set");C.addTextData(M,w[O-1],w[O]);break;case 29:case 41:this.$=[w[O]];break;case 30:case 42:this.$=[...w[O-2],w[O]];break;case 31:this.$=[w[O-2],w[O]];break;case 33:this.$=w[O].join(" ");break;case 34:this.$=[w[O]];break;case 35:w[O-1].push(w[O]),this.$=w[O-1];break;case 43:case 44:this.$=w[O];break}},"anonymous"),table:[t(e,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},t(r,[2,4],{6:5}),t(e,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},t(r,[2,5]),t(r,[2,6]),t(r,[2,7]),t(r,[2,8]),{13:16,20:n,21:i},{13:20,18:19,20:n,21:i},{13:20,18:21,20:n,21:i},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:n,21:i},t(r,[2,9],{14:[1,27],15:[1,28]}),t(a,[2,43]),t(a,[2,44]),t(r,[2,13],{14:[1,29],15:[1,30],27:s}),t(a,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:s},t(r,[2,22]),t(r,[2,24],{14:[1,35]}),t(r,[2,25],{14:[1,36]}),t(r,[2,26]),{20:o,25:37,26:38,27:s},t(r,[2,10],{15:[1,40]}),{16:[1,41]},t(r,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:n,21:i},t(r,[2,17],{14:[1,45]}),t(r,[2,18],{14:[1,46]}),t(r,[2,19]),t(r,[2,27]),t(r,[2,28]),t(r,[2,23],{27:[1,47]}),t(l,[2,29]),{15:[1,48]},{16:[1,49]},t(r,[2,11]),{16:[1,50]},t(r,[2,15]),t(a,[2,42]),t(r,[2,20]),t(r,[2,21]),{20:o,26:51},{16:u,20:d,21:[1,53],28:52,29:54,30:55,31:h,32:f,33:p},t(r,[2,12]),t(r,[2,16]),t(l,[2,30]),t(l,[2,31]),t(l,[2,32]),t(l,[2,33],{30:61,16:u,20:d,31:h,32:f,33:p}),t(g,[2,34]),t(g,[2,36]),t(g,[2,37]),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,35])],defaultActions:{6:[2,1]},parseError:S(function(_,E){if(E.recoverable)this.trace(_);else{var x=new Error(_);throw x.hash=E,x}},"parseError"),parse:S(function(_){var E=this,x=[0],C=[],T=[null],w=[],N=this.table,O="",M=0,$=0,F=2,A=1,I=w.slice.call(arguments,1),D=Object.create(this.lexer),L={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(L.yy[R]=this.yy[R]);D.setInput(_,L.yy),L.yy.lexer=D,L.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var P=D.yylloc;w.push(P);var z=D.options&&D.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function B(xe){x.length=x.length-2*xe,T.length=T.length-xe,w.length=w.length-xe}S(B,"popStack");function q(){var xe;return xe=C.pop()||D.lex()||A,typeof xe!="number"&&(xe instanceof Array&&(C=xe,xe=C.pop()),xe=E.symbols_[xe]||xe),xe}S(q,"lex");for(var Y,Q,H,J,Z={},pe,re,ce,ae;;){if(Q=x[x.length-1],this.defaultActions[Q]?H=this.defaultActions[Q]:((Y===null||typeof Y>"u")&&(Y=q()),H=N[Q]&&N[Q][Y]),typeof H>"u"||!H.length||!H[0]){var se="";ae=[];for(pe in N[Q])this.terminals_[pe]&&pe>F&&ae.push("'"+this.terminals_[pe]+"'");D.showPosition?se="Parse error on line "+(M+1)+`: `+D.showPosition()+` Expecting `+ae.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":se="Parse error on line "+(M+1)+": Unexpected "+(Y==A?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(se,{text:D.match,token:this.terminals_[Y]||Y,line:D.yylineno,loc:P,expected:ae})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+Y);switch(H[0]){case 1:x.push(Y),T.push(D.yytext),w.push(D.yylloc),x.push(H[1]),Y=null,$=D.yyleng,O=D.yytext,M=D.yylineno,P=D.yylloc;break;case 2:if(re=this.productions_[H[1]][1],Z.$=T[T.length-re],Z._$={first_line:w[w.length-(re||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(re||1)].first_column,last_column:w[w.length-1].last_column},z&&(Z._$.range=[w[w.length-(re||1)].range[0],w[w.length-1].range[1]]),J=this.performAction.apply(Z,[O,$,M,L.yy,H[1],T,w].concat(I)),typeof J<"u")return J;re&&(x=x.slice(0,-1*re*2),T=T.slice(0,-1*re),w=w.slice(0,-1*re)),x.push(this.productions_[H[1]][0]),T.push(Z.$),w.push(Z._$),ce=N[x[x.length-2]][x[x.length-1]],x.push(ce);break;case 3:return!0}}return!0},"parse")},y=(function(){var b={EOF:1,parseError:S(function(E,x){if(this.yy.parser)this.yy.parser.parseError(E,x);else throw new Error(E)},"parseError"),setInput:S(function(_,E){return this.yy=E||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var E=_.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},"input"),unput:S(function(_){var E=_.length,x=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var C=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===C.length?this.yylloc.first_column:0)+C[C.length-x.length].length-x[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(_){this.unput(this.match.slice(_))},"less"),pastInput:S(function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var _=this.pastInput(),E=new Array(_.length+1).join("-");return _+this.upcomingInput()+` `+E+"^"},"showPosition"),test_match:S(function(_,E){var x,C,T;if(this.options.backtrack_lexer&&(T={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(T.yylloc.range=this.yylloc.range.slice(0))),C=_[0].match(/(?:\r\n?|\n).*/g),C&&(this.yylineno+=C.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:C?C[C.length-1].length-C[C.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_[0].length),this.matched+=_[0],x=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var w in T)this[w]=T[w];return!1}return!1},"test_match"),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,E,x,C;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),w=0;wE[0].length)){if(E=x,C=w,this.options.backtrack_lexer){if(_=this.test_match(x,T[w]),_!==!1)return _;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(_=this.test_match(E,T[C]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var E=this.next();return E||this.lex()},"lex"),begin:S(function(E){this.conditionStack.push(E)},"begin"),popState:S(function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},"topState"),pushState:S(function(E){this.begin(E)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(E,x,C,T){switch(C){case 0:break;case 1:break;case 2:break;case 3:if(E.getIndentMode&&E.getIndentMode())return E.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:E.setIndentMode&&E.setIndentMode(!1),this.begin("INITIAL"),this.unput(x.yytext);break;case 6:return this.begin("bol"),8;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(E.consumeIndentText)E.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return x.yytext=x.yytext.slice(2,-2),14;case 17:return x.yytext=x.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return b})();m.lexer=y;function v(){this.yy={}}return S(v,"Parser"),v.prototype=m,m.Parser=v,new v})();Iz.parser=Iz;var ePt=Iz,zW=[],UW=[],GW=[],qW=new Set,YW,HW=!1,tPt=S((t,e,r)=>{const n=f8(t).sort(),i=r??10/Math.pow(t.length,2);YW=n,n.length===1&&qW.add(n[0]),zW.push({sets:n,size:i,label:e?Y4(e):void 0})},"addSubsetData"),rPt=S(()=>zW,"getSubsetData"),Y4=S(t=>{const e=t.trim();return e.length>=2&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e},"normalizeText"),nPt=S(t=>t&&Y4(t),"normalizeStyleValue"),iPt=S((t,e,r)=>{const n=Y4(e);UW.push({sets:f8(t).sort(),id:n,label:r?Y4(r):void 0})},"addTextData"),aPt=S((t,e)=>{const r=f8(t).sort(),n={};for(const[i,a]of e)n[i]=nPt(a)??a;GW.push({targets:r,styles:n})},"addStyleData"),sPt=S(()=>GW,"getStyleData"),f8=S(t=>t.map(e=>Y4(e)),"normalizeIdentifierList"),oPt=S(t=>{const r=f8(t).filter(n=>!qW.has(n));if(r.length>0)throw new Error(`unknown set identifier: ${r.join(", ")}`)},"validateUnionIdentifiers"),lPt=S(()=>UW,"getTextData"),cPt=S(()=>YW,"getCurrentSets"),uPt=S(()=>HW,"getIndentMode"),dPt=S(t=>{HW=t},"setIndentMode"),hPt=on.venn;function ARe(){return $i(hPt,xr().venn)}S(ARe,"getConfig");var fPt=S(()=>{oi(),zW.length=0,UW.length=0,GW.length=0,qW.clear(),YW=void 0,HW=!1},"customClear"),pPt={getConfig:ARe,clear:fPt,setAccTitle:ai,getAccTitle:yi,setDiagramTitle:pi,getDiagramTitle:li,getAccDescription:_i,setAccDescription:vi,addSubsetData:tPt,getSubsetData:rPt,addTextData:iPt,addStyleData:aPt,validateUnionIdentifiers:oPt,getTextData:lPt,getStyleData:sPt,getCurrentSets:cPt,getIndentMode:uPt,setIndentMode:dPt},gPt=S(t=>` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:S(function(){var E=this.next();return E||this.lex()},"lex"),begin:S(function(E){this.conditionStack.push(E)},"begin"),popState:S(function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:S(function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},"topState"),pushState:S(function(E){this.begin(E)},"pushState"),stateStackSize:S(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:S(function(E,x,C,T){switch(C){case 0:break;case 1:break;case 2:break;case 3:if(E.getIndentMode&&E.getIndentMode())return E.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:E.setIndentMode&&E.setIndentMode(!1),this.begin("INITIAL"),this.unput(x.yytext);break;case 6:return this.begin("bol"),8;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(E.consumeIndentText)E.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return x.yytext=x.yytext.slice(2,-2),14;case 17:return x.yytext=x.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return b})();m.lexer=y;function v(){this.yy={}}return S(v,"Parser"),v.prototype=m,m.Parser=v,new v})();Iz.parser=Iz;var tPt=Iz,zW=[],UW=[],GW=[],qW=new Set,YW,HW=!1,rPt=S((t,e,r)=>{const n=f8(t).sort(),i=r??10/Math.pow(t.length,2);YW=n,n.length===1&&qW.add(n[0]),zW.push({sets:n,size:i,label:e?Y4(e):void 0})},"addSubsetData"),nPt=S(()=>zW,"getSubsetData"),Y4=S(t=>{const e=t.trim();return e.length>=2&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e},"normalizeText"),iPt=S(t=>t&&Y4(t),"normalizeStyleValue"),aPt=S((t,e,r)=>{const n=Y4(e);UW.push({sets:f8(t).sort(),id:n,label:r?Y4(r):void 0})},"addTextData"),sPt=S((t,e)=>{const r=f8(t).sort(),n={};for(const[i,a]of e)n[i]=iPt(a)??a;GW.push({targets:r,styles:n})},"addStyleData"),oPt=S(()=>GW,"getStyleData"),f8=S(t=>t.map(e=>Y4(e)),"normalizeIdentifierList"),lPt=S(t=>{const r=f8(t).filter(n=>!qW.has(n));if(r.length>0)throw new Error(`unknown set identifier: ${r.join(", ")}`)},"validateUnionIdentifiers"),cPt=S(()=>UW,"getTextData"),uPt=S(()=>YW,"getCurrentSets"),dPt=S(()=>HW,"getIndentMode"),hPt=S(t=>{HW=t},"setIndentMode"),fPt=on.venn;function ARe(){return $i(fPt,xr().venn)}S(ARe,"getConfig");var pPt=S(()=>{oi(),zW.length=0,UW.length=0,GW.length=0,qW.clear(),YW=void 0,HW=!1},"customClear"),gPt={getConfig:ARe,clear:pPt,setAccTitle:ai,getAccTitle:yi,setDiagramTitle:pi,getDiagramTitle:li,getAccDescription:_i,setAccDescription:vi,addSubsetData:rPt,getSubsetData:nPt,addTextData:aPt,addStyleData:sPt,validateUnionIdentifiers:lPt,getTextData:cPt,getStyleData:oPt,getCurrentSets:uPt,getIndentMode:dPt,setIndentMode:hPt},mPt=S(t=>` .venn-title { font-size: 32px; fill: ${t.vennTitleTextColor}; @@ -7339,7 +7339,7 @@ Expecting `+ae.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":se="Parse error font-family: ${t.fontFamily}; color: ${t.vennSetTextColor}; } -`,"getStyles"),mPt=gPt;function RRe(t){const e=new Map;for(const r of t){const n=r.targets.join("|"),i=e.get(n);i?Object.assign(i,r.styles):e.set(n,{...r.styles})}return e}S(RRe,"buildStyleByKey");var yPt=S((t,e,r,n)=>{const i=n.db,a=i.getConfig?.(),{themeVariables:s,look:o,handDrawnSeed:l}=xr(),u=o==="handDrawn",d=[s.venn1,s.venn2,s.venn3,s.venn4,s.venn5,s.venn6,s.venn7,s.venn8].filter(Boolean),h=i.getDiagramTitle?.(),f=i.getSubsetData(),p=i.getTextData(),g=RRe(i.getStyleData()),m=a?.width??800,y=a?.height??450,b=m/1600,_=h?48*b:0,E=s.primaryTextColor??s.textColor,x=To(e);x.attr("viewBox",`0 0 ${m} ${y}`),h&&x.append("text").text(h).attr("class","venn-title").attr("font-size",`${32*b}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*b).style("fill",s.vennTitleTextColor||s.titleColor);const C=At(document.createElement("div")),T=XMt().width(m).height(y-_);C.datum(f).call(T);const w=u?gr.svg(C.select("svg").node()):void 0,N=JMt(f,{width:m,height:y-_,padding:a?.padding??15}),O=new Map;for(const A of N){const I=Id([...A.data.sets].sort());O.set(I,A)}p.length>0&&NRe(a,O,C,p,b,g);const M=Qs(s.background||"#f4f4f4");C.selectAll(".venn-circle").each(function(A,I){const D=At(this),R=Id([...A.sets].sort()),P=g.get(R),z=P?.fill||d[I%d.length]||s.primaryColor;D.classed(`venn-set-${I%8}`,!0);const B=P?.["fill-opacity"]??.1,q=P?.stroke||z,Y=P?.["stroke-width"]||`${5*b}`;if(u&&w){const H=O.get(R);if(H&&H.circles.length>0){const J=H.circles[0],Z=w.circle(J.x,J.y,J.radius*2,{roughness:.7,seed:l,fill:vX(z,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+I*60,stroke:q,strokeWidth:parseFloat(String(Y))});D.select("path").remove(),D.node()?.insertBefore(Z,D.select("text").node())}}else D.select("path").style("fill",z).style("fill-opacity",B).style("stroke",q).style("stroke-width",Y).style("stroke-opacity",.95);const Q=P?.color||(M?vt(z,30):_t(z,30));D.select("text").style("font-size",`${48*b}px`).style("fill",Q)}),u&&w?C.selectAll(".venn-intersection").each(function(A){const I=At(this),L=Id([...A.sets].sort()),R=g.get(L),P=R?.fill;if(P){const z=I.select("path"),B=z.attr("d");if(B){const q=w.path(B,{roughness:.7,seed:l,fill:vX(P,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),Y=z.node();Y?.parentNode?.insertBefore(q,Y),z.remove()}}else I.select("path").style("fill-opacity",0);I.select("text").style("font-size",`${48*b}px`).style("fill",R?.color??s.vennSetTextColor??E)}):(C.selectAll(".venn-intersection text").style("font-size",`${48*b}px`).style("fill",A=>{const D=Id([...A.sets].sort());return g.get(D)?.color??s.vennSetTextColor??E}),C.selectAll(".venn-intersection path").style("fill-opacity",A=>{const D=Id([...A.sets].sort());return g.get(D)?.fill?1:0}).style("fill",A=>{const D=Id([...A.sets].sort());return g.get(D)?.fill??"transparent"}));const $=x.append("g").attr("transform",`translate(0, ${_})`),F=C.select("svg").node();if(F&&"childNodes"in F)for(const A of[...F.childNodes])$.node()?.appendChild(A);ua(x,y,m,a?.useMaxWidth??!0)},"draw");function Id(t){return t.join("|")}S(Id,"stableSetsKey");function NRe(t,e,r,n,i,a){const s=t?.useDebugLayout??!1,l=r.select("svg").append("g").attr("class","venn-text-nodes"),u=new Map;for(const d of n){const h=Id(d.sets),f=u.get(h);f?f.push(d):u.set(h,[d])}for(const[d,h]of u.entries()){const f=e.get(d);if(!f?.text)continue;const p=f.text.x,g=f.text.y,m=Math.min(...f.circles.map(A=>A.radius)),y=Math.min(...f.circles.map(A=>A.radius-Math.hypot(p-A.x,g-A.y)));let v=Number.isFinite(y)?Math.max(0,y):0;v===0&&Number.isFinite(m)&&(v=m*.6);const b=l.append("g").attr("class","venn-text-area").attr("font-size",`${40*i}px`);s&&b.append("circle").attr("class","venn-text-debug-circle").attr("cx",p).attr("cy",g).attr("r",v).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*i).attr("stroke-dasharray",`${6*i} ${4*i}`);const _=Math.max(80*i,v*2*.95),E=Math.max(60*i,v*2*.95),T=(f.data.label&&f.data.label.length>0?Math.min(32*i,v*.25):0)+(h.length<=2?30*i:0),w=p-_/2,N=g-E/2+T,O=Math.max(1,Math.ceil(Math.sqrt(h.length))),M=Math.max(1,Math.ceil(h.length/O)),$=_/O,F=E/M;for(const[A,I]of h.entries()){const D=A%O,L=Math.floor(A/O),R=w+$*(D+.5),P=N+F*(L+.5);s&&b.append("rect").attr("class","venn-text-debug-cell").attr("x",w+$*D).attr("y",N+F*L).attr("width",$).attr("height",F).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*i).attr("stroke-dasharray",`${4*i} ${3*i}`);const z=$*.9,B=F*.9,q=b.append("foreignObject").attr("class","venn-text-node-fo").attr("width",z).attr("height",B).attr("x",R-z/2).attr("y",P-B/2).attr("overflow","visible"),Y=a.get(I.id)?.color,Q=q.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(I.label??I.id);Y&&Q.style("color",Y)}}}S(NRe,"renderTextNodes");var vPt={draw:yPt},_Pt={parser:ePt,db:pPt,renderer:vPt,styles:mPt};const bPt=Object.freeze(Object.defineProperty({__proto__:null,diagram:_Pt},Symbol.toStringTag,{value:"Module"}));var L_,IRe=(L_=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ai,this.getAccTitle=yi,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.getAccDescription=_i,this.setAccDescription=vi}getNodes(){return this.nodes}getConfig(){const e=on,r=xr();return $i({...e.treemap,...r.treemap??{}})}addNode(e,r){this.nodes.push(e),this.levels.set(e,r),r===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,r){const n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},i=r.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");i&&i.forEach(a=>{oG(a)&&(n?.textStyles?n.textStyles.push(a):n.textStyles=[a]),n?.styles?n.styles.push(a):n.styles=[a]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){oi(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},S(L_,"TreeMapDB"),L_);function ORe(t){if(!t.length)return[];const e=[],r=[];return t.forEach(n=>{const i={name:n.name,children:n.type==="Leaf"?void 0:[]};for(i.classSelector=n?.classSelector,n?.cssCompiledStyles&&(i.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(i.value=n.value);r.length>0&&r[r.length-1].level>=n.level;)r.pop();if(r.length===0)e.push(i);else{const a=r[r.length-1].node;a.children?a.children.push(i):a.children=[i]}n.type!=="Leaf"&&r.push({node:i,level:n.level})}),e}S(ORe,"buildHierarchy");var EPt=S((t,e)=>{wu(t,e);const r=[];for(const a of t.TreemapRows??[])a.$type==="ClassDefStatement"&&e.addClass(a.className??"",a.styleText??"");for(const a of t.TreemapRows??[]){const s=a.item;if(!s)continue;const o=a.indent?parseInt(a.indent):0,l=SPt(s),u=s.classSelector?e.getStylesForClass(s.classSelector):[],d=u.length>0?u:void 0,h={level:o,name:l,type:s.$type,value:s.value,classSelector:s.classSelector,cssCompiledStyles:d};r.push(h)}const n=ORe(r),i=S((a,s)=>{for(const o of a)e.addNode(o,s),o.children&&o.children.length>0&&i(o.children,s+1)},"addNodesRecursively");i(n,0)},"populate"),SPt=S(t=>t.name?String(t.name):"","getItemName"),DRe={parser:{yy:void 0},parse:S(async t=>{try{const r=await _c("treemap",t);ge.debug("Treemap AST:",r);const n=DRe.parser?.yy;if(!(n instanceof IRe))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");EPt(r,n)}catch(e){throw ge.error("Error parsing treemap:",e),e}},"parse")},TPt=10,Jg=10,rE=25,xPt=S((t,e,r,n)=>{const i=n.db,a=i.getConfig(),s=a.padding??TPt,o=i.getDiagramTitle(),l=i.getRoot(),{themeVariables:u}=xr();if(!l)return;const d=o?30:0,h=To(e),f=a.nodeWidth?a.nodeWidth*Jg:960,p=a.nodeHeight?a.nodeHeight*Jg:500,g=f,m=p+d;h.attr("viewBox",`0 0 ${g} ${m}`),ua(h,m,g,a.useMaxWidth);let y;try{const A=a.valueFormat||",";if(A==="$0,0")y=S(I=>"$"+Lf(",")(I),"valueFormat");else if(A.startsWith("$")&&A.includes(",")){const I=/\.\d+/.exec(A),D=I?I[0]:"";y=S(L=>"$"+Lf(","+D)(L),"valueFormat")}else if(A.startsWith("$")){const I=A.substring(1);y=S(D=>"$"+Lf(I||"")(D),"valueFormat")}else y=Lf(A)}catch(A){ge.error("Error creating format function:",A),y=Lf(",")}const v=hp().range(["transparent",u.cScale0,u.cScale1,u.cScale2,u.cScale3,u.cScale4,u.cScale5,u.cScale6,u.cScale7,u.cScale8,u.cScale9,u.cScale10,u.cScale11]),b=hp().range(["transparent",u.cScalePeer0,u.cScalePeer1,u.cScalePeer2,u.cScalePeer3,u.cScalePeer4,u.cScalePeer5,u.cScalePeer6,u.cScalePeer7,u.cScalePeer8,u.cScalePeer9,u.cScalePeer10,u.cScalePeer11]),_=hp().range([u.cScaleLabel0,u.cScaleLabel1,u.cScaleLabel2,u.cScaleLabel3,u.cScaleLabel4,u.cScaleLabel5,u.cScaleLabel6,u.cScaleLabel7,u.cScaleLabel8,u.cScaleLabel9,u.cScaleLabel10,u.cScaleLabel11]);o&&h.append("text").attr("x",g/2).attr("y",d/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(o);const E=h.append("g").attr("transform",`translate(0, ${d})`).attr("class","treemapContainer"),x=NU(l).sum(A=>A.value??0).sort((A,I)=>(I.value??0)-(A.value??0)),T=kGe().size([f,p]).paddingTop(A=>A.children&&A.children.length>0?rE+Jg:0).paddingInner(s).paddingLeft(A=>A.children&&A.children.length>0?Jg:0).paddingRight(A=>A.children&&A.children.length>0?Jg:0).paddingBottom(A=>A.children&&A.children.length>0?Jg:0).round(!0)(x),w=T.descendants().filter(A=>A.children&&A.children.length>0),N=E.selectAll(".treemapSection").data(w).enter().append("g").attr("class","treemapSection").attr("transform",A=>`translate(${A.x0},${A.y0})`);N.append("rect").attr("width",A=>A.x1-A.x0).attr("height",rE).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",A=>A.depth===0?"display: none;":""),N.append("clipPath").attr("id",(A,I)=>`clip-section-${e}-${I}`).append("rect").attr("width",A=>Math.max(0,A.x1-A.x0-12)).attr("height",rE),N.append("rect").attr("width",A=>A.x1-A.x0).attr("height",A=>A.y1-A.y0).attr("class",(A,I)=>`treemapSection section${I}`).attr("fill",A=>v(A.data.name)).attr("fill-opacity",.6).attr("stroke",A=>b(A.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",A=>{if(A.depth===0)return"display: none;";const I=hr({cssCompiledStyles:A.data.cssCompiledStyles});return I.nodeStyles+";"+I.borderStyles.join(";")}),N.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",rE/2).attr("dominant-baseline","middle").text(A=>A.depth===0?"":A.data.name).attr("font-weight","bold").attr("style",A=>{if(A.depth===0)return"display: none;";const I="dominant-baseline: middle; font-size: 12px; fill:"+_(A.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",D=hr({cssCompiledStyles:A.data.cssCompiledStyles});return I+D.labelStyles.replace("color:","fill:")}).each(function(A){if(A.depth===0)return;const I=At(this),D=A.data.name;I.text(D);const L=A.x1-A.x0,R=6;let P;a.showValues!==!1&&A.value?P=L-10-30-10-R:P=L-R-6;const B=Math.max(15,P),q=I.node();if(q.getComputedTextLength()>B){let H=D;for(;H.length>0;){if(H=D.substring(0,H.length-1),H.length===0){I.text("..."),q.getComputedTextLength()>B&&I.text("");break}if(I.text(H+"..."),q.getComputedTextLength()<=B)break}}}),a.showValues!==!1&&N.append("text").attr("class","treemapSectionValue").attr("x",A=>A.x1-A.x0-10).attr("y",rE/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(A=>A.value?y(A.value):"").attr("font-style","italic").attr("style",A=>{if(A.depth===0)return"display: none;";const I="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+_(A.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",D=hr({cssCompiledStyles:A.data.cssCompiledStyles});return I+D.labelStyles.replace("color:","fill:")});const O=T.leaves(),M=E.selectAll(".treemapLeafGroup").data(O).enter().append("g").attr("class",(A,I)=>`treemapNode treemapLeafGroup leaf${I}${A.data.classSelector?` ${A.data.classSelector}`:""}x`).attr("transform",A=>`translate(${A.x0},${A.y0})`);M.append("rect").attr("width",A=>A.x1-A.x0).attr("height",A=>A.y1-A.y0).attr("class","treemapLeaf").attr("fill",A=>A.parent?v(A.parent.data.name):v(A.data.name)).attr("style",A=>hr({cssCompiledStyles:A.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",A=>A.parent?v(A.parent.data.name):v(A.data.name)).attr("stroke-width",3),M.append("clipPath").attr("id",(A,I)=>`clip-${e}-${I}`).append("rect").attr("width",A=>Math.max(0,A.x1-A.x0-4)).attr("height",A=>Math.max(0,A.y1-A.y0-4)),M.append("text").attr("class","treemapLabel").attr("x",A=>(A.x1-A.x0)/2).attr("y",A=>(A.y1-A.y0)/2).attr("style",A=>{const I="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+_(A.data.name)+";",D=hr({cssCompiledStyles:A.data.cssCompiledStyles});return I+D.labelStyles.replace("color:","fill:")}).attr("clip-path",(A,I)=>`url(#clip-${e}-${I})`).text(A=>A.data.name).each(function(A){const I=At(this),D=A.x1-A.x0,L=A.y1-A.y0,R=I.node(),P=4,z=D-2*P,B=L-2*P;if(z<10||B<10){I.style("display","none");return}let q=parseInt(I.style("font-size"),10);const Y=8,Q=28,H=.6,J=6,Z=2;for(;R.getComputedTextLength()>z&&q>Y;)q--,I.style("font-size",`${q}px`);let pe=Math.max(J,Math.min(Q,Math.round(q*H))),re=q+Z+pe;for(;re>B&&q>Y&&(q--,pe=Math.max(J,Math.min(Q,Math.round(q*H))),!(pez||q(I.x1-I.x0)/2).attr("y",function(I){return(I.y1-I.y0)/2}).attr("style",I=>{const D="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+_(I.data.name)+";",L=hr({cssCompiledStyles:I.data.cssCompiledStyles});return D+L.labelStyles.replace("color:","fill:")}).attr("clip-path",(I,D)=>`url(#clip-${e}-${D})`).text(I=>I.value?y(I.value):"").each(function(I){const D=At(this),L=this.parentNode;if(!L){D.style("display","none");return}const R=At(L).select(".treemapLabel");if(R.empty()||R.style("display")==="none"){D.style("display","none");return}const P=parseFloat(R.style("font-size")),z=28,B=.6,q=6,Y=2,Q=Math.max(q,Math.min(z,Math.round(P*B)));D.style("font-size",`${Q}px`);const J=(I.y1-I.y0)/2+P/2+Y;D.attr("y",J);const Z=I.x1-I.x0,ce=I.y1-I.y0-4,ae=Z-8;D.node().getComputedTextLength()>ae||J+Q>ce||Q{const e=Fb(),r=xr(),n=$i(e,r.themeVariables),i=$i(kPt,t),a=i.titleColor??n.titleColor,s=i.labelColor??n.textColor,o=i.valueColor??n.textColor;return` +`,"getStyles"),yPt=mPt;function RRe(t){const e=new Map;for(const r of t){const n=r.targets.join("|"),i=e.get(n);i?Object.assign(i,r.styles):e.set(n,{...r.styles})}return e}S(RRe,"buildStyleByKey");var vPt=S((t,e,r,n)=>{const i=n.db,a=i.getConfig?.(),{themeVariables:s,look:o,handDrawnSeed:l}=xr(),u=o==="handDrawn",d=[s.venn1,s.venn2,s.venn3,s.venn4,s.venn5,s.venn6,s.venn7,s.venn8].filter(Boolean),h=i.getDiagramTitle?.(),f=i.getSubsetData(),p=i.getTextData(),g=RRe(i.getStyleData()),m=a?.width??800,y=a?.height??450,b=m/1600,_=h?48*b:0,E=s.primaryTextColor??s.textColor,x=To(e);x.attr("viewBox",`0 0 ${m} ${y}`),h&&x.append("text").text(h).attr("class","venn-title").attr("font-size",`${32*b}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*b).style("fill",s.vennTitleTextColor||s.titleColor);const C=At(document.createElement("div")),T=jMt().width(m).height(y-_);C.datum(f).call(T);const w=u?gr.svg(C.select("svg").node()):void 0,N=ePt(f,{width:m,height:y-_,padding:a?.padding??15}),O=new Map;for(const A of N){const I=Id([...A.data.sets].sort());O.set(I,A)}p.length>0&&NRe(a,O,C,p,b,g);const M=Qs(s.background||"#f4f4f4");C.selectAll(".venn-circle").each(function(A,I){const D=At(this),R=Id([...A.sets].sort()),P=g.get(R),z=P?.fill||d[I%d.length]||s.primaryColor;D.classed(`venn-set-${I%8}`,!0);const B=P?.["fill-opacity"]??.1,q=P?.stroke||z,Y=P?.["stroke-width"]||`${5*b}`;if(u&&w){const H=O.get(R);if(H&&H.circles.length>0){const J=H.circles[0],Z=w.circle(J.x,J.y,J.radius*2,{roughness:.7,seed:l,fill:vX(z,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+I*60,stroke:q,strokeWidth:parseFloat(String(Y))});D.select("path").remove(),D.node()?.insertBefore(Z,D.select("text").node())}}else D.select("path").style("fill",z).style("fill-opacity",B).style("stroke",q).style("stroke-width",Y).style("stroke-opacity",.95);const Q=P?.color||(M?vt(z,30):_t(z,30));D.select("text").style("font-size",`${48*b}px`).style("fill",Q)}),u&&w?C.selectAll(".venn-intersection").each(function(A){const I=At(this),L=Id([...A.sets].sort()),R=g.get(L),P=R?.fill;if(P){const z=I.select("path"),B=z.attr("d");if(B){const q=w.path(B,{roughness:.7,seed:l,fill:vX(P,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),Y=z.node();Y?.parentNode?.insertBefore(q,Y),z.remove()}}else I.select("path").style("fill-opacity",0);I.select("text").style("font-size",`${48*b}px`).style("fill",R?.color??s.vennSetTextColor??E)}):(C.selectAll(".venn-intersection text").style("font-size",`${48*b}px`).style("fill",A=>{const D=Id([...A.sets].sort());return g.get(D)?.color??s.vennSetTextColor??E}),C.selectAll(".venn-intersection path").style("fill-opacity",A=>{const D=Id([...A.sets].sort());return g.get(D)?.fill?1:0}).style("fill",A=>{const D=Id([...A.sets].sort());return g.get(D)?.fill??"transparent"}));const $=x.append("g").attr("transform",`translate(0, ${_})`),F=C.select("svg").node();if(F&&"childNodes"in F)for(const A of[...F.childNodes])$.node()?.appendChild(A);ua(x,y,m,a?.useMaxWidth??!0)},"draw");function Id(t){return t.join("|")}S(Id,"stableSetsKey");function NRe(t,e,r,n,i,a){const s=t?.useDebugLayout??!1,l=r.select("svg").append("g").attr("class","venn-text-nodes"),u=new Map;for(const d of n){const h=Id(d.sets),f=u.get(h);f?f.push(d):u.set(h,[d])}for(const[d,h]of u.entries()){const f=e.get(d);if(!f?.text)continue;const p=f.text.x,g=f.text.y,m=Math.min(...f.circles.map(A=>A.radius)),y=Math.min(...f.circles.map(A=>A.radius-Math.hypot(p-A.x,g-A.y)));let v=Number.isFinite(y)?Math.max(0,y):0;v===0&&Number.isFinite(m)&&(v=m*.6);const b=l.append("g").attr("class","venn-text-area").attr("font-size",`${40*i}px`);s&&b.append("circle").attr("class","venn-text-debug-circle").attr("cx",p).attr("cy",g).attr("r",v).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*i).attr("stroke-dasharray",`${6*i} ${4*i}`);const _=Math.max(80*i,v*2*.95),E=Math.max(60*i,v*2*.95),T=(f.data.label&&f.data.label.length>0?Math.min(32*i,v*.25):0)+(h.length<=2?30*i:0),w=p-_/2,N=g-E/2+T,O=Math.max(1,Math.ceil(Math.sqrt(h.length))),M=Math.max(1,Math.ceil(h.length/O)),$=_/O,F=E/M;for(const[A,I]of h.entries()){const D=A%O,L=Math.floor(A/O),R=w+$*(D+.5),P=N+F*(L+.5);s&&b.append("rect").attr("class","venn-text-debug-cell").attr("x",w+$*D).attr("y",N+F*L).attr("width",$).attr("height",F).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*i).attr("stroke-dasharray",`${4*i} ${3*i}`);const z=$*.9,B=F*.9,q=b.append("foreignObject").attr("class","venn-text-node-fo").attr("width",z).attr("height",B).attr("x",R-z/2).attr("y",P-B/2).attr("overflow","visible"),Y=a.get(I.id)?.color,Q=q.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(I.label??I.id);Y&&Q.style("color",Y)}}}S(NRe,"renderTextNodes");var _Pt={draw:vPt},bPt={parser:tPt,db:gPt,renderer:_Pt,styles:yPt};const EPt=Object.freeze(Object.defineProperty({__proto__:null,diagram:bPt},Symbol.toStringTag,{value:"Module"}));var L_,IRe=(L_=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ai,this.getAccTitle=yi,this.setDiagramTitle=pi,this.getDiagramTitle=li,this.getAccDescription=_i,this.setAccDescription=vi}getNodes(){return this.nodes}getConfig(){const e=on,r=xr();return $i({...e.treemap,...r.treemap??{}})}addNode(e,r){this.nodes.push(e),this.levels.set(e,r),r===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,r){const n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},i=r.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");i&&i.forEach(a=>{oG(a)&&(n?.textStyles?n.textStyles.push(a):n.textStyles=[a]),n?.styles?n.styles.push(a):n.styles=[a]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){oi(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},S(L_,"TreeMapDB"),L_);function ORe(t){if(!t.length)return[];const e=[],r=[];return t.forEach(n=>{const i={name:n.name,children:n.type==="Leaf"?void 0:[]};for(i.classSelector=n?.classSelector,n?.cssCompiledStyles&&(i.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(i.value=n.value);r.length>0&&r[r.length-1].level>=n.level;)r.pop();if(r.length===0)e.push(i);else{const a=r[r.length-1].node;a.children?a.children.push(i):a.children=[i]}n.type!=="Leaf"&&r.push({node:i,level:n.level})}),e}S(ORe,"buildHierarchy");var SPt=S((t,e)=>{wu(t,e);const r=[];for(const a of t.TreemapRows??[])a.$type==="ClassDefStatement"&&e.addClass(a.className??"",a.styleText??"");for(const a of t.TreemapRows??[]){const s=a.item;if(!s)continue;const o=a.indent?parseInt(a.indent):0,l=TPt(s),u=s.classSelector?e.getStylesForClass(s.classSelector):[],d=u.length>0?u:void 0,h={level:o,name:l,type:s.$type,value:s.value,classSelector:s.classSelector,cssCompiledStyles:d};r.push(h)}const n=ORe(r),i=S((a,s)=>{for(const o of a)e.addNode(o,s),o.children&&o.children.length>0&&i(o.children,s+1)},"addNodesRecursively");i(n,0)},"populate"),TPt=S(t=>t.name?String(t.name):"","getItemName"),DRe={parser:{yy:void 0},parse:S(async t=>{try{const r=await _c("treemap",t);ge.debug("Treemap AST:",r);const n=DRe.parser?.yy;if(!(n instanceof IRe))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");SPt(r,n)}catch(e){throw ge.error("Error parsing treemap:",e),e}},"parse")},xPt=10,Jg=10,rE=25,CPt=S((t,e,r,n)=>{const i=n.db,a=i.getConfig(),s=a.padding??xPt,o=i.getDiagramTitle(),l=i.getRoot(),{themeVariables:u}=xr();if(!l)return;const d=o?30:0,h=To(e),f=a.nodeWidth?a.nodeWidth*Jg:960,p=a.nodeHeight?a.nodeHeight*Jg:500,g=f,m=p+d;h.attr("viewBox",`0 0 ${g} ${m}`),ua(h,m,g,a.useMaxWidth);let y;try{const A=a.valueFormat||",";if(A==="$0,0")y=S(I=>"$"+Lf(",")(I),"valueFormat");else if(A.startsWith("$")&&A.includes(",")){const I=/\.\d+/.exec(A),D=I?I[0]:"";y=S(L=>"$"+Lf(","+D)(L),"valueFormat")}else if(A.startsWith("$")){const I=A.substring(1);y=S(D=>"$"+Lf(I||"")(D),"valueFormat")}else y=Lf(A)}catch(A){ge.error("Error creating format function:",A),y=Lf(",")}const v=hp().range(["transparent",u.cScale0,u.cScale1,u.cScale2,u.cScale3,u.cScale4,u.cScale5,u.cScale6,u.cScale7,u.cScale8,u.cScale9,u.cScale10,u.cScale11]),b=hp().range(["transparent",u.cScalePeer0,u.cScalePeer1,u.cScalePeer2,u.cScalePeer3,u.cScalePeer4,u.cScalePeer5,u.cScalePeer6,u.cScalePeer7,u.cScalePeer8,u.cScalePeer9,u.cScalePeer10,u.cScalePeer11]),_=hp().range([u.cScaleLabel0,u.cScaleLabel1,u.cScaleLabel2,u.cScaleLabel3,u.cScaleLabel4,u.cScaleLabel5,u.cScaleLabel6,u.cScaleLabel7,u.cScaleLabel8,u.cScaleLabel9,u.cScaleLabel10,u.cScaleLabel11]);o&&h.append("text").attr("x",g/2).attr("y",d/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(o);const E=h.append("g").attr("transform",`translate(0, ${d})`).attr("class","treemapContainer"),x=NU(l).sum(A=>A.value??0).sort((A,I)=>(I.value??0)-(A.value??0)),T=AGe().size([f,p]).paddingTop(A=>A.children&&A.children.length>0?rE+Jg:0).paddingInner(s).paddingLeft(A=>A.children&&A.children.length>0?Jg:0).paddingRight(A=>A.children&&A.children.length>0?Jg:0).paddingBottom(A=>A.children&&A.children.length>0?Jg:0).round(!0)(x),w=T.descendants().filter(A=>A.children&&A.children.length>0),N=E.selectAll(".treemapSection").data(w).enter().append("g").attr("class","treemapSection").attr("transform",A=>`translate(${A.x0},${A.y0})`);N.append("rect").attr("width",A=>A.x1-A.x0).attr("height",rE).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",A=>A.depth===0?"display: none;":""),N.append("clipPath").attr("id",(A,I)=>`clip-section-${e}-${I}`).append("rect").attr("width",A=>Math.max(0,A.x1-A.x0-12)).attr("height",rE),N.append("rect").attr("width",A=>A.x1-A.x0).attr("height",A=>A.y1-A.y0).attr("class",(A,I)=>`treemapSection section${I}`).attr("fill",A=>v(A.data.name)).attr("fill-opacity",.6).attr("stroke",A=>b(A.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",A=>{if(A.depth===0)return"display: none;";const I=hr({cssCompiledStyles:A.data.cssCompiledStyles});return I.nodeStyles+";"+I.borderStyles.join(";")}),N.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",rE/2).attr("dominant-baseline","middle").text(A=>A.depth===0?"":A.data.name).attr("font-weight","bold").attr("style",A=>{if(A.depth===0)return"display: none;";const I="dominant-baseline: middle; font-size: 12px; fill:"+_(A.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",D=hr({cssCompiledStyles:A.data.cssCompiledStyles});return I+D.labelStyles.replace("color:","fill:")}).each(function(A){if(A.depth===0)return;const I=At(this),D=A.data.name;I.text(D);const L=A.x1-A.x0,R=6;let P;a.showValues!==!1&&A.value?P=L-10-30-10-R:P=L-R-6;const B=Math.max(15,P),q=I.node();if(q.getComputedTextLength()>B){let H=D;for(;H.length>0;){if(H=D.substring(0,H.length-1),H.length===0){I.text("..."),q.getComputedTextLength()>B&&I.text("");break}if(I.text(H+"..."),q.getComputedTextLength()<=B)break}}}),a.showValues!==!1&&N.append("text").attr("class","treemapSectionValue").attr("x",A=>A.x1-A.x0-10).attr("y",rE/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(A=>A.value?y(A.value):"").attr("font-style","italic").attr("style",A=>{if(A.depth===0)return"display: none;";const I="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+_(A.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",D=hr({cssCompiledStyles:A.data.cssCompiledStyles});return I+D.labelStyles.replace("color:","fill:")});const O=T.leaves(),M=E.selectAll(".treemapLeafGroup").data(O).enter().append("g").attr("class",(A,I)=>`treemapNode treemapLeafGroup leaf${I}${A.data.classSelector?` ${A.data.classSelector}`:""}x`).attr("transform",A=>`translate(${A.x0},${A.y0})`);M.append("rect").attr("width",A=>A.x1-A.x0).attr("height",A=>A.y1-A.y0).attr("class","treemapLeaf").attr("fill",A=>A.parent?v(A.parent.data.name):v(A.data.name)).attr("style",A=>hr({cssCompiledStyles:A.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",A=>A.parent?v(A.parent.data.name):v(A.data.name)).attr("stroke-width",3),M.append("clipPath").attr("id",(A,I)=>`clip-${e}-${I}`).append("rect").attr("width",A=>Math.max(0,A.x1-A.x0-4)).attr("height",A=>Math.max(0,A.y1-A.y0-4)),M.append("text").attr("class","treemapLabel").attr("x",A=>(A.x1-A.x0)/2).attr("y",A=>(A.y1-A.y0)/2).attr("style",A=>{const I="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+_(A.data.name)+";",D=hr({cssCompiledStyles:A.data.cssCompiledStyles});return I+D.labelStyles.replace("color:","fill:")}).attr("clip-path",(A,I)=>`url(#clip-${e}-${I})`).text(A=>A.data.name).each(function(A){const I=At(this),D=A.x1-A.x0,L=A.y1-A.y0,R=I.node(),P=4,z=D-2*P,B=L-2*P;if(z<10||B<10){I.style("display","none");return}let q=parseInt(I.style("font-size"),10);const Y=8,Q=28,H=.6,J=6,Z=2;for(;R.getComputedTextLength()>z&&q>Y;)q--,I.style("font-size",`${q}px`);let pe=Math.max(J,Math.min(Q,Math.round(q*H))),re=q+Z+pe;for(;re>B&&q>Y&&(q--,pe=Math.max(J,Math.min(Q,Math.round(q*H))),!(pez||q(I.x1-I.x0)/2).attr("y",function(I){return(I.y1-I.y0)/2}).attr("style",I=>{const D="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+_(I.data.name)+";",L=hr({cssCompiledStyles:I.data.cssCompiledStyles});return D+L.labelStyles.replace("color:","fill:")}).attr("clip-path",(I,D)=>`url(#clip-${e}-${D})`).text(I=>I.value?y(I.value):"").each(function(I){const D=At(this),L=this.parentNode;if(!L){D.style("display","none");return}const R=At(L).select(".treemapLabel");if(R.empty()||R.style("display")==="none"){D.style("display","none");return}const P=parseFloat(R.style("font-size")),z=28,B=.6,q=6,Y=2,Q=Math.max(q,Math.min(z,Math.round(P*B)));D.style("font-size",`${Q}px`);const J=(I.y1-I.y0)/2+P/2+Y;D.attr("y",J);const Z=I.x1-I.x0,ce=I.y1-I.y0-4,ae=Z-8;D.node().getComputedTextLength()>ae||J+Q>ce||Q{const e=Fb(),r=xr(),n=$i(e,r.themeVariables),i=$i(APt,t),a=i.titleColor??n.titleColor,s=i.labelColor??n.textColor,o=i.valueColor??n.textColor;return` .treemapNode.section { stroke: ${i.sectionStrokeColor}; stroke-width: ${i.sectionStrokeWidth}; @@ -7362,8 +7362,8 @@ Expecting `+ae.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":se="Parse error fill: ${a}; font-size: ${i.titleFontSize}; } - `},"getStyles"),RPt=APt,NPt={parser:DRe,get db(){return new IRe},renderer:wPt,styles:RPt};const IPt=Object.freeze(Object.defineProperty({__proto__:null,diagram:NPt},Symbol.toStringTag,{value:"Module"}));var Uw=S((t,e)=>{const r=t<=1?t*100:t;if(r<0||r>100)throw new Error(`${e} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${t}`);return r},"toPercent"),mf=S((t,e,r)=>({x:Uw(e,`${r} evolution`),y:Uw(t,`${r} visibility`)}),"toCoordinates"),Mle=S(t=>{if(t){if(t==="+<>")return"bidirectional";if(t==="+<")return"backward";if(t==="+>")return"forward"}},"getFlowFromPort"),OPt=S(t=>{if(!t?.startsWith("+"))return{};const r=/^\+'([^']*)'/.exec(t)?.[1];return t.includes("<>")?{flow:"bidirectional",label:r}:t.includes("<")?{flow:"backward",label:r}:t.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),DPt=S((t,e)=>{if(wu(t,e),t.size&&e.setSize(t.size.width,t.size.height),t.evolution){const r=t.evolution.stages.map(i=>i.secondName?`${i.name.trim()} / ${i.secondName.trim()}`:i.name.trim()),n=t.evolution.stages.filter(i=>i.boundary!==void 0).map(i=>i.boundary);e.updateAxes({stages:r,stageBoundaries:n})}if(t.anchors.forEach(r=>{const n=mf(r.visibility,r.evolution,`Anchor "${r.name}"`);e.addNode(r.name,r.name,n.x,n.y,"anchor")}),t.components.forEach(r=>{const n=mf(r.visibility,r.evolution,`Component "${r.name}"`),i=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,a=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,s=r.decorator?.strategy;e.addNode(r.name,r.name,n.x,n.y,"component",i,a,r.inertia,s)}),t.notes.forEach(r=>{const n=mf(r.visibility,r.evolution,`Note "${r.text}"`);e.addNote(r.text,n.x,n.y)}),t.pipelines.forEach(r=>{const n=e.getNode(r.parent);if(!n||typeof n.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const i=n.y;e.startPipeline(r.parent),r.components.forEach(a=>{const s=`${r.parent}_${a.name}`,o=a.label?(a.label.negX?-1:1)*a.label.offsetX:void 0,l=a.label?(a.label.negY?-1:1)*a.label.offsetY:void 0,u=Uw(a.evolution,`Pipeline component "${a.name}" evolution`);e.addNode(s,a.name,u,i,"pipeline-component",o,l),e.addPipelineComponent(r.parent,s)})}),t.links.forEach(r=>{const n=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let i=Mle(r.fromPort)??Mle(r.toPort);const{flow:a,label:s}=OPt(r.arrow);!i&&a&&(i=a);const o=r.linkLabel,l=s??o;e.addLink(e.resolveNodeId(r.from),e.resolveNodeId(r.to),n,l,i)}),t.evolves.forEach(r=>{const n=e.getNode(r.component);if(n?.y!==void 0){const i=Uw(r.target,`Evolve target for "${r.component}"`);e.addTrend(r.component,i,n.y)}}),t.annotations.length>0){const r=t.annotations[0],n=mf(r.x,r.y,"Annotations box");e.setAnnotationsBox(n.x,n.y)}t.annotation.forEach(r=>{const n=mf(r.x,r.y,`Annotation ${r.number}`);e.addAnnotation(r.number,[{x:n.x,y:n.y}],r.text)}),t.accelerators.forEach(r=>{const n=mf(r.x,r.y,`Accelerator "${r.name}"`);e.addAccelerator(r.name,n.x,n.y)}),t.deaccelerators.forEach(r=>{const n=mf(r.x,r.y,`Deaccelerator "${r.name}"`);e.addDeaccelerator(r.name,n.x,n.y)})},"populateDb"),LRe={parser:{yy:void 0},parse:S(async t=>{const e=await _c("wardley",t);ge.debug(e);const r=LRe.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");DPt(e,r)},"parse")},M_,LPt=(M_=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(e){const r=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...r,...e,className:e.className??r.className,labelOffsetX:e.labelOffsetX??r.labelOffsetX,labelOffsetY:e.labelOffsetY??r.labelOffsetY};this.nodes.set(e.id,n)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const r=this.nodes.get(e);r&&(r.isPipelineParent=!0)}addPipelineComponent(e,r){const n=this.pipelines.get(e);n&&n.componentIds.push(r);const i=this.nodes.get(r);i&&(i.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,r){this.annotationsBox={x:e,y:r}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,r){this.size={width:e,height:r}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[r,n]of this.nodes)if(n.label===e)return r;return e}build(){const e=[];for(const r of this.nodes.values()){if(typeof r.x!="number"||typeof r.y!="number")throw new Error(`Node "${r.label}" is missing coordinates`);e.push(r)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},S(M_,"WardleyBuilder"),M_),ms=new LPt;function MRe(){return Ke()["wardley-beta"]}S(MRe,"getConfig");function PRe(t,e,r,n,i,a,s,o,l){ms.addNode({id:t,label:e,x:r,y:n,className:i,labelOffsetX:a,labelOffsetY:s,inertia:o,sourceStrategy:l})}S(PRe,"addNode");function BRe(t,e,r=!1,n,i){ms.addLink({source:t,target:e,dashed:r,label:n,flow:i})}S(BRe,"addLink");function FRe(t,e,r){ms.addTrend({nodeId:t,targetX:e,targetY:r})}S(FRe,"addTrend");function $Re(t,e,r){ms.addAnnotation({number:t,coordinates:e,text:r})}S($Re,"addAnnotation");function zRe(t,e,r){ms.addNote({text:t,x:e,y:r})}S(zRe,"addNote");function URe(t,e,r){ms.addAccelerator({name:t,x:e,y:r})}S(URe,"addAccelerator");function GRe(t,e,r){ms.addDeaccelerator({name:t,x:e,y:r})}S(GRe,"addDeaccelerator");function qRe(t,e){ms.setAnnotationsBox(t,e)}S(qRe,"setAnnotationsBox");function YRe(t,e){ms.setSize(t,e)}S(YRe,"setSize");function HRe(t){ms.startPipeline(t)}S(HRe,"startPipeline");function VRe(t,e){ms.addPipelineComponent(t,e)}S(VRe,"addPipelineComponent");function WRe(t){ms.setAxes(t)}S(WRe,"updateAxes");function KRe(t){return ms.getNode(t)}S(KRe,"getNode");function XRe(t){return ms.resolveNodeId(t)}S(XRe,"resolveNodeId");function jRe(){return ms.build()}S(jRe,"getWardleyData");function QRe(){ms.clear(),oi()}S(QRe,"clear");var MPt={getConfig:MRe,addNode:PRe,addLink:BRe,addTrend:FRe,addAnnotation:$Re,addNote:zRe,addAccelerator:URe,addDeaccelerator:GRe,setAnnotationsBox:qRe,setSize:YRe,startPipeline:HRe,addPipelineComponent:VRe,updateAxes:WRe,getNode:KRe,resolveNodeId:XRe,getWardleyData:jRe,clear:QRe,setAccTitle:ai,getAccTitle:yi,setDiagramTitle:pi,getDiagramTitle:li,getAccDescription:_i,setAccDescription:vi},PPt=["Genesis","Custom Built","Product","Commodity"],BPt=S(()=>{const{themeVariables:t}=Ke();return{backgroundColor:t.wardley?.backgroundColor??t.background??"#fff",axisColor:t.wardley?.axisColor??"#000",axisTextColor:t.wardley?.axisTextColor??t.primaryTextColor??"#222",gridColor:t.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:t.wardley?.componentFill??"#fff",componentStroke:t.wardley?.componentStroke??"#000",componentLabelColor:t.wardley?.componentLabelColor??t.primaryTextColor??"#222",linkStroke:t.wardley?.linkStroke??"#000",evolutionStroke:t.wardley?.evolutionStroke??"#dc3545",annotationStroke:t.wardley?.annotationStroke??"#000",annotationTextColor:t.wardley?.annotationTextColor??t.primaryTextColor??"#222",annotationFill:t.wardley?.annotationFill??t.background??"#fff"}},"getTheme"),FPt=S(()=>{const t=Ke()["wardley-beta"];return{width:t?.width??900,height:t?.height??600,padding:t?.padding??48,nodeRadius:t?.nodeRadius??6,nodeLabelOffset:t?.nodeLabelOffset??8,axisFontSize:t?.axisFontSize??12,labelFontSize:t?.labelFontSize??10,showGrid:t?.showGrid??!1,useMaxWidth:t?.useMaxWidth??!0}},"getConfigValues"),$Pt=S((t,e,r,n)=>{ge.debug(`Rendering Wardley map -`+t);const i=FPt(),a=BPt(),s=i.nodeRadius*1.6,o=n.db,l=o.getWardleyData(),u=o.getDiagramTitle(),d=l.size?.width??i.width,h=l.size?.height??i.height,f=To(e);f.selectAll("*").remove(),ua(f,h,d,i.useMaxWidth),f.attr("viewBox",`0 0 ${d} ${h}`);const p=f.append("g").attr("class","wardley-map"),g=f.append("defs");g.append("marker").attr("id",`arrow-${e}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",a.evolutionStroke).attr("stroke","none"),g.append("marker").attr("id",`link-arrow-end-${e}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",a.linkStroke).attr("stroke","none"),g.append("marker").attr("id",`link-arrow-start-${e}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",a.linkStroke).attr("stroke","none"),p.append("rect").attr("class","wardley-background").attr("width",d).attr("height",h).attr("fill",a.backgroundColor);const m=d-i.padding*2,y=h-i.padding*2;u&&p.append("text").attr("class","wardley-title").attr("x",d/2).attr("y",i.padding/2).attr("fill",a.axisTextColor).attr("font-size",i.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const v=S(R=>i.padding+R/100*m,"projectX"),b=S(R=>h-i.padding-R/100*y,"projectY"),_=p.append("g").attr("class","wardley-axes");_.append("line").attr("x1",i.padding).attr("x2",d-i.padding).attr("y1",h-i.padding).attr("y2",h-i.padding).attr("stroke",a.axisColor).attr("stroke-width",1),_.append("line").attr("x1",i.padding).attr("x2",i.padding).attr("y1",i.padding).attr("y2",h-i.padding).attr("stroke",a.axisColor).attr("stroke-width",1);const E=l.axes.xLabel??"Evolution",x=l.axes.yLabel??"Visibility";_.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",i.padding+m/2).attr("y",h-i.padding/4).attr("fill",a.axisTextColor).attr("font-size",i.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(E),_.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",i.padding/3).attr("y",i.padding+y/2).attr("fill",a.axisTextColor).attr("font-size",i.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${i.padding/3} ${i.padding+y/2})`).text(x);const C=l.axes.stages&&l.axes.stages.length>0?l.axes.stages:PPt;if(C.length>0){const R=p.append("g").attr("class","wardley-stages"),P=l.axes.stageBoundaries,z=[];if(P&&P.length===C.length){let B=0;P.forEach(q=>{z.push({start:B,end:q}),B=q})}else{const B=1/C.length;C.forEach((q,Y)=>{z.push({start:Y*B,end:(Y+1)*B})})}C.forEach((B,q)=>{const Y=z[q],Q=i.padding+Y.start*m,H=i.padding+Y.end*m,J=(Q+H)/2;q>0&&R.append("line").attr("x1",Q).attr("x2",Q).attr("y1",i.padding).attr("y2",h-i.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),R.append("text").attr("class","wardley-stage-label").attr("x",J).attr("y",h-i.padding/1.5).attr("fill",a.axisTextColor).attr("font-size",i.axisFontSize-2).attr("text-anchor","middle").text(B)})}if(i.showGrid){const R=p.append("g").attr("class","wardley-grid");for(let P=1;P<4;P++){const z=P/4,B=i.padding+m*z;R.append("line").attr("x1",B).attr("x2",B).attr("y1",i.padding).attr("y2",h-i.padding).attr("stroke",a.gridColor).attr("stroke-dasharray","2 6"),R.append("line").attr("x1",i.padding).attr("x2",d-i.padding).attr("y1",h-i.padding-y*z).attr("y2",h-i.padding-y*z).attr("stroke",a.gridColor).attr("stroke-dasharray","2 6")}}const T=new Map;if(l.nodes.forEach(R=>{T.set(R.id,{x:v(R.x),y:b(R.y),node:R})}),l.pipelines.length>0){const R=p.append("g").attr("class","wardley-pipelines"),P=p.append("g").attr("class","wardley-pipeline-links");l.pipelines.forEach(z=>{if(z.componentIds.length===0)return;const B=z.componentIds.map(H=>({id:H,pos:T.get(H),node:l.nodes.find(J=>J.id===H)})).filter(H=>H.pos&&H.node).sort((H,J)=>H.node.x-J.node.x);for(let H=0;H{const J=T.get(H);J&&(q=Math.min(q,J.x),Y=Math.max(Y,J.x),Q=J.y)}),q!==1/0&&Y!==-1/0){const J=i.nodeRadius*4,Z=Q-J/2,pe=T.get(z.nodeId);if(pe){const re=(q+Y)/2;pe.x=re,pe.y=Z-s/6}R.append("rect").attr("class","wardley-pipeline-box").attr("x",q-15).attr("y",Z).attr("width",Y-q+30).attr("height",J).attr("fill","none").attr("stroke",a.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const w=p.append("g").attr("class","wardley-links"),N=new Map;l.pipelines.forEach(R=>{N.set(R.nodeId,new Set(R.componentIds))});const O=l.links.filter(R=>!(!T.has(R.source)||!T.has(R.target)||N.get(R.target)?.has(R.source)));w.selectAll("line").data(O).enter().append("line").attr("class",R=>`wardley-link${R.dashed?" wardley-link--dashed":""}`).attr("x1",R=>{const P=T.get(R.source),z=T.get(R.target),q=l.nodes.find(J=>J.id===R.source).isPipelineParent?s/Math.sqrt(2):i.nodeRadius,Y=z.x-P.x,Q=z.y-P.y,H=Math.sqrt(Y*Y+Q*Q);return P.x+Y/H*q}).attr("y1",R=>{const P=T.get(R.source),z=T.get(R.target),q=l.nodes.find(J=>J.id===R.source).isPipelineParent?s/Math.sqrt(2):i.nodeRadius,Y=z.x-P.x,Q=z.y-P.y,H=Math.sqrt(Y*Y+Q*Q);return P.y+Q/H*q}).attr("x2",R=>{const P=T.get(R.source),z=T.get(R.target),q=l.nodes.find(J=>J.id===R.target).isPipelineParent?s/Math.sqrt(2):i.nodeRadius,Y=P.x-z.x,Q=P.y-z.y,H=Math.sqrt(Y*Y+Q*Q);return z.x+Y/H*q}).attr("y2",R=>{const P=T.get(R.source),z=T.get(R.target),q=l.nodes.find(J=>J.id===R.target).isPipelineParent?s/Math.sqrt(2):i.nodeRadius,Y=P.x-z.x,Q=P.y-z.y,H=Math.sqrt(Y*Y+Q*Q);return z.y+Q/H*q}).attr("stroke",a.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",R=>R.dashed?"6 6":null).attr("marker-end",R=>R.flow==="forward"||R.flow==="bidirectional"?`url(#link-arrow-end-${e})`:null).attr("marker-start",R=>R.flow==="backward"||R.flow==="bidirectional"?`url(#link-arrow-start-${e})`:null),w.selectAll("text").data(O.filter(R=>R.label)).enter().append("text").attr("class","wardley-link-label").attr("x",R=>{const P=T.get(R.source),z=T.get(R.target),B=(P.x+z.x)/2,q=z.y-P.y,Y=z.x-P.x,Q=Math.sqrt(Y*Y+q*q),H=8,J=q/Q;return B+J*H}).attr("y",R=>{const P=T.get(R.source),z=T.get(R.target),B=(P.y+z.y)/2,q=z.x-P.x,Y=z.y-P.y,Q=Math.sqrt(q*q+Y*Y),H=8,J=-q/Q;return B+J*H}).attr("fill",a.axisTextColor).attr("font-size",i.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",R=>{const P=T.get(R.source),z=T.get(R.target),B=(P.x+z.x)/2,q=(P.y+z.y)/2,Y=z.x-P.x,Q=z.y-P.y,H=Math.sqrt(Y*Y+Q*Q),J=8,Z=Q/H,pe=-Y/H,re=B+Z*J,ce=q+pe*J;let ae=Math.atan2(Q,Y)*180/Math.PI;return(ae>90||ae<-90)&&(ae+=180),`rotate(${ae} ${re} ${ce})`}).text(R=>R.label);const M=p.append("g").attr("class","wardley-trends"),$=l.trends.map(R=>{const P=T.get(R.nodeId);if(!P)return null;const z=v(R.targetX),B=b(R.targetY),q=z-P.x,Y=B-P.y,Q=Math.sqrt(q*q+Y*Y),H=i.nodeRadius+2,J=Q>H?z-q/Q*H:z,Z=Q>H?B-Y/Q*H:B;return{origin:P,targetX:z,targetY:B,adjustedX2:J,adjustedY2:Z}}).filter(R=>R!==null);M.selectAll("line").data($).enter().append("line").attr("class","wardley-trend").attr("x1",R=>R.origin.x).attr("y1",R=>R.origin.y).attr("x2",R=>R.adjustedX2).attr("y2",R=>R.adjustedY2).attr("stroke",a.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${e})`);const A=p.append("g").attr("class","wardley-nodes").selectAll("g").data(l.nodes).enter().append("g").attr("class",R=>["wardley-node",R.className?`wardley-node--${R.className}`:""].filter(Boolean).join(" "));A.filter(R=>R.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",R=>T.get(R.id).x).attr("cy",R=>T.get(R.id).y).attr("r",i.nodeRadius*2).attr("fill","#666").attr("stroke",a.componentStroke).attr("stroke-width",1),A.filter(R=>R.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",R=>T.get(R.id).x).attr("cy",R=>T.get(R.id).y).attr("r",i.nodeRadius*2).attr("fill","#ccc").attr("stroke",a.componentStroke).attr("stroke-width",1),A.filter(R=>R.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",R=>T.get(R.id).x).attr("cy",R=>T.get(R.id).y).attr("r",i.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const I=A.filter(R=>R.sourceStrategy==="market");I.append("circle").attr("class","wardley-market-overlay").attr("cx",R=>T.get(R.id).x).attr("cy",R=>T.get(R.id).y).attr("r",i.nodeRadius*2).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",1),A.filter(R=>!R.isPipelineParent&&R.sourceStrategy!=="market"&&R.className!=="anchor").append("circle").attr("cx",R=>T.get(R.id).x).attr("cy",R=>T.get(R.id).y).attr("r",i.nodeRadius).attr("fill",a.componentFill).attr("stroke",a.componentStroke).attr("stroke-width",1);const D=i.nodeRadius*.7,L=i.nodeRadius*1.2;if(I.append("line").attr("class","wardley-market-line").attr("x1",R=>T.get(R.id).x).attr("y1",R=>T.get(R.id).y-L).attr("x2",R=>T.get(R.id).x-L*Math.cos(Math.PI/6)).attr("y2",R=>T.get(R.id).y+L*Math.sin(Math.PI/6)).attr("stroke",a.componentStroke).attr("stroke-width",1),I.append("line").attr("class","wardley-market-line").attr("x1",R=>T.get(R.id).x-L*Math.cos(Math.PI/6)).attr("y1",R=>T.get(R.id).y+L*Math.sin(Math.PI/6)).attr("x2",R=>T.get(R.id).x+L*Math.cos(Math.PI/6)).attr("y2",R=>T.get(R.id).y+L*Math.sin(Math.PI/6)).attr("stroke",a.componentStroke).attr("stroke-width",1),I.append("line").attr("class","wardley-market-line").attr("x1",R=>T.get(R.id).x+L*Math.cos(Math.PI/6)).attr("y1",R=>T.get(R.id).y+L*Math.sin(Math.PI/6)).attr("x2",R=>T.get(R.id).x).attr("y2",R=>T.get(R.id).y-L).attr("stroke",a.componentStroke).attr("stroke-width",1),I.append("circle").attr("class","wardley-market-dot").attr("cx",R=>T.get(R.id).x).attr("cy",R=>T.get(R.id).y-L).attr("r",D).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",2),I.append("circle").attr("class","wardley-market-dot").attr("cx",R=>T.get(R.id).x-L*Math.cos(Math.PI/6)).attr("cy",R=>T.get(R.id).y+L*Math.sin(Math.PI/6)).attr("r",D).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",2),I.append("circle").attr("class","wardley-market-dot").attr("cx",R=>T.get(R.id).x+L*Math.cos(Math.PI/6)).attr("cy",R=>T.get(R.id).y+L*Math.sin(Math.PI/6)).attr("r",D).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",2),A.filter(R=>R.isPipelineParent===!0).append("rect").attr("x",R=>T.get(R.id).x-s/2).attr("y",R=>T.get(R.id).y-s/2).attr("width",s).attr("height",s).attr("fill",a.componentFill).attr("stroke",a.componentStroke).attr("stroke-width",1),A.filter(R=>R.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",R=>{const P=T.get(R.id);let z=R.isPipelineParent?s/2+15:i.nodeRadius+15;return R.sourceStrategy&&(z+=i.nodeRadius+10),P.x+z}).attr("y1",R=>{const P=T.get(R.id),z=R.isPipelineParent?s:i.nodeRadius*2;return P.y-z/2}).attr("x2",R=>{const P=T.get(R.id);let z=R.isPipelineParent?s/2+15:i.nodeRadius+15;return R.sourceStrategy&&(z+=i.nodeRadius+10),P.x+z}).attr("y2",R=>{const P=T.get(R.id),z=R.isPipelineParent?s:i.nodeRadius*2;return P.y+z/2}).attr("stroke",a.componentStroke).attr("stroke-width",6),A.append("text").attr("x",R=>{const P=T.get(R.id);if(R.className==="anchor")return R.labelOffsetX!==void 0?P.x+R.labelOffsetX:P.x;let z=i.nodeLabelOffset;R.sourceStrategy&&R.labelOffsetX===void 0&&(z+=10);const B=R.labelOffsetX??z;return P.x+B}).attr("y",R=>{const P=T.get(R.id);if(R.className==="anchor")return R.labelOffsetY!==void 0?P.y+R.labelOffsetY:P.y-3;let z=-i.nodeLabelOffset;R.sourceStrategy&&R.labelOffsetY===void 0&&(z-=10);const B=R.labelOffsetY??z;return P.y+B}).attr("class","wardley-node-label").attr("fill",R=>R.className==="evolved"?a.evolutionStroke:R.className==="anchor"?"#000":a.componentLabelColor).attr("font-size",i.labelFontSize).attr("font-weight",R=>R.className==="anchor"?"bold":"normal").attr("text-anchor",R=>R.className==="anchor"?"middle":"start").attr("dominant-baseline",R=>R.className==="anchor"?"middle":"auto").text(R=>R.label),l.annotations.length>0){const R=p.append("g").attr("class","wardley-annotations");if(l.annotations.forEach(P=>{const z=P.coordinates.map(B=>({x:v(B.x),y:b(B.y)}));if(z.length>1)for(let B=0;B{const q=R.append("g").attr("class","wardley-annotation");q.append("circle").attr("cx",B.x).attr("cy",B.y).attr("r",10).attr("fill","white").attr("stroke",a.axisColor).attr("stroke-width",1.5),q.append("text").attr("x",B.x).attr("y",B.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",a.axisTextColor).attr("font-weight","bold").text(P.number)})}),l.annotationsBox){let P=v(l.annotationsBox.x),z=b(l.annotationsBox.y);const B=10,q=16,Y=11,Q=R.append("g").attr("class","wardley-annotations-box"),H=[...l.annotations].filter(Z=>Z.text).sort((Z,pe)=>Z.number-pe.number),J=[];if(H.forEach((Z,pe)=>{const re=Q.append("text").attr("x",P+B).attr("y",z+B+(pe+1)*q).attr("font-size",Y).attr("fill",a.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${Z.number}. ${Z.text}`);J.push(re)}),J.length>0){let Z=0,pe=0;J.forEach(Ge=>{const ze=Ge.node(),Xe=ze.getComputedTextLength();Z=Math.max(Z,Xe);const Le=ze.getBBox();pe=Math.max(pe,Le.height)});const re=Z+B*2+105,ce=H.length*q+B*2+pe/2,ae=i.padding,se=d-i.padding-re,xe=i.padding,Te=h-i.padding-ce;P=Math.max(ae,Math.min(P,se)),z=Math.max(xe,Math.min(z,Te)),J.forEach((Ge,ze)=>{Ge.attr("x",P+B).attr("y",z+B+(ze+1)*q)}),Q.insert("rect","text").attr("x",P).attr("y",z).attr("width",re).attr("height",ce).attr("fill","white").attr("stroke",a.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(l.notes.length>0){const R=p.append("g").attr("class","wardley-notes");l.notes.forEach(P=>{const z=v(P.x),B=b(P.y);R.append("text").attr("x",z).attr("y",B).attr("text-anchor","start").attr("font-size",11).attr("fill",a.axisTextColor).attr("font-weight","bold").text(P.text)})}if(l.accelerators.length>0){const R=p.append("g").attr("class","wardley-accelerators");l.accelerators.forEach(P=>{const z=v(P.x),B=b(P.y),q=60,Y=30,Q=20,H=` + `},"getStyles"),NPt=RPt,IPt={parser:DRe,get db(){return new IRe},renderer:kPt,styles:NPt};const OPt=Object.freeze(Object.defineProperty({__proto__:null,diagram:IPt},Symbol.toStringTag,{value:"Module"}));var Uw=S((t,e)=>{const r=t<=1?t*100:t;if(r<0||r>100)throw new Error(`${e} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${t}`);return r},"toPercent"),mf=S((t,e,r)=>({x:Uw(e,`${r} evolution`),y:Uw(t,`${r} visibility`)}),"toCoordinates"),Mle=S(t=>{if(t){if(t==="+<>")return"bidirectional";if(t==="+<")return"backward";if(t==="+>")return"forward"}},"getFlowFromPort"),DPt=S(t=>{if(!t?.startsWith("+"))return{};const r=/^\+'([^']*)'/.exec(t)?.[1];return t.includes("<>")?{flow:"bidirectional",label:r}:t.includes("<")?{flow:"backward",label:r}:t.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),LPt=S((t,e)=>{if(wu(t,e),t.size&&e.setSize(t.size.width,t.size.height),t.evolution){const r=t.evolution.stages.map(i=>i.secondName?`${i.name.trim()} / ${i.secondName.trim()}`:i.name.trim()),n=t.evolution.stages.filter(i=>i.boundary!==void 0).map(i=>i.boundary);e.updateAxes({stages:r,stageBoundaries:n})}if(t.anchors.forEach(r=>{const n=mf(r.visibility,r.evolution,`Anchor "${r.name}"`);e.addNode(r.name,r.name,n.x,n.y,"anchor")}),t.components.forEach(r=>{const n=mf(r.visibility,r.evolution,`Component "${r.name}"`),i=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,a=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,s=r.decorator?.strategy;e.addNode(r.name,r.name,n.x,n.y,"component",i,a,r.inertia,s)}),t.notes.forEach(r=>{const n=mf(r.visibility,r.evolution,`Note "${r.text}"`);e.addNote(r.text,n.x,n.y)}),t.pipelines.forEach(r=>{const n=e.getNode(r.parent);if(!n||typeof n.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const i=n.y;e.startPipeline(r.parent),r.components.forEach(a=>{const s=`${r.parent}_${a.name}`,o=a.label?(a.label.negX?-1:1)*a.label.offsetX:void 0,l=a.label?(a.label.negY?-1:1)*a.label.offsetY:void 0,u=Uw(a.evolution,`Pipeline component "${a.name}" evolution`);e.addNode(s,a.name,u,i,"pipeline-component",o,l),e.addPipelineComponent(r.parent,s)})}),t.links.forEach(r=>{const n=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let i=Mle(r.fromPort)??Mle(r.toPort);const{flow:a,label:s}=DPt(r.arrow);!i&&a&&(i=a);const o=r.linkLabel,l=s??o;e.addLink(e.resolveNodeId(r.from),e.resolveNodeId(r.to),n,l,i)}),t.evolves.forEach(r=>{const n=e.getNode(r.component);if(n?.y!==void 0){const i=Uw(r.target,`Evolve target for "${r.component}"`);e.addTrend(r.component,i,n.y)}}),t.annotations.length>0){const r=t.annotations[0],n=mf(r.x,r.y,"Annotations box");e.setAnnotationsBox(n.x,n.y)}t.annotation.forEach(r=>{const n=mf(r.x,r.y,`Annotation ${r.number}`);e.addAnnotation(r.number,[{x:n.x,y:n.y}],r.text)}),t.accelerators.forEach(r=>{const n=mf(r.x,r.y,`Accelerator "${r.name}"`);e.addAccelerator(r.name,n.x,n.y)}),t.deaccelerators.forEach(r=>{const n=mf(r.x,r.y,`Deaccelerator "${r.name}"`);e.addDeaccelerator(r.name,n.x,n.y)})},"populateDb"),LRe={parser:{yy:void 0},parse:S(async t=>{const e=await _c("wardley",t);ge.debug(e);const r=LRe.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");LPt(e,r)},"parse")},M_,MPt=(M_=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(e){const r=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...r,...e,className:e.className??r.className,labelOffsetX:e.labelOffsetX??r.labelOffsetX,labelOffsetY:e.labelOffsetY??r.labelOffsetY};this.nodes.set(e.id,n)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const r=this.nodes.get(e);r&&(r.isPipelineParent=!0)}addPipelineComponent(e,r){const n=this.pipelines.get(e);n&&n.componentIds.push(r);const i=this.nodes.get(r);i&&(i.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,r){this.annotationsBox={x:e,y:r}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,r){this.size={width:e,height:r}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[r,n]of this.nodes)if(n.label===e)return r;return e}build(){const e=[];for(const r of this.nodes.values()){if(typeof r.x!="number"||typeof r.y!="number")throw new Error(`Node "${r.label}" is missing coordinates`);e.push(r)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},S(M_,"WardleyBuilder"),M_),ms=new MPt;function MRe(){return Ke()["wardley-beta"]}S(MRe,"getConfig");function PRe(t,e,r,n,i,a,s,o,l){ms.addNode({id:t,label:e,x:r,y:n,className:i,labelOffsetX:a,labelOffsetY:s,inertia:o,sourceStrategy:l})}S(PRe,"addNode");function BRe(t,e,r=!1,n,i){ms.addLink({source:t,target:e,dashed:r,label:n,flow:i})}S(BRe,"addLink");function FRe(t,e,r){ms.addTrend({nodeId:t,targetX:e,targetY:r})}S(FRe,"addTrend");function $Re(t,e,r){ms.addAnnotation({number:t,coordinates:e,text:r})}S($Re,"addAnnotation");function zRe(t,e,r){ms.addNote({text:t,x:e,y:r})}S(zRe,"addNote");function URe(t,e,r){ms.addAccelerator({name:t,x:e,y:r})}S(URe,"addAccelerator");function GRe(t,e,r){ms.addDeaccelerator({name:t,x:e,y:r})}S(GRe,"addDeaccelerator");function qRe(t,e){ms.setAnnotationsBox(t,e)}S(qRe,"setAnnotationsBox");function YRe(t,e){ms.setSize(t,e)}S(YRe,"setSize");function HRe(t){ms.startPipeline(t)}S(HRe,"startPipeline");function VRe(t,e){ms.addPipelineComponent(t,e)}S(VRe,"addPipelineComponent");function WRe(t){ms.setAxes(t)}S(WRe,"updateAxes");function KRe(t){return ms.getNode(t)}S(KRe,"getNode");function XRe(t){return ms.resolveNodeId(t)}S(XRe,"resolveNodeId");function jRe(){return ms.build()}S(jRe,"getWardleyData");function QRe(){ms.clear(),oi()}S(QRe,"clear");var PPt={getConfig:MRe,addNode:PRe,addLink:BRe,addTrend:FRe,addAnnotation:$Re,addNote:zRe,addAccelerator:URe,addDeaccelerator:GRe,setAnnotationsBox:qRe,setSize:YRe,startPipeline:HRe,addPipelineComponent:VRe,updateAxes:WRe,getNode:KRe,resolveNodeId:XRe,getWardleyData:jRe,clear:QRe,setAccTitle:ai,getAccTitle:yi,setDiagramTitle:pi,getDiagramTitle:li,getAccDescription:_i,setAccDescription:vi},BPt=["Genesis","Custom Built","Product","Commodity"],FPt=S(()=>{const{themeVariables:t}=Ke();return{backgroundColor:t.wardley?.backgroundColor??t.background??"#fff",axisColor:t.wardley?.axisColor??"#000",axisTextColor:t.wardley?.axisTextColor??t.primaryTextColor??"#222",gridColor:t.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:t.wardley?.componentFill??"#fff",componentStroke:t.wardley?.componentStroke??"#000",componentLabelColor:t.wardley?.componentLabelColor??t.primaryTextColor??"#222",linkStroke:t.wardley?.linkStroke??"#000",evolutionStroke:t.wardley?.evolutionStroke??"#dc3545",annotationStroke:t.wardley?.annotationStroke??"#000",annotationTextColor:t.wardley?.annotationTextColor??t.primaryTextColor??"#222",annotationFill:t.wardley?.annotationFill??t.background??"#fff"}},"getTheme"),$Pt=S(()=>{const t=Ke()["wardley-beta"];return{width:t?.width??900,height:t?.height??600,padding:t?.padding??48,nodeRadius:t?.nodeRadius??6,nodeLabelOffset:t?.nodeLabelOffset??8,axisFontSize:t?.axisFontSize??12,labelFontSize:t?.labelFontSize??10,showGrid:t?.showGrid??!1,useMaxWidth:t?.useMaxWidth??!0}},"getConfigValues"),zPt=S((t,e,r,n)=>{ge.debug(`Rendering Wardley map +`+t);const i=$Pt(),a=FPt(),s=i.nodeRadius*1.6,o=n.db,l=o.getWardleyData(),u=o.getDiagramTitle(),d=l.size?.width??i.width,h=l.size?.height??i.height,f=To(e);f.selectAll("*").remove(),ua(f,h,d,i.useMaxWidth),f.attr("viewBox",`0 0 ${d} ${h}`);const p=f.append("g").attr("class","wardley-map"),g=f.append("defs");g.append("marker").attr("id",`arrow-${e}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",a.evolutionStroke).attr("stroke","none"),g.append("marker").attr("id",`link-arrow-end-${e}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",a.linkStroke).attr("stroke","none"),g.append("marker").attr("id",`link-arrow-start-${e}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",a.linkStroke).attr("stroke","none"),p.append("rect").attr("class","wardley-background").attr("width",d).attr("height",h).attr("fill",a.backgroundColor);const m=d-i.padding*2,y=h-i.padding*2;u&&p.append("text").attr("class","wardley-title").attr("x",d/2).attr("y",i.padding/2).attr("fill",a.axisTextColor).attr("font-size",i.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const v=S(R=>i.padding+R/100*m,"projectX"),b=S(R=>h-i.padding-R/100*y,"projectY"),_=p.append("g").attr("class","wardley-axes");_.append("line").attr("x1",i.padding).attr("x2",d-i.padding).attr("y1",h-i.padding).attr("y2",h-i.padding).attr("stroke",a.axisColor).attr("stroke-width",1),_.append("line").attr("x1",i.padding).attr("x2",i.padding).attr("y1",i.padding).attr("y2",h-i.padding).attr("stroke",a.axisColor).attr("stroke-width",1);const E=l.axes.xLabel??"Evolution",x=l.axes.yLabel??"Visibility";_.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",i.padding+m/2).attr("y",h-i.padding/4).attr("fill",a.axisTextColor).attr("font-size",i.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(E),_.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",i.padding/3).attr("y",i.padding+y/2).attr("fill",a.axisTextColor).attr("font-size",i.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${i.padding/3} ${i.padding+y/2})`).text(x);const C=l.axes.stages&&l.axes.stages.length>0?l.axes.stages:BPt;if(C.length>0){const R=p.append("g").attr("class","wardley-stages"),P=l.axes.stageBoundaries,z=[];if(P&&P.length===C.length){let B=0;P.forEach(q=>{z.push({start:B,end:q}),B=q})}else{const B=1/C.length;C.forEach((q,Y)=>{z.push({start:Y*B,end:(Y+1)*B})})}C.forEach((B,q)=>{const Y=z[q],Q=i.padding+Y.start*m,H=i.padding+Y.end*m,J=(Q+H)/2;q>0&&R.append("line").attr("x1",Q).attr("x2",Q).attr("y1",i.padding).attr("y2",h-i.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),R.append("text").attr("class","wardley-stage-label").attr("x",J).attr("y",h-i.padding/1.5).attr("fill",a.axisTextColor).attr("font-size",i.axisFontSize-2).attr("text-anchor","middle").text(B)})}if(i.showGrid){const R=p.append("g").attr("class","wardley-grid");for(let P=1;P<4;P++){const z=P/4,B=i.padding+m*z;R.append("line").attr("x1",B).attr("x2",B).attr("y1",i.padding).attr("y2",h-i.padding).attr("stroke",a.gridColor).attr("stroke-dasharray","2 6"),R.append("line").attr("x1",i.padding).attr("x2",d-i.padding).attr("y1",h-i.padding-y*z).attr("y2",h-i.padding-y*z).attr("stroke",a.gridColor).attr("stroke-dasharray","2 6")}}const T=new Map;if(l.nodes.forEach(R=>{T.set(R.id,{x:v(R.x),y:b(R.y),node:R})}),l.pipelines.length>0){const R=p.append("g").attr("class","wardley-pipelines"),P=p.append("g").attr("class","wardley-pipeline-links");l.pipelines.forEach(z=>{if(z.componentIds.length===0)return;const B=z.componentIds.map(H=>({id:H,pos:T.get(H),node:l.nodes.find(J=>J.id===H)})).filter(H=>H.pos&&H.node).sort((H,J)=>H.node.x-J.node.x);for(let H=0;H{const J=T.get(H);J&&(q=Math.min(q,J.x),Y=Math.max(Y,J.x),Q=J.y)}),q!==1/0&&Y!==-1/0){const J=i.nodeRadius*4,Z=Q-J/2,pe=T.get(z.nodeId);if(pe){const re=(q+Y)/2;pe.x=re,pe.y=Z-s/6}R.append("rect").attr("class","wardley-pipeline-box").attr("x",q-15).attr("y",Z).attr("width",Y-q+30).attr("height",J).attr("fill","none").attr("stroke",a.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const w=p.append("g").attr("class","wardley-links"),N=new Map;l.pipelines.forEach(R=>{N.set(R.nodeId,new Set(R.componentIds))});const O=l.links.filter(R=>!(!T.has(R.source)||!T.has(R.target)||N.get(R.target)?.has(R.source)));w.selectAll("line").data(O).enter().append("line").attr("class",R=>`wardley-link${R.dashed?" wardley-link--dashed":""}`).attr("x1",R=>{const P=T.get(R.source),z=T.get(R.target),q=l.nodes.find(J=>J.id===R.source).isPipelineParent?s/Math.sqrt(2):i.nodeRadius,Y=z.x-P.x,Q=z.y-P.y,H=Math.sqrt(Y*Y+Q*Q);return P.x+Y/H*q}).attr("y1",R=>{const P=T.get(R.source),z=T.get(R.target),q=l.nodes.find(J=>J.id===R.source).isPipelineParent?s/Math.sqrt(2):i.nodeRadius,Y=z.x-P.x,Q=z.y-P.y,H=Math.sqrt(Y*Y+Q*Q);return P.y+Q/H*q}).attr("x2",R=>{const P=T.get(R.source),z=T.get(R.target),q=l.nodes.find(J=>J.id===R.target).isPipelineParent?s/Math.sqrt(2):i.nodeRadius,Y=P.x-z.x,Q=P.y-z.y,H=Math.sqrt(Y*Y+Q*Q);return z.x+Y/H*q}).attr("y2",R=>{const P=T.get(R.source),z=T.get(R.target),q=l.nodes.find(J=>J.id===R.target).isPipelineParent?s/Math.sqrt(2):i.nodeRadius,Y=P.x-z.x,Q=P.y-z.y,H=Math.sqrt(Y*Y+Q*Q);return z.y+Q/H*q}).attr("stroke",a.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",R=>R.dashed?"6 6":null).attr("marker-end",R=>R.flow==="forward"||R.flow==="bidirectional"?`url(#link-arrow-end-${e})`:null).attr("marker-start",R=>R.flow==="backward"||R.flow==="bidirectional"?`url(#link-arrow-start-${e})`:null),w.selectAll("text").data(O.filter(R=>R.label)).enter().append("text").attr("class","wardley-link-label").attr("x",R=>{const P=T.get(R.source),z=T.get(R.target),B=(P.x+z.x)/2,q=z.y-P.y,Y=z.x-P.x,Q=Math.sqrt(Y*Y+q*q),H=8,J=q/Q;return B+J*H}).attr("y",R=>{const P=T.get(R.source),z=T.get(R.target),B=(P.y+z.y)/2,q=z.x-P.x,Y=z.y-P.y,Q=Math.sqrt(q*q+Y*Y),H=8,J=-q/Q;return B+J*H}).attr("fill",a.axisTextColor).attr("font-size",i.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",R=>{const P=T.get(R.source),z=T.get(R.target),B=(P.x+z.x)/2,q=(P.y+z.y)/2,Y=z.x-P.x,Q=z.y-P.y,H=Math.sqrt(Y*Y+Q*Q),J=8,Z=Q/H,pe=-Y/H,re=B+Z*J,ce=q+pe*J;let ae=Math.atan2(Q,Y)*180/Math.PI;return(ae>90||ae<-90)&&(ae+=180),`rotate(${ae} ${re} ${ce})`}).text(R=>R.label);const M=p.append("g").attr("class","wardley-trends"),$=l.trends.map(R=>{const P=T.get(R.nodeId);if(!P)return null;const z=v(R.targetX),B=b(R.targetY),q=z-P.x,Y=B-P.y,Q=Math.sqrt(q*q+Y*Y),H=i.nodeRadius+2,J=Q>H?z-q/Q*H:z,Z=Q>H?B-Y/Q*H:B;return{origin:P,targetX:z,targetY:B,adjustedX2:J,adjustedY2:Z}}).filter(R=>R!==null);M.selectAll("line").data($).enter().append("line").attr("class","wardley-trend").attr("x1",R=>R.origin.x).attr("y1",R=>R.origin.y).attr("x2",R=>R.adjustedX2).attr("y2",R=>R.adjustedY2).attr("stroke",a.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${e})`);const A=p.append("g").attr("class","wardley-nodes").selectAll("g").data(l.nodes).enter().append("g").attr("class",R=>["wardley-node",R.className?`wardley-node--${R.className}`:""].filter(Boolean).join(" "));A.filter(R=>R.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",R=>T.get(R.id).x).attr("cy",R=>T.get(R.id).y).attr("r",i.nodeRadius*2).attr("fill","#666").attr("stroke",a.componentStroke).attr("stroke-width",1),A.filter(R=>R.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",R=>T.get(R.id).x).attr("cy",R=>T.get(R.id).y).attr("r",i.nodeRadius*2).attr("fill","#ccc").attr("stroke",a.componentStroke).attr("stroke-width",1),A.filter(R=>R.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",R=>T.get(R.id).x).attr("cy",R=>T.get(R.id).y).attr("r",i.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const I=A.filter(R=>R.sourceStrategy==="market");I.append("circle").attr("class","wardley-market-overlay").attr("cx",R=>T.get(R.id).x).attr("cy",R=>T.get(R.id).y).attr("r",i.nodeRadius*2).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",1),A.filter(R=>!R.isPipelineParent&&R.sourceStrategy!=="market"&&R.className!=="anchor").append("circle").attr("cx",R=>T.get(R.id).x).attr("cy",R=>T.get(R.id).y).attr("r",i.nodeRadius).attr("fill",a.componentFill).attr("stroke",a.componentStroke).attr("stroke-width",1);const D=i.nodeRadius*.7,L=i.nodeRadius*1.2;if(I.append("line").attr("class","wardley-market-line").attr("x1",R=>T.get(R.id).x).attr("y1",R=>T.get(R.id).y-L).attr("x2",R=>T.get(R.id).x-L*Math.cos(Math.PI/6)).attr("y2",R=>T.get(R.id).y+L*Math.sin(Math.PI/6)).attr("stroke",a.componentStroke).attr("stroke-width",1),I.append("line").attr("class","wardley-market-line").attr("x1",R=>T.get(R.id).x-L*Math.cos(Math.PI/6)).attr("y1",R=>T.get(R.id).y+L*Math.sin(Math.PI/6)).attr("x2",R=>T.get(R.id).x+L*Math.cos(Math.PI/6)).attr("y2",R=>T.get(R.id).y+L*Math.sin(Math.PI/6)).attr("stroke",a.componentStroke).attr("stroke-width",1),I.append("line").attr("class","wardley-market-line").attr("x1",R=>T.get(R.id).x+L*Math.cos(Math.PI/6)).attr("y1",R=>T.get(R.id).y+L*Math.sin(Math.PI/6)).attr("x2",R=>T.get(R.id).x).attr("y2",R=>T.get(R.id).y-L).attr("stroke",a.componentStroke).attr("stroke-width",1),I.append("circle").attr("class","wardley-market-dot").attr("cx",R=>T.get(R.id).x).attr("cy",R=>T.get(R.id).y-L).attr("r",D).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",2),I.append("circle").attr("class","wardley-market-dot").attr("cx",R=>T.get(R.id).x-L*Math.cos(Math.PI/6)).attr("cy",R=>T.get(R.id).y+L*Math.sin(Math.PI/6)).attr("r",D).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",2),I.append("circle").attr("class","wardley-market-dot").attr("cx",R=>T.get(R.id).x+L*Math.cos(Math.PI/6)).attr("cy",R=>T.get(R.id).y+L*Math.sin(Math.PI/6)).attr("r",D).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",2),A.filter(R=>R.isPipelineParent===!0).append("rect").attr("x",R=>T.get(R.id).x-s/2).attr("y",R=>T.get(R.id).y-s/2).attr("width",s).attr("height",s).attr("fill",a.componentFill).attr("stroke",a.componentStroke).attr("stroke-width",1),A.filter(R=>R.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",R=>{const P=T.get(R.id);let z=R.isPipelineParent?s/2+15:i.nodeRadius+15;return R.sourceStrategy&&(z+=i.nodeRadius+10),P.x+z}).attr("y1",R=>{const P=T.get(R.id),z=R.isPipelineParent?s:i.nodeRadius*2;return P.y-z/2}).attr("x2",R=>{const P=T.get(R.id);let z=R.isPipelineParent?s/2+15:i.nodeRadius+15;return R.sourceStrategy&&(z+=i.nodeRadius+10),P.x+z}).attr("y2",R=>{const P=T.get(R.id),z=R.isPipelineParent?s:i.nodeRadius*2;return P.y+z/2}).attr("stroke",a.componentStroke).attr("stroke-width",6),A.append("text").attr("x",R=>{const P=T.get(R.id);if(R.className==="anchor")return R.labelOffsetX!==void 0?P.x+R.labelOffsetX:P.x;let z=i.nodeLabelOffset;R.sourceStrategy&&R.labelOffsetX===void 0&&(z+=10);const B=R.labelOffsetX??z;return P.x+B}).attr("y",R=>{const P=T.get(R.id);if(R.className==="anchor")return R.labelOffsetY!==void 0?P.y+R.labelOffsetY:P.y-3;let z=-i.nodeLabelOffset;R.sourceStrategy&&R.labelOffsetY===void 0&&(z-=10);const B=R.labelOffsetY??z;return P.y+B}).attr("class","wardley-node-label").attr("fill",R=>R.className==="evolved"?a.evolutionStroke:R.className==="anchor"?"#000":a.componentLabelColor).attr("font-size",i.labelFontSize).attr("font-weight",R=>R.className==="anchor"?"bold":"normal").attr("text-anchor",R=>R.className==="anchor"?"middle":"start").attr("dominant-baseline",R=>R.className==="anchor"?"middle":"auto").text(R=>R.label),l.annotations.length>0){const R=p.append("g").attr("class","wardley-annotations");if(l.annotations.forEach(P=>{const z=P.coordinates.map(B=>({x:v(B.x),y:b(B.y)}));if(z.length>1)for(let B=0;B{const q=R.append("g").attr("class","wardley-annotation");q.append("circle").attr("cx",B.x).attr("cy",B.y).attr("r",10).attr("fill","white").attr("stroke",a.axisColor).attr("stroke-width",1.5),q.append("text").attr("x",B.x).attr("y",B.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",a.axisTextColor).attr("font-weight","bold").text(P.number)})}),l.annotationsBox){let P=v(l.annotationsBox.x),z=b(l.annotationsBox.y);const B=10,q=16,Y=11,Q=R.append("g").attr("class","wardley-annotations-box"),H=[...l.annotations].filter(Z=>Z.text).sort((Z,pe)=>Z.number-pe.number),J=[];if(H.forEach((Z,pe)=>{const re=Q.append("text").attr("x",P+B).attr("y",z+B+(pe+1)*q).attr("font-size",Y).attr("fill",a.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${Z.number}. ${Z.text}`);J.push(re)}),J.length>0){let Z=0,pe=0;J.forEach(Ge=>{const ze=Ge.node(),Xe=ze.getComputedTextLength();Z=Math.max(Z,Xe);const Le=ze.getBBox();pe=Math.max(pe,Le.height)});const re=Z+B*2+105,ce=H.length*q+B*2+pe/2,ae=i.padding,se=d-i.padding-re,xe=i.padding,Te=h-i.padding-ce;P=Math.max(ae,Math.min(P,se)),z=Math.max(xe,Math.min(z,Te)),J.forEach((Ge,ze)=>{Ge.attr("x",P+B).attr("y",z+B+(ze+1)*q)}),Q.insert("rect","text").attr("x",P).attr("y",z).attr("width",re).attr("height",ce).attr("fill","white").attr("stroke",a.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(l.notes.length>0){const R=p.append("g").attr("class","wardley-notes");l.notes.forEach(P=>{const z=v(P.x),B=b(P.y);R.append("text").attr("x",z).attr("y",B).attr("text-anchor","start").attr("font-size",11).attr("fill",a.axisTextColor).attr("font-weight","bold").text(P.text)})}if(l.accelerators.length>0){const R=p.append("g").attr("class","wardley-accelerators");l.accelerators.forEach(P=>{const z=v(P.x),B=b(P.y),q=60,Y=30,Q=20,H=` M ${z} ${B-Y/2} L ${z+q-Q} ${B-Y/2} L ${z+q-Q} ${B-Y/2-8} @@ -7381,7 +7381,7 @@ Expecting `+ae.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":se="Parse error L ${z+Q} ${B+Y/2} L ${z+q} ${B+Y/2} Z - `;R.append("path").attr("d",H).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",1),R.append("text").attr("x",z+q/2).attr("y",B+Y/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",a.axisTextColor).attr("font-weight","bold").text(P.name)})}},"draw"),zPt={draw:$Pt},UPt=S(({wardley:t}={})=>{const e=Fb(),r=xr(),n=$i(e,r.themeVariables),i=$i(n.wardley,t);return` + `;R.append("path").attr("d",H).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",1),R.append("text").attr("x",z+q/2).attr("y",B+Y/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",a.axisTextColor).attr("font-weight","bold").text(P.name)})}},"draw"),UPt={draw:zPt},GPt=S(({wardley:t}={})=>{const e=Fb(),r=xr(),n=$i(e,r.themeVariables),i=$i(n.wardley,t);return` .wardley-background { fill: ${i.backgroundColor}; } @@ -7439,4 +7439,4 @@ Expecting `+ae.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":se="Parse error .wardley-notes text { fill: ${i.axisTextColor}; } - `},"styles"),GPt={parser:LRe,db:MPt,renderer:zPt,styles:UPt};const qPt=Object.freeze(Object.defineProperty({__proto__:null,diagram:GPt},Symbol.toStringTag,{value:"Module"})),YPt=Object.freeze(Object.defineProperty({__proto__:null,InfoModule:$ke,createInfoServices:zke},Symbol.toStringTag,{value:"Module"})),HPt=Object.freeze(Object.defineProperty({__proto__:null,PacketModule:Uke,createPacketServices:Gke},Symbol.toStringTag,{value:"Module"})),VPt=Object.freeze(Object.defineProperty({__proto__:null,PieModule:qke,createPieServices:Yke},Symbol.toStringTag,{value:"Module"})),WPt=Object.freeze(Object.defineProperty({__proto__:null,TreeViewModule:Hke,createTreeViewServices:Vke},Symbol.toStringTag,{value:"Module"})),KPt=Object.freeze(Object.defineProperty({__proto__:null,ArchitectureModule:Wke,createArchitectureServices:Kke},Symbol.toStringTag,{value:"Module"})),XPt=Object.freeze(Object.defineProperty({__proto__:null,GitGraphModule:Bke,createGitGraphServices:Fke},Symbol.toStringTag,{value:"Module"})),jPt=Object.freeze(Object.defineProperty({__proto__:null,EventModelingModule:jke,createEventModelingServices:Qke},Symbol.toStringTag,{value:"Module"})),QPt=Object.freeze(Object.defineProperty({__proto__:null,RadarModule:Nke,createRadarServices:Ike},Symbol.toStringTag,{value:"Module"})),ZPt=Object.freeze(Object.defineProperty({__proto__:null,TreemapModule:Dke,createTreemapServices:Lke},Symbol.toStringTag,{value:"Module"})),JPt=Object.freeze(Object.defineProperty({__proto__:null,WardleyModule:Mke,createWardleyServices:Pke},Symbol.toStringTag,{value:"Module"})); + `},"styles"),qPt={parser:LRe,db:PPt,renderer:UPt,styles:GPt};const YPt=Object.freeze(Object.defineProperty({__proto__:null,diagram:qPt},Symbol.toStringTag,{value:"Module"})),HPt=Object.freeze(Object.defineProperty({__proto__:null,InfoModule:$ke,createInfoServices:zke},Symbol.toStringTag,{value:"Module"})),VPt=Object.freeze(Object.defineProperty({__proto__:null,PacketModule:Uke,createPacketServices:Gke},Symbol.toStringTag,{value:"Module"})),WPt=Object.freeze(Object.defineProperty({__proto__:null,PieModule:qke,createPieServices:Yke},Symbol.toStringTag,{value:"Module"})),KPt=Object.freeze(Object.defineProperty({__proto__:null,TreeViewModule:Hke,createTreeViewServices:Vke},Symbol.toStringTag,{value:"Module"})),XPt=Object.freeze(Object.defineProperty({__proto__:null,ArchitectureModule:Wke,createArchitectureServices:Kke},Symbol.toStringTag,{value:"Module"})),jPt=Object.freeze(Object.defineProperty({__proto__:null,GitGraphModule:Bke,createGitGraphServices:Fke},Symbol.toStringTag,{value:"Module"})),QPt=Object.freeze(Object.defineProperty({__proto__:null,EventModelingModule:jke,createEventModelingServices:Qke},Symbol.toStringTag,{value:"Module"})),ZPt=Object.freeze(Object.defineProperty({__proto__:null,RadarModule:Nke,createRadarServices:Ike},Symbol.toStringTag,{value:"Module"})),JPt=Object.freeze(Object.defineProperty({__proto__:null,TreemapModule:Dke,createTreemapServices:Lke},Symbol.toStringTag,{value:"Module"})),eBt=Object.freeze(Object.defineProperty({__proto__:null,WardleyModule:Mke,createWardleyServices:Pke},Symbol.toStringTag,{value:"Module"})); diff --git a/src/quicklook/interaction.ts b/src/quicklook/interaction.ts index f0a3434..8bb67bf 100644 --- a/src/quicklook/interaction.ts +++ b/src/quicklook/interaction.ts @@ -168,6 +168,37 @@ export function trackToolbarSeparator(getMode: () => Mode, previewPane: HTMLElem return update; } +/** + * Make cmd-c copy the preview pane instead of the focused source editor. + * Capture-phase `copy` beats CodeMirror's handler regardless of focus. + */ +export function interceptPreviewCopy(previewPane: HTMLElement) { + document.addEventListener('copy', event => { + if (!previewPane.classList.contains('overlay')) { + return; + } + + const selection = getSelection(); + const range = selection !== null && selection.rangeCount > 0 ? selection.getRangeAt(0) : null; + const previewRange = range !== null && !range.collapsed && previewPane.contains(range.commonAncestorContainer) ? range : null; + + const fragment = previewRange ?? (() => { + const fullRange = document.createRange(); + fullRange.selectNodeContents(previewPane); + return fullRange; + })(); + + const container = document.createElement('div'); + container.appendChild(fragment.cloneContents()); + + event.clipboardData?.setData('text/html', container.innerHTML); + event.clipboardData?.setData('text/plain', previewRange !== null ? previewRange.toString() : previewPane.innerText); + + event.preventDefault(); + event.stopPropagation(); + }, true); +} + function convertToLocal(previewPane: HTMLElement, viewportY: number) { return viewportY - previewPane.getBoundingClientRect().top; } diff --git a/src/quicklook/ui.ts b/src/quicklook/ui.ts index 4073ead..1c0e65f 100644 --- a/src/quicklook/ui.ts +++ b/src/quicklook/ui.ts @@ -1,7 +1,14 @@ import { createToolbar } from './toolbar'; import { currentMode, saveMode } from './mode'; import { getEditorText } from './editor'; -import { interceptForceTouch, interceptPinchZoom, interceptDragging, interceptWheelEvent, trackToolbarSeparator } from './interaction'; +import { + interceptForceTouch, + interceptPinchZoom, + interceptDragging, + interceptWheelEvent, + interceptPreviewCopy, + trackToolbarSeparator, +} from './interaction'; import { renderMarkdown, handlePostRender } from '../render'; import { replaceImageURLs } from '../features/image'; import { appendStyle } from '../shared/utils'; @@ -58,6 +65,7 @@ export function setUpQuickLook(previewPane: HTMLElement) { interceptPinchZoom(currentMode, previewPane); interceptDragging(currentMode, previewPane); interceptWheelEvent(currentMode, previewPane, toolbar); + interceptPreviewCopy(previewPane); } interface ViewContext { diff --git a/tests/quicklook.interaction.test.ts b/tests/quicklook.interaction.test.ts new file mode 100644 index 0000000..b9a20f3 --- /dev/null +++ b/tests/quicklook.interaction.test.ts @@ -0,0 +1,90 @@ +// @vitest-environment happy-dom +import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; +import { interceptPreviewCopy } from '../src/quicklook/interaction'; + +beforeEach(() => { + document.body.innerHTML = ''; + getSelection()?.removeAllRanges(); +}); + +afterEach(() => { + vi.restoreAllMocks(); +}); + +describe('interceptPreviewCopy', () => { + it('does nothing when the preview pane is not an overlay', () => { + makePreviewPane('

hello world

', false); + interceptPreviewCopy(document.querySelector('.markdown-body') as HTMLElement); + + const { setData, event } = dispatchCopy(); + expect(setData).not.toHaveBeenCalled(); + expect(event.defaultPrevented).toBe(false); + }); + + it('copies the whole pane when there is no selection', () => { + const pane = makePreviewPane('

hello world

'); + interceptPreviewCopy(pane); + + const { setData, event } = dispatchCopy(); + expect(setData).toHaveBeenCalledWith('text/html', expect.stringContaining('hello world')); + expect(setData).toHaveBeenCalledWith('text/plain', pane.innerText); + expect(event.defaultPrevented).toBe(true); + }); + + it('copies only the selected range when a preview selection exists', () => { + const pane = makePreviewPane('

first

second

'); + interceptPreviewCopy(pane); + + const target = pane.querySelector('#b') as HTMLElement; + const range = document.createRange(); + range.selectNodeContents(target); + + const selection = getSelection(); + selection?.removeAllRanges(); + selection?.addRange(range); + + const { setData } = dispatchCopy(); + expect(setData).toHaveBeenCalledWith('text/plain', 'second'); + expect(setData).toHaveBeenCalledWith('text/html', expect.stringContaining('second')); + expect(setData).not.toHaveBeenCalledWith('text/html', expect.stringContaining('first')); + }); + + it('falls back to the whole pane when the selection is outside the preview', () => { + const pane = makePreviewPane('

inside preview

'); + const outside = document.createElement('p'); + outside.textContent = 'outside'; + document.body.appendChild(outside); + interceptPreviewCopy(pane); + + const range = document.createRange(); + range.selectNodeContents(outside); + + const selection = getSelection(); + selection?.removeAllRanges(); + selection?.addRange(range); + + const { setData } = dispatchCopy(); + expect(setData).toHaveBeenCalledWith('text/html', expect.stringContaining('inside preview')); + }); +}); + +function makePreviewPane(html: string, overlay = true) { + const pane = document.createElement('div'); + pane.className = 'markdown-body'; + if (overlay) { + pane.classList.add('overlay'); + } + + pane.innerHTML = html; + document.body.appendChild(pane); + return pane; +} + +function dispatchCopy() { + const setData = vi.fn(); + const event = new Event('copy', { bubbles: true, cancelable: true }); + Object.defineProperty(event, 'clipboardData', { value: { setData } }); + + document.dispatchEvent(event); + return { setData, event }; +}